libbacktrace: fix tipo in comment
[platform/upstream/gcc.git] / libbacktrace / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
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='package-unused'
589 PACKAGE_TARNAME='libbacktrace'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="backtrace.h"
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 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 NATIVE_FALSE
637 NATIVE_TRUE
638 HAVE_DSYMUTIL_FALSE
639 HAVE_DSYMUTIL_TRUE
640 HAVE_OBJCOPY_DEBUGLINK_FALSE
641 HAVE_OBJCOPY_DEBUGLINK_TRUE
642 READELF
643 OBJCOPY
644 HAVE_COMPRESSED_DEBUG_FALSE
645 HAVE_COMPRESSED_DEBUG_TRUE
646 HAVE_ZLIB_FALSE
647 HAVE_ZLIB_TRUE
648 HAVE_DWARF5_FALSE
649 HAVE_DWARF5_TRUE
650 HAVE_PTHREAD_FALSE
651 HAVE_PTHREAD_TRUE
652 PTHREAD_CFLAGS
653 CLOCK_GETTIME_LINK
654 BACKTRACE_USES_MALLOC
655 ALLOC_FILE
656 VIEW_FILE
657 BACKTRACE_SUPPORTS_DATA
658 BACKTRACE_SUPPORTED
659 HAVE_ELF_FALSE
660 HAVE_ELF_TRUE
661 FORMAT_FILE
662 BACKTRACE_SUPPORTS_THREADS
663 CET_HOST_FLAGS
664 PIC_FLAG
665 WARN_FLAGS
666 EXTRA_FLAGS
667 BACKTRACE_FILE
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 AR
674 OBJDUMP
675 LN_S
676 NM
677 ac_ct_DUMPBIN
678 DUMPBIN
679 LD
680 FGREP
681 SED
682 LIBTOOL
683 HAVE_DWZ_FALSE
684 HAVE_DWZ_TRUE
685 DWZ
686 RANLIB
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 libtool_VERSION
718 EGREP
719 GREP
720 CPP
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 multi_basedir
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_multilib
783 enable_silent_rules
784 enable_maintainer_mode
785 with_target_subdir
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_largefile
793 enable_cet
794 with_system_libunwind
795 enable_host_shared
796 '
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 CPP
806 OBJCOPY
807 DSYMUTIL'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
857
858 ac_prev=
859 ac_dashdash=
860 for ac_option
861 do
862   # If the previous option needs an argument, assign it.
863   if test -n "$ac_prev"; then
864     eval $ac_prev=\$ac_option
865     ac_prev=
866     continue
867   fi
868
869   case $ac_option in
870   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871   *=)   ac_optarg= ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error $? "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error $? "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263   elif test "x$build_alias" != "x$host_alias"; then
1264     cross_compiling=yes
1265   fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277   as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279   as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284   ac_srcdir_defaulted=yes
1285   # Try the directory containing this script, then the parent directory.
1286   ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288          X"$as_myself" : 'X\(//\)[^/]' \| \
1289          X"$as_myself" : 'X\(//\)$' \| \
1290          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293             s//\1/
1294             q
1295           }
1296           /^X\(\/\/\)[^/].*/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\).*/{
1305             s//\1/
1306             q
1307           }
1308           s/.*/./; q'`
1309   srcdir=$ac_confdir
1310   if test ! -r "$srcdir/$ac_unique_file"; then
1311     srcdir=..
1312   fi
1313 else
1314   ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323         pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326   srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336   eval ac_env_${ac_var}_value=\$${ac_var}
1337   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345   # Omit some internal or obsolete options to make the list less imposing.
1346   # This message is too long to be a string in the A/UX 3.1 sh.
1347   cat <<_ACEOF
1348 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE.  See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358   -h, --help              display this help and exit
1359       --help=short        display options specific to this package
1360       --help=recursive    display the short help of all the included packages
1361   -V, --version           display version information and exit
1362   -q, --quiet, --silent   do not print \`checking ...' messages
1363       --cache-file=FILE   cache test results in FILE [disabled]
1364   -C, --config-cache      alias for \`--cache-file=config.cache'
1365   -n, --no-create         do not create output files
1366       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369   --prefix=PREFIX         install architecture-independent files in PREFIX
1370                           [$ac_default_prefix]
1371   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1372                           [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382   --bindir=DIR            user executables [EPREFIX/bin]
1383   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1384   --libexecdir=DIR        program executables [EPREFIX/libexec]
1385   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1386   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1387   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1388   --libdir=DIR            object code libraries [EPREFIX/lib]
1389   --includedir=DIR        C header files [PREFIX/include]
1390   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1391   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1392   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1393   --infodir=DIR           info documentation [DATAROOTDIR/info]
1394   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1395   --mandir=DIR            man documentation [DATAROOTDIR/man]
1396   --docdir=DIR            documentation root [DATAROOTDIR/doc/libbacktrace]
1397   --htmldir=DIR           html documentation [DOCDIR]
1398   --dvidir=DIR            dvi documentation [DOCDIR]
1399   --pdfdir=DIR            pdf documentation [DOCDIR]
1400   --psdir=DIR             ps documentation [DOCDIR]
1401 _ACEOF
1402
1403   cat <<\_ACEOF
1404
1405 Program names:
1406   --program-prefix=PREFIX            prepend PREFIX to installed program names
1407   --program-suffix=SUFFIX            append SUFFIX to installed program names
1408   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1409
1410 System types:
1411   --build=BUILD     configure for building on BUILD [guessed]
1412   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1413   --target=TARGET   configure for building compilers for TARGET [HOST]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418   case $ac_init_help in
1419      short | recursive ) echo "Configuration of package-unused version-unused:";;
1420    esac
1421   cat <<\_ACEOF
1422
1423 Optional Features:
1424   --disable-option-checking  ignore unrecognized --enable/--with options
1425   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427   --enable-multilib       build many library versions (default)
1428   --enable-silent-rules   less verbose build output (undo: "make V=1")
1429   --disable-silent-rules  verbose build output (undo: "make V=0")
1430   --enable-maintainer-mode
1431                           enable make rules and dependencies not useful (and
1432                           sometimes confusing) to the casual installer
1433   --enable-shared[=PKGS]  build shared libraries [default=yes]
1434   --enable-static[=PKGS]  build static libraries [default=yes]
1435   --enable-fast-install[=PKGS]
1436                           optimize for fast installation [default=yes]
1437   --disable-libtool-lock  avoid locking (might break parallel builds)
1438   --disable-largefile     omit support for large files
1439   --enable-cet            enable Intel CET in target libraries [default=auto]
1440   --enable-host-shared    build host code as shared libraries
1441   --enable-cet            enable Intel CET in host libraries [default=auto]
1442
1443 Optional Packages:
1444   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446   --with-target-subdir=SUBDIR      Configuring in a subdirectory for target
1447   --with-pic              try to use only PIC/non-PIC objects [default=use
1448                           both]
1449   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1450   --with-system-libunwind use installed libunwind
1451
1452 Some influential environment variables:
1453   CC          C compiler command
1454   CFLAGS      C compiler flags
1455   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456               nonstandard directory <lib dir>
1457   LIBS        libraries to pass to the linker, e.g. -l<library>
1458   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459               you have headers in a nonstandard directory <include dir>
1460   CPP         C preprocessor
1461   OBJCOPY     location of objcopy
1462   DSYMUTIL    location of dsymutil
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to the package provider.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473   # If there are subdirs, report their specific --help.
1474   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475     test -d "$ac_dir" ||
1476       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477       continue
1478     ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484   # A ".." for each directory in $ac_dir_suffix.
1485   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486   case $ac_top_builddir_sub in
1487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489   esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497   .)  # We are building in place.
1498     ac_srcdir=.
1499     ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501   [\\/]* | ?:[\\/]* )  # Absolute name.
1502     ac_srcdir=$srcdir$ac_dir_suffix;
1503     ac_top_srcdir=$srcdir
1504     ac_abs_top_srcdir=$srcdir ;;
1505   *) # Relative name.
1506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507     ac_top_srcdir=$ac_top_build_prefix$srcdir
1508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512     cd "$ac_dir" || { ac_status=$?; continue; }
1513     # Check for guested configure.
1514     if test -f "$ac_srcdir/configure.gnu"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517     elif test -f "$ac_srcdir/configure"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure" --help=recursive
1520     else
1521       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522     fi || ac_status=$?
1523     cd "$ac_pwd" || { ac_status=$?; break; }
1524   done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529   cat <<\_ACEOF
1530 package-unused configure version-unused
1531 generated by GNU Autoconf 2.69
1532
1533 Copyright (C) 2012 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537   exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550   rm -f conftest.$ac_objext
1551   if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_compile") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } && {
1567          test -z "$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        } && test -s conftest.$ac_objext; then :
1570   ac_retval=0
1571 else
1572   $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575         ac_retval=1
1576 fi
1577   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578   as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_cpp LINENO
1583 # ----------------------
1584 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_cpp ()
1586 {
1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588   if { { ac_try="$ac_cpp conftest.$ac_ext"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } > conftest.i && {
1604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        }; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612     ac_retval=1
1613 fi
1614   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_cpp
1618
1619 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622 # the include files in INCLUDES and setting the cache variable VAR
1623 # accordingly.
1624 ac_fn_c_check_header_mongrel ()
1625 {
1626   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627   if eval \${$3+:} false; then :
1628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if eval \${$3+:} false; then :
1631   $as_echo_n "(cached) " >&6
1632 fi
1633 eval ac_res=\$$3
1634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 else
1637   # Is the header compilable?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639 $as_echo_n "checking $2 usability... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h.  */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646   ac_header_compiler=yes
1647 else
1648   ac_header_compiler=no
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652 $as_echo "$ac_header_compiler" >&6; }
1653
1654 # Is the header present?
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656 $as_echo_n "checking $2 presence... " >&6; }
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h.  */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_cpp "$LINENO"; then :
1662   ac_header_preproc=yes
1663 else
1664   ac_header_preproc=no
1665 fi
1666 rm -f conftest.err conftest.i conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668 $as_echo "$ac_header_preproc" >&6; }
1669
1670 # So?  What about this header?
1671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672   yes:no: )
1673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677     ;;
1678   no:yes:* )
1679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1682 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1686 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1687     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689     ;;
1690 esac
1691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694   $as_echo_n "(cached) " >&6
1695 else
1696   eval "$3=\$ac_header_compiler"
1697 fi
1698 eval ac_res=\$$3
1699                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 fi
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_mongrel
1705
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_link") 2>&5
1721   ac_status=$?
1722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724   { { case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_try") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; }; }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: program exited with status $ac_status" >&5
1737        $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740        ac_retval=$ac_status
1741 fi
1742   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_run
1747
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758   $as_echo_n "(cached) " >&6
1759 else
1760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h.  */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766   eval "$3=yes"
1767 else
1768   eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_compile
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   rm -f conftest.$ac_objext conftest$ac_exeext
1786   if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_link") 2>conftest.err
1794   ac_status=$?
1795   if test -s conftest.err; then
1796     grep -v '^ *+' conftest.err >conftest.er1
1797     cat conftest.er1 >&5
1798     mv -f conftest.er1 conftest.err
1799   fi
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; } && {
1802          test -z "$ac_c_werror_flag" ||
1803          test ! -s conftest.err
1804        } && test -s conftest$ac_exeext && {
1805          test "$cross_compiling" = yes ||
1806          test -x conftest$ac_exeext
1807        }; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813         ac_retval=1
1814 fi
1815   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817   # interfere with the next link command; also delete a directory that is
1818   # left behind by Apple's compiler.  We do this before executing the actions.
1819   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_link
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h.  */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1840 #define $2 innocuous_$2
1841
1842 /* System header to define __stub macros and hopefully few prototypes,
1843     which can conflict with char $2 (); below.
1844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845     <limits.h> exists even on freestanding compilers.  */
1846
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1852
1853 #undef $2
1854
1855 /* Override any GCC internal prototype to avoid an error.
1856    Use char because int might match the return type of a GCC
1857    builtin and then its argument prototype would still apply.  */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863     to always fail with ENOSYS.  Some functions are actually named
1864     something starting with __ and the normal name is an alias.  */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1868
1869 int
1870 main ()
1871 {
1872 return $2 ();
1873   ;
1874   return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878   eval "$3=yes"
1879 else
1880   eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext \
1883     conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902   $as_echo_n "(cached) " >&6
1903 else
1904   eval "$3=no"
1905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912          return 0;
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925             return 0;
1926   ;
1927   return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933   eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947 # --------------------------------------------
1948 # Tries to find the compile-time value of EXPR in a program that includes
1949 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 # computed
1951 ac_fn_c_compute_int ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if test "$cross_compiling" = yes; then
1955     # Depending upon the size, compute the lo and hi bounds.
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) >= 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_lo=0 ac_mid=0
1972   while :; do
1973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988   ac_hi=$ac_mid; break
1989 else
1990   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991                         if test $ac_lo -le $ac_mid; then
1992                           ac_lo= ac_hi=
1993                           break
1994                         fi
1995                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998   done
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) < 0)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   ac_hi=-1 ac_mid=-1
2016   while :; do
2017     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   ac_lo=$ac_mid; break
2033 else
2034   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035                         if test $ac_mid -le $ac_hi; then
2036                           ac_lo= ac_hi=
2037                           break
2038                         fi
2039                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042   done
2043 else
2044   ac_lo= ac_hi=
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 # Binary search between lo and hi bounds.
2050 while test "x$ac_lo" != "x$ac_hi"; do
2051   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   ac_hi=$ac_mid
2068 else
2069   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 case $ac_lo in #((
2074 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075 '') ac_retval=1 ;;
2076 esac
2077   else
2078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 static long int longval () { return $2; }
2082 static unsigned long int ulongval () { return $2; }
2083 #include <stdio.h>
2084 #include <stdlib.h>
2085 int
2086 main ()
2087 {
2088
2089   FILE *f = fopen ("conftest.val", "w");
2090   if (! f)
2091     return 1;
2092   if (($2) < 0)
2093     {
2094       long int i = longval ();
2095       if (i != ($2))
2096         return 1;
2097       fprintf (f, "%ld", i);
2098     }
2099   else
2100     {
2101       unsigned long int i = ulongval ();
2102       if (i != ($2))
2103         return 1;
2104       fprintf (f, "%lu", i);
2105     }
2106   /* Do not output a trailing newline, as this causes \r\n confusion
2107      on some platforms.  */
2108   return ferror (f) || fclose (f) != 0;
2109
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_run "$LINENO"; then :
2115   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 else
2117   ac_retval=1
2118 fi
2119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120   conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 rm -f conftest.val
2122
2123   fi
2124   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125   as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_compute_int
2128
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2130 # ---------------------------------------------
2131 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132 # accordingly.
2133 ac_fn_c_check_decl ()
2134 {
2135   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136   as_decl_name=`echo $2|sed 's/ *(.*//'`
2137   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if eval \${$3+:} false; then :
2141   $as_echo_n "(cached) " >&6
2142 else
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 #ifndef $as_decl_name
2150 #ifdef __cplusplus
2151   (void) $as_decl_use;
2152 #else
2153   (void) $as_decl_name;
2154 #endif
2155 #endif
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   eval "$3=yes"
2163 else
2164   eval "$3=no"
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172
2173 } # ac_fn_c_check_decl
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by package-unused $as_me version-unused, which was
2179 generated by GNU Autoconf 2.69.  Invocation command line was
2180
2181   $ $0 $@
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2199
2200 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2201 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2204 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2205 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2206 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213   IFS=$as_save_IFS
2214   test -z "$as_dir" && as_dir=.
2215     $as_echo "PATH: $as_dir"
2216   done
2217 IFS=$as_save_IFS
2218
2219 } >&5
2220
2221 cat >&5 <<_ACEOF
2222
2223
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2227
2228 _ACEOF
2229
2230
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2241 do
2242   for ac_arg
2243   do
2244     case $ac_arg in
2245     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247     | -silent | --silent | --silen | --sile | --sil)
2248       continue ;;
2249     *\'*)
2250       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251     esac
2252     case $ac_pass in
2253     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254     2)
2255       as_fn_append ac_configure_args1 " '$ac_arg'"
2256       if test $ac_must_keep_next = true; then
2257         ac_must_keep_next=false # Got value, back to normal.
2258       else
2259         case $ac_arg in
2260           *=* | --config-cache | -C | -disable-* | --disable-* \
2261           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263           | -with-* | --with-* | -without-* | --without-* | --x)
2264             case "$ac_configure_args0 " in
2265               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266             esac
2267             ;;
2268           -* ) ac_must_keep_next=true ;;
2269         esac
2270       fi
2271       as_fn_append ac_configure_args " '$ac_arg'"
2272       ;;
2273     esac
2274   done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2278
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log.  We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285   # Save into config.log some information that might help in debugging.
2286   {
2287     echo
2288
2289     $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2292     echo
2293     # The following way of writing the cache mishandles newlines in values,
2294 (
2295   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296     eval ac_val=\$$ac_var
2297     case $ac_val in #(
2298     *${as_nl}*)
2299       case $ac_var in #(
2300       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302       esac
2303       case $ac_var in #(
2304       _ | IFS | as_nl) ;; #(
2305       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306       *) { eval $ac_var=; unset $ac_var;} ;;
2307       esac ;;
2308     esac
2309   done
2310   (set) 2>&1 |
2311     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312     *${as_nl}ac_space=\ *)
2313       sed -n \
2314         "s/'\''/'\''\\\\'\'''\''/g;
2315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316       ;; #(
2317     *)
2318       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319       ;;
2320     esac |
2321     sort
2322 )
2323     echo
2324
2325     $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2328     echo
2329     for ac_var in $ac_subst_vars
2330     do
2331       eval ac_val=\$$ac_var
2332       case $ac_val in
2333       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334       esac
2335       $as_echo "$ac_var='\''$ac_val'\''"
2336     done | sort
2337     echo
2338
2339     if test -n "$ac_subst_files"; then
2340       $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2343       echo
2344       for ac_var in $ac_subst_files
2345       do
2346         eval ac_val=\$$ac_var
2347         case $ac_val in
2348         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349         esac
2350         $as_echo "$ac_var='\''$ac_val'\''"
2351       done | sort
2352       echo
2353     fi
2354
2355     if test -s confdefs.h; then
2356       $as_echo "## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##"
2359       echo
2360       cat confdefs.h
2361       echo
2362     fi
2363     test "$ac_signal" != 0 &&
2364       $as_echo "$as_me: caught signal $ac_signal"
2365     $as_echo "$as_me: exit $exit_status"
2366   } >&5
2367   rm -f core *.core core.conftest.* &&
2368     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369     exit $exit_status
2370 ' 0
2371 for ac_signal in 1 2 13 15; do
2372   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413   # We do not want a PATH search for config.site.
2414   case $CONFIG_SITE in #((
2415     -*)  ac_site_file1=./$CONFIG_SITE;;
2416     */*) ac_site_file1=$CONFIG_SITE;;
2417     *)   ac_site_file1=./$CONFIG_SITE;;
2418   esac
2419 elif test "x$prefix" != xNONE; then
2420   ac_site_file1=$prefix/share/config.site
2421   ac_site_file2=$prefix/etc/config.site
2422 else
2423   ac_site_file1=$ac_default_prefix/share/config.site
2424   ac_site_file2=$ac_default_prefix/etc/config.site
2425 fi
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 do
2428   test "x$ac_site_file" = xNONE && continue
2429   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432     sed 's/^/| /' "$ac_site_file" >&5
2433     . "$ac_site_file" \
2434       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See \`config.log' for more details" "$LINENO" 5; }
2438   fi
2439 done
2440
2441 if test -r "$cache_file"; then
2442   # Some versions of bash will fail to source /dev/null (special files
2443   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2444   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447     case $cache_file in
2448       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449       *)                      . "./$cache_file";;
2450     esac
2451   fi
2452 else
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455   >$cache_file
2456 fi
2457
2458 # Check that the precious variables saved in the cache have kept the same
2459 # value.
2460 ac_cache_corrupted=false
2461 for ac_var in $ac_precious_vars; do
2462   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463   eval ac_new_set=\$ac_env_${ac_var}_set
2464   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465   eval ac_new_val=\$ac_env_${ac_var}_value
2466   case $ac_old_set,$ac_new_set in
2467     set,)
2468       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470       ac_cache_corrupted=: ;;
2471     ,set)
2472       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474       ac_cache_corrupted=: ;;
2475     ,);;
2476     *)
2477       if test "x$ac_old_val" != "x$ac_new_val"; then
2478         # differences in whitespace do not lead to failure.
2479         ac_old_val_w=`echo x $ac_old_val`
2480         ac_new_val_w=`echo x $ac_new_val`
2481         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484           ac_cache_corrupted=:
2485         else
2486           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488           eval $ac_var=\$ac_old_val
2489         fi
2490         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2491 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2492         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2493 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2494       fi;;
2495   esac
2496   # Pass precious variables to config.status.
2497   if test "$ac_new_set" = set; then
2498     case $ac_new_val in
2499     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500     *) ac_arg=$ac_var=$ac_new_val ;;
2501     esac
2502     case " $ac_configure_args " in
2503       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2504       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505     esac
2506   fi
2507 done
2508 if $ac_cache_corrupted; then
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 fi
2515 ## -------------------- ##
2516 ## Main body of script. ##
2517 ## -------------------- ##
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526
2527
2528
2529
2530 ac_config_headers="$ac_config_headers config.h"
2531
2532
2533 if test -n "${with_target_subdir}"; then
2534   # Default to --enable-multilib
2535 # Check whether --enable-multilib was given.
2536 if test "${enable_multilib+set}" = set; then :
2537   enableval=$enable_multilib; case "$enableval" in
2538   yes) multilib=yes ;;
2539   no)  multilib=no ;;
2540   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2541  esac
2542 else
2543   multilib=yes
2544 fi
2545
2546
2547 # We may get other options which we leave undocumented:
2548 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2549 # See config-ml.in if you want the gory details.
2550
2551 if test "$srcdir" = "."; then
2552   if test "$with_target_subdir" != "."; then
2553     multi_basedir="$srcdir/$with_multisrctop../.."
2554   else
2555     multi_basedir="$srcdir/$with_multisrctop.."
2556   fi
2557 else
2558   multi_basedir="$srcdir/.."
2559 fi
2560
2561
2562 # Even if the default multilib is not a cross compilation,
2563 # it may be that some of the other multilibs are.
2564 if test $cross_compiling = no && test $multilib = yes \
2565    && test "x${with_multisubdir}" != x ; then
2566    cross_compiling=maybe
2567 fi
2568
2569 ac_config_commands="$ac_config_commands default-1"
2570
2571 fi
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575   if test -f "$ac_dir/install-sh"; then
2576     ac_aux_dir=$ac_dir
2577     ac_install_sh="$ac_aux_dir/install-sh -c"
2578     break
2579   elif test -f "$ac_dir/install.sh"; then
2580     ac_aux_dir=$ac_dir
2581     ac_install_sh="$ac_aux_dir/install.sh -c"
2582     break
2583   elif test -f "$ac_dir/shtool"; then
2584     ac_aux_dir=$ac_dir
2585     ac_install_sh="$ac_aux_dir/shtool install -c"
2586     break
2587   fi
2588 done
2589 if test -z "$ac_aux_dir"; then
2590   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591 fi
2592
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2598 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2599 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2600
2601
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2623 *-*-*) ;;
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625 esac
2626 build=$ac_cv_build
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_build
2629 shift
2630 build_cpu=$1
2631 build_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 build_os=$*
2636 IFS=$ac_save_IFS
2637 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test "x$host_alias" = x; then
2646   ac_cv_host=$ac_cv_build
2647 else
2648   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650 fi
2651
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2658 esac
2659 host=$ac_cv_host
2660 ac_save_IFS=$IFS; IFS='-'
2661 set x $ac_cv_host
2662 shift
2663 host_cpu=$1
2664 host_vendor=$2
2665 shift; shift
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2668 host_os=$*
2669 IFS=$ac_save_IFS
2670 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   if test "x$target_alias" = x; then
2679   ac_cv_target=$ac_cv_host
2680 else
2681   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2689 *-*-*) ;;
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691 esac
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2694 set x $ac_cv_target
2695 shift
2696 target_cpu=$1
2697 target_vendor=$2
2698 shift; shift
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2701 target_os=$*
2702 IFS=$ac_save_IFS
2703 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709   test "$program_prefix$program_suffix$program_transform_name" = \
2710     NONENONEs,x,x, &&
2711   program_prefix=${target_alias}-
2712
2713 target_alias=${target_alias-$host_alias}
2714
2715 # Expand $ac_aux_dir to an absolute path.
2716 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_CC+:} false; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   if test -n "$CC"; then
2732   ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739     for ac_exec_ext in '' $ac_executable_extensions; do
2740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746   done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_CC"; then
2763   ac_ct_CC=$CC
2764   # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$ac_ct_CC"; then
2772   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781     ac_cv_prog_ac_ct_CC="gcc"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2794 $as_echo "$ac_ct_CC" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800   if test "x$ac_ct_CC" = x; then
2801     CC=""
2802   else
2803     case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809     CC=$ac_ct_CC
2810   fi
2811 else
2812   CC="$ac_cv_prog_CC"
2813 fi
2814
2815 if test -z "$CC"; then
2816           if test -n "$ac_tool_prefix"; then
2817     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}cc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_CC+:} false; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   if test -n "$CC"; then
2825   ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832     for ac_exec_ext in '' $ac_executable_extensions; do
2833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834     ac_cv_prog_CC="${ac_tool_prefix}cc"
2835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836     break 2
2837   fi
2838 done
2839   done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854   fi
2855 fi
2856 if test -z "$CC"; then
2857   # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test -n "$CC"; then
2865   ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867   ac_prog_rejected=no
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873     for ac_exec_ext in '' $ac_executable_extensions; do
2874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876        ac_prog_rejected=yes
2877        continue
2878      fi
2879     ac_cv_prog_CC="cc"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 if test $ac_prog_rejected = yes; then
2888   # We found a bogon in the path, so make sure we never use it.
2889   set dummy $ac_cv_prog_CC
2890   shift
2891   if test $# != 0; then
2892     # We chose a different compiler from the bogus one.
2893     # However, it has the same basename, so the bogon will be chosen
2894     # first if we set CC to just the basename; use the full file name.
2895     shift
2896     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897   fi
2898 fi
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 if test -z "$CC"; then
2913   if test -n "$ac_tool_prefix"; then
2914   for ac_prog in cl.exe
2915   do
2916     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921   $as_echo_n "(cached) " >&6
2922 else
2923   if test -n "$CC"; then
2924   ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     for ac_exec_ext in '' $ac_executable_extensions; do
2932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938   done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2947 else
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2950 fi
2951
2952
2953     test -n "$CC" && break
2954   done
2955 fi
2956 if test -z "$CC"; then
2957   ac_ct_CC=$CC
2958   for ac_prog in cl.exe
2959 do
2960   # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$ac_ct_CC"; then
2968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977     ac_cv_prog_ac_ct_CC="$ac_prog"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997   test -n "$ac_ct_CC" && break
2998 done
2999
3000   if test "x$ac_ct_CC" = x; then
3001     CC=""
3002   else
3003     case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009     CC=$ac_ct_CC
3010   fi
3011 fi
3012
3013 fi
3014
3015
3016 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "no acceptable C compiler found in \$PATH
3019 See \`config.log' for more details" "$LINENO" 5; }
3020
3021 # Provide some information about the compiler.
3022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3023 set X $ac_compile
3024 ac_compiler=$2
3025 for ac_option in --version -v -V -qversion; do
3026   { { ac_try="$ac_compiler $ac_option >&5"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3034   ac_status=$?
3035   if test -s conftest.err; then
3036     sed '10a\
3037 ... rest of stderr output deleted ...
3038          10q' conftest.err >conftest.er1
3039     cat conftest.er1 >&5
3040   fi
3041   rm -f conftest.er1 conftest.err
3042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043   test $ac_status = 0; }
3044 done
3045
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h.  */
3048
3049 int
3050 main ()
3051 {
3052
3053   ;
3054   return 0;
3055 }
3056 _ACEOF
3057 ac_clean_files_save=$ac_clean_files
3058 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3059 # Try to create an executable without -o first, disregard a.out.
3060 # It will help us diagnose broken compilers, and finding out an intuition
3061 # of exeext.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3063 $as_echo_n "checking whether the C compiler works... " >&6; }
3064 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3065
3066 # The possible output files:
3067 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3068
3069 ac_rmfiles=
3070 for ac_file in $ac_files
3071 do
3072   case $ac_file in
3073     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3075   esac
3076 done
3077 rm -f $ac_rmfiles
3078
3079 if { { ac_try="$ac_link_default"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086   (eval "$ac_link_default") 2>&5
3087   ac_status=$?
3088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089   test $ac_status = 0; }; then :
3090   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3094 # Autoconf.
3095 for ac_file in $ac_files ''
3096 do
3097   test -f "$ac_file" || continue
3098   case $ac_file in
3099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100         ;;
3101     [ab].out )
3102         # We found the default executable, but exeext='' is most
3103         # certainly right.
3104         break;;
3105     *.* )
3106         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3107         then :; else
3108            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109         fi
3110         # We set ac_cv_exeext here because the later test for it is not
3111         # safe: cross compilers may not add the suffix if given an `-o'
3112         # argument, so we may need to know it at that point already.
3113         # Even if this section looks crufty: it has the advantage of
3114         # actually working.
3115         break;;
3116     * )
3117         break;;
3118   esac
3119 done
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121
3122 else
3123   ac_file=''
3124 fi
3125 if test -z "$ac_file"; then :
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error 77 "C compiler cannot create executables
3134 See \`config.log' for more details" "$LINENO" 5; }
3135 else
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137 $as_echo "yes" >&6; }
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3140 $as_echo_n "checking for C compiler default output file name... " >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3142 $as_echo "$ac_file" >&6; }
3143 ac_exeext=$ac_cv_exeext
3144
3145 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3146 ac_clean_files=$ac_clean_files_save
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3148 $as_echo_n "checking for suffix of executables... " >&6; }
3149 if { { ac_try="$ac_link"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156   (eval "$ac_link") 2>&5
3157   ac_status=$?
3158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159   test $ac_status = 0; }; then :
3160   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3161 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3162 # work properly (i.e., refer to `conftest.exe'), while it won't with
3163 # `rm'.
3164 for ac_file in conftest.exe conftest conftest.*; do
3165   test -f "$ac_file" || continue
3166   case $ac_file in
3167     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169           break;;
3170     * ) break;;
3171   esac
3172 done
3173 else
3174   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details" "$LINENO" 5; }
3178 fi
3179 rm -f conftest conftest$ac_cv_exeext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3181 $as_echo "$ac_cv_exeext" >&6; }
3182
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3185 ac_exeext=$EXEEXT
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h.  */
3188 #include <stdio.h>
3189 int
3190 main ()
3191 {
3192 FILE *f = fopen ("conftest.out", "w");
3193  return ferror (f) || fclose (f) != 0;
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 ac_clean_files="$ac_clean_files conftest.out"
3200 # Check that the compiler produces executables we can run.  If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 if test "$cross_compiling" != yes; then
3205   { { ac_try="$ac_link"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212   (eval "$ac_link") 2>&5
3213   ac_status=$?
3214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215   test $ac_status = 0; }
3216   if { ac_try='./conftest$ac_cv_exeext'
3217   { { case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223   (eval "$ac_try") 2>&5
3224   ac_status=$?
3225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226   test $ac_status = 0; }; }; then
3227     cross_compiling=no
3228   else
3229     if test "$cross_compiling" = maybe; then
3230         cross_compiling=yes
3231     else
3232         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "cannot run C compiled programs.
3235 If you meant to cross compile, use \`--host'.
3236 See \`config.log' for more details" "$LINENO" 5; }
3237     fi
3238   fi
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3241 $as_echo "$cross_compiling" >&6; }
3242
3243 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246 $as_echo_n "checking for suffix of object files... " >&6; }
3247 if ${ac_cv_objext+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252
3253 int
3254 main ()
3255 {
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.o conftest.obj
3262 if { { ac_try="$ac_compile"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269   (eval "$ac_compile") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272   test $ac_status = 0; }; then :
3273   for ac_file in conftest.o conftest.obj conftest.*; do
3274   test -f "$ac_file" || continue;
3275   case $ac_file in
3276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278        break;;
3279   esac
3280 done
3281 else
3282   $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details" "$LINENO" 5; }
3289 fi
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293 $as_echo "$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3295 ac_objext=$OBJEXT
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3297 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3298 if ${ac_cv_c_compiler_gnu+:} false; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h.  */
3303
3304 int
3305 main ()
3306 {
3307 #ifndef __GNUC__
3308        choke me
3309 #endif
3310
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316   ac_compiler_gnu=yes
3317 else
3318   ac_compiler_gnu=no
3319 fi
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3326 if test $ac_compiler_gnu = yes; then
3327   GCC=yes
3328 else
3329   GCC=
3330 fi
3331 ac_test_CFLAGS=${CFLAGS+set}
3332 ac_save_CFLAGS=$CFLAGS
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3334 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3335 if ${ac_cv_prog_cc_g+:} false; then :
3336   $as_echo_n "(cached) " >&6
3337 else
3338   ac_save_c_werror_flag=$ac_c_werror_flag
3339    ac_c_werror_flag=yes
3340    ac_cv_prog_cc_g=no
3341    CFLAGS="-g"
3342    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 int
3346 main ()
3347 {
3348
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354   ac_cv_prog_cc_g=yes
3355 else
3356   CFLAGS=""
3357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h.  */
3359
3360 int
3361 main ()
3362 {
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369
3370 else
3371   ac_c_werror_flag=$ac_save_c_werror_flag
3372          CFLAGS="-g"
3373          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385   ac_cv_prog_cc_g=yes
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392    ac_c_werror_flag=$ac_save_c_werror_flag
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3395 $as_echo "$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397   CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399   if test "$GCC" = yes; then
3400     CFLAGS="-g -O2"
3401   else
3402     CFLAGS="-g"
3403   fi
3404 else
3405   if test "$GCC" = yes; then
3406     CFLAGS="-O2"
3407   else
3408     CFLAGS=
3409   fi
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3412 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3413 if ${ac_cv_prog_cc_c89+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   ac_cv_prog_cc_c89=no
3417 ac_save_CC=$CC
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420 #include <stdarg.h>
3421 #include <stdio.h>
3422 struct stat;
3423 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3424 struct buf { int x; };
3425 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426 static char *e (p, i)
3427      char **p;
3428      int i;
3429 {
3430   return p[i];
3431 }
3432 static char *f (char * (*g) (char **, int), char **p, ...)
3433 {
3434   char *s;
3435   va_list v;
3436   va_start (v,p);
3437   s = g (p, va_arg (v,int));
3438   va_end (v);
3439   return s;
3440 }
3441
3442 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3443    function prototypes and stuff, but not '\xHH' hex character constants.
3444    These don't provoke an error unfortunately, instead are silently treated
3445    as 'x'.  The following induces an error, until -std is added to get
3446    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3447    array size at least.  It's necessary to write '\x00'==0 to get something
3448    that's true only with -std.  */
3449 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3450
3451 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452    inside strings and character constants.  */
3453 #define FOO(x) 'x'
3454 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3455
3456 int test (int i, double x);
3457 struct s1 {int (*f) (int a);};
3458 struct s2 {int (*f) (double a);};
3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460 int argc;
3461 char **argv;
3462 int
3463 main ()
3464 {
3465 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472 do
3473   CC="$ac_save_CC $ac_arg"
3474   if ac_fn_c_try_compile "$LINENO"; then :
3475   ac_cv_prog_cc_c89=$ac_arg
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext
3478   test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 done
3480 rm -f conftest.$ac_ext
3481 CC=$ac_save_CC
3482
3483 fi
3484 # AC_CACHE_VAL
3485 case "x$ac_cv_prog_cc_c89" in
3486   x)
3487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488 $as_echo "none needed" >&6; } ;;
3489   xno)
3490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491 $as_echo "unsupported" >&6; } ;;
3492   *)
3493     CC="$CC $ac_cv_prog_cc_c89"
3494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3496 esac
3497 if test "x$ac_cv_prog_cc_c89" != xno; then :
3498
3499 fi
3500
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3513 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3514 if ${am_cv_prog_cc_c_o+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528   # Make sure it works both with $CC and with simple cc.
3529   # Following AC_PROG_CC_C_O, we do the test twice because some
3530   # compilers refuse to overwrite an existing .o file with -o,
3531   # though they will create one.
3532   am_cv_prog_cc_c_o=yes
3533   for am_i in 1 2; do
3534     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3535    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3536    ac_status=$?
3537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538    (exit $ac_status); } \
3539          && test -f conftest2.$ac_objext; then
3540       : OK
3541     else
3542       am_cv_prog_cc_c_o=no
3543       break
3544     fi
3545   done
3546   rm -f core conftest*
3547   unset am_i
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3550 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3551 if test "$am_cv_prog_cc_c_o" != yes; then
3552    # Losing compiler, so override with the script.
3553    # FIXME: It is wrong to rewrite CC.
3554    # But if we don't then we get into trouble of one sort or another.
3555    # A longer-term fix would be to have automake use am__CC in this case,
3556    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3557    CC="$am_aux_dir/compile $CC"
3558 fi
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3573 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3576   CPP=
3577 fi
3578 if test -z "$CPP"; then
3579   if ${ac_cv_prog_CPP+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582       # Double quotes because CPP needs to be expanded
3583     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584     do
3585       ac_preproc_ok=false
3586 for ac_c_preproc_warn_flag in '' yes
3587 do
3588   # Use a header file that comes with gcc, so configuring glibc
3589   # with a fresh cross-compiler works.
3590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591   # <limits.h> exists even on freestanding compilers.
3592   # On the NeXT, cc -E runs the code through the compiler's parser,
3593   # not just through cpp. "Syntax error" is here to catch this case.
3594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601                      Syntax error
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604
3605 else
3606   # Broken: fails on valid input.
3607 continue
3608 fi
3609 rm -f conftest.err conftest.i conftest.$ac_ext
3610
3611   # OK, works on sane cases.  Now check whether nonexistent headers
3612   # can be detected and how.
3613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615 #include <ac_nonexistent.h>
3616 _ACEOF
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   # Passes both tests.
3622 ac_preproc_ok=:
3623 break
3624 fi
3625 rm -f conftest.err conftest.i conftest.$ac_ext
3626
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.i conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then :
3631   break
3632 fi
3633
3634     done
3635     ac_cv_prog_CPP=$CPP
3636
3637 fi
3638   CPP=$ac_cv_prog_CPP
3639 else
3640   ac_cv_prog_CPP=$CPP
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3643 $as_echo "$CPP" >&6; }
3644 ac_preproc_ok=false
3645 for ac_c_preproc_warn_flag in '' yes
3646 do
3647   # Use a header file that comes with gcc, so configuring glibc
3648   # with a fresh cross-compiler works.
3649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650   # <limits.h> exists even on freestanding compilers.
3651   # On the NeXT, cc -E runs the code through the compiler's parser,
3652   # not just through cpp. "Syntax error" is here to catch this case.
3653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655 #ifdef __STDC__
3656 # include <limits.h>
3657 #else
3658 # include <assert.h>
3659 #endif
3660                      Syntax error
3661 _ACEOF
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663
3664 else
3665   # Broken: fails on valid input.
3666 continue
3667 fi
3668 rm -f conftest.err conftest.i conftest.$ac_ext
3669
3670   # OK, works on sane cases.  Now check whether nonexistent headers
3671   # can be detected and how.
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #include <ac_nonexistent.h>
3675 _ACEOF
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677   # Broken: success on invalid input.
3678 continue
3679 else
3680   # Passes both tests.
3681 ac_preproc_ok=:
3682 break
3683 fi
3684 rm -f conftest.err conftest.i conftest.$ac_ext
3685
3686 done
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.i conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then :
3690
3691 else
3692   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707 if ${ac_cv_path_GREP+:} false; then :
3708   $as_echo_n "(cached) " >&6
3709 else
3710   if test -z "$GREP"; then
3711   ac_path_GREP_found=false
3712   # Loop through the user's path and test for each of PROGNAME-LIST
3713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 do
3716   IFS=$as_save_IFS
3717   test -z "$as_dir" && as_dir=.
3718     for ac_prog in grep ggrep; do
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721       as_fn_executable_p "$ac_path_GREP" || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723   # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3725 *GNU*)
3726   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727 *)
3728   ac_count=0
3729   $as_echo_n 0123456789 >"conftest.in"
3730   while :
3731   do
3732     cat "conftest.in" "conftest.in" >"conftest.tmp"
3733     mv "conftest.tmp" "conftest.in"
3734     cp "conftest.in" "conftest.nl"
3735     $as_echo 'GREP' >> "conftest.nl"
3736     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738     as_fn_arith $ac_count + 1 && ac_count=$as_val
3739     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740       # Best one so far, save it but keep looking for a better one
3741       ac_cv_path_GREP="$ac_path_GREP"
3742       ac_path_GREP_max=$ac_count
3743     fi
3744     # 10*(2^10) chars as input seems more than enough
3745     test $ac_count -gt 10 && break
3746   done
3747   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748 esac
3749
3750       $ac_path_GREP_found && break 3
3751     done
3752   done
3753   done
3754 IFS=$as_save_IFS
3755   if test -z "$ac_cv_path_GREP"; then
3756     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3757   fi
3758 else
3759   ac_cv_path_GREP=$GREP
3760 fi
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765  GREP="$ac_cv_path_GREP"
3766
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769 $as_echo_n "checking for egrep... " >&6; }
3770 if ${ac_cv_path_EGREP+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774    then ac_cv_path_EGREP="$GREP -E"
3775    else
3776      if test -z "$EGREP"; then
3777   ac_path_EGREP_found=false
3778   # Loop through the user's path and test for each of PROGNAME-LIST
3779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784     for ac_prog in egrep; do
3785     for ac_exec_ext in '' $ac_executable_extensions; do
3786       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787       as_fn_executable_p "$ac_path_EGREP" || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789   # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3791 *GNU*)
3792   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793 *)
3794   ac_count=0
3795   $as_echo_n 0123456789 >"conftest.in"
3796   while :
3797   do
3798     cat "conftest.in" "conftest.in" >"conftest.tmp"
3799     mv "conftest.tmp" "conftest.in"
3800     cp "conftest.in" "conftest.nl"
3801     $as_echo 'EGREP' >> "conftest.nl"
3802     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804     as_fn_arith $ac_count + 1 && ac_count=$as_val
3805     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806       # Best one so far, save it but keep looking for a better one
3807       ac_cv_path_EGREP="$ac_path_EGREP"
3808       ac_path_EGREP_max=$ac_count
3809     fi
3810     # 10*(2^10) chars as input seems more than enough
3811     test $ac_count -gt 10 && break
3812   done
3813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816       $ac_path_EGREP_found && break 3
3817     done
3818   done
3819   done
3820 IFS=$as_save_IFS
3821   if test -z "$ac_cv_path_EGREP"; then
3822     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3823   fi
3824 else
3825   ac_cv_path_EGREP=$EGREP
3826 fi
3827
3828    fi
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832  EGREP="$ac_cv_path_EGREP"
3833
3834
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836 $as_echo_n "checking for ANSI C header files... " >&6; }
3837 if ${ac_cv_header_stdc+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842 #include <stdlib.h>
3843 #include <stdarg.h>
3844 #include <string.h>
3845 #include <float.h>
3846
3847 int
3848 main ()
3849 {
3850
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856   ac_cv_header_stdc=yes
3857 else
3858   ac_cv_header_stdc=no
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861
3862 if test $ac_cv_header_stdc = yes; then
3863   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866 #include <string.h>
3867
3868 _ACEOF
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870   $EGREP "memchr" >/dev/null 2>&1; then :
3871
3872 else
3873   ac_cv_header_stdc=no
3874 fi
3875 rm -f conftest*
3876
3877 fi
3878
3879 if test $ac_cv_header_stdc = yes; then
3880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883 #include <stdlib.h>
3884
3885 _ACEOF
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887   $EGREP "free" >/dev/null 2>&1; then :
3888
3889 else
3890   ac_cv_header_stdc=no
3891 fi
3892 rm -f conftest*
3893
3894 fi
3895
3896 if test $ac_cv_header_stdc = yes; then
3897   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898   if test "$cross_compiling" = yes; then :
3899   :
3900 else
3901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <ctype.h>
3904 #include <stdlib.h>
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908 #else
3909 # define ISLOWER(c) \
3910                    (('a' <= (c) && (c) <= 'i') \
3911                      || ('j' <= (c) && (c) <= 'r') \
3912                      || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914 #endif
3915
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 int
3918 main ()
3919 {
3920   int i;
3921   for (i = 0; i < 256; i++)
3922     if (XOR (islower (i), ISLOWER (i))
3923         || toupper (i) != TOUPPER (i))
3924       return 2;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_run "$LINENO"; then :
3929
3930 else
3931   ac_cv_header_stdc=no
3932 fi
3933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934   conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi
3936
3937 fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940 $as_echo "$ac_cv_header_stdc" >&6; }
3941 if test $ac_cv_header_stdc = yes; then
3942
3943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3944
3945 fi
3946
3947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949                   inttypes.h stdint.h unistd.h
3950 do :
3951   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3953 "
3954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3955   cat >>confdefs.h <<_ACEOF
3956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964
3965   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3966 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3967   MINIX=yes
3968 else
3969   MINIX=
3970 fi
3971
3972
3973   if test "$MINIX" = yes; then
3974
3975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3976
3977
3978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980
3981 $as_echo "#define _MINIX 1" >>confdefs.h
3982
3983   fi
3984
3985
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3988 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993
3994 #         define __EXTENSIONS__ 1
3995           $ac_includes_default
3996 int
3997 main ()
3998 {
3999
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005   ac_cv_safe_to_define___extensions__=yes
4006 else
4007   ac_cv_safe_to_define___extensions__=no
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4013   test $ac_cv_safe_to_define___extensions__ = yes &&
4014     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4015
4016   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4017
4018   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4019
4020   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4021
4022   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4023
4024
4025
4026 libtool_VERSION=1:0:0
4027
4028
4029 # 1.11.1: Require that version of automake.
4030 # foreign: Don't require README, INSTALL, NEWS, etc.
4031 # no-define: Don't define PACKAGE and VERSION.
4032 # no-dependencies: Don't generate automatic dependencies.
4033 #    (because it breaks when using bootstrap-lean, since some of the
4034 #    headers are gone at "make install" time).
4035 # -Wall: Issue all automake warnings.
4036 # -Wno-portability: Don't warn about constructs supported by GNU make.
4037 #    (because GCC requires GNU make anyhow).
4038 am__api_version='1.15'
4039
4040 # Find a good install program.  We prefer a C program (faster),
4041 # so one script is as good as another.  But avoid the broken or
4042 # incompatible versions:
4043 # SysV /etc/install, /usr/sbin/install
4044 # SunOS /usr/etc/install
4045 # IRIX /sbin/install
4046 # AIX /bin/install
4047 # AmigaOS /C/install, which installs bootblocks on floppy discs
4048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4051 # OS/2's system install, which has a completely different semantic
4052 # ./install, which can be erroneously created by make from ./install.sh.
4053 # Reject install programs that cannot install multiple files.
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4055 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4056 if test -z "$INSTALL"; then
4057 if ${ac_cv_path_install+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065     # Account for people who put trailing slashes in PATH elements.
4066 case $as_dir/ in #((
4067   ./ | .// | /[cC]/* | \
4068   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4070   /usr/ucb/* ) ;;
4071   *)
4072     # OSF1 and SCO ODT 3.0 have their own names for install.
4073     # Don't use installbsd from OSF since it installs stuff as root
4074     # by default.
4075     for ac_prog in ginstall scoinst install; do
4076       for ac_exec_ext in '' $ac_executable_extensions; do
4077         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4078           if test $ac_prog = install &&
4079             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080             # AIX install.  It has an incompatible calling convention.
4081             :
4082           elif test $ac_prog = install &&
4083             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084             # program-specific install script used by HP pwplus--don't use.
4085             :
4086           else
4087             rm -rf conftest.one conftest.two conftest.dir
4088             echo one > conftest.one
4089             echo two > conftest.two
4090             mkdir conftest.dir
4091             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4092               test -s conftest.one && test -s conftest.two &&
4093               test -s conftest.dir/conftest.one &&
4094               test -s conftest.dir/conftest.two
4095             then
4096               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4097               break 3
4098             fi
4099           fi
4100         fi
4101       done
4102     done
4103     ;;
4104 esac
4105
4106   done
4107 IFS=$as_save_IFS
4108
4109 rm -rf conftest.one conftest.two conftest.dir
4110
4111 fi
4112   if test "${ac_cv_path_install+set}" = set; then
4113     INSTALL=$ac_cv_path_install
4114   else
4115     # As a last resort, use the slow shell script.  Don't cache a
4116     # value for INSTALL within a source directory, because that will
4117     # break other packages using the cache if that directory is
4118     # removed, or if the value is a relative name.
4119     INSTALL=$ac_install_sh
4120   fi
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4123 $as_echo "$INSTALL" >&6; }
4124
4125 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4126 # It thinks the first close brace ends the variable substitution.
4127 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4128
4129 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4130
4131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4134 $as_echo_n "checking whether build environment is sane... " >&6; }
4135 # Reject unsafe characters in $srcdir or the absolute working directory
4136 # name.  Accept space and tab only in the latter.
4137 am_lf='
4138 '
4139 case `pwd` in
4140   *[\\\"\#\$\&\'\`$am_lf]*)
4141     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4142 esac
4143 case $srcdir in
4144   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4145     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4146 esac
4147
4148 # Do 'set' in a subshell so we don't clobber the current shell's
4149 # arguments.  Must try -L first in case configure is actually a
4150 # symlink; some systems play weird games with the mod time of symlinks
4151 # (eg FreeBSD returns the mod time of the symlink's containing
4152 # directory).
4153 if (
4154    am_has_slept=no
4155    for am_try in 1 2; do
4156      echo "timestamp, slept: $am_has_slept" > conftest.file
4157      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4158      if test "$*" = "X"; then
4159         # -L didn't work.
4160         set X `ls -t "$srcdir/configure" conftest.file`
4161      fi
4162      if test "$*" != "X $srcdir/configure conftest.file" \
4163         && test "$*" != "X conftest.file $srcdir/configure"; then
4164
4165         # If neither matched, then we have a broken ls.  This can happen
4166         # if, for instance, CONFIG_SHELL is bash and it inherits a
4167         # broken ls alias from the environment.  This has actually
4168         # happened.  Such a system could not be considered "sane".
4169         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4170   alias in your environment" "$LINENO" 5
4171      fi
4172      if test "$2" = conftest.file || test $am_try -eq 2; then
4173        break
4174      fi
4175      # Just in case.
4176      sleep 1
4177      am_has_slept=yes
4178    done
4179    test "$2" = conftest.file
4180    )
4181 then
4182    # Ok.
4183    :
4184 else
4185    as_fn_error $? "newly created file is older than distributed files!
4186 Check your system clock" "$LINENO" 5
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190 # If we didn't sleep, we still need to ensure time stamps of config.status and
4191 # generated files are strictly newer.
4192 am_sleep_pid=
4193 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4194   ( sleep 1 ) &
4195   am_sleep_pid=$!
4196 fi
4197
4198 rm -f conftest.file
4199
4200 test "$program_prefix" != NONE &&
4201   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4202 # Use a double $ so make ignores it.
4203 test "$program_suffix" != NONE &&
4204   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4205 # Double any \ or $.
4206 # By default was `s,x,x', remove it if useless.
4207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4209
4210 if test x"${MISSING+set}" != xset; then
4211   case $am_aux_dir in
4212   *\ * | *\     *)
4213     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4214   *)
4215     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4216   esac
4217 fi
4218 # Use eval to expand $SHELL
4219 if eval "$MISSING --is-lightweight"; then
4220   am_missing_run="$MISSING "
4221 else
4222   am_missing_run=
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4224 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4225 fi
4226
4227 if test x"${install_sh+set}" != xset; then
4228   case $am_aux_dir in
4229   *\ * | *\     *)
4230     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4231   *)
4232     install_sh="\${SHELL} $am_aux_dir/install-sh"
4233   esac
4234 fi
4235
4236 # Installed binaries are usually stripped using 'strip' when the user
4237 # run "make install-strip".  However 'strip' might not be the right
4238 # tool to use in cross-compilation environments, therefore Automake
4239 # will honor the 'STRIP' environment variable to overrule this program.
4240 if test "$cross_compiling" != no; then
4241   if test -n "$ac_tool_prefix"; then
4242   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}strip; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_STRIP+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   if test -n "$STRIP"; then
4250   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_exec_ext in '' $ac_executable_extensions; do
4258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264   done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 STRIP=$ac_cv_prog_STRIP
4270 if test -n "$STRIP"; then
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4272 $as_echo "$STRIP" >&6; }
4273 else
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 if test -z "$ac_cv_prog_STRIP"; then
4281   ac_ct_STRIP=$STRIP
4282   # Extract the first word of "strip", so it can be a program name with args.
4283 set dummy strip; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4287   $as_echo_n "(cached) " >&6
4288 else
4289   if test -n "$ac_ct_STRIP"; then
4290   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297     for ac_exec_ext in '' $ac_executable_extensions; do
4298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_ac_ct_STRIP="strip"
4300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304   done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4310 if test -n "$ac_ct_STRIP"; then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4312 $as_echo "$ac_ct_STRIP" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318   if test "x$ac_ct_STRIP" = x; then
4319     STRIP=":"
4320   else
4321     case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327     STRIP=$ac_ct_STRIP
4328   fi
4329 else
4330   STRIP="$ac_cv_prog_STRIP"
4331 fi
4332
4333 fi
4334 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4337 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4338 if test -z "$MKDIR_P"; then
4339   if ${ac_cv_path_mkdir+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4344 do
4345   IFS=$as_save_IFS
4346   test -z "$as_dir" && as_dir=.
4347     for ac_prog in mkdir gmkdir; do
4348          for ac_exec_ext in '' $ac_executable_extensions; do
4349            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4350            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4351              'mkdir (GNU coreutils) '* | \
4352              'mkdir (coreutils) '* | \
4353              'mkdir (fileutils) '4.1*)
4354                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4355                break 3;;
4356            esac
4357          done
4358        done
4359   done
4360 IFS=$as_save_IFS
4361
4362 fi
4363
4364   test -d ./--version && rmdir ./--version
4365   if test "${ac_cv_path_mkdir+set}" = set; then
4366     MKDIR_P="$ac_cv_path_mkdir -p"
4367   else
4368     # As a last resort, use the slow shell script.  Don't cache a
4369     # value for MKDIR_P within a source directory, because that will
4370     # break other packages using the cache if that directory is
4371     # removed, or if the value is a relative name.
4372     MKDIR_P="$ac_install_sh -d"
4373   fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4376 $as_echo "$MKDIR_P" >&6; }
4377
4378 for ac_prog in gawk mawk nawk awk
4379 do
4380   # Extract the first word of "$ac_prog", so it can be a program name with args.
4381 set dummy $ac_prog; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_AWK+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   if test -n "$AWK"; then
4388   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395     for ac_exec_ext in '' $ac_executable_extensions; do
4396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397     ac_cv_prog_AWK="$ac_prog"
4398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402   done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 AWK=$ac_cv_prog_AWK
4408 if test -n "$AWK"; then
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4410 $as_echo "$AWK" >&6; }
4411 else
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4414 fi
4415
4416
4417   test -n "$AWK" && break
4418 done
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4422 set x ${MAKE-make}
4423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4424 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   cat >conftest.make <<\_ACEOF
4428 SHELL = /bin/sh
4429 all:
4430         @echo '@@@%%%=$(MAKE)=@@@%%%'
4431 _ACEOF
4432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4434   *@@@%%%=?*=@@@%%%*)
4435     eval ac_cv_prog_make_${ac_make}_set=yes;;
4436   *)
4437     eval ac_cv_prog_make_${ac_make}_set=no;;
4438 esac
4439 rm -f conftest.make
4440 fi
4441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444   SET_MAKE=
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448   SET_MAKE="MAKE=${MAKE-make}"
4449 fi
4450
4451 rm -rf .tst 2>/dev/null
4452 mkdir .tst 2>/dev/null
4453 if test -d .tst; then
4454   am__leading_dot=.
4455 else
4456   am__leading_dot=_
4457 fi
4458 rmdir .tst 2>/dev/null
4459
4460 # Check whether --enable-silent-rules was given.
4461 if test "${enable_silent_rules+set}" = set; then :
4462   enableval=$enable_silent_rules;
4463 fi
4464
4465 case $enable_silent_rules in # (((
4466   yes) AM_DEFAULT_VERBOSITY=0;;
4467    no) AM_DEFAULT_VERBOSITY=1;;
4468     *) AM_DEFAULT_VERBOSITY=1;;
4469 esac
4470 am_make=${MAKE-make}
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4472 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4473 if ${am_cv_make_support_nested_variables+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if $as_echo 'TRUE=$(BAR$(V))
4477 BAR0=false
4478 BAR1=true
4479 V=1
4480 am__doit:
4481         @$(TRUE)
4482 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4483   am_cv_make_support_nested_variables=yes
4484 else
4485   am_cv_make_support_nested_variables=no
4486 fi
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4489 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4490 if test $am_cv_make_support_nested_variables = yes; then
4491     AM_V='$(V)'
4492   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4493 else
4494   AM_V=$AM_DEFAULT_VERBOSITY
4495   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4496 fi
4497 AM_BACKSLASH='\'
4498
4499 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4500   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4501   # is not polluted with repeated "-I."
4502   am__isrc=' -I$(srcdir)'
4503   # test to see if srcdir already configured
4504   if test -f $srcdir/config.status; then
4505     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4506   fi
4507 fi
4508
4509 # test whether we have cygpath
4510 if test -z "$CYGPATH_W"; then
4511   if (cygpath --version) >/dev/null 2>/dev/null; then
4512     CYGPATH_W='cygpath -w'
4513   else
4514     CYGPATH_W=echo
4515   fi
4516 fi
4517
4518
4519 # Define the identity of the package.
4520  PACKAGE='libbacktrace'
4521  VERSION='version-unused'
4522
4523
4524 # Some tools Automake needs.
4525
4526 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4527
4528
4529 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4530
4531
4532 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4533
4534
4535 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4536
4537
4538 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4539
4540 # For better backward compatibility.  To be removed once Automake 1.9.x
4541 # dies out for good.  For more background, see:
4542 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4543 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4544 mkdir_p='$(MKDIR_P)'
4545
4546 # We need awk for the "check" target (and possibly the TAP driver).  The
4547 # system "awk" is bad on some platforms.
4548 # Always define AMTAR for backward compatibility.  Yes, it's still used
4549 # in the wild :-(  We should find a proper way to deprecate it ...
4550 AMTAR='$${TAR-tar}'
4551
4552
4553 # We'll loop over all known methods to create a tar archive until one works.
4554 _am_tools='gnutar  pax cpio none'
4555
4556 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4557
4558
4559
4560
4561
4562
4563 # POSIX will say in a future version that running "rm -f" with no argument
4564 # is OK; and we want to be able to make that assumption in our Makefile
4565 # recipes.  So use an aggressive probe to check that the usage we want is
4566 # actually supported "in the wild" to an acceptable degree.
4567 # See automake bug#10828.
4568 # To make any issue more visible, cause the running configure to be aborted
4569 # by default if the 'rm' program in use doesn't match our expectations; the
4570 # user can still override this though.
4571 if rm -f && rm -fr && rm -rf; then : OK; else
4572   cat >&2 <<'END'
4573 Oops!
4574
4575 Your 'rm' program seems unable to run without file operands specified
4576 on the command line, even when the '-f' option is present.  This is contrary
4577 to the behaviour of most rm programs out there, and not conforming with
4578 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4579
4580 Please tell bug-automake@gnu.org about your system, including the value
4581 of your $PATH and any error possibly output before this message.  This
4582 can help us improve future automake versions.
4583
4584 END
4585   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4586     echo 'Configuration will proceed anyway, since you have set the' >&2
4587     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4588     echo >&2
4589   else
4590     cat >&2 <<'END'
4591 Aborting the configuration process, to ensure you take notice of the issue.
4592
4593 You can download and install GNU coreutils to get an 'rm' implementation
4594 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4595
4596 If you want to complete the configuration process using your problematic
4597 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4598 to "yes", and re-run configure.
4599
4600 END
4601     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4602   fi
4603 fi
4604
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4608 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4609     # Check whether --enable-maintainer-mode was given.
4610 if test "${enable_maintainer_mode+set}" = set; then :
4611   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4612 else
4613   USE_MAINTAINER_MODE=no
4614 fi
4615
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4617 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4618    if test $USE_MAINTAINER_MODE = yes; then
4619   MAINTAINER_MODE_TRUE=
4620   MAINTAINER_MODE_FALSE='#'
4621 else
4622   MAINTAINER_MODE_TRUE='#'
4623   MAINTAINER_MODE_FALSE=
4624 fi
4625
4626   MAINT=$MAINTAINER_MODE_TRUE
4627
4628
4629
4630
4631 # Check whether --with-target-subdir was given.
4632 if test "${with_target_subdir+set}" = set; then :
4633   withval=$with_target_subdir;
4634 fi
4635
4636
4637 # We must force CC to /not/ be precious variables; otherwise
4638 # the wrong, non-multilib-adjusted value will be used in multilibs.
4639 # As a side effect, we have to subst CFLAGS ourselves.
4640
4641
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 if test -n "$ac_tool_prefix"; then
4648   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CC+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test -n "$CC"; then
4656   ac_cv_prog_CC="$CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 CC=$ac_cv_prog_CC
4676 if test -n "$CC"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685 fi
4686 if test -z "$ac_cv_prog_CC"; then
4687   ac_ct_CC=$CC
4688   # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   if test -n "$ac_ct_CC"; then
4696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705     ac_cv_prog_ac_ct_CC="gcc"
4706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710   done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 $as_echo "$ac_ct_CC" >&6; }
4719 else
4720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 fi
4723
4724   if test "x$ac_ct_CC" = x; then
4725     CC=""
4726   else
4727     case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733     CC=$ac_ct_CC
4734   fi
4735 else
4736   CC="$ac_cv_prog_CC"
4737 fi
4738
4739 if test -z "$CC"; then
4740           if test -n "$ac_tool_prefix"; then
4741     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}cc; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_CC+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if test -n "$CC"; then
4749   ac_cv_prog_CC="$CC" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_CC="${ac_tool_prefix}cc"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 CC=$ac_cv_prog_CC
4769 if test -n "$CC"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771 $as_echo "$CC" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778   fi
4779 fi
4780 if test -z "$CC"; then
4781   # Extract the first word of "cc", so it can be a program name with args.
4782 set dummy cc; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_CC+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   if test -n "$CC"; then
4789   ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791   ac_prog_rejected=no
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800        ac_prog_rejected=yes
4801        continue
4802      fi
4803     ac_cv_prog_CC="cc"
4804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808   done
4809 IFS=$as_save_IFS
4810
4811 if test $ac_prog_rejected = yes; then
4812   # We found a bogon in the path, so make sure we never use it.
4813   set dummy $ac_cv_prog_CC
4814   shift
4815   if test $# != 0; then
4816     # We chose a different compiler from the bogus one.
4817     # However, it has the same basename, so the bogon will be chosen
4818     # first if we set CC to just the basename; use the full file name.
4819     shift
4820     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4821   fi
4822 fi
4823 fi
4824 fi
4825 CC=$ac_cv_prog_CC
4826 if test -n "$CC"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828 $as_echo "$CC" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 fi
4836 if test -z "$CC"; then
4837   if test -n "$ac_tool_prefix"; then
4838   for ac_prog in cl.exe
4839   do
4840     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_CC+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   if test -n "$CC"; then
4848   ac_cv_prog_CC="$CC" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 CC=$ac_cv_prog_CC
4868 if test -n "$CC"; then
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877     test -n "$CC" && break
4878   done
4879 fi
4880 if test -z "$CC"; then
4881   ac_ct_CC=$CC
4882   for ac_prog in cl.exe
4883 do
4884   # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   if test -n "$ac_ct_CC"; then
4892   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   test -z "$as_dir" && as_dir=.
4899     for ac_exec_ext in '' $ac_executable_extensions; do
4900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901     ac_cv_prog_ac_ct_CC="$ac_prog"
4902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903     break 2
4904   fi
4905 done
4906   done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4912 if test -n "$ac_ct_CC"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4914 $as_echo "$ac_ct_CC" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921   test -n "$ac_ct_CC" && break
4922 done
4923
4924   if test "x$ac_ct_CC" = x; then
4925     CC=""
4926   else
4927     case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933     CC=$ac_ct_CC
4934   fi
4935 fi
4936
4937 fi
4938
4939
4940 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4942 as_fn_error $? "no acceptable C compiler found in \$PATH
4943 See \`config.log' for more details" "$LINENO" 5; }
4944
4945 # Provide some information about the compiler.
4946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4947 set X $ac_compile
4948 ac_compiler=$2
4949 for ac_option in --version -v -V -qversion; do
4950   { { ac_try="$ac_compiler $ac_option >&5"
4951 case "(($ac_try" in
4952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953   *) ac_try_echo=$ac_try;;
4954 esac
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958   ac_status=$?
4959   if test -s conftest.err; then
4960     sed '10a\
4961 ... rest of stderr output deleted ...
4962          10q' conftest.err >conftest.er1
4963     cat conftest.er1 >&5
4964   fi
4965   rm -f conftest.er1 conftest.err
4966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967   test $ac_status = 0; }
4968 done
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4972 if ${ac_cv_c_compiler_gnu+:} false; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977
4978 int
4979 main ()
4980 {
4981 #ifndef __GNUC__
4982        choke me
4983 #endif
4984
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990   ac_compiler_gnu=yes
4991 else
4992   ac_compiler_gnu=no
4993 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4996
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4999 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5000 if test $ac_compiler_gnu = yes; then
5001   GCC=yes
5002 else
5003   GCC=
5004 fi
5005 ac_test_CFLAGS=${CFLAGS+set}
5006 ac_save_CFLAGS=$CFLAGS
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5008 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5009 if ${ac_cv_prog_cc_g+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   ac_save_c_werror_flag=$ac_c_werror_flag
5013    ac_c_werror_flag=yes
5014    ac_cv_prog_cc_g=no
5015    CFLAGS="-g"
5016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018
5019 int
5020 main ()
5021 {
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028   ac_cv_prog_cc_g=yes
5029 else
5030   CFLAGS=""
5031       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h.  */
5033
5034 int
5035 main ()
5036 {
5037
5038   ;
5039   return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043
5044 else
5045   ac_c_werror_flag=$ac_save_c_werror_flag
5046          CFLAGS="-g"
5047          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h.  */
5049
5050 int
5051 main ()
5052 {
5053
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059   ac_cv_prog_cc_g=yes
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066    ac_c_werror_flag=$ac_save_c_werror_flag
5067 fi
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5069 $as_echo "$ac_cv_prog_cc_g" >&6; }
5070 if test "$ac_test_CFLAGS" = set; then
5071   CFLAGS=$ac_save_CFLAGS
5072 elif test $ac_cv_prog_cc_g = yes; then
5073   if test "$GCC" = yes; then
5074     CFLAGS="-g -O2"
5075   else
5076     CFLAGS="-g"
5077   fi
5078 else
5079   if test "$GCC" = yes; then
5080     CFLAGS="-O2"
5081   else
5082     CFLAGS=
5083   fi
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5086 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5087 if ${ac_cv_prog_cc_c89+:} false; then :
5088   $as_echo_n "(cached) " >&6
5089 else
5090   ac_cv_prog_cc_c89=no
5091 ac_save_CC=$CC
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094 #include <stdarg.h>
5095 #include <stdio.h>
5096 struct stat;
5097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5098 struct buf { int x; };
5099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100 static char *e (p, i)
5101      char **p;
5102      int i;
5103 {
5104   return p[i];
5105 }
5106 static char *f (char * (*g) (char **, int), char **p, ...)
5107 {
5108   char *s;
5109   va_list v;
5110   va_start (v,p);
5111   s = g (p, va_arg (v,int));
5112   va_end (v);
5113   return s;
5114 }
5115
5116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5117    function prototypes and stuff, but not '\xHH' hex character constants.
5118    These don't provoke an error unfortunately, instead are silently treated
5119    as 'x'.  The following induces an error, until -std is added to get
5120    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5121    array size at least.  It's necessary to write '\x00'==0 to get something
5122    that's true only with -std.  */
5123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124
5125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126    inside strings and character constants.  */
5127 #define FOO(x) 'x'
5128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129
5130 int test (int i, double x);
5131 struct s1 {int (*f) (int a);};
5132 struct s2 {int (*f) (double a);};
5133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5134 int argc;
5135 char **argv;
5136 int
5137 main ()
5138 {
5139 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
5144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146 do
5147   CC="$ac_save_CC $ac_arg"
5148   if ac_fn_c_try_compile "$LINENO"; then :
5149   ac_cv_prog_cc_c89=$ac_arg
5150 fi
5151 rm -f core conftest.err conftest.$ac_objext
5152   test "x$ac_cv_prog_cc_c89" != "xno" && break
5153 done
5154 rm -f conftest.$ac_ext
5155 CC=$ac_save_CC
5156
5157 fi
5158 # AC_CACHE_VAL
5159 case "x$ac_cv_prog_cc_c89" in
5160   x)
5161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5162 $as_echo "none needed" >&6; } ;;
5163   xno)
5164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5165 $as_echo "unsupported" >&6; } ;;
5166   *)
5167     CC="$CC $ac_cv_prog_cc_c89"
5168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170 esac
5171 if test "x$ac_cv_prog_cc_c89" != xno; then :
5172
5173 fi
5174
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181 ac_ext=c
5182 ac_cpp='$CPP $CPPFLAGS'
5183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5187 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5188 if ${am_cv_prog_cc_c_o+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h.  */
5193
5194 int
5195 main ()
5196 {
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202   # Make sure it works both with $CC and with simple cc.
5203   # Following AC_PROG_CC_C_O, we do the test twice because some
5204   # compilers refuse to overwrite an existing .o file with -o,
5205   # though they will create one.
5206   am_cv_prog_cc_c_o=yes
5207   for am_i in 1 2; do
5208     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5209    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5210    ac_status=$?
5211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212    (exit $ac_status); } \
5213          && test -f conftest2.$ac_objext; then
5214       : OK
5215     else
5216       am_cv_prog_cc_c_o=no
5217       break
5218     fi
5219   done
5220   rm -f core conftest*
5221   unset am_i
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5224 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5225 if test "$am_cv_prog_cc_c_o" != yes; then
5226    # Losing compiler, so override with the script.
5227    # FIXME: It is wrong to rewrite CC.
5228    # But if we don't then we get into trouble of one sort or another.
5229    # A longer-term fix would be to have automake use am__CC in this case,
5230    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5231    CC="$am_aux_dir/compile $CC"
5232 fi
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_RANLIB+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -n "$RANLIB"; then
5253   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 RANLIB=$ac_cv_prog_RANLIB
5273 if test -n "$RANLIB"; then
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5275 $as_echo "$RANLIB" >&6; }
5276 else
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_RANLIB"; then
5284   ac_ct_RANLIB=$RANLIB
5285   # Extract the first word of "ranlib", so it can be a program name with args.
5286 set dummy ranlib; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   if test -n "$ac_ct_RANLIB"; then
5293   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300     for ac_exec_ext in '' $ac_executable_extensions; do
5301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302     ac_cv_prog_ac_ct_RANLIB="ranlib"
5303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307   done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5313 if test -n "$ac_ct_RANLIB"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5315 $as_echo "$ac_ct_RANLIB" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321   if test "x$ac_ct_RANLIB" = x; then
5322     RANLIB=":"
5323   else
5324     case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330     RANLIB=$ac_ct_RANLIB
5331   fi
5332 else
5333   RANLIB="$ac_cv_prog_RANLIB"
5334 fi
5335
5336
5337 for ac_prog in gawk mawk nawk awk
5338 do
5339   # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if ${ac_cv_prog_AWK+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   if test -n "$AWK"; then
5347   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_prog_AWK="$ac_prog"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363
5364 fi
5365 fi
5366 AWK=$ac_cv_prog_AWK
5367 if test -n "$AWK"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5369 $as_echo "$AWK" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376   test -n "$AWK" && break
5377 done
5378
5379 case "$AWK" in
5380 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5381 esac
5382
5383 # Extract the first word of "dwz", so it can be a program name with args.
5384 set dummy dwz; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_DWZ+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   if test -n "$DWZ"; then
5391   ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_prog_DWZ="dwz"
5401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405   done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 DWZ=$ac_cv_prog_DWZ
5411 if test -n "$DWZ"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5413 $as_echo "$DWZ" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420  if test "$DWZ" != ""; then
5421   HAVE_DWZ_TRUE=
5422   HAVE_DWZ_FALSE='#'
5423 else
5424   HAVE_DWZ_TRUE='#'
5425   HAVE_DWZ_FALSE=
5426 fi
5427
5428
5429 case `pwd` in
5430   *\ * | *\     *)
5431     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5432 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5433 esac
5434
5435
5436
5437 macro_version='2.2.7a'
5438 macro_revision='1.3134'
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 ltmain="$ac_aux_dir/ltmain.sh"
5453
5454 # Backslashify metacharacters that are still active within
5455 # double-quoted strings.
5456 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5457
5458 # Same as above, but do not quote variable references.
5459 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5460
5461 # Sed substitution to delay expansion of an escaped shell variable in a
5462 # double_quote_subst'ed string.
5463 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5464
5465 # Sed substitution to delay expansion of an escaped single quote.
5466 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5467
5468 # Sed substitution to avoid accidental globbing in evaled expressions
5469 no_glob_subst='s/\*/\\\*/g'
5470
5471 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5472 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5473 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5476 $as_echo_n "checking how to print strings... " >&6; }
5477 # Test print first, because it will be a builtin if present.
5478 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5479    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5480   ECHO='print -r --'
5481 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5482   ECHO='printf %s\n'
5483 else
5484   # Use this function as a fallback that always works.
5485   func_fallback_echo ()
5486   {
5487     eval 'cat <<_LTECHO_EOF
5488 $1
5489 _LTECHO_EOF'
5490   }
5491   ECHO='func_fallback_echo'
5492 fi
5493
5494 # func_echo_all arg...
5495 # Invoke $ECHO with all args, space-separated.
5496 func_echo_all ()
5497 {
5498     $ECHO ""
5499 }
5500
5501 case "$ECHO" in
5502   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5503 $as_echo "printf" >&6; } ;;
5504   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5505 $as_echo "print -r" >&6; } ;;
5506   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5507 $as_echo "cat" >&6; } ;;
5508 esac
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5524 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5525 if ${ac_cv_path_SED+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5529      for ac_i in 1 2 3 4 5 6 7; do
5530        ac_script="$ac_script$as_nl$ac_script"
5531      done
5532      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5533      { ac_script=; unset ac_script;}
5534      if test -z "$SED"; then
5535   ac_path_SED_found=false
5536   # Loop through the user's path and test for each of PROGNAME-LIST
5537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_prog in sed gsed; do
5543     for ac_exec_ext in '' $ac_executable_extensions; do
5544       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5545       as_fn_executable_p "$ac_path_SED" || continue
5546 # Check for GNU ac_path_SED and select it if it is found.
5547   # Check for GNU $ac_path_SED
5548 case `"$ac_path_SED" --version 2>&1` in
5549 *GNU*)
5550   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5551 *)
5552   ac_count=0
5553   $as_echo_n 0123456789 >"conftest.in"
5554   while :
5555   do
5556     cat "conftest.in" "conftest.in" >"conftest.tmp"
5557     mv "conftest.tmp" "conftest.in"
5558     cp "conftest.in" "conftest.nl"
5559     $as_echo '' >> "conftest.nl"
5560     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562     as_fn_arith $ac_count + 1 && ac_count=$as_val
5563     if test $ac_count -gt ${ac_path_SED_max-0}; then
5564       # Best one so far, save it but keep looking for a better one
5565       ac_cv_path_SED="$ac_path_SED"
5566       ac_path_SED_max=$ac_count
5567     fi
5568     # 10*(2^10) chars as input seems more than enough
5569     test $ac_count -gt 10 && break
5570   done
5571   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 esac
5573
5574       $ac_path_SED_found && break 3
5575     done
5576   done
5577   done
5578 IFS=$as_save_IFS
5579   if test -z "$ac_cv_path_SED"; then
5580     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5581   fi
5582 else
5583   ac_cv_path_SED=$SED
5584 fi
5585
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5588 $as_echo "$ac_cv_path_SED" >&6; }
5589  SED="$ac_cv_path_SED"
5590   rm -f conftest.sed
5591
5592 test -z "$SED" && SED=sed
5593 Xsed="$SED -e 1s/^X//"
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5606 $as_echo_n "checking for fgrep... " >&6; }
5607 if ${ac_cv_path_FGREP+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5611    then ac_cv_path_FGREP="$GREP -F"
5612    else
5613      if test -z "$FGREP"; then
5614   ac_path_FGREP_found=false
5615   # Loop through the user's path and test for each of PROGNAME-LIST
5616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621     for ac_prog in fgrep; do
5622     for ac_exec_ext in '' $ac_executable_extensions; do
5623       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624       as_fn_executable_p "$ac_path_FGREP" || continue
5625 # Check for GNU ac_path_FGREP and select it if it is found.
5626   # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5628 *GNU*)
5629   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630 *)
5631   ac_count=0
5632   $as_echo_n 0123456789 >"conftest.in"
5633   while :
5634   do
5635     cat "conftest.in" "conftest.in" >"conftest.tmp"
5636     mv "conftest.tmp" "conftest.in"
5637     cp "conftest.in" "conftest.nl"
5638     $as_echo 'FGREP' >> "conftest.nl"
5639     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641     as_fn_arith $ac_count + 1 && ac_count=$as_val
5642     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643       # Best one so far, save it but keep looking for a better one
5644       ac_cv_path_FGREP="$ac_path_FGREP"
5645       ac_path_FGREP_max=$ac_count
5646     fi
5647     # 10*(2^10) chars as input seems more than enough
5648     test $ac_count -gt 10 && break
5649   done
5650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 esac
5652
5653       $ac_path_FGREP_found && break 3
5654     done
5655   done
5656   done
5657 IFS=$as_save_IFS
5658   if test -z "$ac_cv_path_FGREP"; then
5659     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5660   fi
5661 else
5662   ac_cv_path_FGREP=$FGREP
5663 fi
5664
5665    fi
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5668 $as_echo "$ac_cv_path_FGREP" >&6; }
5669  FGREP="$ac_cv_path_FGREP"
5670
5671
5672 test -z "$GREP" && GREP=grep
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 # Check whether --with-gnu-ld was given.
5693 if test "${with_gnu_ld+set}" = set; then :
5694   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5695 else
5696   with_gnu_ld=no
5697 fi
5698
5699 ac_prog=ld
5700 if test "$GCC" = yes; then
5701   # Check if gcc -print-prog-name=ld gives a path.
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5703 $as_echo_n "checking for ld used by $CC... " >&6; }
5704   case $host in
5705   *-*-mingw*)
5706     # gcc leaves a trailing carriage return which upsets mingw
5707     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708   *)
5709     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710   esac
5711   case $ac_prog in
5712     # Accept absolute paths.
5713     [\\/]* | ?:[\\/]*)
5714       re_direlt='/[^/][^/]*/\.\./'
5715       # Canonicalize the pathname of ld
5716       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719       done
5720       test -z "$LD" && LD="$ac_prog"
5721       ;;
5722   "")
5723     # If it fails, then pretend we aren't using GCC.
5724     ac_prog=ld
5725     ;;
5726   *)
5727     # If it is relative, then search for the first ld in PATH.
5728     with_gnu_ld=unknown
5729     ;;
5730   esac
5731 elif test "$with_gnu_ld" = yes; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5733 $as_echo_n "checking for GNU ld... " >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5736 $as_echo_n "checking for non-GNU ld... " >&6; }
5737 fi
5738 if ${lt_cv_path_LD+:} false; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   if test -z "$LD"; then
5742   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743   for ac_dir in $PATH; do
5744     IFS="$lt_save_ifs"
5745     test -z "$ac_dir" && ac_dir=.
5746     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747       lt_cv_path_LD="$ac_dir/$ac_prog"
5748       # Check to see if the program is GNU ld.  I'd rather use --version,
5749       # but apparently some variants of GNU ld only accept -v.
5750       # Break only if it was the GNU/non-GNU ld that we prefer.
5751       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752       *GNU* | *'with BFD'*)
5753         test "$with_gnu_ld" != no && break
5754         ;;
5755       *)
5756         test "$with_gnu_ld" != yes && break
5757         ;;
5758       esac
5759     fi
5760   done
5761   IFS="$lt_save_ifs"
5762 else
5763   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5764 fi
5765 fi
5766
5767 LD="$lt_cv_path_LD"
5768 if test -n "$LD"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5770 $as_echo "$LD" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5778 if ${lt_cv_prog_gnu_ld+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5782 case `$LD -v 2>&1 </dev/null` in
5783 *GNU* | *'with BFD'*)
5784   lt_cv_prog_gnu_ld=yes
5785   ;;
5786 *)
5787   lt_cv_prog_gnu_ld=no
5788   ;;
5789 esac
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5793 with_gnu_ld=$lt_cv_prog_gnu_ld
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5804 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5805 if ${lt_cv_path_NM+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$NM"; then
5809   # Let the user override the test.
5810   lt_cv_path_NM="$NM"
5811 else
5812   lt_nm_to_check="${ac_tool_prefix}nm"
5813   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5814     lt_nm_to_check="$lt_nm_to_check nm"
5815   fi
5816   for lt_tmp_nm in $lt_nm_to_check; do
5817     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5818     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5819       IFS="$lt_save_ifs"
5820       test -z "$ac_dir" && ac_dir=.
5821       tmp_nm="$ac_dir/$lt_tmp_nm"
5822       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5823         # Check to see if the nm accepts a BSD-compat flag.
5824         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5825         #   nm: unknown option "B" ignored
5826         # Tru64's nm complains that /dev/null is an invalid object file
5827         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5828         */dev/null* | *'Invalid file or object type'*)
5829           lt_cv_path_NM="$tmp_nm -B"
5830           break
5831           ;;
5832         *)
5833           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5834           */dev/null*)
5835             lt_cv_path_NM="$tmp_nm -p"
5836             break
5837             ;;
5838           *)
5839             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5840             continue # so that we can try to find one that supports BSD flags
5841             ;;
5842           esac
5843           ;;
5844         esac
5845       fi
5846     done
5847     IFS="$lt_save_ifs"
5848   done
5849   : ${lt_cv_path_NM=no}
5850 fi
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5853 $as_echo "$lt_cv_path_NM" >&6; }
5854 if test "$lt_cv_path_NM" != "no"; then
5855   NM="$lt_cv_path_NM"
5856 else
5857   # Didn't find any BSD compatible name lister, look for dumpbin.
5858   if test -n "$DUMPBIN"; then :
5859     # Let the user override the test.
5860   else
5861     if test -n "$ac_tool_prefix"; then
5862   for ac_prog in dumpbin "link -dump"
5863   do
5864     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_DUMPBIN+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if test -n "$DUMPBIN"; then
5872   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879     for ac_exec_ext in '' $ac_executable_extensions; do
5880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886   done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 DUMPBIN=$ac_cv_prog_DUMPBIN
5892 if test -n "$DUMPBIN"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5894 $as_echo "$DUMPBIN" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901     test -n "$DUMPBIN" && break
5902   done
5903 fi
5904 if test -z "$DUMPBIN"; then
5905   ac_ct_DUMPBIN=$DUMPBIN
5906   for ac_prog in dumpbin "link -dump"
5907 do
5908   # Extract the first word of "$ac_prog", so it can be a program name with args.
5909 set dummy $ac_prog; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test -n "$ac_ct_DUMPBIN"; then
5916   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5936 if test -n "$ac_ct_DUMPBIN"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5938 $as_echo "$ac_ct_DUMPBIN" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945   test -n "$ac_ct_DUMPBIN" && break
5946 done
5947
5948   if test "x$ac_ct_DUMPBIN" = x; then
5949     DUMPBIN=":"
5950   else
5951     case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957     DUMPBIN=$ac_ct_DUMPBIN
5958   fi
5959 fi
5960
5961     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5962     *COFF*)
5963       DUMPBIN="$DUMPBIN -symbols"
5964       ;;
5965     *)
5966       DUMPBIN=:
5967       ;;
5968     esac
5969   fi
5970
5971   if test "$DUMPBIN" != ":"; then
5972     NM="$DUMPBIN"
5973   fi
5974 fi
5975 test -z "$NM" && NM=nm
5976
5977
5978
5979
5980
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5983 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5984 if ${lt_cv_nm_interface+:} false; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   lt_cv_nm_interface="BSD nm"
5988   echo "int some_variable = 0;" > conftest.$ac_ext
5989   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5990   (eval "$ac_compile" 2>conftest.err)
5991   cat conftest.err >&5
5992   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5993   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5994   cat conftest.err >&5
5995   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5996   cat conftest.out >&5
5997   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5998     lt_cv_nm_interface="MS dumpbin"
5999   fi
6000   rm -f conftest*
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6003 $as_echo "$lt_cv_nm_interface" >&6; }
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6006 $as_echo_n "checking whether ln -s works... " >&6; }
6007 LN_S=$as_ln_s
6008 if test "$LN_S" = "ln -s"; then
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6010 $as_echo "yes" >&6; }
6011 else
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6013 $as_echo "no, using $LN_S" >&6; }
6014 fi
6015
6016 # find the maximum length of command line arguments
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6018 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6019 if ${lt_cv_sys_max_cmd_len+:} false; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022     i=0
6023   teststring="ABCD"
6024
6025   case $build_os in
6026   msdosdjgpp*)
6027     # On DJGPP, this test can blow up pretty badly due to problems in libc
6028     # (any single argument exceeding 2000 bytes causes a buffer overrun
6029     # during glob expansion).  Even if it were fixed, the result of this
6030     # check would be larger than it should be.
6031     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6032     ;;
6033
6034   gnu*)
6035     # Under GNU Hurd, this test is not required because there is
6036     # no limit to the length of command line arguments.
6037     # Libtool will interpret -1 as no limit whatsoever
6038     lt_cv_sys_max_cmd_len=-1;
6039     ;;
6040
6041   cygwin* | mingw* | cegcc*)
6042     # On Win9x/ME, this test blows up -- it succeeds, but takes
6043     # about 5 minutes as the teststring grows exponentially.
6044     # Worse, since 9x/ME are not pre-emptively multitasking,
6045     # you end up with a "frozen" computer, even though with patience
6046     # the test eventually succeeds (with a max line length of 256k).
6047     # Instead, let's just punt: use the minimum linelength reported by
6048     # all of the supported platforms: 8192 (on NT/2K/XP).
6049     lt_cv_sys_max_cmd_len=8192;
6050     ;;
6051
6052   mint*)
6053     # On MiNT this can take a long time and run out of memory.
6054     lt_cv_sys_max_cmd_len=8192;
6055     ;;
6056
6057   amigaos*)
6058     # On AmigaOS with pdksh, this test takes hours, literally.
6059     # So we just punt and use a minimum line length of 8192.
6060     lt_cv_sys_max_cmd_len=8192;
6061     ;;
6062
6063   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064     # This has been around since 386BSD, at least.  Likely further.
6065     if test -x /sbin/sysctl; then
6066       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067     elif test -x /usr/sbin/sysctl; then
6068       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069     else
6070       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6071     fi
6072     # And add a safety zone
6073     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075     ;;
6076
6077   interix*)
6078     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079     lt_cv_sys_max_cmd_len=196608
6080     ;;
6081
6082   osf*)
6083     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085     # nice to cause kernel panics so lets avoid the loop below.
6086     # First set a reasonable default.
6087     lt_cv_sys_max_cmd_len=16384
6088     #
6089     if test -x /sbin/sysconfig; then
6090       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092       esac
6093     fi
6094     ;;
6095   sco3.2v5*)
6096     lt_cv_sys_max_cmd_len=102400
6097     ;;
6098   sysv5* | sco5v6* | sysv4.2uw2*)
6099     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100     if test -n "$kargmax"; then
6101       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6102     else
6103       lt_cv_sys_max_cmd_len=32768
6104     fi
6105     ;;
6106   *)
6107     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108     if test -n "$lt_cv_sys_max_cmd_len"; then
6109       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111     else
6112       # Make teststring a little bigger before we do anything with it.
6113       # a 1K string should be a reasonable start.
6114       for i in 1 2 3 4 5 6 7 8 ; do
6115         teststring=$teststring$teststring
6116       done
6117       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118       # If test is not a shell built-in, we'll probably end up computing a
6119       # maximum length that is only half of the actual maximum length, but
6120       # we can't tell.
6121       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6122                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6123               test $i != 17 # 1/2 MB should be enough
6124       do
6125         i=`expr $i + 1`
6126         teststring=$teststring$teststring
6127       done
6128       # Only check the string length outside the loop.
6129       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130       teststring=
6131       # Add a significant safety factor because C++ compilers can tack on
6132       # massive amounts of additional arguments before passing them to the
6133       # linker.  It appears as though 1/2 is a usable value.
6134       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135     fi
6136     ;;
6137   esac
6138
6139 fi
6140
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6143 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6144 else
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6146 $as_echo "none" >&6; }
6147 fi
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155 : ${CP="cp -f"}
6156 : ${MV="mv -f"}
6157 : ${RM="rm -f"}
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6160 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6161 # Try some XSI features
6162 xsi_shell=no
6163 ( _lt_dummy="a/b/c"
6164   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165       = c,a/b,, \
6166     && eval 'test $(( 1 + 1 )) -eq 2 \
6167     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168   && xsi_shell=yes
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6170 $as_echo "$xsi_shell" >&6; }
6171
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6174 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6175 lt_shell_append=no
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177     >/dev/null 2>&1 \
6178   && lt_shell_append=yes
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6180 $as_echo "$lt_shell_append" >&6; }
6181
6182
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184   lt_unset=unset
6185 else
6186   lt_unset=false
6187 fi
6188
6189
6190
6191
6192
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195  A) # ASCII based system
6196     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197   lt_SP2NL='tr \040 \012'
6198   lt_NL2SP='tr \015\012 \040\040'
6199   ;;
6200  *) # EBCDIC based system
6201   lt_SP2NL='tr \100 \n'
6202   lt_NL2SP='tr \r\n \100\100'
6203   ;;
6204 esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6215 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6216 if ${lt_cv_ld_reload_flag+:} false; then :
6217   $as_echo_n "(cached) " >&6
6218 else
6219   lt_cv_ld_reload_flag='-r'
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6222 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6225 "" | " "*) ;;
6226 *) reload_flag=" $reload_flag" ;;
6227 esac
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 case $host_os in
6230   darwin*)
6231     if test "$GCC" = yes; then
6232       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233     else
6234       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235     fi
6236     ;;
6237 esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_OBJDUMP+:} false; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255   if test -n "$OBJDUMP"; then
6256   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263     for ac_exec_ext in '' $ac_executable_extensions; do
6264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270   done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6278 $as_echo "$OBJDUMP" >&6; }
6279 else
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285 fi
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287   ac_ct_OBJDUMP=$OBJDUMP
6288   # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$ac_ct_OBJDUMP"; then
6296   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310   done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6318 $as_echo "$ac_ct_OBJDUMP" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324   if test "x$ac_ct_OBJDUMP" = x; then
6325     OBJDUMP="false"
6326   else
6327     case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333     OBJDUMP=$ac_ct_OBJDUMP
6334   fi
6335 else
6336   OBJDUMP="$ac_cv_prog_OBJDUMP"
6337 fi
6338
6339 test -z "$OBJDUMP" && OBJDUMP=objdump
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6350 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6351 if ${lt_cv_deplibs_check_method+:} false; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   lt_cv_file_magic_cmd='$MAGIC_CMD'
6355 lt_cv_file_magic_test_file=
6356 lt_cv_deplibs_check_method='unknown'
6357 # Need to set the preceding variable on all platforms that support
6358 # interlibrary dependencies.
6359 # 'none' -- dependencies not supported.
6360 # `unknown' -- same as none, but documents that we really don't know.
6361 # 'pass_all' -- all dependencies passed with no checks.
6362 # 'test_compile' -- check by making test program.
6363 # 'file_magic [[regex]]' -- check by looking for files in library path
6364 # which responds to the $file_magic_cmd with a given extended regex.
6365 # If you have `file' or equivalent on your system and you're not sure
6366 # whether `pass_all' will *always* work, you probably want this one.
6367
6368 case $host_os in
6369 aix[4-9]*)
6370   lt_cv_deplibs_check_method=pass_all
6371   ;;
6372
6373 beos*)
6374   lt_cv_deplibs_check_method=pass_all
6375   ;;
6376
6377 bsdi[45]*)
6378   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6379   lt_cv_file_magic_cmd='/usr/bin/file -L'
6380   lt_cv_file_magic_test_file=/shlib/libc.so
6381   ;;
6382
6383 cygwin*)
6384   # func_win32_libid is a shell function defined in ltmain.sh
6385   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386   lt_cv_file_magic_cmd='func_win32_libid'
6387   ;;
6388
6389 mingw* | pw32*)
6390   # Base MSYS/MinGW do not provide the 'file' command needed by
6391   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6392   # unless we find 'file', for example because we are cross-compiling.
6393   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6394   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6395     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396     lt_cv_file_magic_cmd='func_win32_libid'
6397   else
6398     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399     lt_cv_file_magic_cmd='$OBJDUMP -f'
6400   fi
6401   ;;
6402
6403 cegcc*)
6404   # use the weaker test based on 'objdump'. See mingw*.
6405   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406   lt_cv_file_magic_cmd='$OBJDUMP -f'
6407   ;;
6408
6409 darwin* | rhapsody*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 freebsd* | dragonfly*)
6414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415     case $host_cpu in
6416     i*86 )
6417       # Not sure whether the presence of OpenBSD here was a mistake.
6418       # Let's accept both of them until this is cleared up.
6419       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420       lt_cv_file_magic_cmd=/usr/bin/file
6421       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422       ;;
6423     esac
6424   else
6425     lt_cv_deplibs_check_method=pass_all
6426   fi
6427   ;;
6428
6429 gnu*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 haiku*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 hpux10.20* | hpux11*)
6438   lt_cv_file_magic_cmd=/usr/bin/file
6439   case $host_cpu in
6440   ia64*)
6441     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443     ;;
6444   hppa*64*)
6445     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]'
6446     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447     ;;
6448   *)
6449     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6450     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451     ;;
6452   esac
6453   ;;
6454
6455 interix[3-9]*)
6456   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458   ;;
6459
6460 irix5* | irix6* | nonstopux*)
6461   case $LD in
6462   *-32|*"-32 ") libmagic=32-bit;;
6463   *-n32|*"-n32 ") libmagic=N32;;
6464   *-64|*"-64 ") libmagic=64-bit;;
6465   *) libmagic=never-match;;
6466   esac
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 # This must be Linux ELF.
6471 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6472   lt_cv_deplibs_check_method=pass_all
6473   ;;
6474
6475 netbsd*)
6476   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478   else
6479     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480   fi
6481   ;;
6482
6483 newos6*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485   lt_cv_file_magic_cmd=/usr/bin/file
6486   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487   ;;
6488
6489 *nto* | *qnx*)
6490   lt_cv_deplibs_check_method=pass_all
6491   ;;
6492
6493 openbsd*)
6494   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496   else
6497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498   fi
6499   ;;
6500
6501 osf3* | osf4* | osf5*)
6502   lt_cv_deplibs_check_method=pass_all
6503   ;;
6504
6505 rdos*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 solaris*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 sysv4 | sysv4.3*)
6518   case $host_vendor in
6519   motorola)
6520     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]'
6521     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522     ;;
6523   ncr)
6524     lt_cv_deplibs_check_method=pass_all
6525     ;;
6526   sequent)
6527     lt_cv_file_magic_cmd='/bin/file'
6528     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529     ;;
6530   sni)
6531     lt_cv_file_magic_cmd='/bin/file'
6532     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533     lt_cv_file_magic_test_file=/lib/libc.so
6534     ;;
6535   siemens)
6536     lt_cv_deplibs_check_method=pass_all
6537     ;;
6538   pc)
6539     lt_cv_deplibs_check_method=pass_all
6540     ;;
6541   esac
6542   ;;
6543
6544 tpf*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547 esac
6548
6549 fi
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6551 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 if test -n "$ac_tool_prefix"; then
6568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}ar; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_AR+:} false; then :
6573   $as_echo_n "(cached) " >&6
6574 else
6575   if test -n "$AR"; then
6576   ac_cv_prog_AR="$AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583     for ac_exec_ext in '' $ac_executable_extensions; do
6584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585     ac_cv_prog_AR="${ac_tool_prefix}ar"
6586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590   done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 AR=$ac_cv_prog_AR
6596 if test -n "$AR"; then
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6598 $as_echo "$AR" >&6; }
6599 else
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604
6605 fi
6606 if test -z "$ac_cv_prog_AR"; then
6607   ac_ct_AR=$AR
6608   # Extract the first word of "ar", so it can be a program name with args.
6609 set dummy ar; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   if test -n "$ac_ct_AR"; then
6616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623     for ac_exec_ext in '' $ac_executable_extensions; do
6624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625     ac_cv_prog_ac_ct_AR="ar"
6626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630   done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636 if test -n "$ac_ct_AR"; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638 $as_echo "$ac_ct_AR" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644   if test "x$ac_ct_AR" = x; then
6645     AR="false"
6646   else
6647     case $cross_compiling:$ac_tool_warned in
6648 yes:)
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653     AR=$ac_ct_AR
6654   fi
6655 else
6656   AR="$ac_cv_prog_AR"
6657 fi
6658
6659 test -z "$AR" && AR=ar
6660 test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}strip; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_STRIP+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$STRIP"; then
6681   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 STRIP=$ac_cv_prog_STRIP
6701 if test -n "$STRIP"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6703 $as_echo "$STRIP" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_STRIP"; then
6712   ac_ct_STRIP=$STRIP
6713   # Extract the first word of "strip", so it can be a program name with args.
6714 set dummy strip; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   if test -n "$ac_ct_STRIP"; then
6721   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728     for ac_exec_ext in '' $ac_executable_extensions; do
6729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_prog_ac_ct_STRIP="strip"
6731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735   done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741 if test -n "$ac_ct_STRIP"; then
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6743 $as_echo "$ac_ct_STRIP" >&6; }
6744 else
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_STRIP" = x; then
6750     STRIP=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758     STRIP=$ac_ct_STRIP
6759   fi
6760 else
6761   STRIP="$ac_cv_prog_STRIP"
6762 fi
6763
6764 test -z "$STRIP" && STRIP=:
6765
6766
6767
6768
6769
6770
6771 if test -n "$ac_tool_prefix"; then
6772   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_RANLIB+:} false; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$RANLIB"; then
6780   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 RANLIB=$ac_cv_prog_RANLIB
6800 if test -n "$RANLIB"; then
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802 $as_echo "$RANLIB" >&6; }
6803 else
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_RANLIB"; then
6811   ac_ct_RANLIB=$RANLIB
6812   # Extract the first word of "ranlib", so it can be a program name with args.
6813 set dummy ranlib; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$ac_ct_RANLIB"; then
6820   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829     ac_cv_prog_ac_ct_RANLIB="ranlib"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6840 if test -n "$ac_ct_RANLIB"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6842 $as_echo "$ac_ct_RANLIB" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848   if test "x$ac_ct_RANLIB" = x; then
6849     RANLIB=":"
6850   else
6851     case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857     RANLIB=$ac_ct_RANLIB
6858   fi
6859 else
6860   RANLIB="$ac_cv_prog_RANLIB"
6861 fi
6862
6863 test -z "$RANLIB" && RANLIB=:
6864
6865
6866
6867
6868
6869
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6874
6875 if test -n "$RANLIB"; then
6876   case $host_os in
6877   openbsd*)
6878     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879     ;;
6880   *)
6881     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882     ;;
6883   esac
6884   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885 fi
6886
6887 case $host_os in
6888   darwin*)
6889     lock_old_archive_extraction=yes ;;
6890   *)
6891     lock_old_archive_extraction=no ;;
6892 esac
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 # If no C compiler was specified, use CC.
6933 LTCC=${LTCC-"$CC"}
6934
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938 # Allow CC to be a program name with arguments.
6939 compiler=$CC
6940
6941
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6944 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6945 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6951
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6954
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958 # Define system-specific variables.
6959 case $host_os in
6960 aix*)
6961   symcode='[BCDT]'
6962   ;;
6963 cygwin* | mingw* | pw32* | cegcc*)
6964   symcode='[ABCDGISTW]'
6965   ;;
6966 hpux*)
6967   if test "$host_cpu" = ia64; then
6968     symcode='[ABCDEGRST]'
6969   fi
6970   ;;
6971 irix* | nonstopux*)
6972   symcode='[BCDEGRST]'
6973   ;;
6974 osf*)
6975   symcode='[BCDEGQRST]'
6976   ;;
6977 solaris*)
6978   symcode='[BDRT]'
6979   ;;
6980 sco3.2v5*)
6981   symcode='[DT]'
6982   ;;
6983 sysv4.2uw2*)
6984   symcode='[DT]'
6985   ;;
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987   symcode='[ABDT]'
6988   ;;
6989 sysv4)
6990   symcode='[DFNSTU]'
6991   ;;
6992 esac
6993
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997   symcode='[ABCDGIRSTW]' ;;
6998 esac
6999
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7007 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'"
7008
7009 # Handle CRLF in mingw tool chain
7010 opt_cr=
7011 case $build_os in
7012 mingw*)
7013   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014   ;;
7015 esac
7016
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_"; do
7019
7020   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021   symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023   # Write the raw and C identifiers.
7024   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025     # Fake it for dumpbin and say T for any non-static function
7026     # and D for any global variable.
7027     # Also find C++ and __fastcall symbols from MSVC++,
7028     # which start with @ or ?.
7029     lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 "     {last_section=section; section=\$ 3};"\
7031 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 "     \$ 0!~/External *\|/{next};"\
7033 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 "     {if(hide[section]) next};"\
7035 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 "     ' prfx=^$ac_symprfx"
7040   else
7041     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042   fi
7043
7044   # Check to see that the pipe works correctly.
7045   pipe_works=no
7046
7047   rm -f conftest*
7048   cat > conftest.$ac_ext <<_LT_EOF
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052 char nm_test_var;
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7055 #ifdef __cplusplus
7056 }
7057 #endif
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7059 _LT_EOF
7060
7061   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065   test $ac_status = 0; }; then
7066     # Now try to grab the symbols.
7067     nlist=conftest.nm
7068     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7069   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7070   ac_status=$?
7071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072   test $ac_status = 0; } && test -s "$nlist"; then
7073       # Try sorting and uniquifying the output.
7074       if sort "$nlist" | uniq > "$nlist"T; then
7075         mv -f "$nlist"T "$nlist"
7076       else
7077         rm -f "$nlist"T
7078       fi
7079
7080       # Make sure that we snagged all the symbols we need.
7081       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083           cat <<_LT_EOF > conftest.$ac_ext
7084 #ifdef __cplusplus
7085 extern "C" {
7086 #endif
7087
7088 _LT_EOF
7089           # Now generate the symbol file.
7090           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092           cat <<_LT_EOF >> conftest.$ac_ext
7093
7094 /* The mapping between symbol names and symbols.  */
7095 const struct {
7096   const char *name;
7097   void       *address;
7098 }
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 {
7101   { "@PROGRAM@", (void *) 0 },
7102 _LT_EOF
7103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104           cat <<\_LT_EOF >> conftest.$ac_ext
7105   {0, (void *) 0}
7106 };
7107
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111   return lt__PROGRAM__LTX_preloaded_symbols;
7112 }
7113 #endif
7114
7115 #ifdef __cplusplus
7116 }
7117 #endif
7118 _LT_EOF
7119           # Now try linking the two files.
7120           mv conftest.$ac_objext conftstm.$ac_objext
7121           lt_save_LIBS="$LIBS"
7122           lt_save_CFLAGS="$CFLAGS"
7123           LIBS="conftstm.$ac_objext"
7124           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7126   (eval $ac_link) 2>&5
7127   ac_status=$?
7128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7130             pipe_works=yes
7131           fi
7132           LIBS="$lt_save_LIBS"
7133           CFLAGS="$lt_save_CFLAGS"
7134         else
7135           echo "cannot find nm_test_func in $nlist" >&5
7136         fi
7137       else
7138         echo "cannot find nm_test_var in $nlist" >&5
7139       fi
7140     else
7141       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142     fi
7143   else
7144     echo "$progname: failed program was:" >&5
7145     cat conftest.$ac_ext >&5
7146   fi
7147   rm -rf conftest* conftst*
7148
7149   # Do not use the global_symbol_pipe unless it works.
7150   if test "$pipe_works" = yes; then
7151     break
7152   else
7153     lt_cv_sys_global_symbol_pipe=
7154   fi
7155 done
7156
7157 fi
7158
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160   lt_cv_sys_global_symbol_to_cdecl=
7161 fi
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7164 $as_echo "failed" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7167 $as_echo "ok" >&6; }
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then :
7193   enableval=$enable_libtool_lock;
7194 fi
7195
7196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198 # Some flags need to be propagated to the compiler or linker for good
7199 # libtool support.
7200 case $host in
7201 ia64-*-hpux*)
7202   # Find out which ABI we are using.
7203   echo 'int i;' > conftest.$ac_ext
7204   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205   (eval $ac_compile) 2>&5
7206   ac_status=$?
7207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208   test $ac_status = 0; }; then
7209     case `/usr/bin/file conftest.$ac_objext` in
7210       *ELF-32*)
7211         HPUX_IA64_MODE="32"
7212         ;;
7213       *ELF-64*)
7214         HPUX_IA64_MODE="64"
7215         ;;
7216     esac
7217   fi
7218   rm -rf conftest*
7219   ;;
7220 *-*-irix6*)
7221   # Find out which ABI we are using.
7222   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224   (eval $ac_compile) 2>&5
7225   ac_status=$?
7226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227   test $ac_status = 0; }; then
7228     if test "$lt_cv_prog_gnu_ld" = yes; then
7229       case `/usr/bin/file conftest.$ac_objext` in
7230         *32-bit*)
7231           LD="${LD-ld} -melf32bsmip"
7232           ;;
7233         *N32*)
7234           LD="${LD-ld} -melf32bmipn32"
7235           ;;
7236         *64-bit*)
7237           LD="${LD-ld} -melf64bmip"
7238         ;;
7239       esac
7240     else
7241       case `/usr/bin/file conftest.$ac_objext` in
7242         *32-bit*)
7243           LD="${LD-ld} -32"
7244           ;;
7245         *N32*)
7246           LD="${LD-ld} -n32"
7247           ;;
7248         *64-bit*)
7249           LD="${LD-ld} -64"
7250           ;;
7251       esac
7252     fi
7253   fi
7254   rm -rf conftest*
7255   ;;
7256
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259   # Find out which ABI we are using.
7260   echo 'int i;' > conftest.$ac_ext
7261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265   test $ac_status = 0; }; then
7266     case `/usr/bin/file conftest.o` in
7267       *32-bit*)
7268         case $host in
7269           x86_64-*kfreebsd*-gnu)
7270             LD="${LD-ld} -m elf_i386_fbsd"
7271             ;;
7272           x86_64-*linux*)
7273             case `/usr/bin/file conftest.o` in
7274               *x86-64*)
7275                 LD="${LD-ld} -m elf32_x86_64"
7276                 ;;
7277               *)
7278                 LD="${LD-ld} -m elf_i386"
7279                 ;;
7280             esac
7281             ;;
7282           powerpc64le-*linux*)
7283             LD="${LD-ld} -m elf32lppclinux"
7284             ;;
7285           powerpc64-*linux*)
7286             LD="${LD-ld} -m elf32ppclinux"
7287             ;;
7288           s390x-*linux*)
7289             LD="${LD-ld} -m elf_s390"
7290             ;;
7291           sparc64-*linux*)
7292             LD="${LD-ld} -m elf32_sparc"
7293             ;;
7294         esac
7295         ;;
7296       *64-bit*)
7297         case $host in
7298           x86_64-*kfreebsd*-gnu)
7299             LD="${LD-ld} -m elf_x86_64_fbsd"
7300             ;;
7301           x86_64-*linux*)
7302             LD="${LD-ld} -m elf_x86_64"
7303             ;;
7304           powerpcle-*linux*)
7305             LD="${LD-ld} -m elf64lppc"
7306             ;;
7307           powerpc-*linux*)
7308             LD="${LD-ld} -m elf64ppc"
7309             ;;
7310           s390*-*linux*|s390*-*tpf*)
7311             LD="${LD-ld} -m elf64_s390"
7312             ;;
7313           sparc*-*linux*)
7314             LD="${LD-ld} -m elf64_sparc"
7315             ;;
7316         esac
7317         ;;
7318     esac
7319   fi
7320   rm -rf conftest*
7321   ;;
7322
7323 *-*-sco3.2v5*)
7324   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325   SAVE_CFLAGS="$CFLAGS"
7326   CFLAGS="$CFLAGS -belf"
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7329 if ${lt_cv_cc_needs_belf+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h.  */
7340
7341 int
7342 main ()
7343 {
7344
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 if ac_fn_c_try_link "$LINENO"; then :
7350   lt_cv_cc_needs_belf=yes
7351 else
7352   lt_cv_cc_needs_belf=no
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext \
7355     conftest$ac_exeext conftest.$ac_ext
7356      ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367     CFLAGS="$SAVE_CFLAGS"
7368   fi
7369   ;;
7370 sparc*-*solaris*)
7371   # Find out which ABI we are using.
7372   echo 'int i;' > conftest.$ac_ext
7373   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374   (eval $ac_compile) 2>&5
7375   ac_status=$?
7376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377   test $ac_status = 0; }; then
7378     case `/usr/bin/file conftest.o` in
7379     *64-bit*)
7380       case $lt_cv_prog_gnu_ld in
7381       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382       *)
7383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384           LD="${LD-ld} -64"
7385         fi
7386         ;;
7387       esac
7388       ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393 esac
7394
7395 need_locks="$enable_libtool_lock"
7396
7397
7398   case $host_os in
7399     rhapsody* | darwin*)
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}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_DSYMUTIL+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$DSYMUTIL"; then
7409   ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440   ac_ct_DSYMUTIL=$DSYMUTIL
7441   # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_DSYMUTIL"; then
7449   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_DSYMUTIL" = x; then
7478     DSYMUTIL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     DSYMUTIL=$ac_ct_DSYMUTIL
7487   fi
7488 else
7489   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7490 fi
7491
7492     if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}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_NMEDIT+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$NMEDIT"; then
7501   ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532   ac_ct_NMEDIT=$NMEDIT
7533   # Extract the first word of "nmedit", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_NMEDIT"; then
7541   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_NMEDIT" = x; then
7570     NMEDIT=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     NMEDIT=$ac_ct_NMEDIT
7579   fi
7580 else
7581   NMEDIT="$ac_cv_prog_NMEDIT"
7582 fi
7583
7584     if test -n "$ac_tool_prefix"; then
7585   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}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_LIPO+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$LIPO"; then
7593   ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_LIPO"; then
7624   ac_ct_LIPO=$LIPO
7625   # Extract the first word of "lipo", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   if test -n "$ac_ct_LIPO"; then
7633   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640     for ac_exec_ext in '' $ac_executable_extensions; do
7641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_ac_ct_LIPO="lipo"
7643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647   done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7656 else
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661   if test "x$ac_ct_LIPO" = x; then
7662     LIPO=":"
7663   else
7664     case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670     LIPO=$ac_ct_LIPO
7671   fi
7672 else
7673   LIPO="$ac_cv_prog_LIPO"
7674 fi
7675
7676     if test -n "$ac_tool_prefix"; then
7677   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}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_OTOOL+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$OTOOL"; then
7685   ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_OTOOL"; then
7716   ac_ct_OTOOL=$OTOOL
7717   # Extract the first word of "otool", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$ac_ct_OTOOL"; then
7725   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734     ac_cv_prog_ac_ct_OTOOL="otool"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753   if test "x$ac_ct_OTOOL" = x; then
7754     OTOOL=":"
7755   else
7756     case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762     OTOOL=$ac_ct_OTOOL
7763   fi
7764 else
7765   OTOOL="$ac_cv_prog_OTOOL"
7766 fi
7767
7768     if test -n "$ac_tool_prefix"; then
7769   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}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_OTOOL64+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$OTOOL64"; then
7777   ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808   ac_ct_OTOOL64=$OTOOL64
7809   # Extract the first word of "otool64", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$ac_ct_OTOOL64"; then
7817   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826     ac_cv_prog_ac_ct_OTOOL64="otool64"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845   if test "x$ac_ct_OTOOL64" = x; then
7846     OTOOL64=":"
7847   else
7848     case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854     OTOOL64=$ac_ct_OTOOL64
7855   fi
7856 else
7857   OTOOL64="$ac_cv_prog_OTOOL64"
7858 fi
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887 $as_echo_n "checking for -single_module linker flag... " >&6; }
7888 if ${lt_cv_apple_cc_single_mod+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   lt_cv_apple_cc_single_mod=no
7892       if test -z "${LT_MULTI_MODULE}"; then
7893         # By default we will add the -single_module flag. You can override
7894         # by either setting the environment variable LT_MULTI_MODULE
7895         # non-empty at configure time, or by adding -multi_module to the
7896         # link flags.
7897         rm -rf libconftest.dylib*
7898         echo "int foo(void){return 1;}" > conftest.c
7899         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c" >&5
7901         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903         _lt_result=$?
7904         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905           lt_cv_apple_cc_single_mod=yes
7906         else
7907           cat conftest.err >&5
7908         fi
7909         rm -rf libconftest.dylib*
7910         rm -f conftest.*
7911       fi
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   lt_cv_ld_exported_symbols_list=no
7921       save_LDFLAGS=$LDFLAGS
7922       echo "_main" > conftest.sym
7923       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926
7927 int
7928 main ()
7929 {
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936   lt_cv_ld_exported_symbols_list=yes
7937 else
7938   lt_cv_ld_exported_symbols_list=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941     conftest$ac_exeext conftest.$ac_ext
7942         LDFLAGS="$save_LDFLAGS"
7943
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948 $as_echo_n "checking for -force_load linker flag... " >&6; }
7949 if ${lt_cv_ld_force_load+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   lt_cv_ld_force_load=no
7953       cat > conftest.c << _LT_EOF
7954 int forced_loaded() { return 2;}
7955 _LT_EOF
7956       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958       echo "$AR cru libconftest.a conftest.o" >&5
7959       $AR cru libconftest.a conftest.o 2>&5
7960       cat > conftest.c << _LT_EOF
7961 int main() { return 0;}
7962 _LT_EOF
7963       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965       _lt_result=$?
7966       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967         lt_cv_ld_force_load=yes
7968       else
7969         cat conftest.err >&5
7970       fi
7971         rm -f conftest.err libconftest.a conftest conftest.c
7972         rm -rf conftest.dSYM
7973
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976 $as_echo "$lt_cv_ld_force_load" >&6; }
7977     case $host_os in
7978     rhapsody* | darwin1.[012])
7979       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980     darwin1.*)
7981       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982     darwin*) # darwin 5.x on
7983       # if running on 10.5 or later, the deployment target defaults
7984       # to the OS version, if on x86, and 10.4, the deployment
7985       # target defaults to 10.4. Don't you love it?
7986       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989         10.[012][,.]*)
7990           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991         10.*)
7992           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993       esac
7994     ;;
7995   esac
7996     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997       _lt_dar_single_mod='$single_module'
7998     fi
7999     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001     else
8002       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003     fi
8004     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8005       _lt_dsymutil='~$DSYMUTIL $lib || :'
8006     else
8007       _lt_dsymutil=
8008     fi
8009     ;;
8010   esac
8011
8012 for ac_header in dlfcn.h
8013 do :
8014   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015 "
8016 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8017   cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8019 _ACEOF
8020
8021 fi
8022
8023 done
8024
8025
8026
8027
8028
8029 # Set options
8030
8031
8032
8033         enable_dlopen=no
8034
8035
8036   enable_win32_dll=no
8037
8038
8039             # Check whether --enable-shared was given.
8040 if test "${enable_shared+set}" = set; then :
8041   enableval=$enable_shared; p=${PACKAGE-default}
8042     case $enableval in
8043     yes) enable_shared=yes ;;
8044     no) enable_shared=no ;;
8045     *)
8046       enable_shared=no
8047       # Look at the argument we got.  We use all the common list separators.
8048       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049       for pkg in $enableval; do
8050         IFS="$lt_save_ifs"
8051         if test "X$pkg" = "X$p"; then
8052           enable_shared=yes
8053         fi
8054       done
8055       IFS="$lt_save_ifs"
8056       ;;
8057     esac
8058 else
8059   enable_shared=yes
8060 fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070   # Check whether --enable-static was given.
8071 if test "${enable_static+set}" = set; then :
8072   enableval=$enable_static; p=${PACKAGE-default}
8073     case $enableval in
8074     yes) enable_static=yes ;;
8075     no) enable_static=no ;;
8076     *)
8077      enable_static=no
8078       # Look at the argument we got.  We use all the common list separators.
8079       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8080       for pkg in $enableval; do
8081         IFS="$lt_save_ifs"
8082         if test "X$pkg" = "X$p"; then
8083           enable_static=yes
8084         fi
8085       done
8086       IFS="$lt_save_ifs"
8087       ;;
8088     esac
8089 else
8090   enable_static=yes
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102 # Check whether --with-pic was given.
8103 if test "${with_pic+set}" = set; then :
8104   withval=$with_pic; pic_mode="$withval"
8105 else
8106   pic_mode=default
8107 fi
8108
8109
8110 test -z "$pic_mode" && pic_mode=default
8111
8112
8113
8114
8115
8116
8117
8118   # Check whether --enable-fast-install was given.
8119 if test "${enable_fast_install+set}" = set; then :
8120   enableval=$enable_fast_install; p=${PACKAGE-default}
8121     case $enableval in
8122     yes) enable_fast_install=yes ;;
8123     no) enable_fast_install=no ;;
8124     *)
8125       enable_fast_install=no
8126       # Look at the argument we got.  We use all the common list separators.
8127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8128       for pkg in $enableval; do
8129         IFS="$lt_save_ifs"
8130         if test "X$pkg" = "X$p"; then
8131           enable_fast_install=yes
8132         fi
8133       done
8134       IFS="$lt_save_ifs"
8135       ;;
8136     esac
8137 else
8138   enable_fast_install=yes
8139 fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 # This can be used to rebuild libtool when needed
8152 LIBTOOL_DEPS="$ltmain"
8153
8154 # Always use our own libtool.
8155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 test -z "$LN_S" && LN_S="ln -s"
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 if test -n "${ZSH_VERSION+set}" ; then
8198    setopt NO_GLOB_SUBST
8199 fi
8200
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8202 $as_echo_n "checking for objdir... " >&6; }
8203 if ${lt_cv_objdir+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   rm -f .libs 2>/dev/null
8207 mkdir .libs 2>/dev/null
8208 if test -d .libs; then
8209   lt_cv_objdir=.libs
8210 else
8211   # MS-DOS does not allow filenames that begin with a dot.
8212   lt_cv_objdir=_libs
8213 fi
8214 rmdir .libs 2>/dev/null
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8217 $as_echo "$lt_cv_objdir" >&6; }
8218 objdir=$lt_cv_objdir
8219
8220
8221
8222
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define LT_OBJDIR "$lt_cv_objdir/"
8226 _ACEOF
8227
8228
8229
8230
8231 case $host_os in
8232 aix3*)
8233   # AIX sometimes has problems with the GCC collect2 program.  For some
8234   # reason, if we set the COLLECT_NAMES environment variable, the problems
8235   # vanish in a puff of smoke.
8236   if test "X${COLLECT_NAMES+set}" != Xset; then
8237     COLLECT_NAMES=
8238     export COLLECT_NAMES
8239   fi
8240   ;;
8241 esac
8242
8243 # Global variables:
8244 ofile=libtool
8245 can_build_shared=yes
8246
8247 # All known linkers require a `.a' archive for static linking (except MSVC,
8248 # which needs '.lib').
8249 libext=a
8250
8251 with_gnu_ld="$lt_cv_prog_gnu_ld"
8252
8253 old_CC="$CC"
8254 old_CFLAGS="$CFLAGS"
8255
8256 # Set sane defaults for various variables
8257 test -z "$CC" && CC=cc
8258 test -z "$LTCC" && LTCC=$CC
8259 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8260 test -z "$LD" && LD=ld
8261 test -z "$ac_objext" && ac_objext=o
8262
8263 for cc_temp in $compiler""; do
8264   case $cc_temp in
8265     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8266     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8267     \-*) ;;
8268     *) break;;
8269   esac
8270 done
8271 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8272
8273
8274 # Only perform the check for file, if the check method requires it
8275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8276 case $deplibs_check_method in
8277 file_magic*)
8278   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8280 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8281 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   case $MAGIC_CMD in
8285 [\\/*] |  ?:[\\/]*)
8286   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8287   ;;
8288 *)
8289   lt_save_MAGIC_CMD="$MAGIC_CMD"
8290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8291   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8292   for ac_dir in $ac_dummy; do
8293     IFS="$lt_save_ifs"
8294     test -z "$ac_dir" && ac_dir=.
8295     if test -f $ac_dir/${ac_tool_prefix}file; then
8296       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8297       if test -n "$file_magic_test_file"; then
8298         case $deplibs_check_method in
8299         "file_magic "*)
8300           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8301           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8303             $EGREP "$file_magic_regex" > /dev/null; then
8304             :
8305           else
8306             cat <<_LT_EOF 1>&2
8307
8308 *** Warning: the command libtool uses to detect shared libraries,
8309 *** $file_magic_cmd, produces output that libtool cannot recognize.
8310 *** The result is that libtool may fail to recognize shared libraries
8311 *** as such.  This will affect the creation of libtool libraries that
8312 *** depend on shared libraries, but programs linked with such libtool
8313 *** libraries will work regardless of this problem.  Nevertheless, you
8314 *** may want to report the problem to your system manager and/or to
8315 *** bug-libtool@gnu.org
8316
8317 _LT_EOF
8318           fi ;;
8319         esac
8320       fi
8321       break
8322     fi
8323   done
8324   IFS="$lt_save_ifs"
8325   MAGIC_CMD="$lt_save_MAGIC_CMD"
8326   ;;
8327 esac
8328 fi
8329
8330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331 if test -n "$MAGIC_CMD"; then
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8333 $as_echo "$MAGIC_CMD" >&6; }
8334 else
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340
8341
8342
8343 if test -z "$lt_cv_path_MAGIC_CMD"; then
8344   if test -n "$ac_tool_prefix"; then
8345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8346 $as_echo_n "checking for file... " >&6; }
8347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   case $MAGIC_CMD in
8351 [\\/*] |  ?:[\\/]*)
8352   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8353   ;;
8354 *)
8355   lt_save_MAGIC_CMD="$MAGIC_CMD"
8356   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8357   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8358   for ac_dir in $ac_dummy; do
8359     IFS="$lt_save_ifs"
8360     test -z "$ac_dir" && ac_dir=.
8361     if test -f $ac_dir/file; then
8362       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8363       if test -n "$file_magic_test_file"; then
8364         case $deplibs_check_method in
8365         "file_magic "*)
8366           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8367           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8368           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8369             $EGREP "$file_magic_regex" > /dev/null; then
8370             :
8371           else
8372             cat <<_LT_EOF 1>&2
8373
8374 *** Warning: the command libtool uses to detect shared libraries,
8375 *** $file_magic_cmd, produces output that libtool cannot recognize.
8376 *** The result is that libtool may fail to recognize shared libraries
8377 *** as such.  This will affect the creation of libtool libraries that
8378 *** depend on shared libraries, but programs linked with such libtool
8379 *** libraries will work regardless of this problem.  Nevertheless, you
8380 *** may want to report the problem to your system manager and/or to
8381 *** bug-libtool@gnu.org
8382
8383 _LT_EOF
8384           fi ;;
8385         esac
8386       fi
8387       break
8388     fi
8389   done
8390   IFS="$lt_save_ifs"
8391   MAGIC_CMD="$lt_save_MAGIC_CMD"
8392   ;;
8393 esac
8394 fi
8395
8396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8397 if test -n "$MAGIC_CMD"; then
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8399 $as_echo "$MAGIC_CMD" >&6; }
8400 else
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406   else
8407     MAGIC_CMD=:
8408   fi
8409 fi
8410
8411   fi
8412   ;;
8413 esac
8414
8415 # Use C for the default configuration in the libtool script
8416
8417 lt_save_CC="$CC"
8418 ac_ext=c
8419 ac_cpp='$CPP $CPPFLAGS'
8420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423
8424
8425 # Source file extension for C test sources.
8426 ac_ext=c
8427
8428 # Object file extension for compiled C test sources.
8429 objext=o
8430 objext=$objext
8431
8432 # Code to be used in simple compile tests
8433 lt_simple_compile_test_code="int some_variable = 0;"
8434
8435 # Code to be used in simple link tests
8436 lt_simple_link_test_code='int main(){return(0);}'
8437
8438
8439
8440
8441
8442
8443
8444 # If no C compiler was specified, use CC.
8445 LTCC=${LTCC-"$CC"}
8446
8447 # If no C compiler flags were specified, use CFLAGS.
8448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8449
8450 # Allow CC to be a program name with arguments.
8451 compiler=$CC
8452
8453 # Save the default compiler, since it gets overwritten when the other
8454 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8455 compiler_DEFAULT=$CC
8456
8457 # save warnings/boilerplate of simple test code
8458 ac_outfile=conftest.$ac_objext
8459 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8460 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461 _lt_compiler_boilerplate=`cat conftest.err`
8462 $RM conftest*
8463
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8466 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8467 _lt_linker_boilerplate=`cat conftest.err`
8468 $RM -r conftest*
8469
8470
8471 ## CAVEAT EMPTOR:
8472 ## There is no encapsulation within the following macros, do not change
8473 ## the running order or otherwise move them around unless you know exactly
8474 ## what you are doing...
8475 if test -n "$compiler"; then
8476
8477 lt_prog_compiler_no_builtin_flag=
8478
8479 if test "$GCC" = yes; then
8480   case $cc_basename in
8481   nvcc*)
8482     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8483   *)
8484     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8485   esac
8486
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8488 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8489 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   lt_cv_prog_compiler_rtti_exceptions=no
8493    ac_outfile=conftest.$ac_objext
8494    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495    lt_compiler_flag="-fno-rtti -fno-exceptions"
8496    # Insert the option either (1) after the last *FLAGS variable, or
8497    # (2) before a word containing "conftest.", or (3) at the end.
8498    # Note that $ac_compile itself does not contain backslashes and begins
8499    # with a dollar sign (not a hyphen), so the echo should work correctly.
8500    # The option is referenced via a variable to avoid confusing sed.
8501    lt_compile=`echo "$ac_compile" | $SED \
8502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504    -e 's:$: $lt_compiler_flag:'`
8505    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506    (eval "$lt_compile" 2>conftest.err)
8507    ac_status=$?
8508    cat conftest.err >&5
8509    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510    if (exit $ac_status) && test -s "$ac_outfile"; then
8511      # The compiler can only warn and ignore the option if not recognized
8512      # So say no if there are warnings other than the usual output.
8513      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8514      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8516        lt_cv_prog_compiler_rtti_exceptions=yes
8517      fi
8518    fi
8519    $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8523 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8524
8525 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8526     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8527 else
8528     :
8529 fi
8530
8531 fi
8532
8533
8534
8535
8536
8537
8538   lt_prog_compiler_wl=
8539 lt_prog_compiler_pic=
8540 lt_prog_compiler_static=
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8543 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8544
8545   if test "$GCC" = yes; then
8546     lt_prog_compiler_wl='-Wl,'
8547     lt_prog_compiler_static='-static'
8548
8549     case $host_os in
8550       aix*)
8551       # All AIX code is PIC.
8552       if test "$host_cpu" = ia64; then
8553         # AIX 5 now supports IA64 processor
8554         lt_prog_compiler_static='-Bstatic'
8555       fi
8556       lt_prog_compiler_pic='-fPIC'
8557       ;;
8558
8559     amigaos*)
8560       case $host_cpu in
8561       powerpc)
8562             # see comment about AmigaOS4 .so support
8563             lt_prog_compiler_pic='-fPIC'
8564         ;;
8565       m68k)
8566             # FIXME: we need at least 68020 code to build shared libraries, but
8567             # adding the `-m68020' flag to GCC prevents building anything better,
8568             # like `-m68040'.
8569             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8570         ;;
8571       esac
8572       ;;
8573
8574     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8575       # PIC is the default for these OSes.
8576       ;;
8577
8578     mingw* | cygwin* | pw32* | os2* | cegcc*)
8579       # This hack is so that the source file can tell whether it is being
8580       # built for inclusion in a dll (and should export symbols for example).
8581       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8582       # (--disable-auto-import) libraries
8583       lt_prog_compiler_pic='-DDLL_EXPORT'
8584       ;;
8585
8586     darwin* | rhapsody*)
8587       # PIC is the default on this platform
8588       # Common symbols not allowed in MH_DYLIB files
8589       lt_prog_compiler_pic='-fno-common'
8590       ;;
8591
8592     haiku*)
8593       # PIC is the default for Haiku.
8594       # The "-static" flag exists, but is broken.
8595       lt_prog_compiler_static=
8596       ;;
8597
8598     hpux*)
8599       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8600       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8601       # sets the default TLS model and affects inlining.
8602       case $host_cpu in
8603       hppa*64*)
8604         # +Z the default
8605         ;;
8606       *)
8607         lt_prog_compiler_pic='-fPIC'
8608         ;;
8609       esac
8610       ;;
8611
8612     interix[3-9]*)
8613       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8614       # Instead, we relocate shared libraries at runtime.
8615       ;;
8616
8617     msdosdjgpp*)
8618       # Just because we use GCC doesn't mean we suddenly get shared libraries
8619       # on systems that don't support them.
8620       lt_prog_compiler_can_build_shared=no
8621       enable_shared=no
8622       ;;
8623
8624     *nto* | *qnx*)
8625       # QNX uses GNU C++, but need to define -shared option too, otherwise
8626       # it will coredump.
8627       lt_prog_compiler_pic='-fPIC -shared'
8628       ;;
8629
8630     sysv4*MP*)
8631       if test -d /usr/nec; then
8632         lt_prog_compiler_pic=-Kconform_pic
8633       fi
8634       ;;
8635
8636     *)
8637       lt_prog_compiler_pic='-fPIC'
8638       ;;
8639     esac
8640
8641     case $cc_basename in
8642     nvcc*) # Cuda Compiler Driver 2.2
8643       lt_prog_compiler_wl='-Xlinker '
8644       lt_prog_compiler_pic='-Xcompiler -fPIC'
8645       ;;
8646     esac
8647   else
8648     # PORTME Check for flag to pass linker flags through the system compiler.
8649     case $host_os in
8650     aix*)
8651       lt_prog_compiler_wl='-Wl,'
8652       if test "$host_cpu" = ia64; then
8653         # AIX 5 now supports IA64 processor
8654         lt_prog_compiler_static='-Bstatic'
8655       else
8656         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8657       fi
8658       ;;
8659
8660     mingw* | cygwin* | pw32* | os2* | cegcc*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8689       case $cc_basename in
8690       # old Intel for x86_64 which still supported -KPIC.
8691       ecc*)
8692         lt_prog_compiler_wl='-Wl,'
8693         lt_prog_compiler_pic='-KPIC'
8694         lt_prog_compiler_static='-static'
8695         ;;
8696       # icc used to be incompatible with GCC.
8697       # ICC 10 doesn't accept -KPIC any more.
8698       icc* | ifort*)
8699         lt_prog_compiler_wl='-Wl,'
8700         lt_prog_compiler_pic='-fPIC'
8701         lt_prog_compiler_static='-static'
8702         ;;
8703       # Lahey Fortran 8.1.
8704       lf95*)
8705         lt_prog_compiler_wl='-Wl,'
8706         lt_prog_compiler_pic='--shared'
8707         lt_prog_compiler_static='--static'
8708         ;;
8709       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8710         # Portland Group compilers (*not* the Pentium gcc compiler,
8711         # which looks to be a dead project)
8712         lt_prog_compiler_wl='-Wl,'
8713         lt_prog_compiler_pic='-fpic'
8714         lt_prog_compiler_static='-Bstatic'
8715         ;;
8716       ccc*)
8717         lt_prog_compiler_wl='-Wl,'
8718         # All Alpha code is PIC.
8719         lt_prog_compiler_static='-non_shared'
8720         ;;
8721       xl* | bgxl* | bgf* | mpixl*)
8722         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8723         lt_prog_compiler_wl='-Wl,'
8724         lt_prog_compiler_pic='-qpic'
8725         lt_prog_compiler_static='-qstaticlink'
8726         ;;
8727       *)
8728         case `$CC -V 2>&1 | sed 5q` in
8729         *Sun\ F* | *Sun*Fortran*)
8730           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8731           lt_prog_compiler_pic='-KPIC'
8732           lt_prog_compiler_static='-Bstatic'
8733           lt_prog_compiler_wl=''
8734           ;;
8735         *Sun\ C*)
8736           # Sun C 5.9
8737           lt_prog_compiler_pic='-KPIC'
8738           lt_prog_compiler_static='-Bstatic'
8739           lt_prog_compiler_wl='-Wl,'
8740           ;;
8741         esac
8742         ;;
8743       esac
8744       ;;
8745
8746     newsos6)
8747       lt_prog_compiler_pic='-KPIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     *nto* | *qnx*)
8752       # QNX uses GNU C++, but need to define -shared option too, otherwise
8753       # it will coredump.
8754       lt_prog_compiler_pic='-fPIC -shared'
8755       ;;
8756
8757     osf3* | osf4* | osf5*)
8758       lt_prog_compiler_wl='-Wl,'
8759       # All OSF/1 code is PIC.
8760       lt_prog_compiler_static='-non_shared'
8761       ;;
8762
8763     rdos*)
8764       lt_prog_compiler_static='-non_shared'
8765       ;;
8766
8767     solaris*)
8768       lt_prog_compiler_pic='-KPIC'
8769       lt_prog_compiler_static='-Bstatic'
8770       case $cc_basename in
8771       f77* | f90* | f95*)
8772         lt_prog_compiler_wl='-Qoption ld ';;
8773       *)
8774         lt_prog_compiler_wl='-Wl,';;
8775       esac
8776       ;;
8777
8778     sunos4*)
8779       lt_prog_compiler_wl='-Qoption ld '
8780       lt_prog_compiler_pic='-PIC'
8781       lt_prog_compiler_static='-Bstatic'
8782       ;;
8783
8784     sysv4 | sysv4.2uw2* | sysv4.3*)
8785       lt_prog_compiler_wl='-Wl,'
8786       lt_prog_compiler_pic='-KPIC'
8787       lt_prog_compiler_static='-Bstatic'
8788       ;;
8789
8790     sysv4*MP*)
8791       if test -d /usr/nec ;then
8792         lt_prog_compiler_pic='-Kconform_pic'
8793         lt_prog_compiler_static='-Bstatic'
8794       fi
8795       ;;
8796
8797     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8798       lt_prog_compiler_wl='-Wl,'
8799       lt_prog_compiler_pic='-KPIC'
8800       lt_prog_compiler_static='-Bstatic'
8801       ;;
8802
8803     unicos*)
8804       lt_prog_compiler_wl='-Wl,'
8805       lt_prog_compiler_can_build_shared=no
8806       ;;
8807
8808     uts4*)
8809       lt_prog_compiler_pic='-pic'
8810       lt_prog_compiler_static='-Bstatic'
8811       ;;
8812
8813     *)
8814       lt_prog_compiler_can_build_shared=no
8815       ;;
8816     esac
8817   fi
8818
8819 case $host_os in
8820   # For platforms which do not support PIC, -DPIC is meaningless:
8821   *djgpp*)
8822     lt_prog_compiler_pic=
8823     ;;
8824   *)
8825     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8826     ;;
8827 esac
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8829 $as_echo "$lt_prog_compiler_pic" >&6; }
8830
8831
8832
8833
8834
8835
8836 #
8837 # Check to make sure the PIC flag actually works.
8838 #
8839 if test -n "$lt_prog_compiler_pic"; then
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8841 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8842 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   lt_cv_prog_compiler_pic_works=no
8846    ac_outfile=conftest.$ac_objext
8847    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8849    # Insert the option either (1) after the last *FLAGS variable, or
8850    # (2) before a word containing "conftest.", or (3) at the end.
8851    # Note that $ac_compile itself does not contain backslashes and begins
8852    # with a dollar sign (not a hyphen), so the echo should work correctly.
8853    # The option is referenced via a variable to avoid confusing sed.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>conftest.err)
8860    ac_status=$?
8861    cat conftest.err >&5
8862    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s "$ac_outfile"; then
8864      # The compiler can only warn and ignore the option if not recognized
8865      # So say no if there are warnings other than the usual output.
8866      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8867      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869        lt_cv_prog_compiler_pic_works=yes
8870      fi
8871    fi
8872    $RM conftest*
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8876 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8877
8878 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8879     case $lt_prog_compiler_pic in
8880      "" | " "*) ;;
8881      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882      esac
8883 else
8884     lt_prog_compiler_pic=
8885      lt_prog_compiler_can_build_shared=no
8886 fi
8887
8888 fi
8889
8890
8891
8892
8893
8894
8895 #
8896 # Check to make sure the static flag actually works.
8897 #
8898 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8900 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8901 if ${lt_cv_prog_compiler_static_works+:} false; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   lt_cv_prog_compiler_static_works=no
8905    save_LDFLAGS="$LDFLAGS"
8906    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8907    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8908    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8909      # The linker can only warn and ignore the option if not recognized
8910      # So say no if there are warnings
8911      if test -s conftest.err; then
8912        # Append any errors to the config.log.
8913        cat conftest.err 1>&5
8914        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8915        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8916        if diff conftest.exp conftest.er2 >/dev/null; then
8917          lt_cv_prog_compiler_static_works=yes
8918        fi
8919      else
8920        lt_cv_prog_compiler_static_works=yes
8921      fi
8922    fi
8923    $RM -r conftest*
8924    LDFLAGS="$save_LDFLAGS"
8925
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8928 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8929
8930 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8931     :
8932 else
8933     lt_prog_compiler_static=
8934 fi
8935
8936
8937
8938
8939
8940
8941
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8944 if ${lt_cv_prog_compiler_c_o+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   lt_cv_prog_compiler_c_o=no
8948    $RM -r conftest 2>/dev/null
8949    mkdir conftest
8950    cd conftest
8951    mkdir out
8952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953
8954    lt_compiler_flag="-o out/conftest2.$ac_objext"
8955    # Insert the option either (1) after the last *FLAGS variable, or
8956    # (2) before a word containing "conftest.", or (3) at the end.
8957    # Note that $ac_compile itself does not contain backslashes and begins
8958    # with a dollar sign (not a hyphen), so the echo should work correctly.
8959    lt_compile=`echo "$ac_compile" | $SED \
8960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962    -e 's:$: $lt_compiler_flag:'`
8963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964    (eval "$lt_compile" 2>out/conftest.err)
8965    ac_status=$?
8966    cat out/conftest.err >&5
8967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8969    then
8970      # The compiler can only warn and ignore the option if not recognized
8971      # So say no if there are warnings
8972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8975        lt_cv_prog_compiler_c_o=yes
8976      fi
8977    fi
8978    chmod u+w . 2>&5
8979    $RM conftest*
8980    # SGI C++ compiler will create directory out/ii_files/ for
8981    # template instantiation
8982    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8983    $RM out/* && rmdir out
8984    cd ..
8985    $RM -r conftest
8986    $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8990 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8991
8992
8993
8994
8995
8996
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999 if ${lt_cv_prog_compiler_c_o+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   lt_cv_prog_compiler_c_o=no
9003    $RM -r conftest 2>/dev/null
9004    mkdir conftest
9005    cd conftest
9006    mkdir out
9007    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009    lt_compiler_flag="-o out/conftest2.$ac_objext"
9010    # Insert the option either (1) after the last *FLAGS variable, or
9011    # (2) before a word containing "conftest.", or (3) at the end.
9012    # Note that $ac_compile itself does not contain backslashes and begins
9013    # with a dollar sign (not a hyphen), so the echo should work correctly.
9014    lt_compile=`echo "$ac_compile" | $SED \
9015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017    -e 's:$: $lt_compiler_flag:'`
9018    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019    (eval "$lt_compile" 2>out/conftest.err)
9020    ac_status=$?
9021    cat out/conftest.err >&5
9022    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024    then
9025      # The compiler can only warn and ignore the option if not recognized
9026      # So say no if there are warnings
9027      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030        lt_cv_prog_compiler_c_o=yes
9031      fi
9032    fi
9033    chmod u+w . 2>&5
9034    $RM conftest*
9035    # SGI C++ compiler will create directory out/ii_files/ for
9036    # template instantiation
9037    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038    $RM out/* && rmdir out
9039    cd ..
9040    $RM -r conftest
9041    $RM conftest*
9042
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046
9047
9048
9049
9050 hard_links="nottested"
9051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9052   # do not overwrite the value of need_locks provided by the user
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9054 $as_echo_n "checking if we can lock with hard links... " >&6; }
9055   hard_links=yes
9056   $RM conftest*
9057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058   touch conftest.a
9059   ln conftest.a conftest.b 2>&5 || hard_links=no
9060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9062 $as_echo "$hard_links" >&6; }
9063   if test "$hard_links" = no; then
9064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9065 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9066     need_locks=warn
9067   fi
9068 else
9069   need_locks=no
9070 fi
9071
9072
9073
9074
9075
9076
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079
9080   runpath_var=
9081   allow_undefined_flag=
9082   always_export_symbols=no
9083   archive_cmds=
9084   archive_expsym_cmds=
9085   compiler_needs_object=no
9086   enable_shared_with_static_runtimes=no
9087   export_dynamic_flag_spec=
9088   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9089   hardcode_automatic=no
9090   hardcode_direct=no
9091   hardcode_direct_absolute=no
9092   hardcode_libdir_flag_spec=
9093   hardcode_libdir_flag_spec_ld=
9094   hardcode_libdir_separator=
9095   hardcode_minus_L=no
9096   hardcode_shlibpath_var=unsupported
9097   inherit_rpath=no
9098   link_all_deplibs=unknown
9099   module_cmds=
9100   module_expsym_cmds=
9101   old_archive_from_new_cmds=
9102   old_archive_from_expsyms_cmds=
9103   thread_safe_flag_spec=
9104   whole_archive_flag_spec=
9105   # include_expsyms should be a list of space-separated symbols to be *always*
9106   # included in the symbol list
9107   include_expsyms=
9108   # exclude_expsyms can be an extended regexp of symbols to exclude
9109   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9110   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9111   # as well as any symbol that contains `d'.
9112   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9113   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9114   # platforms (ab)use it in PIC code, but their linkers get confused if
9115   # the symbol is explicitly referenced.  Since portable code cannot
9116   # rely on this symbol name, it's probably fine to never include it in
9117   # preloaded symbol tables.
9118   # Exclude shared library initialization/finalization symbols.
9119   extract_expsyms_cmds=
9120
9121   case $host_os in
9122   cygwin* | mingw* | pw32* | cegcc*)
9123     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9124     # When not using gcc, we currently assume that we are using
9125     # Microsoft Visual C++.
9126     if test "$GCC" != yes; then
9127       with_gnu_ld=no
9128     fi
9129     ;;
9130   interix*)
9131     # we just hope/assume this is gcc and not c89 (= MSVC++)
9132     with_gnu_ld=yes
9133     ;;
9134   openbsd*)
9135     with_gnu_ld=no
9136     ;;
9137   esac
9138
9139   ld_shlibs=yes
9140
9141   # On some targets, GNU ld is compatible enough with the native linker
9142   # that we're better off using the native interface for both.
9143   lt_use_gnu_ld_interface=no
9144   if test "$with_gnu_ld" = yes; then
9145     case $host_os in
9146       aix*)
9147         # The AIX port of GNU ld has always aspired to compatibility
9148         # with the native linker.  However, as the warning in the GNU ld
9149         # block says, versions before 2.19.5* couldn't really create working
9150         # shared libraries, regardless of the interface used.
9151         case `$LD -v 2>&1` in
9152           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9153           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9154           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9155           *)
9156             lt_use_gnu_ld_interface=yes
9157             ;;
9158         esac
9159         ;;
9160       *)
9161         lt_use_gnu_ld_interface=yes
9162         ;;
9163     esac
9164   fi
9165
9166   if test "$lt_use_gnu_ld_interface" = yes; then
9167     # If archive_cmds runs LD, not CC, wlarc should be empty
9168     wlarc='${wl}'
9169
9170     # Set some defaults for GNU ld with shared library support. These
9171     # are reset later if shared libraries are not supported. Putting them
9172     # here allows them to be overridden if necessary.
9173     runpath_var=LD_RUN_PATH
9174     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175     export_dynamic_flag_spec='${wl}--export-dynamic'
9176     # ancient GNU ld didn't support --whole-archive et. al.
9177     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9178       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9179     else
9180       whole_archive_flag_spec=
9181     fi
9182     supports_anon_versioning=no
9183     case `$LD -v 2>&1` in
9184       *GNU\ gold*) supports_anon_versioning=yes ;;
9185       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9186       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9187       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9188       *\ 2.11.*) ;; # other 2.11 versions
9189       *) supports_anon_versioning=yes ;;
9190     esac
9191
9192     # See if GNU ld supports shared libraries.
9193     case $host_os in
9194     aix[3-9]*)
9195       # On AIX/PPC, the GNU linker is very broken
9196       if test "$host_cpu" != ia64; then
9197         ld_shlibs=no
9198         cat <<_LT_EOF 1>&2
9199
9200 *** Warning: the GNU linker, at least up to release 2.19, is reported
9201 *** to be unable to reliably create shared libraries on AIX.
9202 *** Therefore, libtool is disabling shared libraries support.  If you
9203 *** really care for shared libraries, you may want to install binutils
9204 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9205 *** You will then need to restart the configuration process.
9206
9207 _LT_EOF
9208       fi
9209       ;;
9210
9211     amigaos*)
9212       case $host_cpu in
9213       powerpc)
9214             # see comment about AmigaOS4 .so support
9215             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216             archive_expsym_cmds=''
9217         ;;
9218       m68k)
9219             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)'
9220             hardcode_libdir_flag_spec='-L$libdir'
9221             hardcode_minus_L=yes
9222         ;;
9223       esac
9224       ;;
9225
9226     beos*)
9227       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228         allow_undefined_flag=unsupported
9229         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9230         # support --undefined.  This deserves some investigation.  FIXME
9231         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232       else
9233         ld_shlibs=no
9234       fi
9235       ;;
9236
9237     cygwin* | mingw* | pw32* | cegcc*)
9238       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9239       # as there is no search path for DLLs.
9240       hardcode_libdir_flag_spec='-L$libdir'
9241       export_dynamic_flag_spec='${wl}--export-all-symbols'
9242       allow_undefined_flag=unsupported
9243       always_export_symbols=no
9244       enable_shared_with_static_runtimes=yes
9245       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9246
9247       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249         # If the export-symbols file already is a .def file (1st line
9250         # is EXPORTS), use it as is; otherwise, prepend...
9251         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9252           cp $export_symbols $output_objdir/$soname.def;
9253         else
9254           echo EXPORTS > $output_objdir/$soname.def;
9255           cat $export_symbols >> $output_objdir/$soname.def;
9256         fi~
9257         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258       else
9259         ld_shlibs=no
9260       fi
9261       ;;
9262
9263     haiku*)
9264       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265       link_all_deplibs=yes
9266       ;;
9267
9268     interix[3-9]*)
9269       hardcode_direct=no
9270       hardcode_shlibpath_var=no
9271       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272       export_dynamic_flag_spec='${wl}-E'
9273       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9274       # Instead, shared libraries are loaded at an image base (0x10000000 by
9275       # default) and relocated if they conflict, which is a slow very memory
9276       # consuming and fragmenting process.  To avoid this, we pick a random,
9277       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9278       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9279       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9280       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'
9281       ;;
9282
9283     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9284       tmp_diet=no
9285       if test "$host_os" = linux-dietlibc; then
9286         case $cc_basename in
9287           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9288         esac
9289       fi
9290       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9291          && test "$tmp_diet" = no
9292       then
9293         tmp_addflag=' $pic_flag'
9294         tmp_sharedflag='-shared'
9295         case $cc_basename,$host_cpu in
9296         pgcc*)                          # Portland Group C compiler
9297           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'
9298           tmp_addflag=' $pic_flag'
9299           ;;
9300         pgf77* | pgf90* | pgf95* | pgfortran*)
9301                                         # Portland Group f77 and f90 compilers
9302           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'
9303           tmp_addflag=' $pic_flag -Mnomain' ;;
9304         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9305           tmp_addflag=' -i_dynamic' ;;
9306         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9307           tmp_addflag=' -i_dynamic -nofor_main' ;;
9308         ifc* | ifort*)                  # Intel Fortran compiler
9309           tmp_addflag=' -nofor_main' ;;
9310         lf95*)                          # Lahey Fortran 8.1
9311           whole_archive_flag_spec=
9312           tmp_sharedflag='--shared' ;;
9313         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9314           tmp_sharedflag='-qmkshrobj'
9315           tmp_addflag= ;;
9316         nvcc*)  # Cuda Compiler Driver 2.2
9317           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'
9318           compiler_needs_object=yes
9319           ;;
9320         esac
9321         case `$CC -V 2>&1 | sed 5q` in
9322         *Sun\ C*)                       # Sun C 5.9
9323           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'
9324           compiler_needs_object=yes
9325           tmp_sharedflag='-G' ;;
9326         *Sun\ F*)                       # Sun Fortran 8.3
9327           tmp_sharedflag='-G' ;;
9328         esac
9329         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330
9331         if test "x$supports_anon_versioning" = xyes; then
9332           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334             echo "local: *; };" >> $output_objdir/$libname.ver~
9335             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336         fi
9337
9338         case $cc_basename in
9339         xlf* | bgf* | bgxlf* | mpixlf*)
9340           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9341           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9342           hardcode_libdir_flag_spec=
9343           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9344           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9345           if test "x$supports_anon_versioning" = xyes; then
9346             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9347               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9348               echo "local: *; };" >> $output_objdir/$libname.ver~
9349               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9350           fi
9351           ;;
9352         esac
9353       else
9354         ld_shlibs=no
9355       fi
9356       ;;
9357
9358     netbsd*)
9359       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9360         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9361         wlarc=
9362       else
9363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365       fi
9366       ;;
9367
9368     solaris*)
9369       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9370         ld_shlibs=no
9371         cat <<_LT_EOF 1>&2
9372
9373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9374 *** create shared libraries on Solaris systems.  Therefore, libtool
9375 *** is disabling shared libraries support.  We urge you to upgrade GNU
9376 *** binutils to release 2.9.1 or newer.  Another option is to modify
9377 *** your PATH or compiler configuration so that the native linker is
9378 *** used, and then restart.
9379
9380 _LT_EOF
9381       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384       else
9385         ld_shlibs=no
9386       fi
9387       ;;
9388
9389     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9390       case `$LD -v 2>&1` in
9391         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9392         ld_shlibs=no
9393         cat <<_LT_EOF 1>&2
9394
9395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9396 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9397 *** is disabling shared libraries support.  We urge you to upgrade GNU
9398 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9399 *** your PATH or compiler configuration so that the native linker is
9400 *** used, and then restart.
9401
9402 _LT_EOF
9403         ;;
9404         *)
9405           # For security reasons, it is highly recommended that you always
9406           # use absolute paths for naming shared libraries, and exclude the
9407           # DT_RUNPATH tag from executables and libraries.  But doing so
9408           # requires that you compile everything twice, which is a pain.
9409           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413           else
9414             ld_shlibs=no
9415           fi
9416         ;;
9417       esac
9418       ;;
9419
9420     sunos4*)
9421       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422       wlarc=
9423       hardcode_direct=yes
9424       hardcode_shlibpath_var=no
9425       ;;
9426
9427     *)
9428       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9431       else
9432         ld_shlibs=no
9433       fi
9434       ;;
9435     esac
9436
9437     if test "$ld_shlibs" = no; then
9438       runpath_var=
9439       hardcode_libdir_flag_spec=
9440       export_dynamic_flag_spec=
9441       whole_archive_flag_spec=
9442     fi
9443   else
9444     # PORTME fill in a description of your system's linker (not GNU ld)
9445     case $host_os in
9446     aix3*)
9447       allow_undefined_flag=unsupported
9448       always_export_symbols=yes
9449       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'
9450       # Note: this linker hardcodes the directories in LIBPATH if there
9451       # are no directories specified by -L.
9452       hardcode_minus_L=yes
9453       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9454         # Neither direct hardcoding nor static linking is supported with a
9455         # broken collect2.
9456         hardcode_direct=unsupported
9457       fi
9458       ;;
9459
9460     aix[4-9]*)
9461       if test "$host_cpu" = ia64; then
9462         # On IA64, the linker does run time linking by default, so we don't
9463         # have to do anything special.
9464         aix_use_runtimelinking=no
9465         exp_sym_flag='-Bexport'
9466         no_entry_flag=""
9467       else
9468         # If we're using GNU nm, then we don't want the "-C" option.
9469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9470         # Also, AIX nm treats weak defined symbols like other global
9471         # defined symbols, whereas GNU nm marks them as "W".
9472         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9473           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'
9474         else
9475           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'
9476         fi
9477         aix_use_runtimelinking=no
9478
9479         # Test if we are trying to use run time linking or normal
9480         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9481         # need to do runtime linking.
9482         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9483           for ld_flag in $LDFLAGS; do
9484           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9485             aix_use_runtimelinking=yes
9486             break
9487           fi
9488           done
9489           ;;
9490         esac
9491
9492         exp_sym_flag='-bexport'
9493         no_entry_flag='-bnoentry'
9494       fi
9495
9496       # When large executables or shared objects are built, AIX ld can
9497       # have problems creating the table of contents.  If linking a library
9498       # or program results in "error TOC overflow" add -mminimal-toc to
9499       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9500       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501
9502       archive_cmds=''
9503       hardcode_direct=yes
9504       hardcode_direct_absolute=yes
9505       hardcode_libdir_separator=':'
9506       link_all_deplibs=yes
9507       file_list_spec='${wl}-f,'
9508
9509       if test "$GCC" = yes; then
9510         case $host_os in aix4.[012]|aix4.[012].*)
9511         # We only want to do this on AIX 4.2 and lower, the check
9512         # below for broken collect2 doesn't work under 4.3+
9513           collect2name=`${CC} -print-prog-name=collect2`
9514           if test -f "$collect2name" &&
9515            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9516           then
9517           # We have reworked collect2
9518           :
9519           else
9520           # We have old collect2
9521           hardcode_direct=unsupported
9522           # It fails to find uninstalled libraries when the uninstalled
9523           # path is not listed in the libpath.  Setting hardcode_minus_L
9524           # to unsupported forces relinking
9525           hardcode_minus_L=yes
9526           hardcode_libdir_flag_spec='-L$libdir'
9527           hardcode_libdir_separator=
9528           fi
9529           ;;
9530         esac
9531         shared_flag='-shared'
9532         if test "$aix_use_runtimelinking" = yes; then
9533           shared_flag="$shared_flag "'${wl}-G'
9534         fi
9535       else
9536         # not using gcc
9537         if test "$host_cpu" = ia64; then
9538         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539         # chokes on -Wl,-G. The following line is correct:
9540           shared_flag='-G'
9541         else
9542           if test "$aix_use_runtimelinking" = yes; then
9543             shared_flag='${wl}-G'
9544           else
9545             shared_flag='${wl}-bM:SRE'
9546           fi
9547         fi
9548       fi
9549
9550       export_dynamic_flag_spec='${wl}-bexpall'
9551       # It seems that -bexpall does not export symbols beginning with
9552       # underscore (_), so it is better to generate a list of symbols to export.
9553       always_export_symbols=yes
9554       if test "$aix_use_runtimelinking" = yes; then
9555         # Warning - without using the other runtime loading flags (-brtl),
9556         # -berok will link without error, but may produce a broken library.
9557         allow_undefined_flag='-berok'
9558         # Determine the default libpath from the value encoded in an
9559         # empty executable.
9560         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h.  */
9562
9563 int
9564 main ()
9565 {
9566
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572
9573 lt_aix_libpath_sed='
9574     /Import File Strings/,/^$/ {
9575         /^0/ {
9576             s/^0  *\(.*\)$/\1/
9577             p
9578         }
9579     }'
9580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581 # Check for a 64-bit object if we didn't find anything.
9582 if test -z "$aix_libpath"; then
9583   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 fi
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587     conftest$ac_exeext conftest.$ac_ext
9588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9589
9590         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591         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"
9592       else
9593         if test "$host_cpu" = ia64; then
9594           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9595           allow_undefined_flag="-z nodefs"
9596           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"
9597         else
9598          # Determine the default libpath from the value encoded in an
9599          # empty executable.
9600          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h.  */
9602
9603 int
9604 main ()
9605 {
9606
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612
9613 lt_aix_libpath_sed='
9614     /Import File Strings/,/^$/ {
9615         /^0/ {
9616             s/^0  *\(.*\)$/\1/
9617             p
9618         }
9619     }'
9620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 # Check for a 64-bit object if we didn't find anything.
9622 if test -z "$aix_libpath"; then
9623   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 fi
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext \
9627     conftest$ac_exeext conftest.$ac_ext
9628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9629
9630          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9631           # Warning - without using the other run time loading flags,
9632           # -berok will link without error, but may produce a broken library.
9633           no_undefined_flag=' ${wl}-bernotok'
9634           allow_undefined_flag=' ${wl}-berok'
9635           if test "$with_gnu_ld" = yes; then
9636             # We only use this code for GNU lds that support --whole-archive.
9637             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9638           else
9639             # Exported symbols can be pulled into shared objects from archives
9640             whole_archive_flag_spec='$convenience'
9641           fi
9642           archive_cmds_need_lc=yes
9643           # This is similar to how AIX traditionally builds its shared libraries.
9644           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'
9645         fi
9646       fi
9647       ;;
9648
9649     amigaos*)
9650       case $host_cpu in
9651       powerpc)
9652             # see comment about AmigaOS4 .so support
9653             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654             archive_expsym_cmds=''
9655         ;;
9656       m68k)
9657             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)'
9658             hardcode_libdir_flag_spec='-L$libdir'
9659             hardcode_minus_L=yes
9660         ;;
9661       esac
9662       ;;
9663
9664     bsdi[45]*)
9665       export_dynamic_flag_spec=-rdynamic
9666       ;;
9667
9668     cygwin* | mingw* | pw32* | cegcc*)
9669       # When not using gcc, we currently assume that we are using
9670       # Microsoft Visual C++.
9671       # hardcode_libdir_flag_spec is actually meaningless, as there is
9672       # no search path for DLLs.
9673       hardcode_libdir_flag_spec=' '
9674       allow_undefined_flag=unsupported
9675       # Tell ltmain to make .lib files, not .a files.
9676       libext=lib
9677       # Tell ltmain to make .dll files, not .so files.
9678       shrext_cmds=".dll"
9679       # FIXME: Setting linknames here is a bad hack.
9680       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9681       # The linker will automatically build a .lib file if we build a DLL.
9682       old_archive_from_new_cmds='true'
9683       # FIXME: Should let the user specify the lib program.
9684       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9685       fix_srcfile_path='`cygpath -w "$srcfile"`'
9686       enable_shared_with_static_runtimes=yes
9687       ;;
9688
9689     darwin* | rhapsody*)
9690
9691
9692   archive_cmds_need_lc=no
9693   hardcode_direct=no
9694   hardcode_automatic=yes
9695   hardcode_shlibpath_var=unsupported
9696   if test "$lt_cv_ld_force_load" = "yes"; then
9697     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\"`'
9698   else
9699     whole_archive_flag_spec=''
9700   fi
9701   link_all_deplibs=yes
9702   allow_undefined_flag="$_lt_dar_allow_undefined"
9703   case $cc_basename in
9704      ifort*) _lt_dar_can_shared=yes ;;
9705      *) _lt_dar_can_shared=$GCC ;;
9706   esac
9707   if test "$_lt_dar_can_shared" = "yes"; then
9708     output_verbose_link_cmd=func_echo_all
9709     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9710     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9711     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}"
9712     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}"
9713
9714   else
9715   ld_shlibs=no
9716   fi
9717
9718       ;;
9719
9720     dgux*)
9721       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722       hardcode_libdir_flag_spec='-L$libdir'
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9727     # support.  Future versions do this automatically, but an explicit c++rt0.o
9728     # does not break anything, and helps significantly (at the cost of a little
9729     # extra space).
9730     freebsd2.2*)
9731       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9732       hardcode_libdir_flag_spec='-R$libdir'
9733       hardcode_direct=yes
9734       hardcode_shlibpath_var=no
9735       ;;
9736
9737     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9738     freebsd2.*)
9739       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740       hardcode_direct=yes
9741       hardcode_minus_L=yes
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9746     freebsd* | dragonfly*)
9747       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9748       hardcode_libdir_flag_spec='-R$libdir'
9749       hardcode_direct=yes
9750       hardcode_shlibpath_var=no
9751       ;;
9752
9753     hpux9*)
9754       if test "$GCC" = yes; then
9755         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'
9756       else
9757         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'
9758       fi
9759       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760       hardcode_libdir_separator=:
9761       hardcode_direct=yes
9762
9763       # hardcode_minus_L: Not really in the search PATH,
9764       # but as the default location of the library.
9765       hardcode_minus_L=yes
9766       export_dynamic_flag_spec='${wl}-E'
9767       ;;
9768
9769     hpux10*)
9770       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9771         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772       else
9773         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774       fi
9775       if test "$with_gnu_ld" = no; then
9776         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777         hardcode_libdir_flag_spec_ld='+b $libdir'
9778         hardcode_libdir_separator=:
9779         hardcode_direct=yes
9780         hardcode_direct_absolute=yes
9781         export_dynamic_flag_spec='${wl}-E'
9782         # hardcode_minus_L: Not really in the search PATH,
9783         # but as the default location of the library.
9784         hardcode_minus_L=yes
9785       fi
9786       ;;
9787
9788     hpux11*)
9789       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790         case $host_cpu in
9791         hppa*64*)
9792           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793           ;;
9794         ia64*)
9795           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796           ;;
9797         *)
9798           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799           ;;
9800         esac
9801       else
9802         case $host_cpu in
9803         hppa*64*)
9804           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9805           ;;
9806         ia64*)
9807           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808           ;;
9809         *)
9810
9811           # Older versions of the 11.00 compiler do not understand -b yet
9812           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9813           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9814 $as_echo_n "checking if $CC understands -b... " >&6; }
9815 if ${lt_cv_prog_compiler__b+:} false; then :
9816   $as_echo_n "(cached) " >&6
9817 else
9818   lt_cv_prog_compiler__b=no
9819    save_LDFLAGS="$LDFLAGS"
9820    LDFLAGS="$LDFLAGS -b"
9821    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823      # The linker can only warn and ignore the option if not recognized
9824      # So say no if there are warnings
9825      if test -s conftest.err; then
9826        # Append any errors to the config.log.
9827        cat conftest.err 1>&5
9828        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9829        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830        if diff conftest.exp conftest.er2 >/dev/null; then
9831          lt_cv_prog_compiler__b=yes
9832        fi
9833      else
9834        lt_cv_prog_compiler__b=yes
9835      fi
9836    fi
9837    $RM -r conftest*
9838    LDFLAGS="$save_LDFLAGS"
9839
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9842 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9843
9844 if test x"$lt_cv_prog_compiler__b" = xyes; then
9845     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 else
9847     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848 fi
9849
9850           ;;
9851         esac
9852       fi
9853       if test "$with_gnu_ld" = no; then
9854         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855         hardcode_libdir_separator=:
9856
9857         case $host_cpu in
9858         hppa*64*|ia64*)
9859           hardcode_direct=no
9860           hardcode_shlibpath_var=no
9861           ;;
9862         *)
9863           hardcode_direct=yes
9864           hardcode_direct_absolute=yes
9865           export_dynamic_flag_spec='${wl}-E'
9866
9867           # hardcode_minus_L: Not really in the search PATH,
9868           # but as the default location of the library.
9869           hardcode_minus_L=yes
9870           ;;
9871         esac
9872       fi
9873       ;;
9874
9875     irix5* | irix6* | nonstopux*)
9876       if test "$GCC" = yes; then
9877         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'
9878         # Try to use the -exported_symbol ld option, if it does not
9879         # work, assume that -exports_file does not work either and
9880         # implicitly export all symbols.
9881         save_LDFLAGS="$LDFLAGS"
9882         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9883         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h.  */
9885 int foo(void) {}
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888   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'
9889
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892     conftest$ac_exeext conftest.$ac_ext
9893         LDFLAGS="$save_LDFLAGS"
9894       else
9895         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'
9896         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'
9897       fi
9898       archive_cmds_need_lc='no'
9899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900       hardcode_libdir_separator=:
9901       inherit_rpath=yes
9902       link_all_deplibs=yes
9903       ;;
9904
9905     netbsd*)
9906       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9907         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9908       else
9909         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9910       fi
9911       hardcode_libdir_flag_spec='-R$libdir'
9912       hardcode_direct=yes
9913       hardcode_shlibpath_var=no
9914       ;;
9915
9916     newsos6)
9917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918       hardcode_direct=yes
9919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920       hardcode_libdir_separator=:
9921       hardcode_shlibpath_var=no
9922       ;;
9923
9924     *nto* | *qnx*)
9925       ;;
9926
9927     openbsd*)
9928       if test -f /usr/libexec/ld.so; then
9929         hardcode_direct=yes
9930         hardcode_shlibpath_var=no
9931         hardcode_direct_absolute=yes
9932         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9933           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9934           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9935           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9936           export_dynamic_flag_spec='${wl}-E'
9937         else
9938           case $host_os in
9939            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9940              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941              hardcode_libdir_flag_spec='-R$libdir'
9942              ;;
9943            *)
9944              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9945              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9946              ;;
9947           esac
9948         fi
9949       else
9950         ld_shlibs=no
9951       fi
9952       ;;
9953
9954     os2*)
9955       hardcode_libdir_flag_spec='-L$libdir'
9956       hardcode_minus_L=yes
9957       allow_undefined_flag=unsupported
9958       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'
9959       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9960       ;;
9961
9962     osf3*)
9963       if test "$GCC" = yes; then
9964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965         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'
9966       else
9967         allow_undefined_flag=' -expect_unresolved \*'
9968         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'
9969       fi
9970       archive_cmds_need_lc='no'
9971       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972       hardcode_libdir_separator=:
9973       ;;
9974
9975     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9976       if test "$GCC" = yes; then
9977         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9978         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'
9979         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980       else
9981         allow_undefined_flag=' -expect_unresolved \*'
9982         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'
9983         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~
9984         $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'
9985
9986         # Both c and cxx compiler support -rpath directly
9987         hardcode_libdir_flag_spec='-rpath $libdir'
9988       fi
9989       archive_cmds_need_lc='no'
9990       hardcode_libdir_separator=:
9991       ;;
9992
9993     solaris*)
9994       no_undefined_flag=' -z defs'
9995       if test "$GCC" = yes; then
9996         wlarc='${wl}'
9997         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9998         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000       else
10001         case `$CC -V 2>&1` in
10002         *"Compilers 5.0"*)
10003           wlarc=''
10004           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10006           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10007           ;;
10008         *)
10009           wlarc='${wl}'
10010           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10011           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10012           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10013           ;;
10014         esac
10015       fi
10016       hardcode_libdir_flag_spec='-R$libdir'
10017       hardcode_shlibpath_var=no
10018       case $host_os in
10019       solaris2.[0-5] | solaris2.[0-5].*) ;;
10020       *)
10021         # The compiler driver will combine and reorder linker options,
10022         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10023         # but is careful enough not to reorder.
10024         # Supported since Solaris 2.6 (maybe 2.5.1?)
10025         if test "$GCC" = yes; then
10026           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10027         else
10028           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10029         fi
10030         ;;
10031       esac
10032       link_all_deplibs=yes
10033       ;;
10034
10035     sunos4*)
10036       if test "x$host_vendor" = xsequent; then
10037         # Use $CC to link under sequent, because it throws in some extra .o
10038         # files that make .init and .fini sections work.
10039         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10040       else
10041         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10042       fi
10043       hardcode_libdir_flag_spec='-L$libdir'
10044       hardcode_direct=yes
10045       hardcode_minus_L=yes
10046       hardcode_shlibpath_var=no
10047       ;;
10048
10049     sysv4)
10050       case $host_vendor in
10051         sni)
10052           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053           hardcode_direct=yes # is this really true???
10054         ;;
10055         siemens)
10056           ## LD is ld it makes a PLAMLIB
10057           ## CC just makes a GrossModule.
10058           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10059           reload_cmds='$CC -r -o $output$reload_objs'
10060           hardcode_direct=no
10061         ;;
10062         motorola)
10063           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10065         ;;
10066       esac
10067       runpath_var='LD_RUN_PATH'
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     sysv4.3*)
10072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073       hardcode_shlibpath_var=no
10074       export_dynamic_flag_spec='-Bexport'
10075       ;;
10076
10077     sysv4*MP*)
10078       if test -d /usr/nec; then
10079         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080         hardcode_shlibpath_var=no
10081         runpath_var=LD_RUN_PATH
10082         hardcode_runpath_var=yes
10083         ld_shlibs=yes
10084       fi
10085       ;;
10086
10087     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10088       no_undefined_flag='${wl}-z,text'
10089       archive_cmds_need_lc=no
10090       hardcode_shlibpath_var=no
10091       runpath_var='LD_RUN_PATH'
10092
10093       if test "$GCC" = yes; then
10094         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096       else
10097         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099       fi
10100       ;;
10101
10102     sysv5* | sco3.2v5* | sco5v6*)
10103       # Note: We can NOT use -z defs as we might desire, because we do not
10104       # link with -lc, and that would cause any symbols used from libc to
10105       # always be unresolved, which means just about no library would
10106       # ever link correctly.  If we're not using GNU ld we use -z text
10107       # though, which does catch some bad symbols but isn't as heavy-handed
10108       # as -z defs.
10109       no_undefined_flag='${wl}-z,text'
10110       allow_undefined_flag='${wl}-z,nodefs'
10111       archive_cmds_need_lc=no
10112       hardcode_shlibpath_var=no
10113       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10114       hardcode_libdir_separator=':'
10115       link_all_deplibs=yes
10116       export_dynamic_flag_spec='${wl}-Bexport'
10117       runpath_var='LD_RUN_PATH'
10118
10119       if test "$GCC" = yes; then
10120         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122       else
10123         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125       fi
10126       ;;
10127
10128     uts4*)
10129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130       hardcode_libdir_flag_spec='-L$libdir'
10131       hardcode_shlibpath_var=no
10132       ;;
10133
10134     *)
10135       ld_shlibs=no
10136       ;;
10137     esac
10138
10139     if test x$host_vendor = xsni; then
10140       case $host in
10141       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10142         export_dynamic_flag_spec='${wl}-Blargedynsym'
10143         ;;
10144       esac
10145     fi
10146   fi
10147
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10149 $as_echo "$ld_shlibs" >&6; }
10150 test "$ld_shlibs" = no && can_build_shared=no
10151
10152 with_gnu_ld=$with_gnu_ld
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168 #
10169 # Do we need to explicitly link libc?
10170 #
10171 case "x$archive_cmds_need_lc" in
10172 x|xyes)
10173   # Assume -lc should be added
10174   archive_cmds_need_lc=yes
10175
10176   if test "$enable_shared" = yes && test "$GCC" = yes; then
10177     case $archive_cmds in
10178     *'~'*)
10179       # FIXME: we may have to deal with multi-command sequences.
10180       ;;
10181     '$CC '*)
10182       # Test whether the compiler implicitly links with -lc since on some
10183       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10184       # to ld, don't add -lc before -lgcc.
10185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10186 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10187 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   $RM conftest*
10191         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192
10193         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10194   (eval $ac_compile) 2>&5
10195   ac_status=$?
10196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10197   test $ac_status = 0; } 2>conftest.err; then
10198           soname=conftest
10199           lib=conftest
10200           libobjs=conftest.$ac_objext
10201           deplibs=
10202           wl=$lt_prog_compiler_wl
10203           pic_flag=$lt_prog_compiler_pic
10204           compiler_flags=-v
10205           linker_flags=-v
10206           verstring=
10207           output_objdir=.
10208           libname=conftest
10209           lt_save_allow_undefined_flag=$allow_undefined_flag
10210           allow_undefined_flag=
10211           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10212   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10213   ac_status=$?
10214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215   test $ac_status = 0; }
10216           then
10217             lt_cv_archive_cmds_need_lc=no
10218           else
10219             lt_cv_archive_cmds_need_lc=yes
10220           fi
10221           allow_undefined_flag=$lt_save_allow_undefined_flag
10222         else
10223           cat conftest.err 1>&5
10224         fi
10225         $RM conftest*
10226
10227 fi
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10229 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10230       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10231       ;;
10232     esac
10233   fi
10234   ;;
10235 esac
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10394 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10395
10396 if test "$GCC" = yes; then
10397   case $host_os in
10398     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10399     *) lt_awk_arg="/^libraries:/" ;;
10400   esac
10401   case $host_os in
10402     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10403     *) lt_sed_strip_eq="s,=/,/,g" ;;
10404   esac
10405   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10406   case $lt_search_path_spec in
10407   *\;*)
10408     # if the path contains ";" then we assume it to be the separator
10409     # otherwise default to the standard path separator (i.e. ":") - it is
10410     # assumed that no part of a normal pathname contains ";" but that should
10411     # okay in the real world where ";" in dirpaths is itself problematic.
10412     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10413     ;;
10414   *)
10415     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10416     ;;
10417   esac
10418   # Ok, now we have the path, separated by spaces, we can step through it
10419   # and add multilib dir if necessary.
10420   lt_tmp_lt_search_path_spec=
10421   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10422   for lt_sys_path in $lt_search_path_spec; do
10423     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10424       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10425     else
10426       test -d "$lt_sys_path" && \
10427         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10428     fi
10429   done
10430   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10431 BEGIN {RS=" "; FS="/|\n";} {
10432   lt_foo="";
10433   lt_count=0;
10434   for (lt_i = NF; lt_i > 0; lt_i--) {
10435     if ($lt_i != "" && $lt_i != ".") {
10436       if ($lt_i == "..") {
10437         lt_count++;
10438       } else {
10439         if (lt_count == 0) {
10440           lt_foo="/" $lt_i lt_foo;
10441         } else {
10442           lt_count--;
10443         }
10444       }
10445     }
10446   }
10447   if (lt_foo != "") { lt_freq[lt_foo]++; }
10448   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10449 }'`
10450   # AWK program above erroneously prepends '/' to C:/dos/paths
10451   # for these hosts.
10452   case $host_os in
10453     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10454       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10455   esac
10456   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10457 else
10458   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10459 fi
10460 library_names_spec=
10461 libname_spec='lib$name'
10462 soname_spec=
10463 shrext_cmds=".so"
10464 postinstall_cmds=
10465 postuninstall_cmds=
10466 finish_cmds=
10467 finish_eval=
10468 shlibpath_var=
10469 shlibpath_overrides_runpath=unknown
10470 version_type=none
10471 dynamic_linker="$host_os ld.so"
10472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10473 need_lib_prefix=unknown
10474 hardcode_into_libs=no
10475
10476 # when you set need_version to no, make sure it does not cause -set_version
10477 # flags to be left without arguments
10478 need_version=unknown
10479
10480 case $host_os in
10481 aix3*)
10482   version_type=linux
10483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10484   shlibpath_var=LIBPATH
10485
10486   # AIX 3 has no versioning support, so we append a major version to the name.
10487   soname_spec='${libname}${release}${shared_ext}$major'
10488   ;;
10489
10490 aix[4-9]*)
10491   version_type=linux
10492   need_lib_prefix=no
10493   need_version=no
10494   hardcode_into_libs=yes
10495   if test "$host_cpu" = ia64; then
10496     # AIX 5 supports IA64
10497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10498     shlibpath_var=LD_LIBRARY_PATH
10499   else
10500     # With GCC up to 2.95.x, collect2 would create an import file
10501     # for dependence libraries.  The import file would start with
10502     # the line `#! .'.  This would cause the generated library to
10503     # depend on `.', always an invalid library.  This was fixed in
10504     # development snapshots of GCC prior to 3.0.
10505     case $host_os in
10506       aix4 | aix4.[01] | aix4.[01].*)
10507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10508            echo ' yes '
10509            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10510         :
10511       else
10512         can_build_shared=no
10513       fi
10514       ;;
10515     esac
10516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10517     # soname into executable. Probably we can add versioning support to
10518     # collect2, so additional links can be useful in future.
10519     if test "$aix_use_runtimelinking" = yes; then
10520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10521       # instead of lib<name>.a to let people know that these are not
10522       # typical AIX shared libraries.
10523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524     else
10525       # We preserve .a as extension for shared libraries through AIX4.2
10526       # and later when we are not doing run time linking.
10527       library_names_spec='${libname}${release}.a $libname.a'
10528       soname_spec='${libname}${release}${shared_ext}$major'
10529     fi
10530     shlibpath_var=LIBPATH
10531   fi
10532   ;;
10533
10534 amigaos*)
10535   case $host_cpu in
10536   powerpc)
10537     # Since July 2007 AmigaOS4 officially supports .so libraries.
10538     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540     ;;
10541   m68k)
10542     library_names_spec='$libname.ixlibrary $libname.a'
10543     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10544     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'
10545     ;;
10546   esac
10547   ;;
10548
10549 beos*)
10550   library_names_spec='${libname}${shared_ext}'
10551   dynamic_linker="$host_os ld.so"
10552   shlibpath_var=LIBRARY_PATH
10553   ;;
10554
10555 bsdi[45]*)
10556   version_type=linux
10557   need_version=no
10558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559   soname_spec='${libname}${release}${shared_ext}$major'
10560   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10561   shlibpath_var=LD_LIBRARY_PATH
10562   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10563   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10564   # the default ld.so.conf also contains /usr/contrib/lib and
10565   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10566   # libtool to hard-code these into programs
10567   ;;
10568
10569 cygwin* | mingw* | pw32* | cegcc*)
10570   version_type=windows
10571   shrext_cmds=".dll"
10572   need_version=no
10573   need_lib_prefix=no
10574
10575   case $GCC,$host_os in
10576   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10577     library_names_spec='$libname.dll.a'
10578     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10579     postinstall_cmds='base_file=`basename \${file}`~
10580       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10581       dldir=$destdir/`dirname \$dlpath`~
10582       test -d \$dldir || mkdir -p \$dldir~
10583       $install_prog $dir/$dlname \$dldir/$dlname~
10584       chmod a+x \$dldir/$dlname~
10585       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10586         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10587       fi'
10588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10589       dlpath=$dir/\$dldll~
10590        $RM \$dlpath'
10591     shlibpath_overrides_runpath=yes
10592
10593     case $host_os in
10594     cygwin*)
10595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597
10598       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10599       ;;
10600     mingw* | cegcc*)
10601       # MinGW DLLs use traditional 'lib' prefix
10602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603       ;;
10604     pw32*)
10605       # pw32 DLLs use 'pw' prefix rather than 'lib'
10606       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607       ;;
10608     esac
10609     ;;
10610
10611   *)
10612     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10613     ;;
10614   esac
10615   dynamic_linker='Win32 ld.exe'
10616   # FIXME: first we should search . and the directory the executable is in
10617   shlibpath_var=PATH
10618   ;;
10619
10620 darwin* | rhapsody*)
10621   dynamic_linker="$host_os dyld"
10622   version_type=darwin
10623   need_lib_prefix=no
10624   need_version=no
10625   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10626   soname_spec='${libname}${release}${major}$shared_ext'
10627   shlibpath_overrides_runpath=yes
10628   shlibpath_var=DYLD_LIBRARY_PATH
10629   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10630
10631   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10632   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10633   ;;
10634
10635 dgux*)
10636   version_type=linux
10637   need_lib_prefix=no
10638   need_version=no
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10640   soname_spec='${libname}${release}${shared_ext}$major'
10641   shlibpath_var=LD_LIBRARY_PATH
10642   ;;
10643
10644 freebsd* | dragonfly*)
10645   # DragonFly does not have aout.  When/if they implement a new
10646   # versioning mechanism, adjust this.
10647   if test -x /usr/bin/objformat; then
10648     objformat=`/usr/bin/objformat`
10649   else
10650     case $host_os in
10651     freebsd[23].*) objformat=aout ;;
10652     *) objformat=elf ;;
10653     esac
10654   fi
10655   version_type=freebsd-$objformat
10656   case $version_type in
10657     freebsd-elf*)
10658       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659       need_version=no
10660       need_lib_prefix=no
10661       ;;
10662     freebsd-*)
10663       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10664       need_version=yes
10665       ;;
10666   esac
10667   shlibpath_var=LD_LIBRARY_PATH
10668   case $host_os in
10669   freebsd2.*)
10670     shlibpath_overrides_runpath=yes
10671     ;;
10672   freebsd3.[01]* | freebsdelf3.[01]*)
10673     shlibpath_overrides_runpath=yes
10674     hardcode_into_libs=yes
10675     ;;
10676   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10677   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10678     shlibpath_overrides_runpath=no
10679     hardcode_into_libs=yes
10680     ;;
10681   *) # from 4.6 on, and DragonFly
10682     shlibpath_overrides_runpath=yes
10683     hardcode_into_libs=yes
10684     ;;
10685   esac
10686   ;;
10687
10688 gnu*)
10689   version_type=linux
10690   need_lib_prefix=no
10691   need_version=no
10692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693   soname_spec='${libname}${release}${shared_ext}$major'
10694   shlibpath_var=LD_LIBRARY_PATH
10695   hardcode_into_libs=yes
10696   ;;
10697
10698 haiku*)
10699   version_type=linux
10700   need_lib_prefix=no
10701   need_version=no
10702   dynamic_linker="$host_os runtime_loader"
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10704   soname_spec='${libname}${release}${shared_ext}$major'
10705   shlibpath_var=LIBRARY_PATH
10706   shlibpath_overrides_runpath=yes
10707   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10708   hardcode_into_libs=yes
10709   ;;
10710
10711 hpux9* | hpux10* | hpux11*)
10712   # Give a soname corresponding to the major version so that dld.sl refuses to
10713   # link against other versions.
10714   version_type=sunos
10715   need_lib_prefix=no
10716   need_version=no
10717   case $host_cpu in
10718   ia64*)
10719     shrext_cmds='.so'
10720     hardcode_into_libs=yes
10721     dynamic_linker="$host_os dld.so"
10722     shlibpath_var=LD_LIBRARY_PATH
10723     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725     soname_spec='${libname}${release}${shared_ext}$major'
10726     if test "X$HPUX_IA64_MODE" = X32; then
10727       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10728     else
10729       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10730     fi
10731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732     ;;
10733   hppa*64*)
10734     shrext_cmds='.sl'
10735     hardcode_into_libs=yes
10736     dynamic_linker="$host_os dld.sl"
10737     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10738     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740     soname_spec='${libname}${release}${shared_ext}$major'
10741     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10742     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10743     ;;
10744   *)
10745     shrext_cmds='.sl'
10746     dynamic_linker="$host_os dld.sl"
10747     shlibpath_var=SHLIB_PATH
10748     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750     soname_spec='${libname}${release}${shared_ext}$major'
10751     ;;
10752   esac
10753   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10754   postinstall_cmds='chmod 555 $lib'
10755   # or fails outright, so override atomically:
10756   install_override_mode=555
10757   ;;
10758
10759 interix[3-9]*)
10760   version_type=linux
10761   need_lib_prefix=no
10762   need_version=no
10763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10764   soname_spec='${libname}${release}${shared_ext}$major'
10765   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10766   shlibpath_var=LD_LIBRARY_PATH
10767   shlibpath_overrides_runpath=no
10768   hardcode_into_libs=yes
10769   ;;
10770
10771 irix5* | irix6* | nonstopux*)
10772   case $host_os in
10773     nonstopux*) version_type=nonstopux ;;
10774     *)
10775         if test "$lt_cv_prog_gnu_ld" = yes; then
10776                 version_type=linux
10777         else
10778                 version_type=irix
10779         fi ;;
10780   esac
10781   need_lib_prefix=no
10782   need_version=no
10783   soname_spec='${libname}${release}${shared_ext}$major'
10784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10785   case $host_os in
10786   irix5* | nonstopux*)
10787     libsuff= shlibsuff=
10788     ;;
10789   *)
10790     case $LD in # libtool.m4 will add one of these switches to LD
10791     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10792       libsuff= shlibsuff= libmagic=32-bit;;
10793     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10794       libsuff=32 shlibsuff=N32 libmagic=N32;;
10795     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10796       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10797     *) libsuff= shlibsuff= libmagic=never-match;;
10798     esac
10799     ;;
10800   esac
10801   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10802   shlibpath_overrides_runpath=no
10803   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10804   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10805   hardcode_into_libs=yes
10806   ;;
10807
10808 # No shared lib support for Linux oldld, aout, or coff.
10809 linux*oldld* | linux*aout* | linux*coff*)
10810   dynamic_linker=no
10811   ;;
10812
10813 # This must be Linux ELF.
10814
10815 # uclinux* changes (here and below) have been submitted to the libtool
10816 # project, but have not yet been accepted: they are GCC-local changes
10817 # for the time being.  (See
10818 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10819 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10820   version_type=linux
10821   need_lib_prefix=no
10822   need_version=no
10823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824   soname_spec='${libname}${release}${shared_ext}$major'
10825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   shlibpath_overrides_runpath=no
10828
10829   # Some binutils ld are patched to set DT_RUNPATH
10830   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   lt_cv_shlibpath_overrides_runpath=no
10834     save_LDFLAGS=$LDFLAGS
10835     save_libdir=$libdir
10836     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10837          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h.  */
10840
10841 int
10842 main ()
10843 {
10844
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10851   lt_cv_shlibpath_overrides_runpath=yes
10852 fi
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855     conftest$ac_exeext conftest.$ac_ext
10856     LDFLAGS=$save_LDFLAGS
10857     libdir=$save_libdir
10858
10859 fi
10860
10861   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10862
10863   # This implies no fast_install, which is unacceptable.
10864   # Some rework will be needed to allow for fast_install
10865   # before this can be enabled.
10866   hardcode_into_libs=yes
10867
10868   # Append ld.so.conf contents to the search path
10869   if test -f /etc/ld.so.conf; then
10870     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' ' '`
10871     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10872   fi
10873
10874   # We used to test for /lib/ld.so.1 and disable shared libraries on
10875   # powerpc, because MkLinux only supported shared libraries with the
10876   # GNU dynamic linker.  Since this was broken with cross compilers,
10877   # most powerpc-linux boxes support dynamic linking these days and
10878   # people can always --disable-shared, the test was removed, and we
10879   # assume the GNU/Linux dynamic linker is in use.
10880   dynamic_linker='GNU/Linux ld.so'
10881   ;;
10882
10883 netbsd*)
10884   version_type=sunos
10885   need_lib_prefix=no
10886   need_version=no
10887   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890     dynamic_linker='NetBSD (a.out) ld.so'
10891   else
10892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893     soname_spec='${libname}${release}${shared_ext}$major'
10894     dynamic_linker='NetBSD ld.elf_so'
10895   fi
10896   shlibpath_var=LD_LIBRARY_PATH
10897   shlibpath_overrides_runpath=yes
10898   hardcode_into_libs=yes
10899   ;;
10900
10901 newsos6)
10902   version_type=linux
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904   shlibpath_var=LD_LIBRARY_PATH
10905   shlibpath_overrides_runpath=yes
10906   ;;
10907
10908 *nto* | *qnx*)
10909   version_type=qnx
10910   need_lib_prefix=no
10911   need_version=no
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913   soname_spec='${libname}${release}${shared_ext}$major'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   shlibpath_overrides_runpath=no
10916   hardcode_into_libs=yes
10917   dynamic_linker='ldqnx.so'
10918   ;;
10919
10920 openbsd*)
10921   version_type=sunos
10922   sys_lib_dlsearch_path_spec="/usr/lib"
10923   need_lib_prefix=no
10924   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10925   case $host_os in
10926     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10927     *)                          need_version=no  ;;
10928   esac
10929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10933     case $host_os in
10934       openbsd2.[89] | openbsd2.[89].*)
10935         shlibpath_overrides_runpath=no
10936         ;;
10937       *)
10938         shlibpath_overrides_runpath=yes
10939         ;;
10940       esac
10941   else
10942     shlibpath_overrides_runpath=yes
10943   fi
10944   ;;
10945
10946 os2*)
10947   libname_spec='$name'
10948   shrext_cmds=".dll"
10949   need_lib_prefix=no
10950   library_names_spec='$libname${shared_ext} $libname.a'
10951   dynamic_linker='OS/2 ld.exe'
10952   shlibpath_var=LIBPATH
10953   ;;
10954
10955 osf3* | osf4* | osf5*)
10956   version_type=osf
10957   need_lib_prefix=no
10958   need_version=no
10959   soname_spec='${libname}${release}${shared_ext}$major'
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10963   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10964   ;;
10965
10966 rdos*)
10967   dynamic_linker=no
10968   ;;
10969
10970 solaris*)
10971   version_type=linux
10972   need_lib_prefix=no
10973   need_version=no
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=yes
10978   hardcode_into_libs=yes
10979   # ldd complains unless libraries are executable
10980   postinstall_cmds='chmod +x $lib'
10981   ;;
10982
10983 sunos4*)
10984   version_type=sunos
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10987   shlibpath_var=LD_LIBRARY_PATH
10988   shlibpath_overrides_runpath=yes
10989   if test "$with_gnu_ld" = yes; then
10990     need_lib_prefix=no
10991   fi
10992   need_version=yes
10993   ;;
10994
10995 sysv4 | sysv4.3*)
10996   version_type=linux
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998   soname_spec='${libname}${release}${shared_ext}$major'
10999   shlibpath_var=LD_LIBRARY_PATH
11000   case $host_vendor in
11001     sni)
11002       shlibpath_overrides_runpath=no
11003       need_lib_prefix=no
11004       runpath_var=LD_RUN_PATH
11005       ;;
11006     siemens)
11007       need_lib_prefix=no
11008       ;;
11009     motorola)
11010       need_lib_prefix=no
11011       need_version=no
11012       shlibpath_overrides_runpath=no
11013       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11014       ;;
11015   esac
11016   ;;
11017
11018 sysv4*MP*)
11019   if test -d /usr/nec ;then
11020     version_type=linux
11021     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11022     soname_spec='$libname${shared_ext}.$major'
11023     shlibpath_var=LD_LIBRARY_PATH
11024   fi
11025   ;;
11026
11027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11028   version_type=freebsd-elf
11029   need_lib_prefix=no
11030   need_version=no
11031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11032   soname_spec='${libname}${release}${shared_ext}$major'
11033   shlibpath_var=LD_LIBRARY_PATH
11034   shlibpath_overrides_runpath=yes
11035   hardcode_into_libs=yes
11036   if test "$with_gnu_ld" = yes; then
11037     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11038   else
11039     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040     case $host_os in
11041       sco3.2v5*)
11042         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11043         ;;
11044     esac
11045   fi
11046   sys_lib_dlsearch_path_spec='/usr/lib'
11047   ;;
11048
11049 tpf*)
11050   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11051   version_type=linux
11052   need_lib_prefix=no
11053   need_version=no
11054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055   shlibpath_var=LD_LIBRARY_PATH
11056   shlibpath_overrides_runpath=no
11057   hardcode_into_libs=yes
11058   ;;
11059
11060 uts4*)
11061   version_type=linux
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   shlibpath_var=LD_LIBRARY_PATH
11065   ;;
11066
11067 *)
11068   dynamic_linker=no
11069   ;;
11070 esac
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11072 $as_echo "$dynamic_linker" >&6; }
11073 test "$dynamic_linker" = no && can_build_shared=no
11074
11075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11076 if test "$GCC" = yes; then
11077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078 fi
11079
11080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11081   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11082 fi
11083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11084   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11085 fi
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11180 hardcode_action=
11181 if test -n "$hardcode_libdir_flag_spec" ||
11182    test -n "$runpath_var" ||
11183    test "X$hardcode_automatic" = "Xyes" ; then
11184
11185   # We can hardcode non-existent directories.
11186   if test "$hardcode_direct" != no &&
11187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11188      # have to relink, otherwise we might link with an installed library
11189      # when we should be linking with a yet-to-be-installed one
11190      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11191      test "$hardcode_minus_L" != no; then
11192     # Linking always hardcodes the temporary library directory.
11193     hardcode_action=relink
11194   else
11195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11196     hardcode_action=immediate
11197   fi
11198 else
11199   # We cannot hardcode anything, or else we can only hardcode existing
11200   # directories.
11201   hardcode_action=unsupported
11202 fi
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11204 $as_echo "$hardcode_action" >&6; }
11205
11206 if test "$hardcode_action" = relink ||
11207    test "$inherit_rpath" = yes; then
11208   # Fast installation is not supported
11209   enable_fast_install=no
11210 elif test "$shlibpath_overrides_runpath" = yes ||
11211      test "$enable_shared" = no; then
11212   # Fast installation is not necessary
11213   enable_fast_install=needless
11214 fi
11215
11216
11217
11218
11219
11220
11221   if test "x$enable_dlopen" != xyes; then
11222   enable_dlopen=unknown
11223   enable_dlopen_self=unknown
11224   enable_dlopen_self_static=unknown
11225 else
11226   lt_cv_dlopen=no
11227   lt_cv_dlopen_libs=
11228
11229   case $host_os in
11230   beos*)
11231     lt_cv_dlopen="load_add_on"
11232     lt_cv_dlopen_libs=
11233     lt_cv_dlopen_self=yes
11234     ;;
11235
11236   mingw* | pw32* | cegcc*)
11237     lt_cv_dlopen="LoadLibrary"
11238     lt_cv_dlopen_libs=
11239     ;;
11240
11241   cygwin*)
11242     lt_cv_dlopen="dlopen"
11243     lt_cv_dlopen_libs=
11244     ;;
11245
11246   darwin*)
11247   # if libdl is installed we need to link against it
11248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11250 if ${ac_cv_lib_dl_dlopen+:} false; then :
11251   $as_echo_n "(cached) " >&6
11252 else
11253   ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-ldl  $LIBS"
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h.  */
11257
11258 /* Override any GCC internal prototype to avoid an error.
11259    Use char because int might match the return type of a GCC
11260    builtin and then its argument prototype would still apply.  */
11261 #ifdef __cplusplus
11262 extern "C"
11263 #endif
11264 char dlopen ();
11265 int
11266 main ()
11267 {
11268 return dlopen ();
11269   ;
11270   return 0;
11271 }
11272 _ACEOF
11273 if ac_fn_c_try_link "$LINENO"; then :
11274   ac_cv_lib_dl_dlopen=yes
11275 else
11276   ac_cv_lib_dl_dlopen=no
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext \
11279     conftest$ac_exeext conftest.$ac_ext
11280 LIBS=$ac_check_lib_save_LIBS
11281 fi
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11284 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286 else
11287
11288     lt_cv_dlopen="dyld"
11289     lt_cv_dlopen_libs=
11290     lt_cv_dlopen_self=yes
11291
11292 fi
11293
11294     ;;
11295
11296   *)
11297     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11298 if test "x$ac_cv_func_shl_load" = xyes; then :
11299   lt_cv_dlopen="shl_load"
11300 else
11301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11303 if ${ac_cv_lib_dld_shl_load+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-ldld  $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h.  */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312    Use char because int might match the return type of a GCC
11313    builtin and then its argument prototype would still apply.  */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char shl_load ();
11318 int
11319 main ()
11320 {
11321 return shl_load ();
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327   ac_cv_lib_dld_shl_load=yes
11328 else
11329   ac_cv_lib_dld_shl_load=no
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext \
11332     conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11337 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11338   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11339 else
11340   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11341 if test "x$ac_cv_func_dlopen" = xyes; then :
11342   lt_cv_dlopen="dlopen"
11343 else
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11346 if ${ac_cv_lib_dl_dlopen+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349   ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-ldl  $LIBS"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h.  */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355    Use char because int might match the return type of a GCC
11356    builtin and then its argument prototype would still apply.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char dlopen ();
11361 int
11362 main ()
11363 {
11364 return dlopen ();
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370   ac_cv_lib_dl_dlopen=yes
11371 else
11372   ac_cv_lib_dl_dlopen=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375     conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11382 else
11383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11385 if ${ac_cv_lib_svld_dlopen+:} false; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-lsvld  $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h.  */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394    Use char because int might match the return type of a GCC
11395    builtin and then its argument prototype would still apply.  */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11400 int
11401 main ()
11402 {
11403 return dlopen ();
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409   ac_cv_lib_svld_dlopen=yes
11410 else
11411   ac_cv_lib_svld_dlopen=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414     conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11419 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11420   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11421 else
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11424 if ${ac_cv_lib_dld_dld_link+:} false; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-ldld  $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h.  */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433    Use char because int might match the return type of a GCC
11434    builtin and then its argument prototype would still apply.  */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dld_link ();
11439 int
11440 main ()
11441 {
11442 return dld_link ();
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448   ac_cv_lib_dld_dld_link=yes
11449 else
11450   ac_cv_lib_dld_dld_link=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453     conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11458 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11459   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11460 fi
11461
11462
11463 fi
11464
11465
11466 fi
11467
11468
11469 fi
11470
11471
11472 fi
11473
11474
11475 fi
11476
11477     ;;
11478   esac
11479
11480   if test "x$lt_cv_dlopen" != xno; then
11481     enable_dlopen=yes
11482   else
11483     enable_dlopen=no
11484   fi
11485
11486   case $lt_cv_dlopen in
11487   dlopen)
11488     save_CPPFLAGS="$CPPFLAGS"
11489     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11490
11491     save_LDFLAGS="$LDFLAGS"
11492     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11493
11494     save_LIBS="$LIBS"
11495     LIBS="$lt_cv_dlopen_libs $LIBS"
11496
11497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11499 if ${lt_cv_dlopen_self+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502           if test "$cross_compiling" = yes; then :
11503   lt_cv_dlopen_self=cross
11504 else
11505   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11506   lt_status=$lt_dlunknown
11507   cat > conftest.$ac_ext <<_LT_EOF
11508 #line 11508 "configure"
11509 #include "confdefs.h"
11510
11511 #if HAVE_DLFCN_H
11512 #include <dlfcn.h>
11513 #endif
11514
11515 #include <stdio.h>
11516
11517 #ifdef RTLD_GLOBAL
11518 #  define LT_DLGLOBAL           RTLD_GLOBAL
11519 #else
11520 #  ifdef DL_GLOBAL
11521 #    define LT_DLGLOBAL         DL_GLOBAL
11522 #  else
11523 #    define LT_DLGLOBAL         0
11524 #  endif
11525 #endif
11526
11527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11528    find out it does not work in some platform. */
11529 #ifndef LT_DLLAZY_OR_NOW
11530 #  ifdef RTLD_LAZY
11531 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11532 #  else
11533 #    ifdef DL_LAZY
11534 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11535 #    else
11536 #      ifdef RTLD_NOW
11537 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11538 #      else
11539 #        ifdef DL_NOW
11540 #          define LT_DLLAZY_OR_NOW      DL_NOW
11541 #        else
11542 #          define LT_DLLAZY_OR_NOW      0
11543 #        endif
11544 #      endif
11545 #    endif
11546 #  endif
11547 #endif
11548
11549 /* When -fvisbility=hidden is used, assume the code has been annotated
11550    correspondingly for the symbols needed.  */
11551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11552 void fnord () __attribute__((visibility("default")));
11553 #endif
11554
11555 void fnord () { int i=42; }
11556 int main ()
11557 {
11558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559   int status = $lt_dlunknown;
11560
11561   if (self)
11562     {
11563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11564       else
11565         {
11566           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11567           else puts (dlerror ());
11568         }
11569       /* dlclose (self); */
11570     }
11571   else
11572     puts (dlerror ());
11573
11574   return status;
11575 }
11576 _LT_EOF
11577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11578   (eval $ac_link) 2>&5
11579   ac_status=$?
11580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11582     (./conftest; exit; ) >&5 2>/dev/null
11583     lt_status=$?
11584     case x$lt_status in
11585       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11586       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11587       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11588     esac
11589   else :
11590     # compilation failed
11591     lt_cv_dlopen_self=no
11592   fi
11593 fi
11594 rm -fr conftest*
11595
11596
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11599 $as_echo "$lt_cv_dlopen_self" >&6; }
11600
11601     if test "x$lt_cv_dlopen_self" = xyes; then
11602       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11603       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11604 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11605 if ${lt_cv_dlopen_self_static+:} false; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608           if test "$cross_compiling" = yes; then :
11609   lt_cv_dlopen_self_static=cross
11610 else
11611   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612   lt_status=$lt_dlunknown
11613   cat > conftest.$ac_ext <<_LT_EOF
11614 #line 11614 "configure"
11615 #include "confdefs.h"
11616
11617 #if HAVE_DLFCN_H
11618 #include <dlfcn.h>
11619 #endif
11620
11621 #include <stdio.h>
11622
11623 #ifdef RTLD_GLOBAL
11624 #  define LT_DLGLOBAL           RTLD_GLOBAL
11625 #else
11626 #  ifdef DL_GLOBAL
11627 #    define LT_DLGLOBAL         DL_GLOBAL
11628 #  else
11629 #    define LT_DLGLOBAL         0
11630 #  endif
11631 #endif
11632
11633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634    find out it does not work in some platform. */
11635 #ifndef LT_DLLAZY_OR_NOW
11636 #  ifdef RTLD_LAZY
11637 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11638 #  else
11639 #    ifdef DL_LAZY
11640 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11641 #    else
11642 #      ifdef RTLD_NOW
11643 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11644 #      else
11645 #        ifdef DL_NOW
11646 #          define LT_DLLAZY_OR_NOW      DL_NOW
11647 #        else
11648 #          define LT_DLLAZY_OR_NOW      0
11649 #        endif
11650 #      endif
11651 #    endif
11652 #  endif
11653 #endif
11654
11655 /* When -fvisbility=hidden is used, assume the code has been annotated
11656    correspondingly for the symbols needed.  */
11657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11658 void fnord () __attribute__((visibility("default")));
11659 #endif
11660
11661 void fnord () { int i=42; }
11662 int main ()
11663 {
11664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11665   int status = $lt_dlunknown;
11666
11667   if (self)
11668     {
11669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11670       else
11671         {
11672           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11673           else puts (dlerror ());
11674         }
11675       /* dlclose (self); */
11676     }
11677   else
11678     puts (dlerror ());
11679
11680   return status;
11681 }
11682 _LT_EOF
11683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684   (eval $ac_link) 2>&5
11685   ac_status=$?
11686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688     (./conftest; exit; ) >&5 2>/dev/null
11689     lt_status=$?
11690     case x$lt_status in
11691       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11692       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11693       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694     esac
11695   else :
11696     # compilation failed
11697     lt_cv_dlopen_self_static=no
11698   fi
11699 fi
11700 rm -fr conftest*
11701
11702
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706     fi
11707
11708     CPPFLAGS="$save_CPPFLAGS"
11709     LDFLAGS="$save_LDFLAGS"
11710     LIBS="$save_LIBS"
11711     ;;
11712   esac
11713
11714   case $lt_cv_dlopen_self in
11715   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11716   *) enable_dlopen_self=unknown ;;
11717   esac
11718
11719   case $lt_cv_dlopen_self_static in
11720   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11721   *) enable_dlopen_self_static=unknown ;;
11722   esac
11723 fi
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741 striplib=
11742 old_striplib=
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11746   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11747   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749 $as_echo "yes" >&6; }
11750 else
11751 # FIXME - insert some real tests, host_os isn't really good enough
11752   case $host_os in
11753   darwin*)
11754     if test -n "$STRIP" ; then
11755       striplib="$STRIP -x"
11756       old_striplib="$STRIP -S"
11757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759     else
11760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11762     fi
11763     ;;
11764   *)
11765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767     ;;
11768   esac
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782   # Report which library types will actually be built
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786 $as_echo "$can_build_shared" >&6; }
11787
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789 $as_echo_n "checking whether to build shared libraries... " >&6; }
11790   test "$can_build_shared" = "no" && enable_shared=no
11791
11792   # On AIX, shared libraries and static libraries use the same namespace, and
11793   # are all built from PIC.
11794   case $host_os in
11795   aix3*)
11796     test "$enable_shared" = yes && enable_static=no
11797     if test -n "$RANLIB"; then
11798       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799       postinstall_cmds='$RANLIB $lib'
11800     fi
11801     ;;
11802
11803   aix[4-9]*)
11804     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805       test "$enable_shared" = yes && enable_static=no
11806     fi
11807     ;;
11808   esac
11809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810 $as_echo "$enable_shared" >&6; }
11811
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813 $as_echo_n "checking whether to build static libraries... " >&6; }
11814   # Make sure either enable_shared or enable_static is yes.
11815   test "$enable_shared" = yes || enable_static=yes
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817 $as_echo "$enable_static" >&6; }
11818
11819
11820
11821
11822 fi
11823 ac_ext=c
11824 ac_cpp='$CPP $CPPFLAGS'
11825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829 CC="$lt_save_CC"
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843         ac_config_commands="$ac_config_commands libtool"
11844
11845
11846
11847
11848 # Only expand once:
11849
11850
11851
11852
11853 # Check whether --enable-largefile was given.
11854 if test "${enable_largefile+set}" = set; then :
11855   enableval=$enable_largefile;
11856 fi
11857
11858 if test "$enable_largefile" != no; then
11859
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11862 if ${ac_cv_sys_largefile_CC+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   ac_cv_sys_largefile_CC=no
11866      if test "$GCC" != yes; then
11867        ac_save_CC=$CC
11868        while :; do
11869          # IRIX 6.2 and later do not support large files by default,
11870          # so use the C compiler's -n32 option if that helps.
11871          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h.  */
11873 #include <sys/types.h>
11874  /* Check that off_t can represent 2**63 - 1 correctly.
11875     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11876     since some C++ compilers masquerading as C compilers
11877     incorrectly reject 9223372036854775807.  */
11878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11879   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11880                        && LARGE_OFF_T % 2147483647 == 1)
11881                       ? 1 : -1];
11882 int
11883 main ()
11884 {
11885
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890          if ac_fn_c_try_compile "$LINENO"; then :
11891   break
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext
11894          CC="$CC -n32"
11895          if ac_fn_c_try_compile "$LINENO"; then :
11896   ac_cv_sys_largefile_CC=' -n32'; break
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext
11899          break
11900        done
11901        CC=$ac_save_CC
11902        rm -f conftest.$ac_ext
11903     fi
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11907   if test "$ac_cv_sys_largefile_CC" != no; then
11908     CC=$CC$ac_cv_sys_largefile_CC
11909   fi
11910
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11913 if ${ac_cv_sys_file_offset_bits+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   while :; do
11917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h.  */
11919 #include <sys/types.h>
11920  /* Check that off_t can represent 2**63 - 1 correctly.
11921     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11922     since some C++ compilers masquerading as C compilers
11923     incorrectly reject 9223372036854775807.  */
11924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11925   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11926                        && LARGE_OFF_T % 2147483647 == 1)
11927                       ? 1 : -1];
11928 int
11929 main ()
11930 {
11931
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_compile "$LINENO"; then :
11937   ac_cv_sys_file_offset_bits=no; break
11938 fi
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11942 #define _FILE_OFFSET_BITS 64
11943 #include <sys/types.h>
11944  /* Check that off_t can represent 2**63 - 1 correctly.
11945     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11946     since some C++ compilers masquerading as C compilers
11947     incorrectly reject 9223372036854775807.  */
11948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11949   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11950                        && LARGE_OFF_T % 2147483647 == 1)
11951                       ? 1 : -1];
11952 int
11953 main ()
11954 {
11955
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961   ac_cv_sys_file_offset_bits=64; break
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964   ac_cv_sys_file_offset_bits=unknown
11965   break
11966 done
11967 fi
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11970 case $ac_cv_sys_file_offset_bits in #(
11971   no | unknown) ;;
11972   *)
11973 cat >>confdefs.h <<_ACEOF
11974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11975 _ACEOF
11976 ;;
11977 esac
11978 rm -rf conftest*
11979   if test $ac_cv_sys_file_offset_bits = unknown; then
11980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11982 if ${ac_cv_sys_large_files+:} false; then :
11983   $as_echo_n "(cached) " >&6
11984 else
11985   while :; do
11986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h.  */
11988 #include <sys/types.h>
11989  /* Check that off_t can represent 2**63 - 1 correctly.
11990     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11991     since some C++ compilers masquerading as C compilers
11992     incorrectly reject 9223372036854775807.  */
11993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11994   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11995                        && LARGE_OFF_T % 2147483647 == 1)
11996                       ? 1 : -1];
11997 int
11998 main ()
11999 {
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_compile "$LINENO"; then :
12006   ac_cv_sys_large_files=no; break
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h.  */
12011 #define _LARGE_FILES 1
12012 #include <sys/types.h>
12013  /* Check that off_t can represent 2**63 - 1 correctly.
12014     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12015     since some C++ compilers masquerading as C compilers
12016     incorrectly reject 9223372036854775807.  */
12017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12018   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12019                        && LARGE_OFF_T % 2147483647 == 1)
12020                       ? 1 : -1];
12021 int
12022 main ()
12023 {
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030   ac_cv_sys_large_files=1; break
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033   ac_cv_sys_large_files=unknown
12034   break
12035 done
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12038 $as_echo "$ac_cv_sys_large_files" >&6; }
12039 case $ac_cv_sys_large_files in #(
12040   no | unknown) ;;
12041   *)
12042 cat >>confdefs.h <<_ACEOF
12043 #define _LARGE_FILES $ac_cv_sys_large_files
12044 _ACEOF
12045 ;;
12046 esac
12047 rm -rf conftest*
12048   fi
12049
12050
12051 fi
12052
12053
12054 backtrace_supported=yes
12055
12056 if test -n "${with_target_subdir}"; then
12057   # We are compiling a GCC library.  We can assume that the unwind
12058   # library exists.
12059   BACKTRACE_FILE="backtrace.lo simple.lo"
12060 else
12061   ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12062 if test "x$ac_cv_header_unwind_h" = xyes; then :
12063   ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12064 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12065   BACKTRACE_FILE="backtrace.lo simple.lo"
12066 else
12067   BACKTRACE_FILE="nounwind.lo"
12068                     backtrace_supported=no
12069 fi
12070
12071 else
12072   BACKTRACE_FILE="nounwind.lo"
12073      backtrace_supported=no
12074 fi
12075
12076
12077 fi
12078
12079
12080 EXTRA_FLAGS=
12081 if test -n "${with_target_subdir}"; then
12082   EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12083 else
12084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12085 $as_echo_n "checking for -funwind-tables option... " >&6; }
12086 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089   CFLAGS_hold="$CFLAGS"
12090      CFLAGS="$CFLAGS -funwind-tables"
12091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093 static int f() { return 0; }
12094 int
12095 main ()
12096 {
12097 return f();
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103   libbacktrace_cv_c_unwind_tables=yes
12104 else
12105   libbacktrace_cv_c_unwind_tables=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108      CFLAGS="$CFLAGS_hold"
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12111 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12112   if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12113     EXTRA_FLAGS=-funwind-tables
12114   fi
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12116 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12117 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   CFLAGS_hold="$CFLAGS"
12121      CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12122      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124
12125 int
12126 main ()
12127 {
12128 return 0;
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134   libbacktrace_cv_c_random_seed_string=yes
12135 else
12136   libbacktrace_cv_c_random_seed_string=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139      CFLAGS="$CFLAGS_hold"
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12142 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12143   if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12144     EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12145   fi
12146 fi
12147
12148 if test -n "${with_target_subdir}"; then
12149   # Add CET specific flags is Intel CET is enabled.
12150    # Check whether --enable-cet was given.
12151 if test "${enable_cet+set}" = set; then :
12152   enableval=$enable_cet;
12153       case "$enableval" in
12154        yes|no|auto) ;;
12155        *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12156                           esac
12157
12158 else
12159   enable_cet=auto
12160 fi
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12164 $as_echo_n "checking for CET support... " >&6; }
12165
12166 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12167 case "$host" in
12168   i[34567]86-*-linux* | x86_64-*-linux*)
12169     case "$enable_cet" in
12170       auto)
12171         # Check if target supports multi-byte NOPs
12172         # and if compiler and assembler support CET insn.
12173         cet_save_CFLAGS="$CFLAGS"
12174         CFLAGS="$CFLAGS -fcf-protection"
12175         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h.  */
12177
12178 int
12179 main ()
12180 {
12181
12182 #if !defined(__SSE2__)
12183 #error target does not support multi-byte NOPs
12184 #else
12185 asm ("setssbsy");
12186 #endif
12187
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_compile "$LINENO"; then :
12193   enable_cet=yes
12194 else
12195   enable_cet=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198         CFLAGS="$cet_save_CFLAGS"
12199         ;;
12200       yes)
12201         # Check if assembler supports CET.
12202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h.  */
12204
12205 int
12206 main ()
12207 {
12208 asm ("setssbsy");
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_compile "$LINENO"; then :
12214
12215 else
12216   as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219         ;;
12220     esac
12221     ;;
12222   *)
12223     enable_cet=no
12224     ;;
12225 esac
12226 if test x$enable_cet = xyes; then
12227   CET_FLAGS="-fcf-protection -mshstk"
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229 $as_echo "yes" >&6; }
12230 else
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234
12235   EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12236 fi
12237
12238
12239 ac_ext=c
12240 ac_cpp='$CPP $CPPFLAGS'
12241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12244
12245 WARN_FLAGS=
12246 save_CFLAGS="$CFLAGS"
12247 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12248                           -Wmissing-prototypes -Wold-style-definition \
12249                           -Wmissing-format-attribute -Wcast-qual; do
12250   # Do the check with the no- prefix removed since gcc silently
12251   # accepts any -Wno-* option on purpose
12252   case $real_option in
12253     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12254     *) option=$real_option ;;
12255   esac
12256   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12257
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12259 $as_echo_n "checking whether $CC supports $option... " >&6; }
12260 if eval \${$as_acx_Woption+:} false; then :
12261   $as_echo_n "(cached) " >&6
12262 else
12263   CFLAGS="$option"
12264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h.  */
12266
12267 int
12268 main ()
12269 {
12270
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_compile "$LINENO"; then :
12276   eval "$as_acx_Woption=yes"
12277 else
12278   eval "$as_acx_Woption=no"
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281
12282 fi
12283 eval ac_res=\$$as_acx_Woption
12284                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12285 $as_echo "$ac_res" >&6; }
12286   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12287   WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12288 fi
12289   done
12290 CFLAGS="$save_CFLAGS"
12291 ac_ext=c
12292 ac_cpp='$CPP $CPPFLAGS'
12293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12296
12297
12298
12299 if test -n "${with_target_subdir}"; then
12300   WARN_FLAGS="$WARN_FLAGS -Werror"
12301 fi
12302
12303
12304
12305 if test -n "${with_target_subdir}"; then
12306
12307
12308 # Check whether --with-system-libunwind was given.
12309 if test "${with_system_libunwind+set}" = set; then :
12310   withval=$with_system_libunwind;
12311 fi
12312
12313   # If system-libunwind was not specifically set, pick a default setting.
12314   if test x$with_system_libunwind = x; then
12315     case ${target} in
12316       ia64-*-hpux*) with_system_libunwind=yes ;;
12317       *) with_system_libunwind=no ;;
12318     esac
12319   fi
12320   # Based on system-libunwind and target, do we have ipinfo?
12321   if  test x$with_system_libunwind = xyes; then
12322     case ${target} in
12323       ia64-*-*) have_unwind_getipinfo=no ;;
12324       *) have_unwind_getipinfo=yes ;;
12325     esac
12326   else
12327     # Darwin before version 9 does not have _Unwind_GetIPInfo.
12328
12329     case ${target} in
12330       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12331       *) have_unwind_getipinfo=yes ;;
12332     esac
12333
12334   fi
12335
12336   if test x$have_unwind_getipinfo = xyes; then
12337
12338 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12339
12340   fi
12341
12342 else
12343   ac_save_CFFLAGS="$CFLAGS"
12344   CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12346 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h.  */
12349 #include "unwind.h"
12350         struct _Unwind_Context *context;
12351         int ip_before_insn = 0;
12352 int
12353 main ()
12354 {
12355 return _Unwind_GetIPInfo (context, &ip_before_insn);
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_link "$LINENO"; then :
12361   have_unwind_getipinfo=yes
12362 else
12363   have_unwind_getipinfo=no
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext \
12366     conftest$ac_exeext conftest.$ac_ext
12367   CFLAGS="$ac_save_CFLAGS"
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12369 $as_echo "$have_unwind_getipinfo" >&6; }
12370   if test "$have_unwind_getipinfo" = "yes"; then
12371
12372 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12373
12374   fi
12375 fi
12376
12377 # Enable --enable-host-shared.
12378 # Check whether --enable-host-shared was given.
12379 if test "${enable_host_shared+set}" = set; then :
12380   enableval=$enable_host_shared; PIC_FLAG=-fPIC
12381 else
12382   PIC_FLAG=
12383 fi
12384
12385
12386
12387 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12388  # Check whether --enable-cet was given.
12389 if test "${enable_cet+set}" = set; then :
12390   enableval=$enable_cet;
12391       case "$enableval" in
12392        yes|no|auto) ;;
12393        *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12394                           esac
12395
12396 else
12397   enable_cet=auto
12398 fi
12399
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12402 $as_echo_n "checking for CET support... " >&6; }
12403
12404 case "$host" in
12405   i[34567]86-*-linux* | x86_64-*-linux*)
12406     may_have_cet=yes
12407     cet_save_CFLAGS="$CFLAGS"
12408     CFLAGS="$CFLAGS -fcf-protection"
12409     case "$enable_cet" in
12410       auto)
12411         # Check if target supports multi-byte NOPs
12412         # and if compiler and assembler support CET.
12413         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h.  */
12415
12416 int
12417 main ()
12418 {
12419
12420 #if !defined(__SSE2__)
12421 #error target does not support multi-byte NOPs
12422 #else
12423 asm ("setssbsy");
12424 #endif
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_compile "$LINENO"; then :
12431   enable_cet=yes
12432 else
12433   enable_cet=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436         ;;
12437       yes)
12438         # Check if compiler and assembler support CET.
12439         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h.  */
12441
12442 int
12443 main ()
12444 {
12445 asm ("setssbsy");
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451   support_cet=yes
12452 else
12453   support_cet=no
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456         if test $support_cet = "no"; then
12457           if test x$enable_bootstrap != xno \
12458              && test -z "${with_build_subdir}" \
12459              && (test ! -f ../stage_current \
12460                  || test `cat ../stage_current` != "stage1"); then
12461             # Require CET support only for the final GCC build.
12462             as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12463           else
12464             # Don't enable CET without CET support for non-bootstrap
12465             # build, in stage1 nor for build support.
12466             enable_cet=no
12467           fi
12468         fi
12469         ;;
12470     esac
12471     CFLAGS="$cet_save_CFLAGS"
12472     ;;
12473   *)
12474     may_have_cet=no
12475     enable_cet=no
12476     ;;
12477 esac
12478
12479 cet_save_CFLAGS="$CFLAGS"
12480 CFLAGS="$CFLAGS -fcf-protection=none"
12481 cet_save_LDFLAGS="$LDFLAGS"
12482 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12483 if test x$may_have_cet = xyes; then
12484   # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487
12488 int
12489 main ()
12490 {
12491 return 0;
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497   may_have_cet=yes
12498 else
12499   may_have_cet=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext \
12502     conftest$ac_exeext conftest.$ac_ext
12503 fi
12504
12505 if test x$may_have_cet = xyes; then
12506   if test x$cross_compiling = xno; then
12507     if test "$cross_compiling" = yes; then :
12508   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12510 as_fn_error $? "cannot run test program while cross compiling
12511 See \`config.log' for more details" "$LINENO" 5; }
12512 else
12513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h.  */
12515
12516 static void
12517 foo (void)
12518 {
12519 }
12520
12521 static void
12522 __attribute__ ((noinline, noclone))
12523 xxx (void (*f) (void))
12524 {
12525   f ();
12526 }
12527
12528 static void
12529 __attribute__ ((noinline, noclone))
12530 bar (void)
12531 {
12532   xxx (foo);
12533 }
12534
12535 int
12536 main ()
12537 {
12538   bar ();
12539   return 0;
12540 }
12541
12542 _ACEOF
12543 if ac_fn_c_try_run "$LINENO"; then :
12544   have_cet=no
12545 else
12546   have_cet=yes
12547 fi
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549   conftest.$ac_objext conftest.beam conftest.$ac_ext
12550 fi
12551
12552     if test x$enable_cet = xno -a x$have_cet = xyes; then
12553       as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12554     fi
12555   fi
12556 else
12557   # Enable CET in cross compiler if possible so that it will run on both
12558   # CET and non-CET hosts.
12559   have_cet=yes
12560 fi
12561 if test x$enable_cet = xyes; then
12562   CET_HOST_FLAGS="-fcf-protection"
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564 $as_echo "yes" >&6; }
12565 else
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12568 fi
12569 CFLAGS="$cet_save_CFLAGS"
12570 LDFLAGS="$cet_save_LDFLAGS"
12571
12572 case x$enable_languages in
12573 *jit*)
12574   ;;
12575 *)
12576   CET_HOST_FLAGS=
12577   ;;
12578 esac
12579
12580
12581 # Test for __sync support.
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12583 $as_echo_n "checking __sync extensions... " >&6; }
12584 if ${libbacktrace_cv_sys_sync+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587   if test -n "${with_target_subdir}"; then
12588    case "${host}" in
12589    hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12590    *) libbacktrace_cv_sys_sync=yes ;;
12591    esac
12592  else
12593    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595 int i;
12596 int
12597 main ()
12598 {
12599 __sync_bool_compare_and_swap (&i, i, i);
12600                        __sync_lock_test_and_set (&i, 1);
12601                        __sync_lock_release (&i);
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607   libbacktrace_cv_sys_sync=yes
12608 else
12609   libbacktrace_cv_sys_sync=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext conftest.$ac_ext
12613  fi
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12616 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12617 BACKTRACE_SUPPORTS_THREADS=0
12618 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12619   BACKTRACE_SUPPORTS_THREADS=1
12620
12621 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12622
12623 fi
12624
12625
12626 # Test for __atomic support.
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12628 $as_echo_n "checking __atomic extensions... " >&6; }
12629 if ${libbacktrace_cv_sys_atomic+:} false; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "${with_target_subdir}"; then
12633    libbacktrace_cv_sys_atomic=yes
12634  else
12635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637 int i;
12638 int
12639 main ()
12640 {
12641 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12642                        __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"; then :
12648   libbacktrace_cv_sys_atomic=yes
12649 else
12650   libbacktrace_cv_sys_atomic=no
12651 fi
12652 rm -f core conftest.err conftest.$ac_objext \
12653     conftest$ac_exeext conftest.$ac_ext
12654  fi
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12657 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12658 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12659
12660 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12661
12662 fi
12663
12664 # The library needs to be able to read the executable itself.  Compile
12665 # a file to determine the executable format.  The awk script
12666 # filetype.awk prints out the file type.
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12668 $as_echo_n "checking output filetype... " >&6; }
12669 if ${libbacktrace_cv_sys_filetype+:} false; then :
12670   $as_echo_n "(cached) " >&6
12671 else
12672   filetype=
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h.  */
12675 int i;
12676 int
12677 main ()
12678 {
12679 int j;
12680   ;
12681   return 0;
12682 }
12683 _ACEOF
12684 if ac_fn_c_try_compile "$LINENO"; then :
12685   filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12686 else
12687   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12689 as_fn_error $? "compiler failed
12690 See \`config.log' for more details" "$LINENO" 5; }
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 libbacktrace_cv_sys_filetype=$filetype
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12696 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12697
12698 # Match the file type to decide what files to compile.
12699 FORMAT_FILE=
12700 backtrace_supports_data=yes
12701 case "$libbacktrace_cv_sys_filetype" in
12702 elf*) FORMAT_FILE="elf.lo" ;;
12703 macho) FORMAT_FILE="macho.lo" ;;
12704 pecoff) FORMAT_FILE="pecoff.lo"
12705         backtrace_supports_data=no
12706         ;;
12707 xcoff*) FORMAT_FILE="xcoff.lo"
12708         backtrace_supports_data=no
12709         ;;
12710 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12711 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12712    FORMAT_FILE="unknown.lo"
12713    backtrace_supported=no
12714    ;;
12715 esac
12716
12717
12718 # ELF defines.
12719 elfsize=
12720 case "$libbacktrace_cv_sys_filetype" in
12721 elf32) elfsize=32 ;;
12722 elf64) elfsize=64 ;;
12723 *)     elfsize=unused
12724 esac
12725
12726 cat >>confdefs.h <<_ACEOF
12727 #define BACKTRACE_ELF_SIZE $elfsize
12728 _ACEOF
12729
12730  if test "$FORMAT_FILE" = "elf.lo"; then
12731   HAVE_ELF_TRUE=
12732   HAVE_ELF_FALSE='#'
12733 else
12734   HAVE_ELF_TRUE='#'
12735   HAVE_ELF_FALSE=
12736 fi
12737
12738
12739 # XCOFF defines.
12740 xcoffsize=
12741 case "$libbacktrace_cv_sys_filetype" in
12742 xcoff32) xcoffsize=32 ;;
12743 xcoff64) xcoffsize=64 ;;
12744 *)       xcoffsize=unused
12745 esac
12746
12747 cat >>confdefs.h <<_ACEOF
12748 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12749 _ACEOF
12750
12751
12752 BACKTRACE_SUPPORTED=0
12753 if test "$backtrace_supported" = "yes"; then
12754   BACKTRACE_SUPPORTED=1
12755 fi
12756
12757
12758 BACKTRACE_SUPPORTS_DATA=0
12759 if test "$backtrace_supports_data" = "yes"; then
12760   BACKTRACE_SUPPORTS_DATA=1
12761 fi
12762
12763
12764
12765
12766 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12767
12768 acx_cv_header_stdint=stddef.h
12769 acx_cv_header_stdint_kind="(already complete)"
12770 for i in stdint.h $inttype_headers; do
12771   unset ac_cv_type_uintptr_t
12772   unset ac_cv_type_uintmax_t
12773   unset ac_cv_type_int_least32_t
12774   unset ac_cv_type_int_fast32_t
12775   unset ac_cv_type_uint64_t
12776   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12777   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12778 #include <$i>
12779 "
12780 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12781   acx_cv_header_stdint=$i
12782 else
12783   continue
12784 fi
12785
12786   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12787 #include <$i>
12788 "
12789 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12790
12791 else
12792   acx_cv_header_stdint_kind="(mostly complete)"
12793 fi
12794
12795   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12796 #include <$i>
12797 "
12798 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12799
12800 else
12801   acx_cv_header_stdint_kind="(mostly complete)"
12802 fi
12803
12804   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12805 #include <$i>
12806 "
12807 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12808
12809 else
12810   acx_cv_header_stdint_kind="(mostly complete)"
12811 fi
12812
12813   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12814 #include <$i>
12815 "
12816 if test "x$ac_cv_type_uint64_t" = xyes; then :
12817
12818 else
12819   acx_cv_header_stdint_kind="(lacks uint64_t)"
12820 fi
12821
12822   break
12823 done
12824 if test "$acx_cv_header_stdint" = stddef.h; then
12825   acx_cv_header_stdint_kind="(lacks uintmax_t)"
12826   for i in stdint.h $inttype_headers; do
12827     unset ac_cv_type_uintptr_t
12828     unset ac_cv_type_uint32_t
12829     unset ac_cv_type_uint64_t
12830     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12831     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12832 #include <$i>
12833 "
12834 if test "x$ac_cv_type_uint32_t" = xyes; then :
12835   acx_cv_header_stdint=$i
12836 else
12837   continue
12838 fi
12839
12840     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12841 #include <$i>
12842 "
12843 if test "x$ac_cv_type_uint64_t" = xyes; then :
12844
12845 fi
12846
12847     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12848 #include <$i>
12849 "
12850 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12851
12852 fi
12853
12854     break
12855   done
12856 fi
12857 if test "$acx_cv_header_stdint" = stddef.h; then
12858   acx_cv_header_stdint_kind="(u_intXX_t style)"
12859   for i in sys/types.h $inttype_headers; do
12860     unset ac_cv_type_u_int32_t
12861     unset ac_cv_type_u_int64_t
12862     $as_echo_n "looking for u_intXX_t types in $i, " >&6
12863     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12864 #include <$i>
12865 "
12866 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12867   acx_cv_header_stdint=$i
12868 else
12869   continue
12870 fi
12871
12872     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12873 #include <$i>
12874 "
12875 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12876
12877 fi
12878
12879     break
12880   done
12881 fi
12882 if test "$acx_cv_header_stdint" = stddef.h; then
12883   acx_cv_header_stdint_kind="(using manual detection)"
12884 fi
12885
12886 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12887 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12888 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12889 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12890 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12891
12892 # ----------------- Summarize what we found so far
12893
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12895 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12896
12897 case `$as_basename -- gstdint.h ||
12898 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12899          Xgstdint.h : 'X\(//\)$' \| \
12900          Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12901 $as_echo X/gstdint.h |
12902     sed '/^.*\/\([^/][^/]*\)\/*$/{
12903             s//\1/
12904             q
12905           }
12906           /^X\/\(\/\/\)$/{
12907             s//\1/
12908             q
12909           }
12910           /^X\/\(\/\).*/{
12911             s//\1/
12912             q
12913           }
12914           s/.*/./; q'` in
12915   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12916 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12917   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12918 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12919   *) ;;
12920 esac
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12923 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12924
12925 # ----------------- done included file, check C basic types --------
12926
12927 # Lacking an uintptr_t?  Test size of void *
12928 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12929   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12932 # This bug is HP SR number 8606223364.
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12934 $as_echo_n "checking size of void *... " >&6; }
12935 if ${ac_cv_sizeof_void_p+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12939
12940 else
12941   if test "$ac_cv_type_void_p" = yes; then
12942      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12944 as_fn_error 77 "cannot compute sizeof (void *)
12945 See \`config.log' for more details" "$LINENO" 5; }
12946    else
12947      ac_cv_sizeof_void_p=0
12948    fi
12949 fi
12950
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12953 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12954
12955
12956
12957 cat >>confdefs.h <<_ACEOF
12958 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12959 _ACEOF
12960
12961  ;;
12962 esac
12963
12964 # Lacking an uint64_t?  Test size of long
12965 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12966   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12969 # This bug is HP SR number 8606223364.
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12971 $as_echo_n "checking size of long... " >&6; }
12972 if ${ac_cv_sizeof_long+:} false; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12976
12977 else
12978   if test "$ac_cv_type_long" = yes; then
12979      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12981 as_fn_error 77 "cannot compute sizeof (long)
12982 See \`config.log' for more details" "$LINENO" 5; }
12983    else
12984      ac_cv_sizeof_long=0
12985    fi
12986 fi
12987
12988 fi
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12990 $as_echo "$ac_cv_sizeof_long" >&6; }
12991
12992
12993
12994 cat >>confdefs.h <<_ACEOF
12995 #define SIZEOF_LONG $ac_cv_sizeof_long
12996 _ACEOF
12997
12998  ;;
12999 esac
13000
13001 if test $acx_cv_header_stdint = stddef.h; then
13002   # Lacking a good header?  Test size of everything and deduce all types.
13003   # The cast to long int works around a bug in the HP C Compiler
13004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13006 # This bug is HP SR number 8606223364.
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13008 $as_echo_n "checking size of int... " >&6; }
13009 if ${ac_cv_sizeof_int+:} false; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13013
13014 else
13015   if test "$ac_cv_type_int" = yes; then
13016      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13018 as_fn_error 77 "cannot compute sizeof (int)
13019 See \`config.log' for more details" "$LINENO" 5; }
13020    else
13021      ac_cv_sizeof_int=0
13022    fi
13023 fi
13024
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13027 $as_echo "$ac_cv_sizeof_int" >&6; }
13028
13029
13030
13031 cat >>confdefs.h <<_ACEOF
13032 #define SIZEOF_INT $ac_cv_sizeof_int
13033 _ACEOF
13034
13035
13036   # The cast to long int works around a bug in the HP C Compiler
13037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13039 # This bug is HP SR number 8606223364.
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13041 $as_echo_n "checking size of short... " >&6; }
13042 if ${ac_cv_sizeof_short+:} false; then :
13043   $as_echo_n "(cached) " >&6
13044 else
13045   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13046
13047 else
13048   if test "$ac_cv_type_short" = yes; then
13049      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13051 as_fn_error 77 "cannot compute sizeof (short)
13052 See \`config.log' for more details" "$LINENO" 5; }
13053    else
13054      ac_cv_sizeof_short=0
13055    fi
13056 fi
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13060 $as_echo "$ac_cv_sizeof_short" >&6; }
13061
13062
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_SHORT $ac_cv_sizeof_short
13066 _ACEOF
13067
13068
13069   # The cast to long int works around a bug in the HP C Compiler
13070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13072 # This bug is HP SR number 8606223364.
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13074 $as_echo_n "checking size of char... " >&6; }
13075 if ${ac_cv_sizeof_char+:} false; then :
13076   $as_echo_n "(cached) " >&6
13077 else
13078   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13079
13080 else
13081   if test "$ac_cv_type_char" = yes; then
13082      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13084 as_fn_error 77 "cannot compute sizeof (char)
13085 See \`config.log' for more details" "$LINENO" 5; }
13086    else
13087      ac_cv_sizeof_char=0
13088    fi
13089 fi
13090
13091 fi
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13093 $as_echo "$ac_cv_sizeof_char" >&6; }
13094
13095
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define SIZEOF_CHAR $ac_cv_sizeof_char
13099 _ACEOF
13100
13101
13102
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13104 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13105   case "$ac_cv_sizeof_char" in
13106     1) acx_cv_type_int8_t=char ;;
13107     *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13108   esac
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13110 $as_echo "$acx_cv_type_int8_t" >&6; }
13111
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13113 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13114   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13115     2:*) acx_cv_type_int16_t=int ;;
13116     *:2) acx_cv_type_int16_t=short ;;
13117     *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13118   esac
13119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13120 $as_echo "$acx_cv_type_int16_t" >&6; }
13121
13122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13123 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13124   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13125     4:*) acx_cv_type_int32_t=int ;;
13126     *:4) acx_cv_type_int32_t=long ;;
13127     *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13128   esac
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13130 $as_echo "$acx_cv_type_int32_t" >&6; }
13131 fi
13132
13133 # These tests are here to make the output prettier
13134
13135 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13136   case "$ac_cv_sizeof_long" in
13137     8) acx_cv_type_int64_t=long ;;
13138   esac
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13140 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13142 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13143 fi
13144
13145 # Now we can use the above types
13146
13147 if test "$ac_cv_type_uintptr_t" != yes; then
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13149 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13150   case $ac_cv_sizeof_void_p in
13151     2) acx_cv_type_intptr_t=int16_t ;;
13152     4) acx_cv_type_intptr_t=int32_t ;;
13153     8) acx_cv_type_intptr_t=int64_t ;;
13154     *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13155   esac
13156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13157 $as_echo "$acx_cv_type_intptr_t" >&6; }
13158 fi
13159
13160 # ----------------- done all checks, emit header -------------
13161 ac_config_commands="$ac_config_commands gstdint.h"
13162
13163
13164
13165
13166 for ac_header in sys/mman.h
13167 do :
13168   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13170   cat >>confdefs.h <<_ACEOF
13171 #define HAVE_SYS_MMAN_H 1
13172 _ACEOF
13173
13174 fi
13175
13176 done
13177
13178 if test "$ac_cv_header_sys_mman_h" = "no"; then
13179   have_mmap=no
13180 else
13181   if test -n "${with_target_subdir}"; then
13182     # When built as a GCC target library, we can't do a link test.  We
13183     # simply assume that if we have mman.h, we have mmap.
13184     have_mmap=yes
13185     case "${host}" in
13186     *-*-msdosdjgpp)
13187         # DJGPP has sys/man.h, but no mmap
13188         have_mmap=no ;;
13189     esac
13190   else
13191     ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13192 if test "x$ac_cv_func_mmap" = xyes; then :
13193   have_mmap=yes
13194 else
13195   have_mmap=no
13196 fi
13197
13198   fi
13199 fi
13200 if test "$have_mmap" = "no"; then
13201   VIEW_FILE=read.lo
13202   ALLOC_FILE=alloc.lo
13203 else
13204   VIEW_FILE=mmapio.lo
13205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207
13208 #include <sys/mman.h>
13209 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13210   #error no MAP_ANONYMOUS
13211 #endif
13212
13213 _ACEOF
13214 if ac_fn_c_try_cpp "$LINENO"; then :
13215   ALLOC_FILE=mmap.lo
13216 else
13217   ALLOC_FILE=alloc.lo
13218 fi
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13220 fi
13221
13222
13223
13224 BACKTRACE_USES_MALLOC=0
13225 if test "$ALLOC_FILE" = "alloc.lo"; then
13226   BACKTRACE_USES_MALLOC=1
13227 fi
13228
13229
13230 # Check for dl_iterate_phdr.
13231 for ac_header in link.h
13232 do :
13233   ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
13234 if test "x$ac_cv_header_link_h" = xyes; then :
13235   cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LINK_H 1
13237 _ACEOF
13238
13239 fi
13240
13241 done
13242
13243 if test "$ac_cv_header_link_h" = "no"; then
13244   have_dl_iterate_phdr=no
13245 else
13246   if test -n "${with_target_subdir}"; then
13247     # When built as a GCC target library, we can't do a link test.
13248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h.  */
13250 #include <link.h>
13251
13252 _ACEOF
13253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13254   $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13255   have_dl_iterate_phdr=yes
13256 else
13257   have_dl_iterate_phdr=no
13258 fi
13259 rm -f conftest*
13260
13261   else
13262     ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13263 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13264   have_dl_iterate_phdr=yes
13265 else
13266   have_dl_iterate_phdr=no
13267 fi
13268
13269   fi
13270 fi
13271 if test "$have_dl_iterate_phdr" = "yes"; then
13272
13273 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13274
13275 fi
13276
13277 # Check for header file for Mach-O image functions.
13278 for ac_header in mach-o/dyld.h
13279 do :
13280   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13282   cat >>confdefs.h <<_ACEOF
13283 #define HAVE_MACH_O_DYLD_H 1
13284 _ACEOF
13285
13286 fi
13287
13288 done
13289
13290
13291 # Check for loadquery.
13292 for ac_header in sys/ldr.h
13293 do :
13294   ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13295 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13296   cat >>confdefs.h <<_ACEOF
13297 #define HAVE_SYS_LDR_H 1
13298 _ACEOF
13299
13300 fi
13301
13302 done
13303
13304 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13305   have_loadquery=no
13306 else
13307   if test -n "${with_target_subdir}"; then
13308     # When built as a GCC target library, we can't do a link test.
13309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h.  */
13311 #include <sys/ldr.h>
13312
13313 _ACEOF
13314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13315   $EGREP "loadquery" >/dev/null 2>&1; then :
13316   have_loadquery=yes
13317 else
13318   have_loadquery=no
13319 fi
13320 rm -f conftest*
13321
13322   else
13323     ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13324 if test "x$ac_cv_func_loadquery" = xyes; then :
13325   have_loadquery=yes
13326 else
13327   have_loadquery=no
13328 fi
13329
13330   fi
13331 fi
13332 if test "$have_loadquery" = "yes"; then
13333
13334 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13335
13336 fi
13337
13338 # Check for the fcntl function.
13339 if test -n "${with_target_subdir}"; then
13340    case "${host}" in
13341    *-*-mingw*) have_fcntl=no ;;
13342    *) have_fcntl=yes ;;
13343    esac
13344 else
13345   ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13346 if test "x$ac_cv_func_fcntl" = xyes; then :
13347   have_fcntl=yes
13348 else
13349   have_fcntl=no
13350 fi
13351
13352 fi
13353 if test "$have_fcntl" = "yes"; then
13354
13355 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13356
13357 fi
13358
13359 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13360 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13361   ac_have_decl=1
13362 else
13363   ac_have_decl=0
13364 fi
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_DECL_STRNLEN $ac_have_decl
13368 _ACEOF
13369 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13370 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13371   ac_have_decl=1
13372 else
13373   ac_have_decl=0
13374 fi
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13378 _ACEOF
13379
13380 for ac_func in lstat readlink
13381 do :
13382   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13385   cat >>confdefs.h <<_ACEOF
13386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13387 _ACEOF
13388
13389 fi
13390 done
13391
13392
13393 # Check for getexecname function.
13394 if test -n "${with_target_subdir}"; then
13395    case "${host}" in
13396    *-*-solaris2*) have_getexecname=yes ;;
13397    *) have_getexecname=no ;;
13398    esac
13399 else
13400   ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13401 if test "x$ac_cv_func_getexecname" = xyes; then :
13402   have_getexecname=yes
13403 else
13404   have_getexecname=no
13405 fi
13406
13407 fi
13408 if test "$have_getexecname" = "yes"; then
13409
13410 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13411
13412 fi
13413
13414 # Check for sysctl definitions.
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13417 $as_echo_n "checking for KERN_PROC... " >&6; }
13418 if ${libbacktrace_cv_proc+:} false; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h.  */
13423
13424 #include <sys/types.h>
13425 #include <sys/sysctl.h>
13426
13427 int
13428 main ()
13429 {
13430 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_compile "$LINENO"; then :
13436   libbacktrace_cv_proc=yes
13437 else
13438   libbacktrace_cv_proc=no
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 fi
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13443 $as_echo "$libbacktrace_cv_proc" >&6; }
13444 if test "$libbacktrace_cv_proc" = "yes"; then
13445
13446 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13447
13448 fi
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13451 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13452 if ${libbacktrace_cv_procargs+:} false; then :
13453   $as_echo_n "(cached) " >&6
13454 else
13455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h.  */
13457
13458 #include <sys/types.h>
13459 #include <sys/sysctl.h>
13460
13461 int
13462 main ()
13463 {
13464 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 if ac_fn_c_try_compile "$LINENO"; then :
13470   libbacktrace_cv_procargs=yes
13471 else
13472   libbacktrace_cv_procargs=no
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 fi
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13477 $as_echo "$libbacktrace_cv_procargs" >&6; }
13478 if test "$libbacktrace_cv_procargs" = "yes"; then
13479
13480 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13481
13482 fi
13483
13484 # Check for the clock_gettime function.
13485 for ac_func in clock_gettime
13486 do :
13487   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13488 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13489   cat >>confdefs.h <<_ACEOF
13490 #define HAVE_CLOCK_GETTIME 1
13491 _ACEOF
13492
13493 fi
13494 done
13495
13496 clock_gettime_link=
13497 # At least for glibc, clock_gettime is in librt.  But don't
13498 # pull that in if it still doesn't give us the function we want.  This
13499 # test is copied from libgomp, and modified to not link in -lrt as
13500 # we're using this for test timing only.
13501 if test "$ac_cv_func_clock_gettime" = no; then
13502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13503 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13504 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13505   $as_echo_n "(cached) " >&6
13506 else
13507   ac_check_lib_save_LIBS=$LIBS
13508 LIBS="-lrt  $LIBS"
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h.  */
13511
13512 /* Override any GCC internal prototype to avoid an error.
13513    Use char because int might match the return type of a GCC
13514    builtin and then its argument prototype would still apply.  */
13515 #ifdef __cplusplus
13516 extern "C"
13517 #endif
13518 char clock_gettime ();
13519 int
13520 main ()
13521 {
13522 return clock_gettime ();
13523   ;
13524   return 0;
13525 }
13526 _ACEOF
13527 if ac_fn_c_try_link "$LINENO"; then :
13528   ac_cv_lib_rt_clock_gettime=yes
13529 else
13530   ac_cv_lib_rt_clock_gettime=no
13531 fi
13532 rm -f core conftest.err conftest.$ac_objext \
13533     conftest$ac_exeext conftest.$ac_ext
13534 LIBS=$ac_check_lib_save_LIBS
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13537 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13538 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13539   CLOCK_GETTIME_LINK=-lrt
13540
13541 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13542
13543 fi
13544
13545 fi
13546
13547
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13549 $as_echo_n "checking whether -pthread is supported... " >&6; }
13550 if ${libgo_cv_lib_pthread+:} false; then :
13551   $as_echo_n "(cached) " >&6
13552 else
13553   CFLAGS_hold=$CFLAGS
13554 CFLAGS="$CFLAGS -pthread"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557 int i;
13558 _ACEOF
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560   libgo_cv_lib_pthread=yes
13561 else
13562   libgo_cv_lib_pthread=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 CFLAGS=$CFLAGS_hold
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13568 $as_echo "$libgo_cv_lib_pthread" >&6; }
13569 PTHREAD_CFLAGS=
13570 if test "$libgo_cv_lib_pthread" = yes; then
13571   PTHREAD_CFLAGS=-pthread
13572 fi
13573
13574
13575  if test "$libgo_cv_lib_pthread" = yes; then
13576   HAVE_PTHREAD_TRUE=
13577   HAVE_PTHREAD_FALSE='#'
13578 else
13579   HAVE_PTHREAD_TRUE='#'
13580   HAVE_PTHREAD_FALSE=
13581 fi
13582
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13585 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13586 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   CFLAGS_hold=$CFLAGS
13590 CFLAGS="$CFLAGS -gdwarf-5"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593 int i;
13594 int
13595 main ()
13596 {
13597 return 0;
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603   libbacktrace_cv_lib_dwarf5=yes
13604 else
13605   libbacktrace_cv_lib_dwarf5=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext \
13608     conftest$ac_exeext conftest.$ac_ext
13609 CFLAGS=$CFLAGS_hold
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13612 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13613  if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13614   HAVE_DWARF5_TRUE=
13615   HAVE_DWARF5_FALSE='#'
13616 else
13617   HAVE_DWARF5_TRUE='#'
13618   HAVE_DWARF5_FALSE=
13619 fi
13620
13621
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13623 $as_echo_n "checking for compress in -lz... " >&6; }
13624 if ${ac_cv_lib_z_compress+:} false; then :
13625   $as_echo_n "(cached) " >&6
13626 else
13627   ac_check_lib_save_LIBS=$LIBS
13628 LIBS="-lz  $LIBS"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h.  */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633    Use char because int might match the return type of a GCC
13634    builtin and then its argument prototype would still apply.  */
13635 #ifdef __cplusplus
13636 extern "C"
13637 #endif
13638 char compress ();
13639 int
13640 main ()
13641 {
13642 return compress ();
13643   ;
13644   return 0;
13645 }
13646 _ACEOF
13647 if ac_fn_c_try_link "$LINENO"; then :
13648   ac_cv_lib_z_compress=yes
13649 else
13650   ac_cv_lib_z_compress=no
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext \
13653     conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13657 $as_echo "$ac_cv_lib_z_compress" >&6; }
13658 if test "x$ac_cv_lib_z_compress" = xyes; then :
13659
13660 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13661
13662 fi
13663
13664  if test "$ac_cv_lib_z_compress" = yes; then
13665   HAVE_ZLIB_TRUE=
13666   HAVE_ZLIB_FALSE='#'
13667 else
13668   HAVE_ZLIB_TRUE='#'
13669   HAVE_ZLIB_FALSE=
13670 fi
13671
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13674 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13675 if ${libgo_cv_ld_compress+:} false; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   LDFLAGS_hold=$LDFLAGS
13679 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682
13683 int
13684 main ()
13685 {
13686
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692   libgo_cv_ld_compress=yes
13693 else
13694   libgo_cv_ld_compress=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697     conftest$ac_exeext conftest.$ac_ext
13698 LDFLAGS=$LDFLAGS_hold
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13701 $as_echo "$libgo_cv_ld_compress" >&6; }
13702  if test "$libgo_cv_ld_compress" = yes; then
13703   HAVE_COMPRESSED_DEBUG_TRUE=
13704   HAVE_COMPRESSED_DEBUG_FALSE='#'
13705 else
13706   HAVE_COMPRESSED_DEBUG_TRUE='#'
13707   HAVE_COMPRESSED_DEBUG_FALSE=
13708 fi
13709
13710
13711
13712 # Extract the first word of "objcopy", so it can be a program name with args.
13713 set dummy objcopy; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if ${ac_cv_prog_OBJCOPY+:} false; then :
13717   $as_echo_n "(cached) " >&6
13718 else
13719   if test -n "$OBJCOPY"; then
13720   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13721 else
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725   IFS=$as_save_IFS
13726   test -z "$as_dir" && as_dir=.
13727     for ac_exec_ext in '' $ac_executable_extensions; do
13728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729     ac_cv_prog_OBJCOPY="objcopy"
13730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731     break 2
13732   fi
13733 done
13734   done
13735 IFS=$as_save_IFS
13736
13737 fi
13738 fi
13739 OBJCOPY=$ac_cv_prog_OBJCOPY
13740 if test -n "$OBJCOPY"; then
13741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13742 $as_echo "$OBJCOPY" >&6; }
13743 else
13744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13746 fi
13747
13748
13749 # Extract the first word of "readelf", so it can be a program name with args.
13750 set dummy readelf; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_prog_READELF+:} false; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   if test -n "$READELF"; then
13757   ac_cv_prog_READELF="$READELF" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13761 do
13762   IFS=$as_save_IFS
13763   test -z "$as_dir" && as_dir=.
13764     for ac_exec_ext in '' $ac_executable_extensions; do
13765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766     ac_cv_prog_READELF="readelf"
13767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768     break 2
13769   fi
13770 done
13771   done
13772 IFS=$as_save_IFS
13773
13774 fi
13775 fi
13776 READELF=$ac_cv_prog_READELF
13777 if test -n "$READELF"; then
13778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13779 $as_echo "$READELF" >&6; }
13780 else
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 fi
13784
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13787 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13788 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   if test -n "${with_target_subdir}"; then
13792   libbacktrace_cv_objcopy_debuglink=no
13793 elif ! test -n "${OBJCOPY}"; then
13794   libbacktrace_cv_objcopy_debuglink=no
13795 elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13796   rm -f /tmp/ls$$
13797   libbacktrace_cv_objcopy_debuglink=yes
13798 else
13799   libbacktrace_cv_objcopy_debuglink=no
13800 fi
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13803 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13804  if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13805   HAVE_OBJCOPY_DEBUGLINK_TRUE=
13806   HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13807 else
13808   HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13809   HAVE_OBJCOPY_DEBUGLINK_FALSE=
13810 fi
13811
13812
13813
13814 # Extract the first word of "dsymutil", so it can be a program name with args.
13815 set dummy dsymutil; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   if test -n "$DSYMUTIL"; then
13822   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827   IFS=$as_save_IFS
13828   test -z "$as_dir" && as_dir=.
13829     for ac_exec_ext in '' $ac_executable_extensions; do
13830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831     ac_cv_prog_DSYMUTIL="dsymutil"
13832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833     break 2
13834   fi
13835 done
13836   done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13842 if test -n "$DSYMUTIL"; then
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13844 $as_echo "$DSYMUTIL" >&6; }
13845 else
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850
13851  if test -n "${DSYMUTIL}"; then
13852   HAVE_DSYMUTIL_TRUE=
13853   HAVE_DSYMUTIL_FALSE='#'
13854 else
13855   HAVE_DSYMUTIL_TRUE='#'
13856   HAVE_DSYMUTIL_FALSE=
13857 fi
13858
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13861 $as_echo_n "checking whether tests can run... " >&6; }
13862 if ${libbacktrace_cv_sys_native+:} false; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   if test "$cross_compiling" = yes; then :
13866   libbacktrace_cv_sys_native=no
13867 else
13868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h.  */
13870
13871 int
13872 main ()
13873 {
13874 return 0;
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 if ac_fn_c_try_run "$LINENO"; then :
13880   libbacktrace_cv_sys_native=yes
13881 else
13882   libbacktrace_cv_sys_native=no
13883 fi
13884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13885   conftest.$ac_objext conftest.beam conftest.$ac_ext
13886 fi
13887
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13890 $as_echo "$libbacktrace_cv_sys_native" >&6; }
13891  if test "$libbacktrace_cv_sys_native" = "yes"; then
13892   NATIVE_TRUE=
13893   NATIVE_FALSE='#'
13894 else
13895   NATIVE_TRUE='#'
13896   NATIVE_FALSE=
13897 fi
13898
13899
13900 if test "${multilib}" = "yes"; then
13901   multilib_arg="--enable-multilib"
13902 else
13903   multilib_arg=
13904 fi
13905
13906 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13907
13908 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
13909
13910
13911 # We need multilib support, but only if configuring for the target.
13912 ac_config_commands="$ac_config_commands default"
13913
13914
13915 cat >confcache <<\_ACEOF
13916 # This file is a shell script that caches the results of configure
13917 # tests run on this system so they can be shared between configure
13918 # scripts and configure runs, see configure's option --config-cache.
13919 # It is not useful on other systems.  If it contains results you don't
13920 # want to keep, you may remove or edit it.
13921 #
13922 # config.status only pays attention to the cache file if you give it
13923 # the --recheck option to rerun configure.
13924 #
13925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13927 # following values.
13928
13929 _ACEOF
13930
13931 # The following way of writing the cache mishandles newlines in values,
13932 # but we know of no workaround that is simple, portable, and efficient.
13933 # So, we kill variables containing newlines.
13934 # Ultrix sh set writes to stderr and can't be redirected directly,
13935 # and sets the high bit in the cache file unless we assign to the vars.
13936 (
13937   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13938     eval ac_val=\$$ac_var
13939     case $ac_val in #(
13940     *${as_nl}*)
13941       case $ac_var in #(
13942       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13944       esac
13945       case $ac_var in #(
13946       _ | IFS | as_nl) ;; #(
13947       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13948       *) { eval $ac_var=; unset $ac_var;} ;;
13949       esac ;;
13950     esac
13951   done
13952
13953   (set) 2>&1 |
13954     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13955     *${as_nl}ac_space=\ *)
13956       # `set' does not quote correctly, so add quotes: double-quote
13957       # substitution turns \\\\ into \\, and sed turns \\ into \.
13958       sed -n \
13959         "s/'/'\\\\''/g;
13960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13961       ;; #(
13962     *)
13963       # `set' quotes correctly as required by POSIX, so do not add quotes.
13964       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13965       ;;
13966     esac |
13967     sort
13968 ) |
13969   sed '
13970      /^ac_cv_env_/b end
13971      t clear
13972      :clear
13973      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13974      t end
13975      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13976      :end' >>confcache
13977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13978   if test -w "$cache_file"; then
13979     if test "x$cache_file" != "x/dev/null"; then
13980       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13981 $as_echo "$as_me: updating cache $cache_file" >&6;}
13982       if test ! -f "$cache_file" || test -h "$cache_file"; then
13983         cat confcache >"$cache_file"
13984       else
13985         case $cache_file in #(
13986         */* | ?:*)
13987           mv -f confcache "$cache_file"$$ &&
13988           mv -f "$cache_file"$$ "$cache_file" ;; #(
13989         *)
13990           mv -f confcache "$cache_file" ;;
13991         esac
13992       fi
13993     fi
13994   else
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13997   fi
13998 fi
13999 rm -f confcache
14000
14001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14002 # Let make expand exec_prefix.
14003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14004
14005 DEFS=-DHAVE_CONFIG_H
14006
14007 ac_libobjs=
14008 ac_ltlibobjs=
14009 U=
14010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14011   # 1. Remove the extension, and $U if already installed.
14012   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14013   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14014   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14015   #    will be set to the directory where LIBOBJS objects are built.
14016   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14017   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14018 done
14019 LIBOBJS=$ac_libobjs
14020
14021 LTLIBOBJS=$ac_ltlibobjs
14022
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14025 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14026    if test -n "$am_sleep_pid"; then
14027      # Hide warnings about reused PIDs.
14028      wait $am_sleep_pid 2>/dev/null
14029    fi
14030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14031 $as_echo "done" >&6; }
14032  if test -n "$EXEEXT"; then
14033   am__EXEEXT_TRUE=
14034   am__EXEEXT_FALSE='#'
14035 else
14036   am__EXEEXT_TRUE='#'
14037   am__EXEEXT_FALSE=
14038 fi
14039
14040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14041   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043 fi
14044 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14045   as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14047 fi
14048 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14049   as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14051 fi
14052 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14053   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14055 fi
14056 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14057   as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14059 fi
14060 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14061   as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14063 fi
14064 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14065   as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14067 fi
14068 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14069   as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14071 fi
14072 if test -z "${HAVE_DSYMUTIL_TRUE}" && test -z "${HAVE_DSYMUTIL_FALSE}"; then
14073   as_fn_error $? "conditional \"HAVE_DSYMUTIL\" was never defined.
14074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14075 fi
14076 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14077   as_fn_error $? "conditional \"NATIVE\" was never defined.
14078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14079 fi
14080
14081 : "${CONFIG_STATUS=./config.status}"
14082 ac_write_fail=0
14083 ac_clean_files_save=$ac_clean_files
14084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14086 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14087 as_write_fail=0
14088 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14089 #! $SHELL
14090 # Generated by $as_me.
14091 # Run this file to recreate the current configuration.
14092 # Compiler output produced by configure, useful for debugging
14093 # configure, is in config.log if it exists.
14094
14095 debug=false
14096 ac_cs_recheck=false
14097 ac_cs_silent=false
14098
14099 SHELL=\${CONFIG_SHELL-$SHELL}
14100 export SHELL
14101 _ASEOF
14102 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14103 ## -------------------- ##
14104 ## M4sh Initialization. ##
14105 ## -------------------- ##
14106
14107 # Be more Bourne compatible
14108 DUALCASE=1; export DUALCASE # for MKS sh
14109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14110   emulate sh
14111   NULLCMD=:
14112   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14113   # is contrary to our usage.  Disable this feature.
14114   alias -g '${1+"$@"}'='"$@"'
14115   setopt NO_GLOB_SUBST
14116 else
14117   case `(set -o) 2>/dev/null` in #(
14118   *posix*) :
14119     set -o posix ;; #(
14120   *) :
14121      ;;
14122 esac
14123 fi
14124
14125
14126 as_nl='
14127 '
14128 export as_nl
14129 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14130 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14133 # Prefer a ksh shell builtin over an external printf program on Solaris,
14134 # but without wasting forks for bash or zsh.
14135 if test -z "$BASH_VERSION$ZSH_VERSION" \
14136     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14137   as_echo='print -r --'
14138   as_echo_n='print -rn --'
14139 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14140   as_echo='printf %s\n'
14141   as_echo_n='printf %s'
14142 else
14143   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14144     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14145     as_echo_n='/usr/ucb/echo -n'
14146   else
14147     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14148     as_echo_n_body='eval
14149       arg=$1;
14150       case $arg in #(
14151       *"$as_nl"*)
14152         expr "X$arg" : "X\\(.*\\)$as_nl";
14153         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14154       esac;
14155       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14156     '
14157     export as_echo_n_body
14158     as_echo_n='sh -c $as_echo_n_body as_echo'
14159   fi
14160   export as_echo_body
14161   as_echo='sh -c $as_echo_body as_echo'
14162 fi
14163
14164 # The user is always right.
14165 if test "${PATH_SEPARATOR+set}" != set; then
14166   PATH_SEPARATOR=:
14167   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14168     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14169       PATH_SEPARATOR=';'
14170   }
14171 fi
14172
14173
14174 # IFS
14175 # We need space, tab and new line, in precisely that order.  Quoting is
14176 # there to prevent editors from complaining about space-tab.
14177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14178 # splitting by setting IFS to empty value.)
14179 IFS=" ""        $as_nl"
14180
14181 # Find who we are.  Look in the path if we contain no directory separator.
14182 as_myself=
14183 case $0 in #((
14184   *[\\/]* ) as_myself=$0 ;;
14185   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14187 do
14188   IFS=$as_save_IFS
14189   test -z "$as_dir" && as_dir=.
14190     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14191   done
14192 IFS=$as_save_IFS
14193
14194      ;;
14195 esac
14196 # We did not find ourselves, most probably we were run as `sh COMMAND'
14197 # in which case we are not to be found in the path.
14198 if test "x$as_myself" = x; then
14199   as_myself=$0
14200 fi
14201 if test ! -f "$as_myself"; then
14202   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14203   exit 1
14204 fi
14205
14206 # Unset variables that we do not need and which cause bugs (e.g. in
14207 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14208 # suppresses any "Segmentation fault" message there.  '((' could
14209 # trigger a bug in pdksh 5.2.14.
14210 for as_var in BASH_ENV ENV MAIL MAILPATH
14211 do eval test x\${$as_var+set} = xset \
14212   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14213 done
14214 PS1='$ '
14215 PS2='> '
14216 PS4='+ '
14217
14218 # NLS nuisances.
14219 LC_ALL=C
14220 export LC_ALL
14221 LANGUAGE=C
14222 export LANGUAGE
14223
14224 # CDPATH.
14225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14226
14227
14228 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14229 # ----------------------------------------
14230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14232 # script with STATUS, using 1 if that was 0.
14233 as_fn_error ()
14234 {
14235   as_status=$1; test $as_status -eq 0 && as_status=1
14236   if test "$4"; then
14237     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14238     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14239   fi
14240   $as_echo "$as_me: error: $2" >&2
14241   as_fn_exit $as_status
14242 } # as_fn_error
14243
14244
14245 # as_fn_set_status STATUS
14246 # -----------------------
14247 # Set $? to STATUS, without forking.
14248 as_fn_set_status ()
14249 {
14250   return $1
14251 } # as_fn_set_status
14252
14253 # as_fn_exit STATUS
14254 # -----------------
14255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14256 as_fn_exit ()
14257 {
14258   set +e
14259   as_fn_set_status $1
14260   exit $1
14261 } # as_fn_exit
14262
14263 # as_fn_unset VAR
14264 # ---------------
14265 # Portably unset VAR.
14266 as_fn_unset ()
14267 {
14268   { eval $1=; unset $1;}
14269 }
14270 as_unset=as_fn_unset
14271 # as_fn_append VAR VALUE
14272 # ----------------------
14273 # Append the text in VALUE to the end of the definition contained in VAR. Take
14274 # advantage of any shell optimizations that allow amortized linear growth over
14275 # repeated appends, instead of the typical quadratic growth present in naive
14276 # implementations.
14277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14278   eval 'as_fn_append ()
14279   {
14280     eval $1+=\$2
14281   }'
14282 else
14283   as_fn_append ()
14284   {
14285     eval $1=\$$1\$2
14286   }
14287 fi # as_fn_append
14288
14289 # as_fn_arith ARG...
14290 # ------------------
14291 # Perform arithmetic evaluation on the ARGs, and store the result in the
14292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14293 # must be portable across $(()) and expr.
14294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14295   eval 'as_fn_arith ()
14296   {
14297     as_val=$(( $* ))
14298   }'
14299 else
14300   as_fn_arith ()
14301   {
14302     as_val=`expr "$@" || test $? -eq 1`
14303   }
14304 fi # as_fn_arith
14305
14306
14307 if expr a : '\(a\)' >/dev/null 2>&1 &&
14308    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14309   as_expr=expr
14310 else
14311   as_expr=false
14312 fi
14313
14314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14315   as_basename=basename
14316 else
14317   as_basename=false
14318 fi
14319
14320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14321   as_dirname=dirname
14322 else
14323   as_dirname=false
14324 fi
14325
14326 as_me=`$as_basename -- "$0" ||
14327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14328          X"$0" : 'X\(//\)$' \| \
14329          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14330 $as_echo X/"$0" |
14331     sed '/^.*\/\([^/][^/]*\)\/*$/{
14332             s//\1/
14333             q
14334           }
14335           /^X\/\(\/\/\)$/{
14336             s//\1/
14337             q
14338           }
14339           /^X\/\(\/\).*/{
14340             s//\1/
14341             q
14342           }
14343           s/.*/./; q'`
14344
14345 # Avoid depending upon Character Ranges.
14346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14349 as_cr_digits='0123456789'
14350 as_cr_alnum=$as_cr_Letters$as_cr_digits
14351
14352 ECHO_C= ECHO_N= ECHO_T=
14353 case `echo -n x` in #(((((
14354 -n*)
14355   case `echo 'xy\c'` in
14356   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14357   xy)  ECHO_C='\c';;
14358   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14359        ECHO_T=' ';;
14360   esac;;
14361 *)
14362   ECHO_N='-n';;
14363 esac
14364
14365 rm -f conf$$ conf$$.exe conf$$.file
14366 if test -d conf$$.dir; then
14367   rm -f conf$$.dir/conf$$.file
14368 else
14369   rm -f conf$$.dir
14370   mkdir conf$$.dir 2>/dev/null
14371 fi
14372 if (echo >conf$$.file) 2>/dev/null; then
14373   if ln -s conf$$.file conf$$ 2>/dev/null; then
14374     as_ln_s='ln -s'
14375     # ... but there are two gotchas:
14376     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14377     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14378     # In both cases, we have to default to `cp -pR'.
14379     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14380       as_ln_s='cp -pR'
14381   elif ln conf$$.file conf$$ 2>/dev/null; then
14382     as_ln_s=ln
14383   else
14384     as_ln_s='cp -pR'
14385   fi
14386 else
14387   as_ln_s='cp -pR'
14388 fi
14389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14390 rmdir conf$$.dir 2>/dev/null
14391
14392
14393 # as_fn_mkdir_p
14394 # -------------
14395 # Create "$as_dir" as a directory, including parents if necessary.
14396 as_fn_mkdir_p ()
14397 {
14398
14399   case $as_dir in #(
14400   -*) as_dir=./$as_dir;;
14401   esac
14402   test -d "$as_dir" || eval $as_mkdir_p || {
14403     as_dirs=
14404     while :; do
14405       case $as_dir in #(
14406       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14407       *) as_qdir=$as_dir;;
14408       esac
14409       as_dirs="'$as_qdir' $as_dirs"
14410       as_dir=`$as_dirname -- "$as_dir" ||
14411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14412          X"$as_dir" : 'X\(//\)[^/]' \| \
14413          X"$as_dir" : 'X\(//\)$' \| \
14414          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14415 $as_echo X"$as_dir" |
14416     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14417             s//\1/
14418             q
14419           }
14420           /^X\(\/\/\)[^/].*/{
14421             s//\1/
14422             q
14423           }
14424           /^X\(\/\/\)$/{
14425             s//\1/
14426             q
14427           }
14428           /^X\(\/\).*/{
14429             s//\1/
14430             q
14431           }
14432           s/.*/./; q'`
14433       test -d "$as_dir" && break
14434     done
14435     test -z "$as_dirs" || eval "mkdir $as_dirs"
14436   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14437
14438
14439 } # as_fn_mkdir_p
14440 if mkdir -p . 2>/dev/null; then
14441   as_mkdir_p='mkdir -p "$as_dir"'
14442 else
14443   test -d ./-p && rmdir ./-p
14444   as_mkdir_p=false
14445 fi
14446
14447
14448 # as_fn_executable_p FILE
14449 # -----------------------
14450 # Test if FILE is an executable regular file.
14451 as_fn_executable_p ()
14452 {
14453   test -f "$1" && test -x "$1"
14454 } # as_fn_executable_p
14455 as_test_x='test -x'
14456 as_executable_p=as_fn_executable_p
14457
14458 # Sed expression to map a string onto a valid CPP name.
14459 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14460
14461 # Sed expression to map a string onto a valid variable name.
14462 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14463
14464
14465 exec 6>&1
14466 ## ----------------------------------- ##
14467 ## Main body of $CONFIG_STATUS script. ##
14468 ## ----------------------------------- ##
14469 _ASEOF
14470 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14471
14472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473 # Save the log message, to keep $0 and so on meaningful, and to
14474 # report actual input values of CONFIG_FILES etc. instead of their
14475 # values after options handling.
14476 ac_log="
14477 This file was extended by package-unused $as_me version-unused, which was
14478 generated by GNU Autoconf 2.69.  Invocation command line was
14479
14480   CONFIG_FILES    = $CONFIG_FILES
14481   CONFIG_HEADERS  = $CONFIG_HEADERS
14482   CONFIG_LINKS    = $CONFIG_LINKS
14483   CONFIG_COMMANDS = $CONFIG_COMMANDS
14484   $ $0 $@
14485
14486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14487 "
14488
14489 _ACEOF
14490
14491 case $ac_config_files in *"
14492 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14493 esac
14494
14495 case $ac_config_headers in *"
14496 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14497 esac
14498
14499
14500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14501 # Files that config.status was made for.
14502 config_files="$ac_config_files"
14503 config_headers="$ac_config_headers"
14504 config_commands="$ac_config_commands"
14505
14506 _ACEOF
14507
14508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14509 ac_cs_usage="\
14510 \`$as_me' instantiates files and other configuration actions
14511 from templates according to the current configuration.  Unless the files
14512 and actions are specified as TAGs, all are instantiated by default.
14513
14514 Usage: $0 [OPTION]... [TAG]...
14515
14516   -h, --help       print this help, then exit
14517   -V, --version    print version number and configuration settings, then exit
14518       --config     print configuration, then exit
14519   -q, --quiet, --silent
14520                    do not print progress messages
14521   -d, --debug      don't remove temporary files
14522       --recheck    update $as_me by reconfiguring in the same conditions
14523       --file=FILE[:TEMPLATE]
14524                    instantiate the configuration file FILE
14525       --header=FILE[:TEMPLATE]
14526                    instantiate the configuration header FILE
14527
14528 Configuration files:
14529 $config_files
14530
14531 Configuration headers:
14532 $config_headers
14533
14534 Configuration commands:
14535 $config_commands
14536
14537 Report bugs to the package provider."
14538
14539 _ACEOF
14540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14541 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14542 ac_cs_version="\\
14543 package-unused config.status version-unused
14544 configured by $0, generated by GNU Autoconf 2.69,
14545   with options \\"\$ac_cs_config\\"
14546
14547 Copyright (C) 2012 Free Software Foundation, Inc.
14548 This config.status script is free software; the Free Software Foundation
14549 gives unlimited permission to copy, distribute and modify it."
14550
14551 ac_pwd='$ac_pwd'
14552 srcdir='$srcdir'
14553 INSTALL='$INSTALL'
14554 MKDIR_P='$MKDIR_P'
14555 AWK='$AWK'
14556 test -n "\$AWK" || AWK=awk
14557 _ACEOF
14558
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560 # The default lists apply if the user does not specify any file.
14561 ac_need_defaults=:
14562 while test $# != 0
14563 do
14564   case $1 in
14565   --*=?*)
14566     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14567     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14568     ac_shift=:
14569     ;;
14570   --*=)
14571     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14572     ac_optarg=
14573     ac_shift=:
14574     ;;
14575   *)
14576     ac_option=$1
14577     ac_optarg=$2
14578     ac_shift=shift
14579     ;;
14580   esac
14581
14582   case $ac_option in
14583   # Handling of the options.
14584   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14585     ac_cs_recheck=: ;;
14586   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14587     $as_echo "$ac_cs_version"; exit ;;
14588   --config | --confi | --conf | --con | --co | --c )
14589     $as_echo "$ac_cs_config"; exit ;;
14590   --debug | --debu | --deb | --de | --d | -d )
14591     debug=: ;;
14592   --file | --fil | --fi | --f )
14593     $ac_shift
14594     case $ac_optarg in
14595     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14596     '') as_fn_error $? "missing file argument" ;;
14597     esac
14598     as_fn_append CONFIG_FILES " '$ac_optarg'"
14599     ac_need_defaults=false;;
14600   --header | --heade | --head | --hea )
14601     $ac_shift
14602     case $ac_optarg in
14603     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14604     esac
14605     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14606     ac_need_defaults=false;;
14607   --he | --h)
14608     # Conflict between --help and --header
14609     as_fn_error $? "ambiguous option: \`$1'
14610 Try \`$0 --help' for more information.";;
14611   --help | --hel | -h )
14612     $as_echo "$ac_cs_usage"; exit ;;
14613   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14614   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14615     ac_cs_silent=: ;;
14616
14617   # This is an error.
14618   -*) as_fn_error $? "unrecognized option: \`$1'
14619 Try \`$0 --help' for more information." ;;
14620
14621   *) as_fn_append ac_config_targets " $1"
14622      ac_need_defaults=false ;;
14623
14624   esac
14625   shift
14626 done
14627
14628 ac_configure_extra_args=
14629
14630 if $ac_cs_silent; then
14631   exec 6>/dev/null
14632   ac_configure_extra_args="$ac_configure_extra_args --silent"
14633 fi
14634
14635 _ACEOF
14636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14637 if \$ac_cs_recheck; then
14638   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14639   shift
14640   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14641   CONFIG_SHELL='$SHELL'
14642   export CONFIG_SHELL
14643   exec "\$@"
14644 fi
14645
14646 _ACEOF
14647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648 exec 5>>config.log
14649 {
14650   echo
14651   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14652 ## Running $as_me. ##
14653 _ASBOX
14654   $as_echo "$ac_log"
14655 } >&5
14656
14657 _ACEOF
14658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659 #
14660 # INIT-COMMANDS
14661 #
14662
14663 srcdir="$srcdir"
14664 host="$host"
14665 target="$target"
14666 with_multisubdir="$with_multisubdir"
14667 with_multisrctop="$with_multisrctop"
14668 with_target_subdir="$with_target_subdir"
14669 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14670 multi_basedir="$multi_basedir"
14671 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14672 CC="$CC"
14673 CXX="$CXX"
14674 GFORTRAN="$GFORTRAN"
14675 GDC="$GDC"
14676
14677
14678 # The HP-UX ksh and POSIX shell print the target directory to stdout
14679 # if CDPATH is set.
14680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14681
14682 sed_quote_subst='$sed_quote_subst'
14683 double_quote_subst='$double_quote_subst'
14684 delay_variable_subst='$delay_variable_subst'
14685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14691 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14692 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14718 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14719 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14733 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"`'
14734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14737 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14738 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14742 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14743 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14744 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14745 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14746 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14747 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14748 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14749 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14750 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14751 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14752 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14753 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14754 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14755 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14756 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14757 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14758 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14759 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14760 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14761 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14762 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14763 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14764 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14765 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14774 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14775 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14776 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14777 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14778 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14779 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14805
14806 LTCC='$LTCC'
14807 LTCFLAGS='$LTCFLAGS'
14808 compiler='$compiler_DEFAULT'
14809
14810 # A function that is used when there is no print builtin or printf.
14811 func_fallback_echo ()
14812 {
14813   eval 'cat <<_LTECHO_EOF
14814 \$1
14815 _LTECHO_EOF'
14816 }
14817
14818 # Quote evaled strings.
14819 for var in SHELL \
14820 ECHO \
14821 SED \
14822 GREP \
14823 EGREP \
14824 FGREP \
14825 LD \
14826 NM \
14827 LN_S \
14828 lt_SP2NL \
14829 lt_NL2SP \
14830 reload_flag \
14831 OBJDUMP \
14832 deplibs_check_method \
14833 file_magic_cmd \
14834 AR \
14835 AR_FLAGS \
14836 STRIP \
14837 RANLIB \
14838 CC \
14839 CFLAGS \
14840 compiler \
14841 lt_cv_sys_global_symbol_pipe \
14842 lt_cv_sys_global_symbol_to_cdecl \
14843 lt_cv_sys_global_symbol_to_c_name_address \
14844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14845 lt_prog_compiler_no_builtin_flag \
14846 lt_prog_compiler_wl \
14847 lt_prog_compiler_pic \
14848 lt_prog_compiler_static \
14849 lt_cv_prog_compiler_c_o \
14850 need_locks \
14851 DSYMUTIL \
14852 NMEDIT \
14853 LIPO \
14854 OTOOL \
14855 OTOOL64 \
14856 shrext_cmds \
14857 export_dynamic_flag_spec \
14858 whole_archive_flag_spec \
14859 compiler_needs_object \
14860 with_gnu_ld \
14861 allow_undefined_flag \
14862 no_undefined_flag \
14863 hardcode_libdir_flag_spec \
14864 hardcode_libdir_flag_spec_ld \
14865 hardcode_libdir_separator \
14866 fix_srcfile_path \
14867 exclude_expsyms \
14868 include_expsyms \
14869 file_list_spec \
14870 variables_saved_for_relink \
14871 libname_spec \
14872 library_names_spec \
14873 soname_spec \
14874 install_override_mode \
14875 finish_eval \
14876 old_striplib \
14877 striplib; do
14878     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14879     *[\\\\\\\`\\"\\\$]*)
14880       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14881       ;;
14882     *)
14883       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14884       ;;
14885     esac
14886 done
14887
14888 # Double-quote double-evaled strings.
14889 for var in reload_cmds \
14890 old_postinstall_cmds \
14891 old_postuninstall_cmds \
14892 old_archive_cmds \
14893 extract_expsyms_cmds \
14894 old_archive_from_new_cmds \
14895 old_archive_from_expsyms_cmds \
14896 archive_cmds \
14897 archive_expsym_cmds \
14898 module_cmds \
14899 module_expsym_cmds \
14900 export_symbols_cmds \
14901 prelink_cmds \
14902 postinstall_cmds \
14903 postuninstall_cmds \
14904 finish_cmds \
14905 sys_lib_search_path_spec \
14906 sys_lib_dlsearch_path_spec; do
14907     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14908     *[\\\\\\\`\\"\\\$]*)
14909       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14910       ;;
14911     *)
14912       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14913       ;;
14914     esac
14915 done
14916
14917 ac_aux_dir='$ac_aux_dir'
14918 xsi_shell='$xsi_shell'
14919 lt_shell_append='$lt_shell_append'
14920
14921 # See if we are running on zsh, and set the options which allow our
14922 # commands through without removal of \ escapes INIT.
14923 if test -n "\${ZSH_VERSION+set}" ; then
14924    setopt NO_GLOB_SUBST
14925 fi
14926
14927
14928     PACKAGE='$PACKAGE'
14929     VERSION='$VERSION'
14930     TIMESTAMP='$TIMESTAMP'
14931     RM='$RM'
14932     ofile='$ofile'
14933
14934
14935
14936
14937 GCC="$GCC"
14938 CC="$CC"
14939 acx_cv_header_stdint="$acx_cv_header_stdint"
14940 acx_cv_type_int8_t="$acx_cv_type_int8_t"
14941 acx_cv_type_int16_t="$acx_cv_type_int16_t"
14942 acx_cv_type_int32_t="$acx_cv_type_int32_t"
14943 acx_cv_type_int64_t="$acx_cv_type_int64_t"
14944 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14945 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14946 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14947 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14948 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14949 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14950 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14951 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14952 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14953
14954
14955 # Variables needed in config.status (file generation) which aren't already
14956 # passed by autoconf.
14957 SUBDIRS="$SUBDIRS"
14958
14959
14960 _ACEOF
14961
14962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963
14964 # Handling of arguments.
14965 for ac_config_target in $ac_config_targets
14966 do
14967   case $ac_config_target in
14968     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14969     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14970     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14971     "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
14972     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14973     "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14974     "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
14975     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14976
14977   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14978   esac
14979 done
14980
14981
14982 # If the user did not use the arguments to specify the items to instantiate,
14983 # then the envvar interface is used.  Set only those that are not.
14984 # We use the long form for the default assignment because of an extremely
14985 # bizarre bug on SunOS 4.1.3.
14986 if $ac_need_defaults; then
14987   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14988   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14989   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14990 fi
14991
14992 # Have a temporary directory for convenience.  Make it in the build tree
14993 # simply because there is no reason against having it here, and in addition,
14994 # creating and moving files from /tmp can sometimes cause problems.
14995 # Hook for its removal unless debugging.
14996 # Note that there is a small window in which the directory will not be cleaned:
14997 # after its creation but before its name has been assigned to `$tmp'.
14998 $debug ||
14999 {
15000   tmp= ac_tmp=
15001   trap 'exit_status=$?
15002   : "${ac_tmp:=$tmp}"
15003   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15004 ' 0
15005   trap 'as_fn_exit 1' 1 2 13 15
15006 }
15007 # Create a (secure) tmp directory for tmp files.
15008
15009 {
15010   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15011   test -d "$tmp"
15012 }  ||
15013 {
15014   tmp=./conf$$-$RANDOM
15015   (umask 077 && mkdir "$tmp")
15016 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15017 ac_tmp=$tmp
15018
15019 # Set up the scripts for CONFIG_FILES section.
15020 # No need to generate them if there are no CONFIG_FILES.
15021 # This happens for instance with `./config.status config.h'.
15022 if test -n "$CONFIG_FILES"; then
15023
15024
15025 ac_cr=`echo X | tr X '\015'`
15026 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15027 # But we know of no other shell where ac_cr would be empty at this
15028 # point, so we can use a bashism as a fallback.
15029 if test "x$ac_cr" = x; then
15030   eval ac_cr=\$\'\\r\'
15031 fi
15032 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15033 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15034   ac_cs_awk_cr='\\r'
15035 else
15036   ac_cs_awk_cr=$ac_cr
15037 fi
15038
15039 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15040 _ACEOF
15041
15042
15043 {
15044   echo "cat >conf$$subs.awk <<_ACEOF" &&
15045   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15046   echo "_ACEOF"
15047 } >conf$$subs.sh ||
15048   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15049 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15050 ac_delim='%!_!# '
15051 for ac_last_try in false false false false false :; do
15052   . ./conf$$subs.sh ||
15053     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15054
15055   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15056   if test $ac_delim_n = $ac_delim_num; then
15057     break
15058   elif $ac_last_try; then
15059     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15060   else
15061     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15062   fi
15063 done
15064 rm -f conf$$subs.sh
15065
15066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15067 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15068 _ACEOF
15069 sed -n '
15070 h
15071 s/^/S["/; s/!.*/"]=/
15072 p
15073 g
15074 s/^[^!]*!//
15075 :repl
15076 t repl
15077 s/'"$ac_delim"'$//
15078 t delim
15079 :nl
15080 h
15081 s/\(.\{148\}\)..*/\1/
15082 t more1
15083 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15084 p
15085 n
15086 b repl
15087 :more1
15088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15089 p
15090 g
15091 s/.\{148\}//
15092 t nl
15093 :delim
15094 h
15095 s/\(.\{148\}\)..*/\1/
15096 t more2
15097 s/["\\]/\\&/g; s/^/"/; s/$/"/
15098 p
15099 b
15100 :more2
15101 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15102 p
15103 g
15104 s/.\{148\}//
15105 t delim
15106 ' <conf$$subs.awk | sed '
15107 /^[^""]/{
15108   N
15109   s/\n//
15110 }
15111 ' >>$CONFIG_STATUS || ac_write_fail=1
15112 rm -f conf$$subs.awk
15113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15114 _ACAWK
15115 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15116   for (key in S) S_is_set[key] = 1
15117   FS = "\a"
15118
15119 }
15120 {
15121   line = $ 0
15122   nfields = split(line, field, "@")
15123   substed = 0
15124   len = length(field[1])
15125   for (i = 2; i < nfields; i++) {
15126     key = field[i]
15127     keylen = length(key)
15128     if (S_is_set[key]) {
15129       value = S[key]
15130       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15131       len += length(value) + length(field[++i])
15132       substed = 1
15133     } else
15134       len += 1 + keylen
15135   }
15136
15137   print line
15138 }
15139
15140 _ACAWK
15141 _ACEOF
15142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15143 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15144   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15145 else
15146   cat
15147 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15148   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15149 _ACEOF
15150
15151 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15152 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15153 # trailing colons and then remove the whole line if VPATH becomes empty
15154 # (actually we leave an empty line to preserve line numbers).
15155 if test "x$srcdir" = x.; then
15156   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15157 h
15158 s///
15159 s/^/:/
15160 s/[      ]*$/:/
15161 s/:\$(srcdir):/:/g
15162 s/:\${srcdir}:/:/g
15163 s/:@srcdir@:/:/g
15164 s/^:*//
15165 s/:*$//
15166 x
15167 s/\(=[   ]*\).*/\1/
15168 G
15169 s/\n//
15170 s/^[^=]*=[       ]*$//
15171 }'
15172 fi
15173
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175 fi # test -n "$CONFIG_FILES"
15176
15177 # Set up the scripts for CONFIG_HEADERS section.
15178 # No need to generate them if there are no CONFIG_HEADERS.
15179 # This happens for instance with `./config.status Makefile'.
15180 if test -n "$CONFIG_HEADERS"; then
15181 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15182 BEGIN {
15183 _ACEOF
15184
15185 # Transform confdefs.h into an awk script `defines.awk', embedded as
15186 # here-document in config.status, that substitutes the proper values into
15187 # config.h.in to produce config.h.
15188
15189 # Create a delimiter string that does not exist in confdefs.h, to ease
15190 # handling of long lines.
15191 ac_delim='%!_!# '
15192 for ac_last_try in false false :; do
15193   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15194   if test -z "$ac_tt"; then
15195     break
15196   elif $ac_last_try; then
15197     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15198   else
15199     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15200   fi
15201 done
15202
15203 # For the awk script, D is an array of macro values keyed by name,
15204 # likewise P contains macro parameters if any.  Preserve backslash
15205 # newline sequences.
15206
15207 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15208 sed -n '
15209 s/.\{148\}/&'"$ac_delim"'/g
15210 t rset
15211 :rset
15212 s/^[     ]*#[    ]*define[       ][      ]*/ /
15213 t def
15214 d
15215 :def
15216 s/\\$//
15217 t bsnl
15218 s/["\\]/\\&/g
15219 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15220 D["\1"]=" \3"/p
15221 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15222 d
15223 :bsnl
15224 s/["\\]/\\&/g
15225 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15226 D["\1"]=" \3\\\\\\n"\\/p
15227 t cont
15228 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15229 t cont
15230 d
15231 :cont
15232 n
15233 s/.\{148\}/&'"$ac_delim"'/g
15234 t clear
15235 :clear
15236 s/\\$//
15237 t bsnlc
15238 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15239 d
15240 :bsnlc
15241 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15242 b cont
15243 ' <confdefs.h | sed '
15244 s/'"$ac_delim"'/"\\\
15245 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15246
15247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15248   for (key in D) D_is_set[key] = 1
15249   FS = "\a"
15250 }
15251 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15252   line = \$ 0
15253   split(line, arg, " ")
15254   if (arg[1] == "#") {
15255     defundef = arg[2]
15256     mac1 = arg[3]
15257   } else {
15258     defundef = substr(arg[1], 2)
15259     mac1 = arg[2]
15260   }
15261   split(mac1, mac2, "(") #)
15262   macro = mac2[1]
15263   prefix = substr(line, 1, index(line, defundef) - 1)
15264   if (D_is_set[macro]) {
15265     # Preserve the white space surrounding the "#".
15266     print prefix "define", macro P[macro] D[macro]
15267     next
15268   } else {
15269     # Replace #undef with comments.  This is necessary, for example,
15270     # in the case of _POSIX_SOURCE, which is predefined and required
15271     # on some systems where configure will not decide to define it.
15272     if (defundef == "undef") {
15273       print "/*", prefix defundef, macro, "*/"
15274       next
15275     }
15276   }
15277 }
15278 { print }
15279 _ACAWK
15280 _ACEOF
15281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15283 fi # test -n "$CONFIG_HEADERS"
15284
15285
15286 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15287 shift
15288 for ac_tag
15289 do
15290   case $ac_tag in
15291   :[FHLC]) ac_mode=$ac_tag; continue;;
15292   esac
15293   case $ac_mode$ac_tag in
15294   :[FHL]*:*);;
15295   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15296   :[FH]-) ac_tag=-:-;;
15297   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15298   esac
15299   ac_save_IFS=$IFS
15300   IFS=:
15301   set x $ac_tag
15302   IFS=$ac_save_IFS
15303   shift
15304   ac_file=$1
15305   shift
15306
15307   case $ac_mode in
15308   :L) ac_source=$1;;
15309   :[FH])
15310     ac_file_inputs=
15311     for ac_f
15312     do
15313       case $ac_f in
15314       -) ac_f="$ac_tmp/stdin";;
15315       *) # Look for the file first in the build tree, then in the source tree
15316          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15317          # because $ac_f cannot contain `:'.
15318          test -f "$ac_f" ||
15319            case $ac_f in
15320            [\\/$]*) false;;
15321            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15322            esac ||
15323            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15324       esac
15325       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15326       as_fn_append ac_file_inputs " '$ac_f'"
15327     done
15328
15329     # Let's still pretend it is `configure' which instantiates (i.e., don't
15330     # use $as_me), people would be surprised to read:
15331     #    /* config.h.  Generated by config.status.  */
15332     configure_input='Generated from '`
15333           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15334         `' by configure.'
15335     if test x"$ac_file" != x-; then
15336       configure_input="$ac_file.  $configure_input"
15337       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15338 $as_echo "$as_me: creating $ac_file" >&6;}
15339     fi
15340     # Neutralize special characters interpreted by sed in replacement strings.
15341     case $configure_input in #(
15342     *\&* | *\|* | *\\* )
15343        ac_sed_conf_input=`$as_echo "$configure_input" |
15344        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15345     *) ac_sed_conf_input=$configure_input;;
15346     esac
15347
15348     case $ac_tag in
15349     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15350       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15351     esac
15352     ;;
15353   esac
15354
15355   ac_dir=`$as_dirname -- "$ac_file" ||
15356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15357          X"$ac_file" : 'X\(//\)[^/]' \| \
15358          X"$ac_file" : 'X\(//\)$' \| \
15359          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15360 $as_echo X"$ac_file" |
15361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15362             s//\1/
15363             q
15364           }
15365           /^X\(\/\/\)[^/].*/{
15366             s//\1/
15367             q
15368           }
15369           /^X\(\/\/\)$/{
15370             s//\1/
15371             q
15372           }
15373           /^X\(\/\).*/{
15374             s//\1/
15375             q
15376           }
15377           s/.*/./; q'`
15378   as_dir="$ac_dir"; as_fn_mkdir_p
15379   ac_builddir=.
15380
15381 case "$ac_dir" in
15382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15383 *)
15384   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15385   # A ".." for each directory in $ac_dir_suffix.
15386   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15387   case $ac_top_builddir_sub in
15388   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15389   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15390   esac ;;
15391 esac
15392 ac_abs_top_builddir=$ac_pwd
15393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15394 # for backward compatibility:
15395 ac_top_builddir=$ac_top_build_prefix
15396
15397 case $srcdir in
15398   .)  # We are building in place.
15399     ac_srcdir=.
15400     ac_top_srcdir=$ac_top_builddir_sub
15401     ac_abs_top_srcdir=$ac_pwd ;;
15402   [\\/]* | ?:[\\/]* )  # Absolute name.
15403     ac_srcdir=$srcdir$ac_dir_suffix;
15404     ac_top_srcdir=$srcdir
15405     ac_abs_top_srcdir=$srcdir ;;
15406   *) # Relative name.
15407     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15408     ac_top_srcdir=$ac_top_build_prefix$srcdir
15409     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15410 esac
15411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15412
15413
15414   case $ac_mode in
15415   :F)
15416   #
15417   # CONFIG_FILE
15418   #
15419
15420   case $INSTALL in
15421   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15422   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15423   esac
15424   ac_MKDIR_P=$MKDIR_P
15425   case $MKDIR_P in
15426   [\\/$]* | ?:[\\/]* ) ;;
15427   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15428   esac
15429 _ACEOF
15430
15431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432 # If the template does not know about datarootdir, expand it.
15433 # FIXME: This hack should be removed a few years after 2.60.
15434 ac_datarootdir_hack=; ac_datarootdir_seen=
15435 ac_sed_dataroot='
15436 /datarootdir/ {
15437   p
15438   q
15439 }
15440 /@datadir@/p
15441 /@docdir@/p
15442 /@infodir@/p
15443 /@localedir@/p
15444 /@mandir@/p'
15445 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15446 *datarootdir*) ac_datarootdir_seen=yes;;
15447 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15448   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15449 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15450 _ACEOF
15451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15452   ac_datarootdir_hack='
15453   s&@datadir@&$datadir&g
15454   s&@docdir@&$docdir&g
15455   s&@infodir@&$infodir&g
15456   s&@localedir@&$localedir&g
15457   s&@mandir@&$mandir&g
15458   s&\\\${datarootdir}&$datarootdir&g' ;;
15459 esac
15460 _ACEOF
15461
15462 # Neutralize VPATH when `$srcdir' = `.'.
15463 # Shell code in configure.ac might set extrasub.
15464 # FIXME: do we really want to maintain this feature?
15465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15466 ac_sed_extra="$ac_vpsub
15467 $extrasub
15468 _ACEOF
15469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470 :t
15471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15472 s|@configure_input@|$ac_sed_conf_input|;t t
15473 s&@top_builddir@&$ac_top_builddir_sub&;t t
15474 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15475 s&@srcdir@&$ac_srcdir&;t t
15476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15477 s&@top_srcdir@&$ac_top_srcdir&;t t
15478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15479 s&@builddir@&$ac_builddir&;t t
15480 s&@abs_builddir@&$ac_abs_builddir&;t t
15481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15482 s&@INSTALL@&$ac_INSTALL&;t t
15483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15484 $ac_datarootdir_hack
15485 "
15486 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15487   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15488
15489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15490   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15491   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15492       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15493   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15494 which seems to be undefined.  Please make sure it is defined" >&5
15495 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15496 which seems to be undefined.  Please make sure it is defined" >&2;}
15497
15498   rm -f "$ac_tmp/stdin"
15499   case $ac_file in
15500   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15501   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15502   esac \
15503   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15504  ;;
15505   :H)
15506   #
15507   # CONFIG_HEADER
15508   #
15509   if test x"$ac_file" != x-; then
15510     {
15511       $as_echo "/* $configure_input  */" \
15512       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15513     } >"$ac_tmp/config.h" \
15514       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15515     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15516       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15517 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15518     else
15519       rm -f "$ac_file"
15520       mv "$ac_tmp/config.h" "$ac_file" \
15521         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15522     fi
15523   else
15524     $as_echo "/* $configure_input  */" \
15525       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15526       || as_fn_error $? "could not create -" "$LINENO" 5
15527   fi
15528 # Compute "$ac_file"'s index in $config_headers.
15529 _am_arg="$ac_file"
15530 _am_stamp_count=1
15531 for _am_header in $config_headers :; do
15532   case $_am_header in
15533     $_am_arg | $_am_arg:* )
15534       break ;;
15535     * )
15536       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15537   esac
15538 done
15539 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15540 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15541          X"$_am_arg" : 'X\(//\)[^/]' \| \
15542          X"$_am_arg" : 'X\(//\)$' \| \
15543          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15544 $as_echo X"$_am_arg" |
15545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15546             s//\1/
15547             q
15548           }
15549           /^X\(\/\/\)[^/].*/{
15550             s//\1/
15551             q
15552           }
15553           /^X\(\/\/\)$/{
15554             s//\1/
15555             q
15556           }
15557           /^X\(\/\).*/{
15558             s//\1/
15559             q
15560           }
15561           s/.*/./; q'`/stamp-h$_am_stamp_count
15562  ;;
15563
15564   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15565 $as_echo "$as_me: executing $ac_file commands" >&6;}
15566  ;;
15567   esac
15568
15569
15570   case $ac_file$ac_mode in
15571     "default-1":C)
15572 # Only add multilib support code if we just rebuilt the top-level
15573 # Makefile.
15574 case " $CONFIG_FILES " in
15575  *" Makefile "*)
15576    ac_file=Makefile . ${multi_basedir}/config-ml.in
15577    ;;
15578 esac ;;
15579     "libtool":C)
15580
15581     # See if we are running on zsh, and set the options which allow our
15582     # commands through without removal of \ escapes.
15583     if test -n "${ZSH_VERSION+set}" ; then
15584       setopt NO_GLOB_SUBST
15585     fi
15586
15587     cfgfile="${ofile}T"
15588     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15589     $RM "$cfgfile"
15590
15591     cat <<_LT_EOF >> "$cfgfile"
15592 #! $SHELL
15593
15594 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15595 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15597 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15598 #
15599 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15600 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15601 #   Written by Gordon Matzigkeit, 1996
15602 #
15603 #   This file is part of GNU Libtool.
15604 #
15605 # GNU Libtool is free software; you can redistribute it and/or
15606 # modify it under the terms of the GNU General Public License as
15607 # published by the Free Software Foundation; either version 2 of
15608 # the License, or (at your option) any later version.
15609 #
15610 # As a special exception to the GNU General Public License,
15611 # if you distribute this file as part of a program or library that
15612 # is built using GNU Libtool, you may include this file under the
15613 # same distribution terms that you use for the rest of that program.
15614 #
15615 # GNU Libtool is distributed in the hope that it will be useful,
15616 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15618 # GNU General Public License for more details.
15619 #
15620 # You should have received a copy of the GNU General Public License
15621 # along with GNU Libtool; see the file COPYING.  If not, a copy
15622 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15623 # obtained by writing to the Free Software Foundation, Inc.,
15624 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15625
15626
15627 # The names of the tagged configurations supported by this script.
15628 available_tags=""
15629
15630 # ### BEGIN LIBTOOL CONFIG
15631
15632 # Which release of libtool.m4 was used?
15633 macro_version=$macro_version
15634 macro_revision=$macro_revision
15635
15636 # Whether or not to build shared libraries.
15637 build_libtool_libs=$enable_shared
15638
15639 # Whether or not to build static libraries.
15640 build_old_libs=$enable_static
15641
15642 # What type of objects to build.
15643 pic_mode=$pic_mode
15644
15645 # Whether or not to optimize for fast installation.
15646 fast_install=$enable_fast_install
15647
15648 # Shell to use when invoking shell scripts.
15649 SHELL=$lt_SHELL
15650
15651 # An echo program that protects backslashes.
15652 ECHO=$lt_ECHO
15653
15654 # The host system.
15655 host_alias=$host_alias
15656 host=$host
15657 host_os=$host_os
15658
15659 # The build system.
15660 build_alias=$build_alias
15661 build=$build
15662 build_os=$build_os
15663
15664 # A sed program that does not truncate output.
15665 SED=$lt_SED
15666
15667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15668 Xsed="\$SED -e 1s/^X//"
15669
15670 # A grep program that handles long lines.
15671 GREP=$lt_GREP
15672
15673 # An ERE matcher.
15674 EGREP=$lt_EGREP
15675
15676 # A literal string matcher.
15677 FGREP=$lt_FGREP
15678
15679 # A BSD- or MS-compatible name lister.
15680 NM=$lt_NM
15681
15682 # Whether we need soft or hard links.
15683 LN_S=$lt_LN_S
15684
15685 # What is the maximum length of a command?
15686 max_cmd_len=$max_cmd_len
15687
15688 # Object file suffix (normally "o").
15689 objext=$ac_objext
15690
15691 # Executable file suffix (normally "").
15692 exeext=$exeext
15693
15694 # whether the shell understands "unset".
15695 lt_unset=$lt_unset
15696
15697 # turn spaces into newlines.
15698 SP2NL=$lt_lt_SP2NL
15699
15700 # turn newlines into spaces.
15701 NL2SP=$lt_lt_NL2SP
15702
15703 # An object symbol dumper.
15704 OBJDUMP=$lt_OBJDUMP
15705
15706 # Method to check whether dependent libraries are shared objects.
15707 deplibs_check_method=$lt_deplibs_check_method
15708
15709 # Command to use when deplibs_check_method == "file_magic".
15710 file_magic_cmd=$lt_file_magic_cmd
15711
15712 # The archiver.
15713 AR=$lt_AR
15714 AR_FLAGS=$lt_AR_FLAGS
15715
15716 # A symbol stripping program.
15717 STRIP=$lt_STRIP
15718
15719 # Commands used to install an old-style archive.
15720 RANLIB=$lt_RANLIB
15721 old_postinstall_cmds=$lt_old_postinstall_cmds
15722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15723
15724 # Whether to use a lock for old archive extraction.
15725 lock_old_archive_extraction=$lock_old_archive_extraction
15726
15727 # A C compiler.
15728 LTCC=$lt_CC
15729
15730 # LTCC compiler flags.
15731 LTCFLAGS=$lt_CFLAGS
15732
15733 # Take the output of nm and produce a listing of raw symbols and C names.
15734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15735
15736 # Transform the output of nm in a proper C declaration.
15737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15738
15739 # Transform the output of nm in a C name address pair.
15740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15741
15742 # Transform the output of nm in a C name address pair when lib prefix is needed.
15743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15744
15745 # The name of the directory that contains temporary libtool files.
15746 objdir=$objdir
15747
15748 # Used to examine libraries when file_magic_cmd begins with "file".
15749 MAGIC_CMD=$MAGIC_CMD
15750
15751 # Must we lock files when doing compilation?
15752 need_locks=$lt_need_locks
15753
15754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15755 DSYMUTIL=$lt_DSYMUTIL
15756
15757 # Tool to change global to local symbols on Mac OS X.
15758 NMEDIT=$lt_NMEDIT
15759
15760 # Tool to manipulate fat objects and archives on Mac OS X.
15761 LIPO=$lt_LIPO
15762
15763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15764 OTOOL=$lt_OTOOL
15765
15766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15767 OTOOL64=$lt_OTOOL64
15768
15769 # Old archive suffix (normally "a").
15770 libext=$libext
15771
15772 # Shared library suffix (normally ".so").
15773 shrext_cmds=$lt_shrext_cmds
15774
15775 # The commands to extract the exported symbol list from a shared archive.
15776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15777
15778 # Variables whose values should be saved in libtool wrapper scripts and
15779 # restored at link time.
15780 variables_saved_for_relink=$lt_variables_saved_for_relink
15781
15782 # Do we need the "lib" prefix for modules?
15783 need_lib_prefix=$need_lib_prefix
15784
15785 # Do we need a version for libraries?
15786 need_version=$need_version
15787
15788 # Library versioning type.
15789 version_type=$version_type
15790
15791 # Shared library runtime path variable.
15792 runpath_var=$runpath_var
15793
15794 # Shared library path variable.
15795 shlibpath_var=$shlibpath_var
15796
15797 # Is shlibpath searched before the hard-coded library search path?
15798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15799
15800 # Format of library name prefix.
15801 libname_spec=$lt_libname_spec
15802
15803 # List of archive names.  First name is the real one, the rest are links.
15804 # The last name is the one that the linker finds with -lNAME
15805 library_names_spec=$lt_library_names_spec
15806
15807 # The coded name of the library, if different from the real name.
15808 soname_spec=$lt_soname_spec
15809
15810 # Permission mode override for installation of shared libraries.
15811 install_override_mode=$lt_install_override_mode
15812
15813 # Command to use after installation of a shared archive.
15814 postinstall_cmds=$lt_postinstall_cmds
15815
15816 # Command to use after uninstallation of a shared archive.
15817 postuninstall_cmds=$lt_postuninstall_cmds
15818
15819 # Commands used to finish a libtool library installation in a directory.
15820 finish_cmds=$lt_finish_cmds
15821
15822 # As "finish_cmds", except a single script fragment to be evaled but
15823 # not shown.
15824 finish_eval=$lt_finish_eval
15825
15826 # Whether we should hardcode library paths into libraries.
15827 hardcode_into_libs=$hardcode_into_libs
15828
15829 # Compile-time system search path for libraries.
15830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15831
15832 # Run-time system search path for libraries.
15833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15834
15835 # Whether dlopen is supported.
15836 dlopen_support=$enable_dlopen
15837
15838 # Whether dlopen of programs is supported.
15839 dlopen_self=$enable_dlopen_self
15840
15841 # Whether dlopen of statically linked programs is supported.
15842 dlopen_self_static=$enable_dlopen_self_static
15843
15844 # Commands to strip libraries.
15845 old_striplib=$lt_old_striplib
15846 striplib=$lt_striplib
15847
15848
15849 # The linker used to build libraries.
15850 LD=$lt_LD
15851
15852 # How to create reloadable object files.
15853 reload_flag=$lt_reload_flag
15854 reload_cmds=$lt_reload_cmds
15855
15856 # Commands used to build an old-style archive.
15857 old_archive_cmds=$lt_old_archive_cmds
15858
15859 # A language specific compiler.
15860 CC=$lt_compiler
15861
15862 # Is the compiler the GNU compiler?
15863 with_gcc=$GCC
15864
15865 # Compiler flag to turn off builtin functions.
15866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15867
15868 # How to pass a linker flag through the compiler.
15869 wl=$lt_lt_prog_compiler_wl
15870
15871 # Additional compiler flags for building library objects.
15872 pic_flag=$lt_lt_prog_compiler_pic
15873
15874 # Compiler flag to prevent dynamic linking.
15875 link_static_flag=$lt_lt_prog_compiler_static
15876
15877 # Does compiler simultaneously support -c and -o options?
15878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15879
15880 # Whether or not to add -lc for building shared libraries.
15881 build_libtool_need_lc=$archive_cmds_need_lc
15882
15883 # Whether or not to disallow shared libs when runtime libs are static.
15884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15885
15886 # Compiler flag to allow reflexive dlopens.
15887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15888
15889 # Compiler flag to generate shared objects directly from archives.
15890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15891
15892 # Whether the compiler copes with passing no objects directly.
15893 compiler_needs_object=$lt_compiler_needs_object
15894
15895 # Create an old-style archive from a shared archive.
15896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15897
15898 # Create a temporary old-style archive to link instead of a shared archive.
15899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15900
15901 # Commands used to build a shared archive.
15902 archive_cmds=$lt_archive_cmds
15903 archive_expsym_cmds=$lt_archive_expsym_cmds
15904
15905 # Commands used to build a loadable module if different from building
15906 # a shared archive.
15907 module_cmds=$lt_module_cmds
15908 module_expsym_cmds=$lt_module_expsym_cmds
15909
15910 # Whether we are building with GNU ld or not.
15911 with_gnu_ld=$lt_with_gnu_ld
15912
15913 # Flag that allows shared libraries with undefined symbols to be built.
15914 allow_undefined_flag=$lt_allow_undefined_flag
15915
15916 # Flag that enforces no undefined symbols.
15917 no_undefined_flag=$lt_no_undefined_flag
15918
15919 # Flag to hardcode \$libdir into a binary during linking.
15920 # This must work even if \$libdir does not exist
15921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15922
15923 # If ld is used when linking, flag to hardcode \$libdir into a binary
15924 # during linking.  This must work even if \$libdir does not exist.
15925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15926
15927 # Whether we need a single "-rpath" flag with a separated argument.
15928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15929
15930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15931 # DIR into the resulting binary.
15932 hardcode_direct=$hardcode_direct
15933
15934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15935 # DIR into the resulting binary and the resulting library dependency is
15936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15937 # library is relocated.
15938 hardcode_direct_absolute=$hardcode_direct_absolute
15939
15940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15941 # into the resulting binary.
15942 hardcode_minus_L=$hardcode_minus_L
15943
15944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15945 # into the resulting binary.
15946 hardcode_shlibpath_var=$hardcode_shlibpath_var
15947
15948 # Set to "yes" if building a shared library automatically hardcodes DIR
15949 # into the library and all subsequent libraries and executables linked
15950 # against it.
15951 hardcode_automatic=$hardcode_automatic
15952
15953 # Set to yes if linker adds runtime paths of dependent libraries
15954 # to runtime path list.
15955 inherit_rpath=$inherit_rpath
15956
15957 # Whether libtool must link a program against all its dependency libraries.
15958 link_all_deplibs=$link_all_deplibs
15959
15960 # Fix the shell variable \$srcfile for the compiler.
15961 fix_srcfile_path=$lt_fix_srcfile_path
15962
15963 # Set to "yes" if exported symbols are required.
15964 always_export_symbols=$always_export_symbols
15965
15966 # The commands to list exported symbols.
15967 export_symbols_cmds=$lt_export_symbols_cmds
15968
15969 # Symbols that should not be listed in the preloaded symbols.
15970 exclude_expsyms=$lt_exclude_expsyms
15971
15972 # Symbols that must always be exported.
15973 include_expsyms=$lt_include_expsyms
15974
15975 # Commands necessary for linking programs (against libraries) with templates.
15976 prelink_cmds=$lt_prelink_cmds
15977
15978 # Specify filename containing input files.
15979 file_list_spec=$lt_file_list_spec
15980
15981 # How to hardcode a shared library path into an executable.
15982 hardcode_action=$hardcode_action
15983
15984 # ### END LIBTOOL CONFIG
15985
15986 _LT_EOF
15987
15988   case $host_os in
15989   aix3*)
15990     cat <<\_LT_EOF >> "$cfgfile"
15991 # AIX sometimes has problems with the GCC collect2 program.  For some
15992 # reason, if we set the COLLECT_NAMES environment variable, the problems
15993 # vanish in a puff of smoke.
15994 if test "X${COLLECT_NAMES+set}" != Xset; then
15995   COLLECT_NAMES=
15996   export COLLECT_NAMES
15997 fi
15998 _LT_EOF
15999     ;;
16000   esac
16001
16002
16003 ltmain="$ac_aux_dir/ltmain.sh"
16004
16005
16006   # We use sed instead of cat because bash on DJGPP gets confused if
16007   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16008   # text mode, it properly converts lines to CR/LF.  This bash problem
16009   # is reportedly fixed, but why not run on old versions too?
16010   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16011     || (rm -f "$cfgfile"; exit 1)
16012
16013   case $xsi_shell in
16014   yes)
16015     cat << \_LT_EOF >> "$cfgfile"
16016
16017 # func_dirname file append nondir_replacement
16018 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16019 # otherwise set result to NONDIR_REPLACEMENT.
16020 func_dirname ()
16021 {
16022   case ${1} in
16023     */*) func_dirname_result="${1%/*}${2}" ;;
16024     *  ) func_dirname_result="${3}" ;;
16025   esac
16026 }
16027
16028 # func_basename file
16029 func_basename ()
16030 {
16031   func_basename_result="${1##*/}"
16032 }
16033
16034 # func_dirname_and_basename file append nondir_replacement
16035 # perform func_basename and func_dirname in a single function
16036 # call:
16037 #   dirname:  Compute the dirname of FILE.  If nonempty,
16038 #             add APPEND to the result, otherwise set result
16039 #             to NONDIR_REPLACEMENT.
16040 #             value returned in "$func_dirname_result"
16041 #   basename: Compute filename of FILE.
16042 #             value retuned in "$func_basename_result"
16043 # Implementation must be kept synchronized with func_dirname
16044 # and func_basename. For efficiency, we do not delegate to
16045 # those functions but instead duplicate the functionality here.
16046 func_dirname_and_basename ()
16047 {
16048   case ${1} in
16049     */*) func_dirname_result="${1%/*}${2}" ;;
16050     *  ) func_dirname_result="${3}" ;;
16051   esac
16052   func_basename_result="${1##*/}"
16053 }
16054
16055 # func_stripname prefix suffix name
16056 # strip PREFIX and SUFFIX off of NAME.
16057 # PREFIX and SUFFIX must not contain globbing or regex special
16058 # characters, hashes, percent signs, but SUFFIX may contain a leading
16059 # dot (in which case that matches only a dot).
16060 func_stripname ()
16061 {
16062   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16063   # positional parameters, so assign one to ordinary parameter first.
16064   func_stripname_result=${3}
16065   func_stripname_result=${func_stripname_result#"${1}"}
16066   func_stripname_result=${func_stripname_result%"${2}"}
16067 }
16068
16069 # func_opt_split
16070 func_opt_split ()
16071 {
16072   func_opt_split_opt=${1%%=*}
16073   func_opt_split_arg=${1#*=}
16074 }
16075
16076 # func_lo2o object
16077 func_lo2o ()
16078 {
16079   case ${1} in
16080     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16081     *)    func_lo2o_result=${1} ;;
16082   esac
16083 }
16084
16085 # func_xform libobj-or-source
16086 func_xform ()
16087 {
16088   func_xform_result=${1%.*}.lo
16089 }
16090
16091 # func_arith arithmetic-term...
16092 func_arith ()
16093 {
16094   func_arith_result=$(( $* ))
16095 }
16096
16097 # func_len string
16098 # STRING may not start with a hyphen.
16099 func_len ()
16100 {
16101   func_len_result=${#1}
16102 }
16103
16104 _LT_EOF
16105     ;;
16106   *) # Bourne compatible functions.
16107     cat << \_LT_EOF >> "$cfgfile"
16108
16109 # func_dirname file append nondir_replacement
16110 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16111 # otherwise set result to NONDIR_REPLACEMENT.
16112 func_dirname ()
16113 {
16114   # Extract subdirectory from the argument.
16115   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16116   if test "X$func_dirname_result" = "X${1}"; then
16117     func_dirname_result="${3}"
16118   else
16119     func_dirname_result="$func_dirname_result${2}"
16120   fi
16121 }
16122
16123 # func_basename file
16124 func_basename ()
16125 {
16126   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16127 }
16128
16129
16130 # func_stripname prefix suffix name
16131 # strip PREFIX and SUFFIX off of NAME.
16132 # PREFIX and SUFFIX must not contain globbing or regex special
16133 # characters, hashes, percent signs, but SUFFIX may contain a leading
16134 # dot (in which case that matches only a dot).
16135 # func_strip_suffix prefix name
16136 func_stripname ()
16137 {
16138   case ${2} in
16139     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16140     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16141   esac
16142 }
16143
16144 # sed scripts:
16145 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16146 my_sed_long_arg='1s/^-[^=]*=//'
16147
16148 # func_opt_split
16149 func_opt_split ()
16150 {
16151   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16152   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16153 }
16154
16155 # func_lo2o object
16156 func_lo2o ()
16157 {
16158   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16159 }
16160
16161 # func_xform libobj-or-source
16162 func_xform ()
16163 {
16164   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16165 }
16166
16167 # func_arith arithmetic-term...
16168 func_arith ()
16169 {
16170   func_arith_result=`expr "$@"`
16171 }
16172
16173 # func_len string
16174 # STRING may not start with a hyphen.
16175 func_len ()
16176 {
16177   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16178 }
16179
16180 _LT_EOF
16181 esac
16182
16183 case $lt_shell_append in
16184   yes)
16185     cat << \_LT_EOF >> "$cfgfile"
16186
16187 # func_append var value
16188 # Append VALUE to the end of shell variable VAR.
16189 func_append ()
16190 {
16191   eval "$1+=\$2"
16192 }
16193 _LT_EOF
16194     ;;
16195   *)
16196     cat << \_LT_EOF >> "$cfgfile"
16197
16198 # func_append var value
16199 # Append VALUE to the end of shell variable VAR.
16200 func_append ()
16201 {
16202   eval "$1=\$$1\$2"
16203 }
16204
16205 _LT_EOF
16206     ;;
16207   esac
16208
16209
16210   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16211     || (rm -f "$cfgfile"; exit 1)
16212
16213   mv -f "$cfgfile" "$ofile" ||
16214     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16215   chmod +x "$ofile"
16216
16217  ;;
16218     "gstdint.h":C)
16219 if test "$GCC" = yes; then
16220   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16221 else
16222   echo "/* generated for $CC */" > tmp-stdint.h
16223 fi
16224
16225 sed 's/^ *//' >> tmp-stdint.h <<EOF
16226
16227   #ifndef GCC_GENERATED_STDINT_H
16228   #define GCC_GENERATED_STDINT_H 1
16229
16230   #include <sys/types.h>
16231 EOF
16232
16233 if test "$acx_cv_header_stdint" != stdint.h; then
16234   echo "#include <stddef.h>" >> tmp-stdint.h
16235 fi
16236 if test "$acx_cv_header_stdint" != stddef.h; then
16237   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16238 fi
16239
16240 sed 's/^ *//' >> tmp-stdint.h <<EOF
16241   /* glibc uses these symbols as guards to prevent redefinitions.  */
16242   #ifdef __int8_t_defined
16243   #define _INT8_T
16244   #define _INT16_T
16245   #define _INT32_T
16246   #endif
16247   #ifdef __uint32_t_defined
16248   #define _UINT32_T
16249   #endif
16250
16251 EOF
16252
16253 # ----------------- done header, emit basic int types -------------
16254 if test "$acx_cv_header_stdint" = stddef.h; then
16255   sed 's/^ *//' >> tmp-stdint.h <<EOF
16256
16257     #ifndef _UINT8_T
16258     #define _UINT8_T
16259     #ifndef __uint8_t_defined
16260     #define __uint8_t_defined
16261     #ifndef uint8_t
16262     typedef unsigned $acx_cv_type_int8_t uint8_t;
16263     #endif
16264     #endif
16265     #endif
16266
16267     #ifndef _UINT16_T
16268     #define _UINT16_T
16269     #ifndef __uint16_t_defined
16270     #define __uint16_t_defined
16271     #ifndef uint16_t
16272     typedef unsigned $acx_cv_type_int16_t uint16_t;
16273     #endif
16274     #endif
16275     #endif
16276
16277     #ifndef _UINT32_T
16278     #define _UINT32_T
16279     #ifndef __uint32_t_defined
16280     #define __uint32_t_defined
16281     #ifndef uint32_t
16282     typedef unsigned $acx_cv_type_int32_t uint32_t;
16283     #endif
16284     #endif
16285     #endif
16286
16287     #ifndef _INT8_T
16288     #define _INT8_T
16289     #ifndef __int8_t_defined
16290     #define __int8_t_defined
16291     #ifndef int8_t
16292     typedef $acx_cv_type_int8_t int8_t;
16293     #endif
16294     #endif
16295     #endif
16296
16297     #ifndef _INT16_T
16298     #define _INT16_T
16299     #ifndef __int16_t_defined
16300     #define __int16_t_defined
16301     #ifndef int16_t
16302     typedef $acx_cv_type_int16_t int16_t;
16303     #endif
16304     #endif
16305     #endif
16306
16307     #ifndef _INT32_T
16308     #define _INT32_T
16309     #ifndef __int32_t_defined
16310     #define __int32_t_defined
16311     #ifndef int32_t
16312     typedef $acx_cv_type_int32_t int32_t;
16313     #endif
16314     #endif
16315     #endif
16316 EOF
16317 elif test "$ac_cv_type_u_int32_t" = yes; then
16318   sed 's/^ *//' >> tmp-stdint.h <<EOF
16319
16320     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16321     #ifndef _INT8_T
16322     #define _INT8_T
16323     #endif
16324     #ifndef _INT16_T
16325     #define _INT16_T
16326     #endif
16327     #ifndef _INT32_T
16328     #define _INT32_T
16329     #endif
16330
16331     #ifndef _UINT8_T
16332     #define _UINT8_T
16333     #ifndef __uint8_t_defined
16334     #define __uint8_t_defined
16335     #ifndef uint8_t
16336     typedef u_int8_t uint8_t;
16337     #endif
16338     #endif
16339     #endif
16340
16341     #ifndef _UINT16_T
16342     #define _UINT16_T
16343     #ifndef __uint16_t_defined
16344     #define __uint16_t_defined
16345     #ifndef uint16_t
16346     typedef u_int16_t uint16_t;
16347     #endif
16348     #endif
16349     #endif
16350
16351     #ifndef _UINT32_T
16352     #define _UINT32_T
16353     #ifndef __uint32_t_defined
16354     #define __uint32_t_defined
16355     #ifndef uint32_t
16356     typedef u_int32_t uint32_t;
16357     #endif
16358     #endif
16359     #endif
16360 EOF
16361 else
16362   sed 's/^ *//' >> tmp-stdint.h <<EOF
16363
16364     /* Some systems have guard macros to prevent redefinitions, define them.  */
16365     #ifndef _INT8_T
16366     #define _INT8_T
16367     #endif
16368     #ifndef _INT16_T
16369     #define _INT16_T
16370     #endif
16371     #ifndef _INT32_T
16372     #define _INT32_T
16373     #endif
16374     #ifndef _UINT8_T
16375     #define _UINT8_T
16376     #endif
16377     #ifndef _UINT16_T
16378     #define _UINT16_T
16379     #endif
16380     #ifndef _UINT32_T
16381     #define _UINT32_T
16382     #endif
16383 EOF
16384 fi
16385
16386 # ------------- done basic int types, emit int64_t types ------------
16387 if test "$ac_cv_type_uint64_t" = yes; then
16388   sed 's/^ *//' >> tmp-stdint.h <<EOF
16389
16390     /* system headers have good uint64_t and int64_t */
16391     #ifndef _INT64_T
16392     #define _INT64_T
16393     #endif
16394     #ifndef _UINT64_T
16395     #define _UINT64_T
16396     #endif
16397 EOF
16398 elif test "$ac_cv_type_u_int64_t" = yes; then
16399   sed 's/^ *//' >> tmp-stdint.h <<EOF
16400
16401     /* system headers have an u_int64_t (and int64_t) */
16402     #ifndef _INT64_T
16403     #define _INT64_T
16404     #endif
16405     #ifndef _UINT64_T
16406     #define _UINT64_T
16407     #ifndef __uint64_t_defined
16408     #define __uint64_t_defined
16409     #ifndef uint64_t
16410     typedef u_int64_t uint64_t;
16411     #endif
16412     #endif
16413     #endif
16414 EOF
16415 elif test -n "$acx_cv_type_int64_t"; then
16416   sed 's/^ *//' >> tmp-stdint.h <<EOF
16417
16418     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16419     #ifndef _INT64_T
16420     #define _INT64_T
16421     #ifndef int64_t
16422     typedef $acx_cv_type_int64_t int64_t;
16423     #endif
16424     #endif
16425     #ifndef _UINT64_T
16426     #define _UINT64_T
16427     #ifndef __uint64_t_defined
16428     #define __uint64_t_defined
16429     #ifndef uint64_t
16430     typedef unsigned $acx_cv_type_int64_t uint64_t;
16431     #endif
16432     #endif
16433     #endif
16434 EOF
16435 else
16436   sed 's/^ *//' >> tmp-stdint.h <<EOF
16437
16438     /* some common heuristics for int64_t, using compiler-specific tests */
16439     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16440     #ifndef _INT64_T
16441     #define _INT64_T
16442     #ifndef __int64_t_defined
16443     #ifndef int64_t
16444     typedef long long int64_t;
16445     #endif
16446     #endif
16447     #endif
16448     #ifndef _UINT64_T
16449     #define _UINT64_T
16450     #ifndef uint64_t
16451     typedef unsigned long long uint64_t;
16452     #endif
16453     #endif
16454
16455     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16456     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16457        does not implement __extension__.  But that compiler doesn't define
16458        __GNUC_MINOR__.  */
16459     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16460     # define __extension__
16461     # endif
16462
16463     # ifndef _INT64_T
16464     # define _INT64_T
16465     # ifndef int64_t
16466     __extension__ typedef long long int64_t;
16467     # endif
16468     # endif
16469     # ifndef _UINT64_T
16470     # define _UINT64_T
16471     # ifndef uint64_t
16472     __extension__ typedef unsigned long long uint64_t;
16473     # endif
16474     # endif
16475
16476     #elif !defined __STRICT_ANSI__
16477     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16478
16479     #  ifndef _INT64_T
16480     #  define _INT64_T
16481     #  ifndef int64_t
16482     typedef __int64 int64_t;
16483     #  endif
16484     #  endif
16485     #  ifndef _UINT64_T
16486     #  define _UINT64_T
16487     #  ifndef uint64_t
16488     typedef unsigned __int64 uint64_t;
16489     #  endif
16490     #  endif
16491     # endif /* compiler */
16492
16493     #endif /* ANSI version */
16494 EOF
16495 fi
16496
16497 # ------------- done int64_t types, emit intptr types ------------
16498 if test "$ac_cv_type_uintptr_t" != yes; then
16499   sed 's/^ *//' >> tmp-stdint.h <<EOF
16500
16501     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16502     #ifndef __uintptr_t_defined
16503     #ifndef uintptr_t
16504     typedef u$acx_cv_type_intptr_t uintptr_t;
16505     #endif
16506     #endif
16507     #ifndef __intptr_t_defined
16508     #ifndef intptr_t
16509     typedef $acx_cv_type_intptr_t  intptr_t;
16510     #endif
16511     #endif
16512 EOF
16513 fi
16514
16515 # ------------- done intptr types, emit int_least types ------------
16516 if test "$ac_cv_type_int_least32_t" != yes; then
16517   sed 's/^ *//' >> tmp-stdint.h <<EOF
16518
16519     /* Define int_least types */
16520     typedef int8_t     int_least8_t;
16521     typedef int16_t    int_least16_t;
16522     typedef int32_t    int_least32_t;
16523     #ifdef _INT64_T
16524     typedef int64_t    int_least64_t;
16525     #endif
16526
16527     typedef uint8_t    uint_least8_t;
16528     typedef uint16_t   uint_least16_t;
16529     typedef uint32_t   uint_least32_t;
16530     #ifdef _UINT64_T
16531     typedef uint64_t   uint_least64_t;
16532     #endif
16533 EOF
16534 fi
16535
16536 # ------------- done intptr types, emit int_fast types ------------
16537 if test "$ac_cv_type_int_fast32_t" != yes; then
16538       sed 's/^ *//' >> tmp-stdint.h <<EOF
16539
16540     /* Define int_fast types.  short is often slow */
16541     typedef int8_t       int_fast8_t;
16542     typedef int          int_fast16_t;
16543     typedef int32_t      int_fast32_t;
16544     #ifdef _INT64_T
16545     typedef int64_t      int_fast64_t;
16546     #endif
16547
16548     typedef uint8_t      uint_fast8_t;
16549     typedef unsigned int uint_fast16_t;
16550     typedef uint32_t     uint_fast32_t;
16551     #ifdef _UINT64_T
16552     typedef uint64_t     uint_fast64_t;
16553     #endif
16554 EOF
16555 fi
16556
16557 if test "$ac_cv_type_uintmax_t" != yes; then
16558   sed 's/^ *//' >> tmp-stdint.h <<EOF
16559
16560     /* Define intmax based on what we found */
16561     #ifndef intmax_t
16562     #ifdef _INT64_T
16563     typedef int64_t       intmax_t;
16564     #else
16565     typedef long          intmax_t;
16566     #endif
16567     #endif
16568     #ifndef uintmax_t
16569     #ifdef _UINT64_T
16570     typedef uint64_t      uintmax_t;
16571     #else
16572     typedef unsigned long uintmax_t;
16573     #endif
16574     #endif
16575 EOF
16576 fi
16577
16578 sed 's/^ *//' >> tmp-stdint.h <<EOF
16579
16580   #endif /* GCC_GENERATED_STDINT_H */
16581 EOF
16582
16583 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16584   rm -f tmp-stdint.h
16585 else
16586   mv -f tmp-stdint.h gstdint.h
16587 fi
16588
16589  ;;
16590     "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
16591     "default":C) if test -n "$CONFIG_FILES"; then
16592    if test -n "${with_target_subdir}"; then
16593      # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16594      # that multilib installs will end up installed in the correct place.
16595      # The testsuite needs it for multilib-aware ABI baseline files.
16596      # To work around this not being passed down from config-ml.in ->
16597      # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16598      # append it here.  Only modify Makefiles that have just been created.
16599      #
16600      # Also, get rid of this simulated-VPATH thing that automake does.
16601      cat > vpsed << \_EOF
16602   s!`test -f '$<' || echo '$(srcdir)/'`!!
16603 _EOF
16604      for i in $SUBDIRS; do
16605       case $CONFIG_FILES in
16606        *${i}/Makefile*)
16607          #echo "Adding MULTISUBDIR to $i/Makefile"
16608          sed -f vpsed $i/Makefile > tmp
16609          grep '^MULTISUBDIR =' Makefile >> tmp
16610          mv tmp $i/Makefile
16611          ;;
16612       esac
16613      done
16614      rm vpsed
16615    fi
16616  fi
16617  ;;
16618
16619   esac
16620 done # for ac_tag
16621
16622
16623 as_fn_exit 0
16624 _ACEOF
16625 ac_clean_files=$ac_clean_files_save
16626
16627 test $ac_write_fail = 0 ||
16628   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16629
16630
16631 # configure is writing to config.log, and then calls config.status.
16632 # config.status does its own redirection, appending to config.log.
16633 # Unfortunately, on DOS this fails, as config.log is still kept open
16634 # by configure, so config.status won't be able to write to it; its
16635 # output is simply discarded.  So we exec the FD to /dev/null,
16636 # effectively closing config.log, so it can be properly (re)opened and
16637 # appended to by config.status.  When coming back to configure, we
16638 # need to make the FD available again.
16639 if test "$no_create" != yes; then
16640   ac_cs_success=:
16641   ac_config_status_args=
16642   test "$silent" = yes &&
16643     ac_config_status_args="$ac_config_status_args --quiet"
16644   exec 5>/dev/null
16645   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16646   exec 5>>config.log
16647   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16648   # would make configure fail if this is the last instruction.
16649   $ac_cs_success || as_fn_exit 1
16650 fi
16651 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16652   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16653 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16654 fi
16655