[Check]: Disable the document to correct build error.
[platform/upstream/check.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Check 0.14.0.
4 #
5 # Report bugs to <check-devel at lists dot sourceforge dot net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and check-devel at
278 $0: lists dot sourceforge dot net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='Check'
592 PACKAGE_TARNAME='check'
593 PACKAGE_VERSION='0.14.0'
594 PACKAGE_STRING='Check 0.14.0'
595 PACKAGE_BUGREPORT='check-devel at lists dot sourceforge dot net'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/check.c"
599 ac_config_libobj_dir=lib
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_header_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 AWK_GSUB_DBL_BSLASH
641 INSTALL_CHECKMK_FALSE
642 INSTALL_CHECKMK_TRUE
643 AWK_PATH
644 HAVE_FORK
645 LIBOBJS
646 ENABLE_REGEX
647 HAVE_REGEX
648 SUBUNIT_FALSE
649 SUBUNIT_TRUE
650 LIBSUBUNIT_PC
651 ENABLE_SUBUNIT
652 LIBSUBUNIT_LIBS
653 LIBSUBUNIT_CFLAGS
654 PKG_CONFIG_LIBDIR
655 PKG_CONFIG_PATH
656 PKG_CONFIG
657 PTHREAD_CFLAGS
658 PTHREAD_LIBS
659 PTHREAD_CC
660 acx_pthread_config
661 USE_GRAPHVIZ_FALSE
662 USE_GRAPHVIZ_TRUE
663 GRAPHVIZ
664 USE_FILTERDIFF_FALSE
665 USE_FILTERDIFF_TRUE
666 FILTERDIFF
667 MAKE_DOCS_FALSE
668 MAKE_DOCS_TRUE
669 GENHTML
670 LCOV
671 GCOV
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 DLLTOOL
681 OBJDUMP
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 ac_ct_AR
697 AR
698 LN_S
699 SED
700 NO_TIMEOUT_TESTS_FALSE
701 NO_TIMEOUT_TESTS_TRUE
702 ENABLE_GCOV_FALSE
703 ENABLE_GCOV_TRUE
704 GCOV_LIBS
705 GCOV_CFLAGS
706 CHECK_VERSION
707 CHECK_MICRO_VERSION
708 CHECK_MINOR_VERSION
709 CHECK_MAJOR_VERSION
710 EGREP
711 GREP
712 CPP
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_silent_rules
799 enable_dependency_tracking
800 enable_gcov
801 enable_timeout_tests
802 enable_build_docs
803 enable_subunit
804 enable_fork
805 enable_snprintf_replacement
806 enable_timer_replacement
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_aix_soname
812 with_gnu_ld
813 with_sysroot
814 enable_libtool_lock
815 '
816       ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 LT_SYS_LIBRARY_PATH
826 PKG_CONFIG
827 PKG_CONFIG_PATH
828 PKG_CONFIG_LIBDIR
829 LIBSUBUNIT_CFLAGS
830 LIBSUBUNIT_LIBS
831 AWK_PATH'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886   # If the previous option needs an argument, assign it.
887   if test -n "$ac_prev"; then
888     eval $ac_prev=\$ac_option
889     ac_prev=
890     continue
891   fi
892
893   case $ac_option in
894   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895   *=)   ac_optarg= ;;
896   *)    ac_optarg=yes ;;
897   esac
898
899   # Accept the important Cygnus configure options, so we can diagnose typos.
900
901   case $ac_dashdash$ac_option in
902   --)
903     ac_dashdash=yes ;;
904
905   -bindir | --bindir | --bindi | --bind | --bin | --bi)
906     ac_prev=bindir ;;
907   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908     bindir=$ac_optarg ;;
909
910   -build | --build | --buil | --bui | --bu)
911     ac_prev=build_alias ;;
912   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913     build_alias=$ac_optarg ;;
914
915   -cache-file | --cache-file | --cache-fil | --cache-fi \
916   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917     ac_prev=cache_file ;;
918   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920     cache_file=$ac_optarg ;;
921
922   --config-cache | -C)
923     cache_file=config.cache ;;
924
925   -datadir | --datadir | --datadi | --datad)
926     ac_prev=datadir ;;
927   -datadir=* | --datadir=* | --datadi=* | --datad=*)
928     datadir=$ac_optarg ;;
929
930   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931   | --dataroo | --dataro | --datar)
932     ac_prev=datarootdir ;;
933   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935     datarootdir=$ac_optarg ;;
936
937   -disable-* | --disable-*)
938     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941       as_fn_error $? "invalid feature name: $ac_useropt"
942     ac_useropt_orig=$ac_useropt
943     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944     case $ac_user_opts in
945       *"
946 "enable_$ac_useropt"
947 "*) ;;
948       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949          ac_unrecognized_sep=', ';;
950     esac
951     eval enable_$ac_useropt=no ;;
952
953   -docdir | --docdir | --docdi | --doc | --do)
954     ac_prev=docdir ;;
955   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956     docdir=$ac_optarg ;;
957
958   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959     ac_prev=dvidir ;;
960   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961     dvidir=$ac_optarg ;;
962
963   -enable-* | --enable-*)
964     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967       as_fn_error $? "invalid feature name: $ac_useropt"
968     ac_useropt_orig=$ac_useropt
969     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970     case $ac_user_opts in
971       *"
972 "enable_$ac_useropt"
973 "*) ;;
974       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975          ac_unrecognized_sep=', ';;
976     esac
977     eval enable_$ac_useropt=\$ac_optarg ;;
978
979   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981   | --exec | --exe | --ex)
982     ac_prev=exec_prefix ;;
983   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985   | --exec=* | --exe=* | --ex=*)
986     exec_prefix=$ac_optarg ;;
987
988   -gas | --gas | --ga | --g)
989     # Obsolete; use --with-gas.
990     with_gas=yes ;;
991
992   -help | --help | --hel | --he | -h)
993     ac_init_help=long ;;
994   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995     ac_init_help=recursive ;;
996   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997     ac_init_help=short ;;
998
999   -host | --host | --hos | --ho)
1000     ac_prev=host_alias ;;
1001   -host=* | --host=* | --hos=* | --ho=*)
1002     host_alias=$ac_optarg ;;
1003
1004   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005     ac_prev=htmldir ;;
1006   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007   | --ht=*)
1008     htmldir=$ac_optarg ;;
1009
1010   -includedir | --includedir | --includedi | --included | --include \
1011   | --includ | --inclu | --incl | --inc)
1012     ac_prev=includedir ;;
1013   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014   | --includ=* | --inclu=* | --incl=* | --inc=*)
1015     includedir=$ac_optarg ;;
1016
1017   -infodir | --infodir | --infodi | --infod | --info | --inf)
1018     ac_prev=infodir ;;
1019   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020     infodir=$ac_optarg ;;
1021
1022   -libdir | --libdir | --libdi | --libd)
1023     ac_prev=libdir ;;
1024   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025     libdir=$ac_optarg ;;
1026
1027   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028   | --libexe | --libex | --libe)
1029     ac_prev=libexecdir ;;
1030   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031   | --libexe=* | --libex=* | --libe=*)
1032     libexecdir=$ac_optarg ;;
1033
1034   -localedir | --localedir | --localedi | --localed | --locale)
1035     ac_prev=localedir ;;
1036   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037     localedir=$ac_optarg ;;
1038
1039   -localstatedir | --localstatedir | --localstatedi | --localstated \
1040   | --localstate | --localstat | --localsta | --localst | --locals)
1041     ac_prev=localstatedir ;;
1042   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044     localstatedir=$ac_optarg ;;
1045
1046   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047     ac_prev=mandir ;;
1048   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049     mandir=$ac_optarg ;;
1050
1051   -nfp | --nfp | --nf)
1052     # Obsolete; use --without-fp.
1053     with_fp=no ;;
1054
1055   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056   | --no-cr | --no-c | -n)
1057     no_create=yes ;;
1058
1059   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061     no_recursion=yes ;;
1062
1063   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065   | --oldin | --oldi | --old | --ol | --o)
1066     ac_prev=oldincludedir ;;
1067   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070     oldincludedir=$ac_optarg ;;
1071
1072   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073     ac_prev=prefix ;;
1074   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075     prefix=$ac_optarg ;;
1076
1077   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078   | --program-pre | --program-pr | --program-p)
1079     ac_prev=program_prefix ;;
1080   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082     program_prefix=$ac_optarg ;;
1083
1084   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085   | --program-suf | --program-su | --program-s)
1086     ac_prev=program_suffix ;;
1087   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089     program_suffix=$ac_optarg ;;
1090
1091   -program-transform-name | --program-transform-name \
1092   | --program-transform-nam | --program-transform-na \
1093   | --program-transform-n | --program-transform- \
1094   | --program-transform | --program-transfor \
1095   | --program-transfo | --program-transf \
1096   | --program-trans | --program-tran \
1097   | --progr-tra | --program-tr | --program-t)
1098     ac_prev=program_transform_name ;;
1099   -program-transform-name=* | --program-transform-name=* \
1100   | --program-transform-nam=* | --program-transform-na=* \
1101   | --program-transform-n=* | --program-transform-=* \
1102   | --program-transform=* | --program-transfor=* \
1103   | --program-transfo=* | --program-transf=* \
1104   | --program-trans=* | --program-tran=* \
1105   | --progr-tra=* | --program-tr=* | --program-t=*)
1106     program_transform_name=$ac_optarg ;;
1107
1108   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109     ac_prev=pdfdir ;;
1110   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111     pdfdir=$ac_optarg ;;
1112
1113   -psdir | --psdir | --psdi | --psd | --ps)
1114     ac_prev=psdir ;;
1115   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116     psdir=$ac_optarg ;;
1117
1118   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119   | -silent | --silent | --silen | --sile | --sil)
1120     silent=yes ;;
1121
1122   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123     ac_prev=sbindir ;;
1124   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125   | --sbi=* | --sb=*)
1126     sbindir=$ac_optarg ;;
1127
1128   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130   | --sharedst | --shareds | --shared | --share | --shar \
1131   | --sha | --sh)
1132     ac_prev=sharedstatedir ;;
1133   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136   | --sha=* | --sh=*)
1137     sharedstatedir=$ac_optarg ;;
1138
1139   -site | --site | --sit)
1140     ac_prev=site ;;
1141   -site=* | --site=* | --sit=*)
1142     site=$ac_optarg ;;
1143
1144   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145     ac_prev=srcdir ;;
1146   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147     srcdir=$ac_optarg ;;
1148
1149   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150   | --syscon | --sysco | --sysc | --sys | --sy)
1151     ac_prev=sysconfdir ;;
1152   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154     sysconfdir=$ac_optarg ;;
1155
1156   -target | --target | --targe | --targ | --tar | --ta | --t)
1157     ac_prev=target_alias ;;
1158   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159     target_alias=$ac_optarg ;;
1160
1161   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162     verbose=yes ;;
1163
1164   -version | --version | --versio | --versi | --vers | -V)
1165     ac_init_version=: ;;
1166
1167   -with-* | --with-*)
1168     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169     # Reject names that are not valid shell variable names.
1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171       as_fn_error $? "invalid package name: $ac_useropt"
1172     ac_useropt_orig=$ac_useropt
1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174     case $ac_user_opts in
1175       *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179          ac_unrecognized_sep=', ';;
1180     esac
1181     eval with_$ac_useropt=\$ac_optarg ;;
1182
1183   -without-* | --without-*)
1184     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187       as_fn_error $? "invalid package name: $ac_useropt"
1188     ac_useropt_orig=$ac_useropt
1189     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190     case $ac_user_opts in
1191       *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195          ac_unrecognized_sep=', ';;
1196     esac
1197     eval with_$ac_useropt=no ;;
1198
1199   --x)
1200     # Obsolete; use --with-x.
1201     with_x=yes ;;
1202
1203   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204   | --x-incl | --x-inc | --x-in | --x-i)
1205     ac_prev=x_includes ;;
1206   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208     x_includes=$ac_optarg ;;
1209
1210   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212     ac_prev=x_libraries ;;
1213   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215     x_libraries=$ac_optarg ;;
1216
1217   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219     ;;
1220
1221   *=*)
1222     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223     # Reject names that are not valid shell variable names.
1224     case $ac_envvar in #(
1225       '' | [0-9]* | *[!_$as_cr_alnum]* )
1226       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227     esac
1228     eval $ac_envvar=\$ac_optarg
1229     export $ac_envvar ;;
1230
1231   *)
1232     # FIXME: should be removed in autoconf 3.0.
1233     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237     ;;
1238
1239   esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244   as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248   case $enable_option_checking in
1249     no) ;;
1250     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252   esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257                 datadir sysconfdir sharedstatedir localstatedir includedir \
1258                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259                 libdir localedir mandir
1260 do
1261   eval ac_val=\$$ac_var
1262   # Remove trailing slashes.
1263   case $ac_val in
1264     */ )
1265       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266       eval $ac_var=\$ac_val;;
1267   esac
1268   # Be sure to have absolute directory names.
1269   case $ac_val in
1270     [\\/$]* | ?:[\\/]* )  continue;;
1271     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272   esac
1273   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287   elif test "x$build_alias" != "x$host_alias"; then
1288     cross_compiling=yes
1289   fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301   as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303   as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308   ac_srcdir_defaulted=yes
1309   # Try the directory containing this script, then the parent directory.
1310   ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312          X"$as_myself" : 'X\(//\)[^/]' \| \
1313          X"$as_myself" : 'X\(//\)$' \| \
1314          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317             s//\1/
1318             q
1319           }
1320           /^X\(\/\/\)[^/].*/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\).*/{
1329             s//\1/
1330             q
1331           }
1332           s/.*/./; q'`
1333   srcdir=$ac_confdir
1334   if test ! -r "$srcdir/$ac_unique_file"; then
1335     srcdir=..
1336   fi
1337 else
1338   ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347         pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350   srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360   eval ac_env_${ac_var}_value=\$${ac_var}
1361   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369   # Omit some internal or obsolete options to make the list less imposing.
1370   # This message is too long to be a string in the A/UX 3.1 sh.
1371   cat <<_ACEOF
1372 \`configure' configures Check 0.14.0 to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382   -h, --help              display this help and exit
1383       --help=short        display options specific to this package
1384       --help=recursive    display the short help of all the included packages
1385   -V, --version           display version information and exit
1386   -q, --quiet, --silent   do not print \`checking ...' messages
1387       --cache-file=FILE   cache test results in FILE [disabled]
1388   -C, --config-cache      alias for \`--cache-file=config.cache'
1389   -n, --no-create         do not create output files
1390       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393   --prefix=PREFIX         install architecture-independent files in PREFIX
1394                           [$ac_default_prefix]
1395   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                           [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406   --bindir=DIR            user executables [EPREFIX/bin]
1407   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408   --libexecdir=DIR        program executables [EPREFIX/libexec]
1409   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412   --libdir=DIR            object code libraries [EPREFIX/lib]
1413   --includedir=DIR        C header files [PREFIX/include]
1414   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417   --infodir=DIR           info documentation [DATAROOTDIR/info]
1418   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419   --mandir=DIR            man documentation [DATAROOTDIR/man]
1420   --docdir=DIR            documentation root [DATAROOTDIR/doc/check]
1421   --htmldir=DIR           html documentation [DOCDIR]
1422   --dvidir=DIR            dvi documentation [DOCDIR]
1423   --pdfdir=DIR            pdf documentation [DOCDIR]
1424   --psdir=DIR             ps documentation [DOCDIR]
1425 _ACEOF
1426
1427   cat <<\_ACEOF
1428
1429 Program names:
1430   --program-prefix=PREFIX            prepend PREFIX to installed program names
1431   --program-suffix=SUFFIX            append SUFFIX to installed program names
1432   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434 System types:
1435   --build=BUILD     configure for building on BUILD [guessed]
1436   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441   case $ac_init_help in
1442      short | recursive ) echo "Configuration of Check 0.14.0:";;
1443    esac
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-option-checking  ignore unrecognized --enable/--with options
1448   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450   --enable-silent-rules   less verbose build output (undo: "make V=1")
1451   --disable-silent-rules  verbose build output (undo: "make V=0")
1452   --enable-dependency-tracking
1453                           do not reject slow dependency extractors
1454   --disable-dependency-tracking
1455                           speeds up one-time build
1456   --enable-gcov           turn on test coverage [default=no]
1457   --enable-timeout-tests  turn on timeout tests [default=yes]
1458   --enable-build-docs     turn on building documentation [default=yes]
1459   --enable-subunit        enable support for the subunit test protocol
1460                           [default=autodetect]
1461   --enable-fork           enable support for fork [default=autodetect]
1462   --enable-snprintf-replacement
1463                           enable check snprintf replacement, (even if the
1464                           system provides a C99 compliant version)
1465                           [default=autodetect]
1466   --enable-timer-replacement
1467                           enable check timer replacement, (even if the system
1468                           provides timer_create, timer_settime, and
1469                           timer_delete) [default=autodetect]
1470   --enable-shared[=PKGS]  build shared libraries [default=yes]
1471   --enable-static[=PKGS]  build static libraries [default=yes]
1472   --enable-fast-install[=PKGS]
1473                           optimize for fast installation [default=yes]
1474   --disable-libtool-lock  avoid locking (might break parallel builds)
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-aix-soname=aix|svr4|both
1482                           shared library versioning (aka "SONAME") variant to
1483                           provide on AIX, [default=aix].
1484   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1485   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1486                           compiler's sysroot if not specified).
1487
1488 Some influential environment variables:
1489   CC          C compiler command
1490   CFLAGS      C compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   LIBS        libraries to pass to the linker, e.g. -l<library>
1494   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495               you have headers in a nonstandard directory <include dir>
1496   CPP         C preprocessor
1497   LT_SYS_LIBRARY_PATH
1498               User-defined run-time library search path.
1499   PKG_CONFIG  path to pkg-config utility
1500   PKG_CONFIG_PATH
1501               directories to add to pkg-config's search path
1502   PKG_CONFIG_LIBDIR
1503               path overriding pkg-config's built-in search path
1504   LIBSUBUNIT_CFLAGS
1505               C compiler flags for LIBSUBUNIT, overriding pkg-config
1506   LIBSUBUNIT_LIBS
1507               linker flags for LIBSUBUNIT, overriding pkg-config
1508   AWK_PATH    Awk interpreter command
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to <check-devel at lists dot sourceforge dot net>.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519   # If there are subdirs, report their specific --help.
1520   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521     test -d "$ac_dir" ||
1522       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523       continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 Check configure 0.14.0
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583   exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext
1597   if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_compile") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest.$ac_objext; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } > conftest.i && {
1650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        }; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658     ac_retval=1
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if eval \${$3+:} false; then :
1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677   $as_echo_n "(cached) " >&6
1678 fi
1679 eval ac_res=\$$3
1680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683   # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692   ac_header_compiler=yes
1693 else
1694   ac_header_compiler=no
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1699
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708   ac_header_preproc=yes
1709 else
1710   ac_header_preproc=no
1711 fi
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1715
1716 # So?  What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718   yes:no: )
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723     ;;
1724   no:yes:* )
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ( $as_echo "## ----------------------------------------------------------- ##
1736 ## Report this to check-devel at lists dot sourceforge dot net ##
1737 ## ----------------------------------------------------------- ##"
1738      ) | sed "s/^/$as_me: WARNING:     /" >&2
1739     ;;
1740 esac
1741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744   $as_echo_n "(cached) " >&6
1745 else
1746   eval "$3=\$ac_header_compiler"
1747 fi
1748 eval ac_res=\$$3
1749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 fi
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_mongrel
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_link") 2>&5
1771   ac_status=$?
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774   { { case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_try") 2>&5
1781   ac_status=$?
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; }; }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: program exited with status $ac_status" >&5
1787        $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790        ac_retval=$ac_status
1791 fi
1792   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808   $as_echo_n "(cached) " >&6
1809 else
1810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h.  */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816   eval "$3=yes"
1817 else
1818   eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_header_compile
1828
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1833 {
1834   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835   rm -f conftest.$ac_objext conftest$ac_exeext
1836   if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_link") 2>conftest.err
1844   ac_status=$?
1845   if test -s conftest.err; then
1846     grep -v '^ *+' conftest.err >conftest.er1
1847     cat conftest.er1 >&5
1848     mv -f conftest.er1 conftest.err
1849   fi
1850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851   test $ac_status = 0; } && {
1852          test -z "$ac_c_werror_flag" ||
1853          test ! -s conftest.err
1854        } && test -s conftest$ac_exeext && {
1855          test "$cross_compiling" = yes ||
1856          test -x conftest$ac_exeext
1857        }; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863         ac_retval=1
1864 fi
1865   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867   # interfere with the next link command; also delete a directory that is
1868   # left behind by Apple's compiler.  We do this before executing the actions.
1869   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_link
1874
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893     which can conflict with char $2 (); below.
1894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895     <limits.h> exists even on freestanding compilers.  */
1896
1897 #ifdef __STDC__
1898 # include <limits.h>
1899 #else
1900 # include <assert.h>
1901 #endif
1902
1903 #undef $2
1904
1905 /* Override any GCC internal prototype to avoid an error.
1906    Use char because int might match the return type of a GCC
1907    builtin and then its argument prototype would still apply.  */
1908 #ifdef __cplusplus
1909 extern "C"
1910 #endif
1911 char $2 ();
1912 /* The GNU C library defines this for functions which it implements
1913     to always fail with ENOSYS.  Some functions are actually named
1914     something starting with __ and the normal name is an alias.  */
1915 #if defined __stub_$2 || defined __stub___$2
1916 choke me
1917 #endif
1918
1919 int
1920 main ()
1921 {
1922 return $2 ();
1923   ;
1924   return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_link "$LINENO"; then :
1928   eval "$3=yes"
1929 else
1930   eval "$3=no"
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext \
1933     conftest$ac_exeext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_func
1941
1942 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1943 # ----------------------------------------------------
1944 # Tries to find if the field MEMBER exists in type AGGR, after including
1945 # INCLUDES, setting cache variable VAR accordingly.
1946 ac_fn_c_check_member ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1950 $as_echo_n "checking for $2.$3... " >&6; }
1951 if eval \${$4+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 else
1954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 $5
1957 int
1958 main ()
1959 {
1960 static $2 ac_aggr;
1961 if (ac_aggr.$3)
1962 return 0;
1963   ;
1964   return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968   eval "$4=yes"
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $5
1973 int
1974 main ()
1975 {
1976 static $2 ac_aggr;
1977 if (sizeof ac_aggr.$3)
1978 return 0;
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   eval "$4=yes"
1985 else
1986   eval "$4=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 eval ac_res=\$$4
1993                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997 } # ac_fn_c_check_member
1998
1999 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2000 # -------------------------------------------
2001 # Tests whether TYPE exists after having included INCLUDES, setting cache
2002 # variable VAR accordingly.
2003 ac_fn_c_check_type ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009   $as_echo_n "(cached) " >&6
2010 else
2011   eval "$3=no"
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 $4
2015 int
2016 main ()
2017 {
2018 if (sizeof ($2))
2019          return 0;
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 if (sizeof (($2)))
2032             return 0;
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038
2039 else
2040   eval "$3=yes"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_type
2052
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 # computed
2058 ac_fn_c_compute_int ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if test "$cross_compiling" = yes; then
2062     # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 int
2067 main ()
2068 {
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2070 test_array [0] = 0;
2071 return test_array [0];
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078   ac_lo=0 ac_mid=0
2079   while :; do
2080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095   ac_hi=$ac_mid; break
2096 else
2097   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098                         if test $ac_lo -le $ac_mid; then
2099                           ac_lo= ac_hi=
2100                           break
2101                         fi
2102                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105   done
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0;
2115 return test_array [0];
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122   ac_hi=-1 ac_mid=-1
2123   while :; do
2124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h.  */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139   ac_lo=$ac_mid; break
2140 else
2141   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2142                         if test $ac_mid -le $ac_hi; then
2143                           ac_lo= ac_hi=
2144                           break
2145                         fi
2146                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149   done
2150 else
2151   ac_lo= ac_hi=
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 # Binary search between lo and hi bounds.
2157 while test "x$ac_lo" != "x$ac_hi"; do
2158   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2166 test_array [0] = 0;
2167 return test_array [0];
2168
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   ac_hi=$ac_mid
2175 else
2176   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 done
2180 case $ac_lo in #((
2181 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2182 '') ac_retval=1 ;;
2183 esac
2184   else
2185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $4
2188 static long int longval () { return $2; }
2189 static unsigned long int ulongval () { return $2; }
2190 #include <stdio.h>
2191 #include <stdlib.h>
2192 int
2193 main ()
2194 {
2195
2196   FILE *f = fopen ("conftest.val", "w");
2197   if (! f)
2198     return 1;
2199   if (($2) < 0)
2200     {
2201       long int i = longval ();
2202       if (i != ($2))
2203         return 1;
2204       fprintf (f, "%ld", i);
2205     }
2206   else
2207     {
2208       unsigned long int i = ulongval ();
2209       if (i != ($2))
2210         return 1;
2211       fprintf (f, "%lu", i);
2212     }
2213   /* Do not output a trailing newline, as this causes \r\n confusion
2214      on some platforms.  */
2215   return ferror (f) || fclose (f) != 0;
2216
2217   ;
2218   return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_run "$LINENO"; then :
2222   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2223 else
2224   ac_retval=1
2225 fi
2226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2227   conftest.$ac_objext conftest.beam conftest.$ac_ext
2228 rm -f conftest.val
2229
2230   fi
2231   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232   as_fn_set_status $ac_retval
2233
2234 } # ac_fn_c_compute_int
2235
2236 # ac_fn_c_find_uintX_t LINENO BITS VAR
2237 # ------------------------------------
2238 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2239 # accordingly.
2240 ac_fn_c_find_uintX_t ()
2241 {
2242   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2244 $as_echo_n "checking for uint$2_t... " >&6; }
2245 if eval \${$3+:} false; then :
2246   $as_echo_n "(cached) " >&6
2247 else
2248   eval "$3=no"
2249      # Order is important - never check a type that is potentially smaller
2250      # than half of the expected target width.
2251      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2252          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2253        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $ac_includes_default
2256 int
2257 main ()
2258 {
2259 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2260 test_array [0] = 0;
2261 return test_array [0];
2262
2263   ;
2264   return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268   case $ac_type in #(
2269   uint$2_t) :
2270     eval "$3=yes" ;; #(
2271   *) :
2272     eval "$3=\$ac_type" ;;
2273 esac
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276        if eval test \"x\$"$3"\" = x"no"; then :
2277
2278 else
2279   break
2280 fi
2281      done
2282 fi
2283 eval ac_res=\$$3
2284                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287
2288 } # ac_fn_c_find_uintX_t
2289
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2291 # ---------------------------------------------
2292 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2293 # accordingly.
2294 ac_fn_c_check_decl ()
2295 {
2296   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297   as_decl_name=`echo $2|sed 's/ *(.*//'`
2298   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2300 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2301 if eval \${$3+:} false; then :
2302   $as_echo_n "(cached) " >&6
2303 else
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 #ifndef $as_decl_name
2311 #ifdef __cplusplus
2312   (void) $as_decl_use;
2313 #else
2314   (void) $as_decl_name;
2315 #endif
2316 #endif
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323   eval "$3=yes"
2324 else
2325   eval "$3=no"
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 eval ac_res=\$$3
2330                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333
2334 } # ac_fn_c_check_decl
2335 cat >config.log <<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2338
2339 It was created by Check $as_me 0.14.0, which was
2340 generated by GNU Autoconf 2.69.  Invocation command line was
2341
2342   $ $0 $@
2343
2344 _ACEOF
2345 exec 5>>config.log
2346 {
2347 cat <<_ASUNAME
2348 ## --------- ##
2349 ## Platform. ##
2350 ## --------- ##
2351
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2360
2361 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2362 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2365 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2366 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2367 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2368
2369 _ASUNAME
2370
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376     $as_echo "PATH: $as_dir"
2377   done
2378 IFS=$as_save_IFS
2379
2380 } >&5
2381
2382 cat >&5 <<_ACEOF
2383
2384
2385 ## ----------- ##
2386 ## Core tests. ##
2387 ## ----------- ##
2388
2389 _ACEOF
2390
2391
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2397 ac_configure_args=
2398 ac_configure_args0=
2399 ac_configure_args1=
2400 ac_must_keep_next=false
2401 for ac_pass in 1 2
2402 do
2403   for ac_arg
2404   do
2405     case $ac_arg in
2406     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408     | -silent | --silent | --silen | --sile | --sil)
2409       continue ;;
2410     *\'*)
2411       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2412     esac
2413     case $ac_pass in
2414     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415     2)
2416       as_fn_append ac_configure_args1 " '$ac_arg'"
2417       if test $ac_must_keep_next = true; then
2418         ac_must_keep_next=false # Got value, back to normal.
2419       else
2420         case $ac_arg in
2421           *=* | --config-cache | -C | -disable-* | --disable-* \
2422           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424           | -with-* | --with-* | -without-* | --without-* | --x)
2425             case "$ac_configure_args0 " in
2426               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2427             esac
2428             ;;
2429           -* ) ac_must_keep_next=true ;;
2430         esac
2431       fi
2432       as_fn_append ac_configure_args " '$ac_arg'"
2433       ;;
2434     esac
2435   done
2436 done
2437 { ac_configure_args0=; unset ac_configure_args0;}
2438 { ac_configure_args1=; unset ac_configure_args1;}
2439
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log.  We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446   # Save into config.log some information that might help in debugging.
2447   {
2448     echo
2449
2450     $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2453     echo
2454     # The following way of writing the cache mishandles newlines in values,
2455 (
2456   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457     eval ac_val=\$$ac_var
2458     case $ac_val in #(
2459     *${as_nl}*)
2460       case $ac_var in #(
2461       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2463       esac
2464       case $ac_var in #(
2465       _ | IFS | as_nl) ;; #(
2466       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467       *) { eval $ac_var=; unset $ac_var;} ;;
2468       esac ;;
2469     esac
2470   done
2471   (set) 2>&1 |
2472     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473     *${as_nl}ac_space=\ *)
2474       sed -n \
2475         "s/'\''/'\''\\\\'\'''\''/g;
2476           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2477       ;; #(
2478     *)
2479       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480       ;;
2481     esac |
2482     sort
2483 )
2484     echo
2485
2486     $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2489     echo
2490     for ac_var in $ac_subst_vars
2491     do
2492       eval ac_val=\$$ac_var
2493       case $ac_val in
2494       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495       esac
2496       $as_echo "$ac_var='\''$ac_val'\''"
2497     done | sort
2498     echo
2499
2500     if test -n "$ac_subst_files"; then
2501       $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2504       echo
2505       for ac_var in $ac_subst_files
2506       do
2507         eval ac_val=\$$ac_var
2508         case $ac_val in
2509         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510         esac
2511         $as_echo "$ac_var='\''$ac_val'\''"
2512       done | sort
2513       echo
2514     fi
2515
2516     if test -s confdefs.h; then
2517       $as_echo "## ----------- ##
2518 ## confdefs.h. ##
2519 ## ----------- ##"
2520       echo
2521       cat confdefs.h
2522       echo
2523     fi
2524     test "$ac_signal" != 0 &&
2525       $as_echo "$as_me: caught signal $ac_signal"
2526     $as_echo "$as_me: exit $exit_status"
2527   } >&5
2528   rm -f core *.core core.conftest.* &&
2529     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530     exit $exit_status
2531 ' 0
2532 for ac_signal in 1 2 13 15; do
2533   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534 done
2535 ac_signal=0
2536
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2539
2540 $as_echo "/* confdefs.h */" > confdefs.h
2541
2542 # Predefined preprocessor variables.
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2566 _ACEOF
2567
2568
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 ac_site_file1=NONE
2572 ac_site_file2=NONE
2573 if test -n "$CONFIG_SITE"; then
2574   # We do not want a PATH search for config.site.
2575   case $CONFIG_SITE in #((
2576     -*)  ac_site_file1=./$CONFIG_SITE;;
2577     */*) ac_site_file1=$CONFIG_SITE;;
2578     *)   ac_site_file1=./$CONFIG_SITE;;
2579   esac
2580 elif test "x$prefix" != xNONE; then
2581   ac_site_file1=$prefix/share/config.site
2582   ac_site_file2=$prefix/etc/config.site
2583 else
2584   ac_site_file1=$ac_default_prefix/share/config.site
2585   ac_site_file2=$ac_default_prefix/etc/config.site
2586 fi
2587 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 do
2589   test "x$ac_site_file" = xNONE && continue
2590   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593     sed 's/^/| /' "$ac_site_file" >&5
2594     . "$ac_site_file" \
2595       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $? "failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2599   fi
2600 done
2601
2602 if test -r "$cache_file"; then
2603   # Some versions of bash will fail to source /dev/null (special files
2604   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2605   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608     case $cache_file in
2609       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610       *)                      . "./$cache_file";;
2611     esac
2612   fi
2613 else
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2616   >$cache_file
2617 fi
2618
2619 as_fn_append ac_header_list " time.h"
2620 as_fn_append ac_header_list " stdarg.h"
2621 # Check that the precious variables saved in the cache have kept the same
2622 # value.
2623 ac_cache_corrupted=false
2624 for ac_var in $ac_precious_vars; do
2625   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2626   eval ac_new_set=\$ac_env_${ac_var}_set
2627   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2628   eval ac_new_val=\$ac_env_${ac_var}_value
2629   case $ac_old_set,$ac_new_set in
2630     set,)
2631       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2632 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2633       ac_cache_corrupted=: ;;
2634     ,set)
2635       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2636 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2637       ac_cache_corrupted=: ;;
2638     ,);;
2639     *)
2640       if test "x$ac_old_val" != "x$ac_new_val"; then
2641         # differences in whitespace do not lead to failure.
2642         ac_old_val_w=`echo x $ac_old_val`
2643         ac_new_val_w=`echo x $ac_new_val`
2644         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2645           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2646 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2647           ac_cache_corrupted=:
2648         else
2649           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2650 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2651           eval $ac_var=\$ac_old_val
2652         fi
2653         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2654 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2655         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2656 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2657       fi;;
2658   esac
2659   # Pass precious variables to config.status.
2660   if test "$ac_new_set" = set; then
2661     case $ac_new_val in
2662     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2663     *) ac_arg=$ac_var=$ac_new_val ;;
2664     esac
2665     case " $ac_configure_args " in
2666       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2667       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2668     esac
2669   fi
2670 done
2671 if $ac_cache_corrupted; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2675 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2676   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2677 fi
2678 ## -------------------- ##
2679 ## Main body of script. ##
2680 ## -------------------- ##
2681
2682 ac_ext=c
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689 CHECK_MAJOR_VERSION=0
2690 CHECK_MINOR_VERSION=14
2691 CHECK_MICRO_VERSION=0
2692 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2693
2694 # unique source file --- primitive safety check
2695
2696
2697 # place where extra autoconf macros are kept
2698
2699
2700 # place where portability library functions are kept
2701
2702
2703 # really severe build strictness
2704 am__api_version='1.15'
2705
2706 ac_aux_dir=
2707 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2708   if test -f "$ac_dir/install-sh"; then
2709     ac_aux_dir=$ac_dir
2710     ac_install_sh="$ac_aux_dir/install-sh -c"
2711     break
2712   elif test -f "$ac_dir/install.sh"; then
2713     ac_aux_dir=$ac_dir
2714     ac_install_sh="$ac_aux_dir/install.sh -c"
2715     break
2716   elif test -f "$ac_dir/shtool"; then
2717     ac_aux_dir=$ac_dir
2718     ac_install_sh="$ac_aux_dir/shtool install -c"
2719     break
2720   fi
2721 done
2722 if test -z "$ac_aux_dir"; then
2723   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2724 fi
2725
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2733
2734
2735 # Find a good install program.  We prefer a C program (faster),
2736 # so one script is as good as another.  But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2741 # AIX /bin/install
2742 # AmigaOS /C/install, which installs bootblocks on floppy discs
2743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746 # OS/2's system install, which has a completely different semantic
2747 # ./install, which can be erroneously created by make from ./install.sh.
2748 # Reject install programs that cannot install multiple files.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2751 if test -z "$INSTALL"; then
2752 if ${ac_cv_path_install+:} false; then :
2753   $as_echo_n "(cached) " >&6
2754 else
2755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758   IFS=$as_save_IFS
2759   test -z "$as_dir" && as_dir=.
2760     # Account for people who put trailing slashes in PATH elements.
2761 case $as_dir/ in #((
2762   ./ | .// | /[cC]/* | \
2763   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2765   /usr/ucb/* ) ;;
2766   *)
2767     # OSF1 and SCO ODT 3.0 have their own names for install.
2768     # Don't use installbsd from OSF since it installs stuff as root
2769     # by default.
2770     for ac_prog in ginstall scoinst install; do
2771       for ac_exec_ext in '' $ac_executable_extensions; do
2772         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2773           if test $ac_prog = install &&
2774             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775             # AIX install.  It has an incompatible calling convention.
2776             :
2777           elif test $ac_prog = install &&
2778             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779             # program-specific install script used by HP pwplus--don't use.
2780             :
2781           else
2782             rm -rf conftest.one conftest.two conftest.dir
2783             echo one > conftest.one
2784             echo two > conftest.two
2785             mkdir conftest.dir
2786             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2787               test -s conftest.one && test -s conftest.two &&
2788               test -s conftest.dir/conftest.one &&
2789               test -s conftest.dir/conftest.two
2790             then
2791               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2792               break 3
2793             fi
2794           fi
2795         fi
2796       done
2797     done
2798     ;;
2799 esac
2800
2801   done
2802 IFS=$as_save_IFS
2803
2804 rm -rf conftest.one conftest.two conftest.dir
2805
2806 fi
2807   if test "${ac_cv_path_install+set}" = set; then
2808     INSTALL=$ac_cv_path_install
2809   else
2810     # As a last resort, use the slow shell script.  Don't cache a
2811     # value for INSTALL within a source directory, because that will
2812     # break other packages using the cache if that directory is
2813     # removed, or if the value is a relative name.
2814     INSTALL=$ac_install_sh
2815   fi
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2818 $as_echo "$INSTALL" >&6; }
2819
2820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821 # It thinks the first close brace ends the variable substitution.
2822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2823
2824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2825
2826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2829 $as_echo_n "checking whether build environment is sane... " >&6; }
2830 # Reject unsafe characters in $srcdir or the absolute working directory
2831 # name.  Accept space and tab only in the latter.
2832 am_lf='
2833 '
2834 case `pwd` in
2835   *[\\\"\#\$\&\'\`$am_lf]*)
2836     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2837 esac
2838 case $srcdir in
2839   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2840     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2841 esac
2842
2843 # Do 'set' in a subshell so we don't clobber the current shell's
2844 # arguments.  Must try -L first in case configure is actually a
2845 # symlink; some systems play weird games with the mod time of symlinks
2846 # (eg FreeBSD returns the mod time of the symlink's containing
2847 # directory).
2848 if (
2849    am_has_slept=no
2850    for am_try in 1 2; do
2851      echo "timestamp, slept: $am_has_slept" > conftest.file
2852      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2853      if test "$*" = "X"; then
2854         # -L didn't work.
2855         set X `ls -t "$srcdir/configure" conftest.file`
2856      fi
2857      if test "$*" != "X $srcdir/configure conftest.file" \
2858         && test "$*" != "X conftest.file $srcdir/configure"; then
2859
2860         # If neither matched, then we have a broken ls.  This can happen
2861         # if, for instance, CONFIG_SHELL is bash and it inherits a
2862         # broken ls alias from the environment.  This has actually
2863         # happened.  Such a system could not be considered "sane".
2864         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2865   alias in your environment" "$LINENO" 5
2866      fi
2867      if test "$2" = conftest.file || test $am_try -eq 2; then
2868        break
2869      fi
2870      # Just in case.
2871      sleep 1
2872      am_has_slept=yes
2873    done
2874    test "$2" = conftest.file
2875    )
2876 then
2877    # Ok.
2878    :
2879 else
2880    as_fn_error $? "newly created file is older than distributed files!
2881 Check your system clock" "$LINENO" 5
2882 fi
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2884 $as_echo "yes" >&6; }
2885 # If we didn't sleep, we still need to ensure time stamps of config.status and
2886 # generated files are strictly newer.
2887 am_sleep_pid=
2888 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2889   ( sleep 1 ) &
2890   am_sleep_pid=$!
2891 fi
2892
2893 rm -f conftest.file
2894
2895 test "$program_prefix" != NONE &&
2896   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2897 # Use a double $ so make ignores it.
2898 test "$program_suffix" != NONE &&
2899   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2900 # Double any \ or $.
2901 # By default was `s,x,x', remove it if useless.
2902 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2903 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2904
2905 # Expand $ac_aux_dir to an absolute path.
2906 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2907
2908 if test x"${MISSING+set}" != xset; then
2909   case $am_aux_dir in
2910   *\ * | *\     *)
2911     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2912   *)
2913     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2914   esac
2915 fi
2916 # Use eval to expand $SHELL
2917 if eval "$MISSING --is-lightweight"; then
2918   am_missing_run="$MISSING "
2919 else
2920   am_missing_run=
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2922 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2923 fi
2924
2925 if test x"${install_sh+set}" != xset; then
2926   case $am_aux_dir in
2927   *\ * | *\     *)
2928     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2929   *)
2930     install_sh="\${SHELL} $am_aux_dir/install-sh"
2931   esac
2932 fi
2933
2934 # Installed binaries are usually stripped using 'strip' when the user
2935 # run "make install-strip".  However 'strip' might not be the right
2936 # tool to use in cross-compilation environments, therefore Automake
2937 # will honor the 'STRIP' environment variable to overrule this program.
2938 if test "$cross_compiling" != no; then
2939   if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_STRIP+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$STRIP"; then
2948   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 STRIP=$ac_cv_prog_STRIP
2968 if test -n "$STRIP"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2970 $as_echo "$STRIP" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_STRIP"; then
2979   ac_ct_STRIP=$STRIP
2980   # Extract the first word of "strip", so it can be a program name with args.
2981 set dummy strip; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$ac_ct_STRIP"; then
2988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_prog_ac_ct_STRIP="strip"
2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002   done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3008 if test -n "$ac_ct_STRIP"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3010 $as_echo "$ac_ct_STRIP" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016   if test "x$ac_ct_STRIP" = x; then
3017     STRIP=":"
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     STRIP=$ac_ct_STRIP
3026   fi
3027 else
3028   STRIP="$ac_cv_prog_STRIP"
3029 fi
3030
3031 fi
3032 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3033
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3035 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3036 if test -z "$MKDIR_P"; then
3037   if ${ac_cv_path_mkdir+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045     for ac_prog in mkdir gmkdir; do
3046          for ac_exec_ext in '' $ac_executable_extensions; do
3047            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3048            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3049              'mkdir (GNU coreutils) '* | \
3050              'mkdir (coreutils) '* | \
3051              'mkdir (fileutils) '4.1*)
3052                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3053                break 3;;
3054            esac
3055          done
3056        done
3057   done
3058 IFS=$as_save_IFS
3059
3060 fi
3061
3062   test -d ./--version && rmdir ./--version
3063   if test "${ac_cv_path_mkdir+set}" = set; then
3064     MKDIR_P="$ac_cv_path_mkdir -p"
3065   else
3066     # As a last resort, use the slow shell script.  Don't cache a
3067     # value for MKDIR_P within a source directory, because that will
3068     # break other packages using the cache if that directory is
3069     # removed, or if the value is a relative name.
3070     MKDIR_P="$ac_install_sh -d"
3071   fi
3072 fi
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3074 $as_echo "$MKDIR_P" >&6; }
3075
3076 for ac_prog in gawk mawk nawk awk
3077 do
3078   # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_AWK+:} false; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$AWK"; then
3086   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095     ac_cv_prog_AWK="$ac_prog"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 AWK=$ac_cv_prog_AWK
3106 if test -n "$AWK"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3108 $as_echo "$AWK" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115   test -n "$AWK" && break
3116 done
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3119 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120 set x ${MAKE-make}
3121 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3122 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   cat >conftest.make <<\_ACEOF
3126 SHELL = /bin/sh
3127 all:
3128         @echo '@@@%%%=$(MAKE)=@@@%%%'
3129 _ACEOF
3130 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3131 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132   *@@@%%%=?*=@@@%%%*)
3133     eval ac_cv_prog_make_${ac_make}_set=yes;;
3134   *)
3135     eval ac_cv_prog_make_${ac_make}_set=no;;
3136 esac
3137 rm -f conftest.make
3138 fi
3139 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3142   SET_MAKE=
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146   SET_MAKE="MAKE=${MAKE-make}"
3147 fi
3148
3149 rm -rf .tst 2>/dev/null
3150 mkdir .tst 2>/dev/null
3151 if test -d .tst; then
3152   am__leading_dot=.
3153 else
3154   am__leading_dot=_
3155 fi
3156 rmdir .tst 2>/dev/null
3157
3158 # Check whether --enable-silent-rules was given.
3159 if test "${enable_silent_rules+set}" = set; then :
3160   enableval=$enable_silent_rules;
3161 fi
3162
3163 case $enable_silent_rules in # (((
3164   yes) AM_DEFAULT_VERBOSITY=0;;
3165    no) AM_DEFAULT_VERBOSITY=1;;
3166     *) AM_DEFAULT_VERBOSITY=1;;
3167 esac
3168 am_make=${MAKE-make}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3170 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3171 if ${am_cv_make_support_nested_variables+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if $as_echo 'TRUE=$(BAR$(V))
3175 BAR0=false
3176 BAR1=true
3177 V=1
3178 am__doit:
3179         @$(TRUE)
3180 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3181   am_cv_make_support_nested_variables=yes
3182 else
3183   am_cv_make_support_nested_variables=no
3184 fi
3185 fi
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3187 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3188 if test $am_cv_make_support_nested_variables = yes; then
3189     AM_V='$(V)'
3190   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3191 else
3192   AM_V=$AM_DEFAULT_VERBOSITY
3193   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3194 fi
3195 AM_BACKSLASH='\'
3196
3197 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3198   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3199   # is not polluted with repeated "-I."
3200   am__isrc=' -I$(srcdir)'
3201   # test to see if srcdir already configured
3202   if test -f $srcdir/config.status; then
3203     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3204   fi
3205 fi
3206
3207 # test whether we have cygpath
3208 if test -z "$CYGPATH_W"; then
3209   if (cygpath --version) >/dev/null 2>/dev/null; then
3210     CYGPATH_W='cygpath -w'
3211   else
3212     CYGPATH_W=echo
3213   fi
3214 fi
3215
3216
3217 # Define the identity of the package.
3218  PACKAGE='check'
3219  VERSION='0.14.0'
3220
3221
3222 cat >>confdefs.h <<_ACEOF
3223 #define PACKAGE "$PACKAGE"
3224 _ACEOF
3225
3226
3227 cat >>confdefs.h <<_ACEOF
3228 #define VERSION "$VERSION"
3229 _ACEOF
3230
3231 # Some tools Automake needs.
3232
3233 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3234
3235
3236 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3237
3238
3239 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3240
3241
3242 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3243
3244
3245 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3246
3247 # For better backward compatibility.  To be removed once Automake 1.9.x
3248 # dies out for good.  For more background, see:
3249 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3250 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3251 mkdir_p='$(MKDIR_P)'
3252
3253 # We need awk for the "check" target (and possibly the TAP driver).  The
3254 # system "awk" is bad on some platforms.
3255 # Always define AMTAR for backward compatibility.  Yes, it's still used
3256 # in the wild :-(  We should find a proper way to deprecate it ...
3257 AMTAR='$${TAR-tar}'
3258
3259
3260 # We'll loop over all known methods to create a tar archive until one works.
3261 _am_tools='gnutar  pax cpio none'
3262
3263 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3264
3265
3266
3267
3268
3269
3270 # POSIX will say in a future version that running "rm -f" with no argument
3271 # is OK; and we want to be able to make that assumption in our Makefile
3272 # recipes.  So use an aggressive probe to check that the usage we want is
3273 # actually supported "in the wild" to an acceptable degree.
3274 # See automake bug#10828.
3275 # To make any issue more visible, cause the running configure to be aborted
3276 # by default if the 'rm' program in use doesn't match our expectations; the
3277 # user can still override this though.
3278 if rm -f && rm -fr && rm -rf; then : OK; else
3279   cat >&2 <<'END'
3280 Oops!
3281
3282 Your 'rm' program seems unable to run without file operands specified
3283 on the command line, even when the '-f' option is present.  This is contrary
3284 to the behaviour of most rm programs out there, and not conforming with
3285 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3286
3287 Please tell bug-automake@gnu.org about your system, including the value
3288 of your $PATH and any error possibly output before this message.  This
3289 can help us improve future automake versions.
3290
3291 END
3292   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3293     echo 'Configuration will proceed anyway, since you have set the' >&2
3294     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3295     echo >&2
3296   else
3297     cat >&2 <<'END'
3298 Aborting the configuration process, to ensure you take notice of the issue.
3299
3300 You can download and install GNU coreutils to get an 'rm' implementation
3301 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3302
3303 If you want to complete the configuration process using your problematic
3304 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3305 to "yes", and re-run configure.
3306
3307 END
3308     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3309   fi
3310 fi
3311
3312 # Change to using into-in-builddir in the future:
3313 #AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
3314
3315 # define things like _GNU_SOURCE appropriately
3316 # From patch 2803433, request system extensions to generate 64-bit safe code
3317 DEPDIR="${am__leading_dot}deps"
3318
3319 ac_config_commands="$ac_config_commands depfiles"
3320
3321
3322 am_make=${MAKE-make}
3323 cat > confinc << 'END'
3324 am__doit:
3325         @echo this is the am__doit target
3326 .PHONY: am__doit
3327 END
3328 # If we don't find an include directive, just comment out the code.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3330 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3331 am__include="#"
3332 am__quote=
3333 _am_result=none
3334 # First try GNU make style include.
3335 echo "include confinc" > confmf
3336 # Ignore all kinds of additional output from 'make'.
3337 case `$am_make -s -f confmf 2> /dev/null` in #(
3338 *the\ am__doit\ target*)
3339   am__include=include
3340   am__quote=
3341   _am_result=GNU
3342   ;;
3343 esac
3344 # Now try BSD make style include.
3345 if test "$am__include" = "#"; then
3346    echo '.include "confinc"' > confmf
3347    case `$am_make -s -f confmf 2> /dev/null` in #(
3348    *the\ am__doit\ target*)
3349      am__include=.include
3350      am__quote="\""
3351      _am_result=BSD
3352      ;;
3353    esac
3354 fi
3355
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3358 $as_echo "$_am_result" >&6; }
3359 rm -f confinc confmf
3360
3361 # Check whether --enable-dependency-tracking was given.
3362 if test "${enable_dependency_tracking+set}" = set; then :
3363   enableval=$enable_dependency_tracking;
3364 fi
3365
3366 if test "x$enable_dependency_tracking" != xno; then
3367   am_depcomp="$ac_aux_dir/depcomp"
3368   AMDEPBACKSLASH='\'
3369   am__nodep='_no'
3370 fi
3371  if test "x$enable_dependency_tracking" != xno; then
3372   AMDEP_TRUE=
3373   AMDEP_FALSE='#'
3374 else
3375   AMDEP_TRUE='#'
3376   AMDEP_FALSE=
3377 fi
3378
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if ${ac_cv_prog_CC+:} false; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$CC"; then
3394   ac_cv_prog_CC="$CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 CC=$ac_cv_prog_CC
3414 if test -n "$CC"; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3417 else
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423 fi
3424 if test -z "$ac_cv_prog_CC"; then
3425   ac_ct_CC=$CC
3426   # Extract the first word of "gcc", so it can be a program name with args.
3427 set dummy gcc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$ac_ct_CC"; then
3434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_prog_ac_ct_CC="gcc"
3444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448   done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3457 else
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462   if test "x$ac_ct_CC" = x; then
3463     CC=""
3464   else
3465     case $cross_compiling:$ac_tool_warned in
3466 yes:)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469 ac_tool_warned=yes ;;
3470 esac
3471     CC=$ac_ct_CC
3472   fi
3473 else
3474   CC="$ac_cv_prog_CC"
3475 fi
3476
3477 if test -z "$CC"; then
3478           if test -n "$ac_tool_prefix"; then
3479     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3480 set dummy ${ac_tool_prefix}cc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_CC+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   if test -n "$CC"; then
3487   ac_cv_prog_CC="$CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496     ac_cv_prog_CC="${ac_tool_prefix}cc"
3497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501   done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 $as_echo "$CC" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516   fi
3517 fi
3518 if test -z "$CC"; then
3519   # Extract the first word of "cc", so it can be a program name with args.
3520 set dummy cc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$CC"; then
3527   ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529   ac_prog_rejected=no
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH
3532 do
3533   IFS=$as_save_IFS
3534   test -z "$as_dir" && as_dir=.
3535     for ac_exec_ext in '' $ac_executable_extensions; do
3536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3538        ac_prog_rejected=yes
3539        continue
3540      fi
3541     ac_cv_prog_CC="cc"
3542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543     break 2
3544   fi
3545 done
3546   done
3547 IFS=$as_save_IFS
3548
3549 if test $ac_prog_rejected = yes; then
3550   # We found a bogon in the path, so make sure we never use it.
3551   set dummy $ac_cv_prog_CC
3552   shift
3553   if test $# != 0; then
3554     # We chose a different compiler from the bogus one.
3555     # However, it has the same basename, so the bogon will be chosen
3556     # first if we set CC to just the basename; use the full file name.
3557     shift
3558     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3559   fi
3560 fi
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$CC"; then
3575   if test -n "$ac_tool_prefix"; then
3576   for ac_prog in cl.exe
3577   do
3578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_CC+:} false; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   if test -n "$CC"; then
3586   ac_cv_prog_CC="$CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591   IFS=$as_save_IFS
3592   test -z "$as_dir" && as_dir=.
3593     for ac_exec_ext in '' $ac_executable_extensions; do
3594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600   done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 $as_echo "$CC" >&6; }
3609 else
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614
3615     test -n "$CC" && break
3616   done
3617 fi
3618 if test -z "$CC"; then
3619   ac_ct_CC=$CC
3620   for ac_prog in cl.exe
3621 do
3622   # Extract the first word of "$ac_prog", so it can be a program name with args.
3623 set dummy $ac_prog; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$ac_ct_CC"; then
3630   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_prog_ac_ct_CC="$ac_prog"
3640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644   done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658
3659   test -n "$ac_ct_CC" && break
3660 done
3661
3662   if test "x$ac_ct_CC" = x; then
3663     CC=""
3664   else
3665     case $cross_compiling:$ac_tool_warned in
3666 yes:)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3670 esac
3671     CC=$ac_ct_CC
3672   fi
3673 fi
3674
3675 fi
3676
3677
3678 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "no acceptable C compiler found in \$PATH
3681 See \`config.log' for more details" "$LINENO" 5; }
3682
3683 # Provide some information about the compiler.
3684 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3685 set X $ac_compile
3686 ac_compiler=$2
3687 for ac_option in --version -v -V -qversion; do
3688   { { ac_try="$ac_compiler $ac_option >&5"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3696   ac_status=$?
3697   if test -s conftest.err; then
3698     sed '10a\
3699 ... rest of stderr output deleted ...
3700          10q' conftest.err >conftest.er1
3701     cat conftest.er1 >&5
3702   fi
3703   rm -f conftest.er1 conftest.err
3704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705   test $ac_status = 0; }
3706 done
3707
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 ac_clean_files_save=$ac_clean_files
3720 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3721 # Try to create an executable without -o first, disregard a.out.
3722 # It will help us diagnose broken compilers, and finding out an intuition
3723 # of exeext.
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3725 $as_echo_n "checking whether the C compiler works... " >&6; }
3726 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3727
3728 # The possible output files:
3729 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3730
3731 ac_rmfiles=
3732 for ac_file in $ac_files
3733 do
3734   case $ac_file in
3735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3737   esac
3738 done
3739 rm -f $ac_rmfiles
3740
3741 if { { ac_try="$ac_link_default"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748   (eval "$ac_link_default") 2>&5
3749   ac_status=$?
3750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751   test $ac_status = 0; }; then :
3752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3755 # so that the user can short-circuit this test for compilers unknown to
3756 # Autoconf.
3757 for ac_file in $ac_files ''
3758 do
3759   test -f "$ac_file" || continue
3760   case $ac_file in
3761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3762         ;;
3763     [ab].out )
3764         # We found the default executable, but exeext='' is most
3765         # certainly right.
3766         break;;
3767     *.* )
3768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3769         then :; else
3770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3771         fi
3772         # We set ac_cv_exeext here because the later test for it is not
3773         # safe: cross compilers may not add the suffix if given an `-o'
3774         # argument, so we may need to know it at that point already.
3775         # Even if this section looks crufty: it has the advantage of
3776         # actually working.
3777         break;;
3778     * )
3779         break;;
3780   esac
3781 done
3782 test "$ac_cv_exeext" = no && ac_cv_exeext=
3783
3784 else
3785   ac_file=''
3786 fi
3787 if test -z "$ac_file"; then :
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 $as_echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error 77 "C compiler cannot create executables
3796 See \`config.log' for more details" "$LINENO" 5; }
3797 else
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3802 $as_echo_n "checking for C compiler default output file name... " >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3804 $as_echo "$ac_file" >&6; }
3805 ac_exeext=$ac_cv_exeext
3806
3807 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3808 ac_clean_files=$ac_clean_files_save
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3810 $as_echo_n "checking for suffix of executables... " >&6; }
3811 if { { ac_try="$ac_link"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818   (eval "$ac_link") 2>&5
3819   ac_status=$?
3820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821   test $ac_status = 0; }; then :
3822   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3823 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3824 # work properly (i.e., refer to `conftest.exe'), while it won't with
3825 # `rm'.
3826 for ac_file in conftest.exe conftest conftest.*; do
3827   test -f "$ac_file" || continue
3828   case $ac_file in
3829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3830     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3831           break;;
3832     * ) break;;
3833   esac
3834 done
3835 else
3836   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3839 See \`config.log' for more details" "$LINENO" 5; }
3840 fi
3841 rm -f conftest conftest$ac_cv_exeext
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3843 $as_echo "$ac_cv_exeext" >&6; }
3844
3845 rm -f conftest.$ac_ext
3846 EXEEXT=$ac_cv_exeext
3847 ac_exeext=$EXEEXT
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850 #include <stdio.h>
3851 int
3852 main ()
3853 {
3854 FILE *f = fopen ("conftest.out", "w");
3855  return ferror (f) || fclose (f) != 0;
3856
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 ac_clean_files="$ac_clean_files conftest.out"
3862 # Check that the compiler produces executables we can run.  If not, either
3863 # the compiler is broken, or we cross compile.
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3865 $as_echo_n "checking whether we are cross compiling... " >&6; }
3866 if test "$cross_compiling" != yes; then
3867   { { ac_try="$ac_link"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874   (eval "$ac_link") 2>&5
3875   ac_status=$?
3876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877   test $ac_status = 0; }
3878   if { ac_try='./conftest$ac_cv_exeext'
3879   { { case "(($ac_try" in
3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881   *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 $as_echo "$ac_try_echo"; } >&5
3885   (eval "$ac_try") 2>&5
3886   ac_status=$?
3887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888   test $ac_status = 0; }; }; then
3889     cross_compiling=no
3890   else
3891     if test "$cross_compiling" = maybe; then
3892         cross_compiling=yes
3893     else
3894         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "cannot run C compiled programs.
3897 If you meant to cross compile, use \`--host'.
3898 See \`config.log' for more details" "$LINENO" 5; }
3899     fi
3900   fi
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3903 $as_echo "$cross_compiling" >&6; }
3904
3905 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3906 ac_clean_files=$ac_clean_files_save
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3908 $as_echo_n "checking for suffix of object files... " >&6; }
3909 if ${ac_cv_objext+:} false; then :
3910   $as_echo_n "(cached) " >&6
3911 else
3912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h.  */
3914
3915 int
3916 main ()
3917 {
3918
3919   ;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.o conftest.obj
3924 if { { ac_try="$ac_compile"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931   (eval "$ac_compile") 2>&5
3932   ac_status=$?
3933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934   test $ac_status = 0; }; then :
3935   for ac_file in conftest.o conftest.obj conftest.*; do
3936   test -f "$ac_file" || continue;
3937   case $ac_file in
3938     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3939     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3940        break;;
3941   esac
3942 done
3943 else
3944   $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot compute suffix of object files: cannot compile
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 fi
3952 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3955 $as_echo "$ac_cv_objext" >&6; }
3956 OBJEXT=$ac_cv_objext
3957 ac_objext=$OBJEXT
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3960 if ${ac_cv_c_compiler_gnu+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965
3966 int
3967 main ()
3968 {
3969 #ifndef __GNUC__
3970        choke me
3971 #endif
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978   ac_compiler_gnu=yes
3979 else
3980   ac_compiler_gnu=no
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3988 if test $ac_compiler_gnu = yes; then
3989   GCC=yes
3990 else
3991   GCC=
3992 fi
3993 ac_test_CFLAGS=${CFLAGS+set}
3994 ac_save_CFLAGS=$CFLAGS
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3997 if ${ac_cv_prog_cc_g+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   ac_save_c_werror_flag=$ac_c_werror_flag
4001    ac_c_werror_flag=yes
4002    ac_cv_prog_cc_g=no
4003    CFLAGS="-g"
4004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006
4007 int
4008 main ()
4009 {
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016   ac_cv_prog_cc_g=yes
4017 else
4018   CFLAGS=""
4019       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h.  */
4021
4022 int
4023 main ()
4024 {
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031
4032 else
4033   ac_c_werror_flag=$ac_save_c_werror_flag
4034          CFLAGS="-g"
4035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h.  */
4037
4038 int
4039 main ()
4040 {
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047   ac_cv_prog_cc_g=yes
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054    ac_c_werror_flag=$ac_save_c_werror_flag
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4057 $as_echo "$ac_cv_prog_cc_g" >&6; }
4058 if test "$ac_test_CFLAGS" = set; then
4059   CFLAGS=$ac_save_CFLAGS
4060 elif test $ac_cv_prog_cc_g = yes; then
4061   if test "$GCC" = yes; then
4062     CFLAGS="-g -O2"
4063   else
4064     CFLAGS="-g"
4065   fi
4066 else
4067   if test "$GCC" = yes; then
4068     CFLAGS="-O2"
4069   else
4070     CFLAGS=
4071   fi
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4075 if ${ac_cv_prog_cc_c89+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   ac_cv_prog_cc_c89=no
4079 ac_save_CC=$CC
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082 #include <stdarg.h>
4083 #include <stdio.h>
4084 struct stat;
4085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4086 struct buf { int x; };
4087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4088 static char *e (p, i)
4089      char **p;
4090      int i;
4091 {
4092   return p[i];
4093 }
4094 static char *f (char * (*g) (char **, int), char **p, ...)
4095 {
4096   char *s;
4097   va_list v;
4098   va_start (v,p);
4099   s = g (p, va_arg (v,int));
4100   va_end (v);
4101   return s;
4102 }
4103
4104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4105    function prototypes and stuff, but not '\xHH' hex character constants.
4106    These don't provoke an error unfortunately, instead are silently treated
4107    as 'x'.  The following induces an error, until -std is added to get
4108    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4109    array size at least.  It's necessary to write '\x00'==0 to get something
4110    that's true only with -std.  */
4111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4112
4113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4114    inside strings and character constants.  */
4115 #define FOO(x) 'x'
4116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4117
4118 int test (int i, double x);
4119 struct s1 {int (*f) (int a);};
4120 struct s2 {int (*f) (double a);};
4121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122 int argc;
4123 char **argv;
4124 int
4125 main ()
4126 {
4127 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4133         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4134 do
4135   CC="$ac_save_CC $ac_arg"
4136   if ac_fn_c_try_compile "$LINENO"; then :
4137   ac_cv_prog_cc_c89=$ac_arg
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext
4140   test "x$ac_cv_prog_cc_c89" != "xno" && break
4141 done
4142 rm -f conftest.$ac_ext
4143 CC=$ac_save_CC
4144
4145 fi
4146 # AC_CACHE_VAL
4147 case "x$ac_cv_prog_cc_c89" in
4148   x)
4149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4150 $as_echo "none needed" >&6; } ;;
4151   xno)
4152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4153 $as_echo "unsupported" >&6; } ;;
4154   *)
4155     CC="$CC $ac_cv_prog_cc_c89"
4156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4158 esac
4159 if test "x$ac_cv_prog_cc_c89" != xno; then :
4160
4161 fi
4162
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4175 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4176 if ${am_cv_prog_cc_c_o+:} false; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190   # Make sure it works both with $CC and with simple cc.
4191   # Following AC_PROG_CC_C_O, we do the test twice because some
4192   # compilers refuse to overwrite an existing .o file with -o,
4193   # though they will create one.
4194   am_cv_prog_cc_c_o=yes
4195   for am_i in 1 2; do
4196     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4197    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4198    ac_status=$?
4199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200    (exit $ac_status); } \
4201          && test -f conftest2.$ac_objext; then
4202       : OK
4203     else
4204       am_cv_prog_cc_c_o=no
4205       break
4206     fi
4207   done
4208   rm -f core conftest*
4209   unset am_i
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4212 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4213 if test "$am_cv_prog_cc_c_o" != yes; then
4214    # Losing compiler, so override with the script.
4215    # FIXME: It is wrong to rewrite CC.
4216    # But if we don't then we get into trouble of one sort or another.
4217    # A longer-term fix would be to have automake use am__CC in this case,
4218    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4219    CC="$am_aux_dir/compile $CC"
4220 fi
4221 ac_ext=c
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227
4228 depcc="$CC"   am_compiler_list=
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4231 $as_echo_n "checking dependency style of $depcc... " >&6; }
4232 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4233   $as_echo_n "(cached) " >&6
4234 else
4235   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4236   # We make a subdir and do the tests there.  Otherwise we can end up
4237   # making bogus files that we don't know about and never remove.  For
4238   # instance it was reported that on HP-UX the gcc test will end up
4239   # making a dummy file named 'D' -- because '-MD' means "put the output
4240   # in D".
4241   rm -rf conftest.dir
4242   mkdir conftest.dir
4243   # Copy depcomp to subdir because otherwise we won't find it if we're
4244   # using a relative directory.
4245   cp "$am_depcomp" conftest.dir
4246   cd conftest.dir
4247   # We will build objects and dependencies in a subdirectory because
4248   # it helps to detect inapplicable dependency modes.  For instance
4249   # both Tru64's cc and ICC support -MD to output dependencies as a
4250   # side effect of compilation, but ICC will put the dependencies in
4251   # the current directory while Tru64 will put them in the object
4252   # directory.
4253   mkdir sub
4254
4255   am_cv_CC_dependencies_compiler_type=none
4256   if test "$am_compiler_list" = ""; then
4257      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4258   fi
4259   am__universal=false
4260   case " $depcc " in #(
4261      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4262      esac
4263
4264   for depmode in $am_compiler_list; do
4265     # Setup a source with many dependencies, because some compilers
4266     # like to wrap large dependency lists on column 80 (with \), and
4267     # we should not choose a depcomp mode which is confused by this.
4268     #
4269     # We need to recreate these files for each test, as the compiler may
4270     # overwrite some of them when testing with obscure command lines.
4271     # This happens at least with the AIX C compiler.
4272     : > sub/conftest.c
4273     for i in 1 2 3 4 5 6; do
4274       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4275       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4276       # Solaris 10 /bin/sh.
4277       echo '/* dummy */' > sub/conftst$i.h
4278     done
4279     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4280
4281     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4282     # mode.  It turns out that the SunPro C++ compiler does not properly
4283     # handle '-M -o', and we need to detect this.  Also, some Intel
4284     # versions had trouble with output in subdirs.
4285     am__obj=sub/conftest.${OBJEXT-o}
4286     am__minus_obj="-o $am__obj"
4287     case $depmode in
4288     gcc)
4289       # This depmode causes a compiler race in universal mode.
4290       test "$am__universal" = false || continue
4291       ;;
4292     nosideeffect)
4293       # After this tag, mechanisms are not by side-effect, so they'll
4294       # only be used when explicitly requested.
4295       if test "x$enable_dependency_tracking" = xyes; then
4296         continue
4297       else
4298         break
4299       fi
4300       ;;
4301     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4302       # This compiler won't grok '-c -o', but also, the minuso test has
4303       # not run yet.  These depmodes are late enough in the game, and
4304       # so weak that their functioning should not be impacted.
4305       am__obj=conftest.${OBJEXT-o}
4306       am__minus_obj=
4307       ;;
4308     none) break ;;
4309     esac
4310     if depmode=$depmode \
4311        source=sub/conftest.c object=$am__obj \
4312        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4313        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4314          >/dev/null 2>conftest.err &&
4315        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4316        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4317        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4318        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4319       # icc doesn't choke on unknown options, it will just issue warnings
4320       # or remarks (even with -Werror).  So we grep stderr for any message
4321       # that says an option was ignored or not supported.
4322       # When given -MP, icc 7.0 and 7.1 complain thusly:
4323       #   icc: Command line warning: ignoring option '-M'; no argument required
4324       # The diagnosis changed in icc 8.0:
4325       #   icc: Command line remark: option '-MP' not supported
4326       if (grep 'ignoring option' conftest.err ||
4327           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4328         am_cv_CC_dependencies_compiler_type=$depmode
4329         break
4330       fi
4331     fi
4332   done
4333
4334   cd ..
4335   rm -rf conftest.dir
4336 else
4337   am_cv_CC_dependencies_compiler_type=none
4338 fi
4339
4340 fi
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4342 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4343 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4344
4345  if
4346   test "x$enable_dependency_tracking" != xno \
4347   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4348   am__fastdepCC_TRUE=
4349   am__fastdepCC_FALSE='#'
4350 else
4351   am__fastdepCC_TRUE='#'
4352   am__fastdepCC_FALSE=
4353 fi
4354
4355
4356
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 # On Suns, sometimes $CPP names a directory.
4365 if test -n "$CPP" && test -d "$CPP"; then
4366   CPP=
4367 fi
4368 if test -z "$CPP"; then
4369   if ${ac_cv_prog_CPP+:} false; then :
4370   $as_echo_n "(cached) " >&6
4371 else
4372       # Double quotes because CPP needs to be expanded
4373     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4374     do
4375       ac_preproc_ok=false
4376 for ac_c_preproc_warn_flag in '' yes
4377 do
4378   # Use a header file that comes with gcc, so configuring glibc
4379   # with a fresh cross-compiler works.
4380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381   # <limits.h> exists even on freestanding compilers.
4382   # On the NeXT, cc -E runs the code through the compiler's parser,
4383   # not just through cpp. "Syntax error" is here to catch this case.
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #ifdef __STDC__
4387 # include <limits.h>
4388 #else
4389 # include <assert.h>
4390 #endif
4391                      Syntax error
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4394
4395 else
4396   # Broken: fails on valid input.
4397 continue
4398 fi
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401   # OK, works on sane cases.  Now check whether nonexistent headers
4402   # can be detected and how.
4403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405 #include <ac_nonexistent.h>
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408   # Broken: success on invalid input.
4409 continue
4410 else
4411   # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4414 fi
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4416
4417 done
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4421   break
4422 fi
4423
4424     done
4425     ac_cv_prog_CPP=$CPP
4426
4427 fi
4428   CPP=$ac_cv_prog_CPP
4429 else
4430   ac_cv_prog_CPP=$CPP
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4433 $as_echo "$CPP" >&6; }
4434 ac_preproc_ok=false
4435 for ac_c_preproc_warn_flag in '' yes
4436 do
4437   # Use a header file that comes with gcc, so configuring glibc
4438   # with a fresh cross-compiler works.
4439   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4440   # <limits.h> exists even on freestanding compilers.
4441   # On the NeXT, cc -E runs the code through the compiler's parser,
4442   # not just through cpp. "Syntax error" is here to catch this case.
4443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445 #ifdef __STDC__
4446 # include <limits.h>
4447 #else
4448 # include <assert.h>
4449 #endif
4450                      Syntax error
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453
4454 else
4455   # Broken: fails on valid input.
4456 continue
4457 fi
4458 rm -f conftest.err conftest.i conftest.$ac_ext
4459
4460   # OK, works on sane cases.  Now check whether nonexistent headers
4461   # can be detected and how.
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464 #include <ac_nonexistent.h>
4465 _ACEOF
4466 if ac_fn_c_try_cpp "$LINENO"; then :
4467   # Broken: success on invalid input.
4468 continue
4469 else
4470   # Passes both tests.
4471 ac_preproc_ok=:
4472 break
4473 fi
4474 rm -f conftest.err conftest.i conftest.$ac_ext
4475
4476 done
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.i conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then :
4480
4481 else
4482   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log' for more details" "$LINENO" 5; }
4486 fi
4487
4488 ac_ext=c
4489 ac_cpp='$CPP $CPPFLAGS'
4490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4497 if ${ac_cv_path_GREP+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if test -z "$GREP"; then
4501   ac_path_GREP_found=false
4502   # Loop through the user's path and test for each of PROGNAME-LIST
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     for ac_prog in grep ggrep; do
4509     for ac_exec_ext in '' $ac_executable_extensions; do
4510       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511       as_fn_executable_p "$ac_path_GREP" || continue
4512 # Check for GNU ac_path_GREP and select it if it is found.
4513   # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4515 *GNU*)
4516   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517 *)
4518   ac_count=0
4519   $as_echo_n 0123456789 >"conftest.in"
4520   while :
4521   do
4522     cat "conftest.in" "conftest.in" >"conftest.tmp"
4523     mv "conftest.tmp" "conftest.in"
4524     cp "conftest.in" "conftest.nl"
4525     $as_echo 'GREP' >> "conftest.nl"
4526     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528     as_fn_arith $ac_count + 1 && ac_count=$as_val
4529     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530       # Best one so far, save it but keep looking for a better one
4531       ac_cv_path_GREP="$ac_path_GREP"
4532       ac_path_GREP_max=$ac_count
4533     fi
4534     # 10*(2^10) chars as input seems more than enough
4535     test $ac_count -gt 10 && break
4536   done
4537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4539
4540       $ac_path_GREP_found && break 3
4541     done
4542   done
4543   done
4544 IFS=$as_save_IFS
4545   if test -z "$ac_cv_path_GREP"; then
4546     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4547   fi
4548 else
4549   ac_cv_path_GREP=$GREP
4550 fi
4551
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4554 $as_echo "$ac_cv_path_GREP" >&6; }
4555  GREP="$ac_cv_path_GREP"
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4559 $as_echo_n "checking for egrep... " >&6; }
4560 if ${ac_cv_path_EGREP+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4564    then ac_cv_path_EGREP="$GREP -E"
4565    else
4566      if test -z "$EGREP"; then
4567   ac_path_EGREP_found=false
4568   # Loop through the user's path and test for each of PROGNAME-LIST
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_prog in egrep; do
4575     for ac_exec_ext in '' $ac_executable_extensions; do
4576       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4577       as_fn_executable_p "$ac_path_EGREP" || continue
4578 # Check for GNU ac_path_EGREP and select it if it is found.
4579   # Check for GNU $ac_path_EGREP
4580 case `"$ac_path_EGREP" --version 2>&1` in
4581 *GNU*)
4582   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4583 *)
4584   ac_count=0
4585   $as_echo_n 0123456789 >"conftest.in"
4586   while :
4587   do
4588     cat "conftest.in" "conftest.in" >"conftest.tmp"
4589     mv "conftest.tmp" "conftest.in"
4590     cp "conftest.in" "conftest.nl"
4591     $as_echo 'EGREP' >> "conftest.nl"
4592     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594     as_fn_arith $ac_count + 1 && ac_count=$as_val
4595     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4596       # Best one so far, save it but keep looking for a better one
4597       ac_cv_path_EGREP="$ac_path_EGREP"
4598       ac_path_EGREP_max=$ac_count
4599     fi
4600     # 10*(2^10) chars as input seems more than enough
4601     test $ac_count -gt 10 && break
4602   done
4603   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4605
4606       $ac_path_EGREP_found && break 3
4607     done
4608   done
4609   done
4610 IFS=$as_save_IFS
4611   if test -z "$ac_cv_path_EGREP"; then
4612     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613   fi
4614 else
4615   ac_cv_path_EGREP=$EGREP
4616 fi
4617
4618    fi
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4621 $as_echo "$ac_cv_path_EGREP" >&6; }
4622  EGREP="$ac_cv_path_EGREP"
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4626 $as_echo_n "checking for ANSI C header files... " >&6; }
4627 if ${ac_cv_header_stdc+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632 #include <stdlib.h>
4633 #include <stdarg.h>
4634 #include <string.h>
4635 #include <float.h>
4636
4637 int
4638 main ()
4639 {
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646   ac_cv_header_stdc=yes
4647 else
4648   ac_cv_header_stdc=no
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651
4652 if test $ac_cv_header_stdc = yes; then
4653   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h.  */
4656 #include <string.h>
4657
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660   $EGREP "memchr" >/dev/null 2>&1; then :
4661
4662 else
4663   ac_cv_header_stdc=no
4664 fi
4665 rm -f conftest*
4666
4667 fi
4668
4669 if test $ac_cv_header_stdc = yes; then
4670   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h.  */
4673 #include <stdlib.h>
4674
4675 _ACEOF
4676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4677   $EGREP "free" >/dev/null 2>&1; then :
4678
4679 else
4680   ac_cv_header_stdc=no
4681 fi
4682 rm -f conftest*
4683
4684 fi
4685
4686 if test $ac_cv_header_stdc = yes; then
4687   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4688   if test "$cross_compiling" = yes; then :
4689   :
4690 else
4691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693 #include <ctype.h>
4694 #include <stdlib.h>
4695 #if ((' ' & 0x0FF) == 0x020)
4696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4698 #else
4699 # define ISLOWER(c) \
4700                    (('a' <= (c) && (c) <= 'i') \
4701                      || ('j' <= (c) && (c) <= 'r') \
4702                      || ('s' <= (c) && (c) <= 'z'))
4703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4704 #endif
4705
4706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4707 int
4708 main ()
4709 {
4710   int i;
4711   for (i = 0; i < 256; i++)
4712     if (XOR (islower (i), ISLOWER (i))
4713         || toupper (i) != TOUPPER (i))
4714       return 2;
4715   return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_run "$LINENO"; then :
4719
4720 else
4721   ac_cv_header_stdc=no
4722 fi
4723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4724   conftest.$ac_objext conftest.beam conftest.$ac_ext
4725 fi
4726
4727 fi
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4730 $as_echo "$ac_cv_header_stdc" >&6; }
4731 if test $ac_cv_header_stdc = yes; then
4732
4733 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4734
4735 fi
4736
4737 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4738 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4739                   inttypes.h stdint.h unistd.h
4740 do :
4741   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4742 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4743 "
4744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4745   cat >>confdefs.h <<_ACEOF
4746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 _ACEOF
4748
4749 fi
4750
4751 done
4752
4753
4754
4755   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4756 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4757   MINIX=yes
4758 else
4759   MINIX=
4760 fi
4761
4762
4763   if test "$MINIX" = yes; then
4764
4765 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4766
4767
4768 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4769
4770
4771 $as_echo "#define _MINIX 1" >>confdefs.h
4772
4773   fi
4774
4775
4776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4777 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4778 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h.  */
4783
4784 #         define __EXTENSIONS__ 1
4785           $ac_includes_default
4786 int
4787 main ()
4788 {
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 if ac_fn_c_try_compile "$LINENO"; then :
4795   ac_cv_safe_to_define___extensions__=yes
4796 else
4797   ac_cv_safe_to_define___extensions__=no
4798 fi
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803   test $ac_cv_safe_to_define___extensions__ = yes &&
4804     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4805
4806   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4807
4808   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4809
4810   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4811
4812   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4813
4814
4815
4816
4817
4818
4819
4820
4821 # Configure options.
4822 # allow `./configure --enable-silent-rules' and `make V=0'
4823 # Check whether --enable-silent-rules was given.
4824 if test "${enable_silent_rules+set}" = set; then :
4825   enableval=$enable_silent_rules;
4826 fi
4827
4828 case $enable_silent_rules in # (((
4829   yes) AM_DEFAULT_VERBOSITY=0;;
4830    no) AM_DEFAULT_VERBOSITY=1;;
4831     *) AM_DEFAULT_VERBOSITY=1;;
4832 esac
4833 am_make=${MAKE-make}
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4835 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4836 if ${am_cv_make_support_nested_variables+:} false; then :
4837   $as_echo_n "(cached) " >&6
4838 else
4839   if $as_echo 'TRUE=$(BAR$(V))
4840 BAR0=false
4841 BAR1=true
4842 V=1
4843 am__doit:
4844         @$(TRUE)
4845 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4846   am_cv_make_support_nested_variables=yes
4847 else
4848   am_cv_make_support_nested_variables=no
4849 fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4852 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4853 if test $am_cv_make_support_nested_variables = yes; then
4854     AM_V='$(V)'
4855   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4856 else
4857   AM_V=$AM_DEFAULT_VERBOSITY
4858   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4859 fi
4860 AM_BACKSLASH='\'
4861
4862
4863 # Check whether --enable-gcov was given.
4864 if test "${enable_gcov+set}" = set; then :
4865   enableval=$enable_gcov; case "${enableval}" in
4866   yes) enable_gcov=true ;;
4867   no)  enable_gcov=false ;;
4868   *)   as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
4869 esac
4870 else
4871   enable_gcov=false
4872 fi
4873
4874
4875 if test x$enable_gcov = xtrue ; then
4876   if test x"$GCC" != xyes; then
4877     as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
4878   fi
4879
4880   GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4881
4882
4883         GCOV_LIBS=-lgcov
4884
4885 fi
4886
4887  if test x"$enable_gcov" = "xtrue"; then
4888   ENABLE_GCOV_TRUE=
4889   ENABLE_GCOV_FALSE='#'
4890 else
4891   ENABLE_GCOV_TRUE='#'
4892   ENABLE_GCOV_FALSE=
4893 fi
4894
4895
4896 # Check whether --enable-timeout-tests was given.
4897 if test "${enable_timeout_tests+set}" = set; then :
4898   enableval=$enable_timeout_tests; case "${enableval}" in
4899   yes) enable_timeout_tests=true ;;
4900   no)  enable_timeout_tests=false ;;
4901   *)   as_fn_error $? "bad value ${enableval} for --enable-timeout-tests" "$LINENO" 5 ;;
4902 esac
4903 else
4904   enable_timeout_tests=true
4905 fi
4906
4907
4908 # Check whether --enable-build-docs was given.
4909 if test "${enable_build_docs+set}" = set; then :
4910   enableval=$enable_build_docs; case "${enableval}" in
4911   yes) enable_build_docs=true ;;
4912   no)  enable_build_docs=false ;;
4913   *)   as_fn_error $? "bad value ${enableval} for --enable-build-docs" "$LINENO" 5 ;;
4914 esac
4915 else
4916   enable_build_docs=true
4917 fi
4918
4919
4920  if test x"$enable_timeout_tests" = "xfalse"; then
4921   NO_TIMEOUT_TESTS_TRUE=
4922   NO_TIMEOUT_TESTS_FALSE='#'
4923 else
4924   NO_TIMEOUT_TESTS_TRUE='#'
4925   NO_TIMEOUT_TESTS_FALSE=
4926 fi
4927
4928
4929 # Check whether --enable-subunit was given.
4930 if test "${enable_subunit+set}" = set; then :
4931   enableval=$enable_subunit; case "${enableval}" in
4932   yes)
4933     enable_subunit=true
4934     echo "Enabled subunit support"
4935     ;;
4936   no)
4937     enable_subunit=false
4938     echo "Disabled subunit support"
4939     ;;
4940   autodetect)
4941     echo "Subunit support will enable automatically."
4942     ;;
4943   *)   as_fn_error $? "bad value ${enableval} for --enable-subunit" "$LINENO" 5 ;;
4944 esac
4945 else
4946   echo "Subunit support will enable automatically."
4947  enable_subunit=autodetect
4948 fi
4949
4950
4951 # Check whether --enable-fork was given.
4952 if test "${enable_fork+set}" = set; then :
4953   enableval=$enable_fork; case "${enableval}" in
4954   yes) enable_fork=true ;;
4955   no)  enable_fork=false ;;
4956   *)   as_fn_error $? "bad value ${enableval} for --enable-fork" "$LINENO" 5 ;;
4957 esac
4958 else
4959   enable_fork=true
4960 fi
4961
4962
4963 # Check whether --enable-snprintf-replacement was given.
4964 if test "${enable_snprintf_replacement+set}" = set; then :
4965   enableval=$enable_snprintf_replacement; case "${enableval}" in
4966   yes) enable_snprintf_replacement=true ;;
4967   *)   as_fn_error $? "bad value ${enableval} for --enable-snprintf-replacement" "$LINENO" 5 ;;
4968 esac
4969 else
4970   enable_snprintf_replacement=autodetect
4971 fi
4972
4973
4974 # Check whether --enable-timer-replacement was given.
4975 if test "${enable_timer_replacement+set}" = set; then :
4976   enableval=$enable_timer_replacement; case "${enableval}" in
4977   yes) enable_timer_replacement=true ;;
4978   *)   as_fn_error $? "bad value ${enableval} for --enable-timer-replacement" "$LINENO" 5 ;;
4979 esac
4980 else
4981   enable_timer_replacement=autodetect
4982 fi
4983
4984
4985
4986 # Checks for programs.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4988 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4989 if ${ac_cv_path_SED+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993      for ac_i in 1 2 3 4 5 6 7; do
4994        ac_script="$ac_script$as_nl$ac_script"
4995      done
4996      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997      { ac_script=; unset ac_script;}
4998      if test -z "$SED"; then
4999   ac_path_SED_found=false
5000   # Loop through the user's path and test for each of PROGNAME-LIST
5001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_prog in sed gsed; do
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5009       as_fn_executable_p "$ac_path_SED" || continue
5010 # Check for GNU ac_path_SED and select it if it is found.
5011   # Check for GNU $ac_path_SED
5012 case `"$ac_path_SED" --version 2>&1` in
5013 *GNU*)
5014   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5015 *)
5016   ac_count=0
5017   $as_echo_n 0123456789 >"conftest.in"
5018   while :
5019   do
5020     cat "conftest.in" "conftest.in" >"conftest.tmp"
5021     mv "conftest.tmp" "conftest.in"
5022     cp "conftest.in" "conftest.nl"
5023     $as_echo '' >> "conftest.nl"
5024     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026     as_fn_arith $ac_count + 1 && ac_count=$as_val
5027     if test $ac_count -gt ${ac_path_SED_max-0}; then
5028       # Best one so far, save it but keep looking for a better one
5029       ac_cv_path_SED="$ac_path_SED"
5030       ac_path_SED_max=$ac_count
5031     fi
5032     # 10*(2^10) chars as input seems more than enough
5033     test $ac_count -gt 10 && break
5034   done
5035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036 esac
5037
5038       $ac_path_SED_found && break 3
5039     done
5040   done
5041   done
5042 IFS=$as_save_IFS
5043   if test -z "$ac_cv_path_SED"; then
5044     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5045   fi
5046 else
5047   ac_cv_path_SED=$SED
5048 fi
5049
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5052 $as_echo "$ac_cv_path_SED" >&6; }
5053  SED="$ac_cv_path_SED"
5054   rm -f conftest.sed
5055
5056 for ac_prog in gawk mawk nawk awk
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_AWK+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   if test -n "$AWK"; then
5066   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073     for ac_exec_ext in '' $ac_executable_extensions; do
5074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075     ac_cv_prog_AWK="$ac_prog"
5076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080   done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 AWK=$ac_cv_prog_AWK
5086 if test -n "$AWK"; then
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5088 $as_echo "$AWK" >&6; }
5089 else
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095   test -n "$AWK" && break
5096 done
5097
5098 ac_ext=c
5099 ac_cpp='$CPP $CPPFLAGS'
5100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103 if test -n "$ac_tool_prefix"; then
5104   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CC+:} false; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   if test -n "$CC"; then
5112   ac_cv_prog_CC="$CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117   IFS=$as_save_IFS
5118   test -z "$as_dir" && as_dir=.
5119     for ac_exec_ext in '' $ac_executable_extensions; do
5120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123     break 2
5124   fi
5125 done
5126   done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 CC=$ac_cv_prog_CC
5132 if test -n "$CC"; then
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5134 $as_echo "$CC" >&6; }
5135 else
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 fi
5142 if test -z "$ac_cv_prog_CC"; then
5143   ac_ct_CC=$CC
5144   # Extract the first word of "gcc", so it can be a program name with args.
5145 set dummy gcc; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   if test -n "$ac_ct_CC"; then
5152   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_prog_ac_ct_CC="gcc"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5172 if test -n "$ac_ct_CC"; then
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5174 $as_echo "$ac_ct_CC" >&6; }
5175 else
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180   if test "x$ac_ct_CC" = x; then
5181     CC=""
5182   else
5183     case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189     CC=$ac_ct_CC
5190   fi
5191 else
5192   CC="$ac_cv_prog_CC"
5193 fi
5194
5195 if test -z "$CC"; then
5196           if test -n "$ac_tool_prefix"; then
5197     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5198 set dummy ${ac_tool_prefix}cc; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_CC+:} false; then :
5202   $as_echo_n "(cached) " >&6
5203 else
5204   if test -n "$CC"; then
5205   ac_cv_prog_CC="$CC" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210   IFS=$as_save_IFS
5211   test -z "$as_dir" && as_dir=.
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214     ac_cv_prog_CC="${ac_tool_prefix}cc"
5215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216     break 2
5217   fi
5218 done
5219   done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 CC=$ac_cv_prog_CC
5225 if test -n "$CC"; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5227 $as_echo "$CC" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234   fi
5235 fi
5236 if test -z "$CC"; then
5237   # Extract the first word of "cc", so it can be a program name with args.
5238 set dummy cc; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_CC+:} false; then :
5242   $as_echo_n "(cached) " >&6
5243 else
5244   if test -n "$CC"; then
5245   ac_cv_prog_CC="$CC" # Let the user override the test.
5246 else
5247   ac_prog_rejected=no
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251   IFS=$as_save_IFS
5252   test -z "$as_dir" && as_dir=.
5253     for ac_exec_ext in '' $ac_executable_extensions; do
5254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5256        ac_prog_rejected=yes
5257        continue
5258      fi
5259     ac_cv_prog_CC="cc"
5260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264   done
5265 IFS=$as_save_IFS
5266
5267 if test $ac_prog_rejected = yes; then
5268   # We found a bogon in the path, so make sure we never use it.
5269   set dummy $ac_cv_prog_CC
5270   shift
5271   if test $# != 0; then
5272     # We chose a different compiler from the bogus one.
5273     # However, it has the same basename, so the bogon will be chosen
5274     # first if we set CC to just the basename; use the full file name.
5275     shift
5276     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5277   fi
5278 fi
5279 fi
5280 fi
5281 CC=$ac_cv_prog_CC
5282 if test -n "$CC"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5284 $as_echo "$CC" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290
5291 fi
5292 if test -z "$CC"; then
5293   if test -n "$ac_tool_prefix"; then
5294   for ac_prog in cl.exe
5295   do
5296     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_CC+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   if test -n "$CC"; then
5304   ac_cv_prog_CC="$CC" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_exec_ext in '' $ac_executable_extensions; do
5312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318   done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 CC=$ac_cv_prog_CC
5324 if test -n "$CC"; then
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5326 $as_echo "$CC" >&6; }
5327 else
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332
5333     test -n "$CC" && break
5334   done
5335 fi
5336 if test -z "$CC"; then
5337   ac_ct_CC=$CC
5338   for ac_prog in cl.exe
5339 do
5340   # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   if test -n "$ac_ct_CC"; then
5348   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357     ac_cv_prog_ac_ct_CC="$ac_prog"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5368 if test -n "$ac_ct_CC"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5370 $as_echo "$ac_ct_CC" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376
5377   test -n "$ac_ct_CC" && break
5378 done
5379
5380   if test "x$ac_ct_CC" = x; then
5381     CC=""
5382   else
5383     case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387 ac_tool_warned=yes ;;
5388 esac
5389     CC=$ac_ct_CC
5390   fi
5391 fi
5392
5393 fi
5394
5395
5396 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5398 as_fn_error $? "no acceptable C compiler found in \$PATH
5399 See \`config.log' for more details" "$LINENO" 5; }
5400
5401 # Provide some information about the compiler.
5402 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5403 set X $ac_compile
5404 ac_compiler=$2
5405 for ac_option in --version -v -V -qversion; do
5406   { { ac_try="$ac_compiler $ac_option >&5"
5407 case "(($ac_try" in
5408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409   *) ac_try_echo=$ac_try;;
5410 esac
5411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5412 $as_echo "$ac_try_echo"; } >&5
5413   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5414   ac_status=$?
5415   if test -s conftest.err; then
5416     sed '10a\
5417 ... rest of stderr output deleted ...
5418          10q' conftest.err >conftest.er1
5419     cat conftest.er1 >&5
5420   fi
5421   rm -f conftest.er1 conftest.err
5422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5423   test $ac_status = 0; }
5424 done
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5427 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5428 if ${ac_cv_c_compiler_gnu+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433
5434 int
5435 main ()
5436 {
5437 #ifndef __GNUC__
5438        choke me
5439 #endif
5440
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446   ac_compiler_gnu=yes
5447 else
5448   ac_compiler_gnu=no
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5455 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5456 if test $ac_compiler_gnu = yes; then
5457   GCC=yes
5458 else
5459   GCC=
5460 fi
5461 ac_test_CFLAGS=${CFLAGS+set}
5462 ac_save_CFLAGS=$CFLAGS
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5464 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5465 if ${ac_cv_prog_cc_g+:} false; then :
5466   $as_echo_n "(cached) " >&6
5467 else
5468   ac_save_c_werror_flag=$ac_c_werror_flag
5469    ac_c_werror_flag=yes
5470    ac_cv_prog_cc_g=no
5471    CFLAGS="-g"
5472    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h.  */
5474
5475 int
5476 main ()
5477 {
5478
5479   ;
5480   return 0;
5481 }
5482 _ACEOF
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484   ac_cv_prog_cc_g=yes
5485 else
5486   CFLAGS=""
5487       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h.  */
5489
5490 int
5491 main ()
5492 {
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499
5500 else
5501   ac_c_werror_flag=$ac_save_c_werror_flag
5502          CFLAGS="-g"
5503          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h.  */
5505
5506 int
5507 main ()
5508 {
5509
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"; then :
5515   ac_cv_prog_cc_g=yes
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522    ac_c_werror_flag=$ac_save_c_werror_flag
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5525 $as_echo "$ac_cv_prog_cc_g" >&6; }
5526 if test "$ac_test_CFLAGS" = set; then
5527   CFLAGS=$ac_save_CFLAGS
5528 elif test $ac_cv_prog_cc_g = yes; then
5529   if test "$GCC" = yes; then
5530     CFLAGS="-g -O2"
5531   else
5532     CFLAGS="-g"
5533   fi
5534 else
5535   if test "$GCC" = yes; then
5536     CFLAGS="-O2"
5537   else
5538     CFLAGS=
5539   fi
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5542 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5543 if ${ac_cv_prog_cc_c89+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   ac_cv_prog_cc_c89=no
5547 ac_save_CC=$CC
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h.  */
5550 #include <stdarg.h>
5551 #include <stdio.h>
5552 struct stat;
5553 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5554 struct buf { int x; };
5555 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5556 static char *e (p, i)
5557      char **p;
5558      int i;
5559 {
5560   return p[i];
5561 }
5562 static char *f (char * (*g) (char **, int), char **p, ...)
5563 {
5564   char *s;
5565   va_list v;
5566   va_start (v,p);
5567   s = g (p, va_arg (v,int));
5568   va_end (v);
5569   return s;
5570 }
5571
5572 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5573    function prototypes and stuff, but not '\xHH' hex character constants.
5574    These don't provoke an error unfortunately, instead are silently treated
5575    as 'x'.  The following induces an error, until -std is added to get
5576    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5577    array size at least.  It's necessary to write '\x00'==0 to get something
5578    that's true only with -std.  */
5579 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5580
5581 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5582    inside strings and character constants.  */
5583 #define FOO(x) 'x'
5584 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5585
5586 int test (int i, double x);
5587 struct s1 {int (*f) (int a);};
5588 struct s2 {int (*f) (double a);};
5589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5590 int argc;
5591 char **argv;
5592 int
5593 main ()
5594 {
5595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5596   ;
5597   return 0;
5598 }
5599 _ACEOF
5600 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5601         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5602 do
5603   CC="$ac_save_CC $ac_arg"
5604   if ac_fn_c_try_compile "$LINENO"; then :
5605   ac_cv_prog_cc_c89=$ac_arg
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext
5608   test "x$ac_cv_prog_cc_c89" != "xno" && break
5609 done
5610 rm -f conftest.$ac_ext
5611 CC=$ac_save_CC
5612
5613 fi
5614 # AC_CACHE_VAL
5615 case "x$ac_cv_prog_cc_c89" in
5616   x)
5617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5618 $as_echo "none needed" >&6; } ;;
5619   xno)
5620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5621 $as_echo "unsupported" >&6; } ;;
5622   *)
5623     CC="$CC $ac_cv_prog_cc_c89"
5624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5625 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5626 esac
5627 if test "x$ac_cv_prog_cc_c89" != xno; then :
5628
5629 fi
5630
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636
5637 ac_ext=c
5638 ac_cpp='$CPP $CPPFLAGS'
5639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5643 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5644 if ${am_cv_prog_cc_c_o+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h.  */
5649
5650 int
5651 main ()
5652 {
5653
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658   # Make sure it works both with $CC and with simple cc.
5659   # Following AC_PROG_CC_C_O, we do the test twice because some
5660   # compilers refuse to overwrite an existing .o file with -o,
5661   # though they will create one.
5662   am_cv_prog_cc_c_o=yes
5663   for am_i in 1 2; do
5664     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5665    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5666    ac_status=$?
5667    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668    (exit $ac_status); } \
5669          && test -f conftest2.$ac_objext; then
5670       : OK
5671     else
5672       am_cv_prog_cc_c_o=no
5673       break
5674     fi
5675   done
5676   rm -f core conftest*
5677   unset am_i
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5680 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5681 if test "$am_cv_prog_cc_c_o" != yes; then
5682    # Losing compiler, so override with the script.
5683    # FIXME: It is wrong to rewrite CC.
5684    # But if we don't then we get into trouble of one sort or another.
5685    # A longer-term fix would be to have automake use am__CC in this case,
5686    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5687    CC="$am_aux_dir/compile $CC"
5688 fi
5689 ac_ext=c
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694
5695
5696 depcc="$CC"   am_compiler_list=
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5699 $as_echo_n "checking dependency style of $depcc... " >&6; }
5700 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5704   # We make a subdir and do the tests there.  Otherwise we can end up
5705   # making bogus files that we don't know about and never remove.  For
5706   # instance it was reported that on HP-UX the gcc test will end up
5707   # making a dummy file named 'D' -- because '-MD' means "put the output
5708   # in D".
5709   rm -rf conftest.dir
5710   mkdir conftest.dir
5711   # Copy depcomp to subdir because otherwise we won't find it if we're
5712   # using a relative directory.
5713   cp "$am_depcomp" conftest.dir
5714   cd conftest.dir
5715   # We will build objects and dependencies in a subdirectory because
5716   # it helps to detect inapplicable dependency modes.  For instance
5717   # both Tru64's cc and ICC support -MD to output dependencies as a
5718   # side effect of compilation, but ICC will put the dependencies in
5719   # the current directory while Tru64 will put them in the object
5720   # directory.
5721   mkdir sub
5722
5723   am_cv_CC_dependencies_compiler_type=none
5724   if test "$am_compiler_list" = ""; then
5725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5726   fi
5727   am__universal=false
5728   case " $depcc " in #(
5729      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5730      esac
5731
5732   for depmode in $am_compiler_list; do
5733     # Setup a source with many dependencies, because some compilers
5734     # like to wrap large dependency lists on column 80 (with \), and
5735     # we should not choose a depcomp mode which is confused by this.
5736     #
5737     # We need to recreate these files for each test, as the compiler may
5738     # overwrite some of them when testing with obscure command lines.
5739     # This happens at least with the AIX C compiler.
5740     : > sub/conftest.c
5741     for i in 1 2 3 4 5 6; do
5742       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5743       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5744       # Solaris 10 /bin/sh.
5745       echo '/* dummy */' > sub/conftst$i.h
5746     done
5747     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5748
5749     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5750     # mode.  It turns out that the SunPro C++ compiler does not properly
5751     # handle '-M -o', and we need to detect this.  Also, some Intel
5752     # versions had trouble with output in subdirs.
5753     am__obj=sub/conftest.${OBJEXT-o}
5754     am__minus_obj="-o $am__obj"
5755     case $depmode in
5756     gcc)
5757       # This depmode causes a compiler race in universal mode.
5758       test "$am__universal" = false || continue
5759       ;;
5760     nosideeffect)
5761       # After this tag, mechanisms are not by side-effect, so they'll
5762       # only be used when explicitly requested.
5763       if test "x$enable_dependency_tracking" = xyes; then
5764         continue
5765       else
5766         break
5767       fi
5768       ;;
5769     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5770       # This compiler won't grok '-c -o', but also, the minuso test has
5771       # not run yet.  These depmodes are late enough in the game, and
5772       # so weak that their functioning should not be impacted.
5773       am__obj=conftest.${OBJEXT-o}
5774       am__minus_obj=
5775       ;;
5776     none) break ;;
5777     esac
5778     if depmode=$depmode \
5779        source=sub/conftest.c object=$am__obj \
5780        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5781        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5782          >/dev/null 2>conftest.err &&
5783        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5784        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5785        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5786        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5787       # icc doesn't choke on unknown options, it will just issue warnings
5788       # or remarks (even with -Werror).  So we grep stderr for any message
5789       # that says an option was ignored or not supported.
5790       # When given -MP, icc 7.0 and 7.1 complain thusly:
5791       #   icc: Command line warning: ignoring option '-M'; no argument required
5792       # The diagnosis changed in icc 8.0:
5793       #   icc: Command line remark: option '-MP' not supported
5794       if (grep 'ignoring option' conftest.err ||
5795           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5796         am_cv_CC_dependencies_compiler_type=$depmode
5797         break
5798       fi
5799     fi
5800   done
5801
5802   cd ..
5803   rm -rf conftest.dir
5804 else
5805   am_cv_CC_dependencies_compiler_type=none
5806 fi
5807
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5810 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5811 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5812
5813  if
5814   test "x$enable_dependency_tracking" != xno \
5815   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5816   am__fastdepCC_TRUE=
5817   am__fastdepCC_FALSE='#'
5818 else
5819   am__fastdepCC_TRUE='#'
5820   am__fastdepCC_FALSE=
5821 fi
5822
5823
5824 # Automake wants this for per-target CFLAGS
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5828 $as_echo_n "checking whether ln -s works... " >&6; }
5829 LN_S=$as_ln_s
5830 if test "$LN_S" = "ln -s"; then
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5833 else
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5835 $as_echo "no, using $LN_S" >&6; }
5836 fi
5837
5838 # for non-POSIX archivers like the one on OS X
5839 # use m4_ifdef to work on older automake (1.11)
5840 if test -n "$ac_tool_prefix"; then
5841   for ac_prog in ar lib "link -lib"
5842   do
5843     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_AR+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   if test -n "$AR"; then
5851   ac_cv_prog_AR="$AR" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 AR=$ac_cv_prog_AR
5871 if test -n "$AR"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5873 $as_echo "$AR" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880     test -n "$AR" && break
5881   done
5882 fi
5883 if test -z "$AR"; then
5884   ac_ct_AR=$AR
5885   for ac_prog in ar lib "link -lib"
5886 do
5887   # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$ac_ct_AR"; then
5895   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902     for ac_exec_ext in '' $ac_executable_extensions; do
5903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904     ac_cv_prog_ac_ct_AR="$ac_prog"
5905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909   done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915 if test -n "$ac_ct_AR"; then
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917 $as_echo "$ac_ct_AR" >&6; }
5918 else
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924   test -n "$ac_ct_AR" && break
5925 done
5926
5927   if test "x$ac_ct_AR" = x; then
5928     AR="false"
5929   else
5930     case $cross_compiling:$ac_tool_warned in
5931 yes:)
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 ac_tool_warned=yes ;;
5935 esac
5936     AR=$ac_ct_AR
5937   fi
5938 fi
5939
5940 : ${AR=ar}
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5943 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5944 if ${am_cv_ar_interface+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   ac_ext=c
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952
5953    am_cv_ar_interface=ar
5954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h.  */
5956 int some_variable = 0;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5960       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5961   (eval $am_ar_try) 2>&5
5962   ac_status=$?
5963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964   test $ac_status = 0; }
5965       if test "$ac_status" -eq 0; then
5966         am_cv_ar_interface=ar
5967       else
5968         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5969         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5970   (eval $am_ar_try) 2>&5
5971   ac_status=$?
5972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973   test $ac_status = 0; }
5974         if test "$ac_status" -eq 0; then
5975           am_cv_ar_interface=lib
5976         else
5977           am_cv_ar_interface=unknown
5978         fi
5979       fi
5980       rm -f conftest.lib libconftest.a
5981
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984    ac_ext=c
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5992 $as_echo "$am_cv_ar_interface" >&6; }
5993
5994 case $am_cv_ar_interface in
5995 ar)
5996   ;;
5997 lib)
5998   # Microsoft lib, so override with the ar-lib wrapper script.
5999   # FIXME: It is wrong to rewrite AR.
6000   # But if we don't then we get into trouble of one sort or another.
6001   # A longer-term fix would be to have automake use am__AR in this case,
6002   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6003   # similar.
6004   AR="$am_aux_dir/ar-lib $AR"
6005   ;;
6006 unknown)
6007   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6008   ;;
6009 esac
6010
6011 case `pwd` in
6012   *\ * | *\     *)
6013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6014 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6015 esac
6016
6017
6018
6019 macro_version='2.4.6'
6020 macro_revision='2.4.6'
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 ltmain=$ac_aux_dir/ltmain.sh
6035
6036 # Make sure we can run config.sub.
6037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6038   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6041 $as_echo_n "checking build system type... " >&6; }
6042 if ${ac_cv_build+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   ac_build_alias=$build_alias
6046 test "x$ac_build_alias" = x &&
6047   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6048 test "x$ac_build_alias" = x &&
6049   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6051   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6055 $as_echo "$ac_cv_build" >&6; }
6056 case $ac_cv_build in
6057 *-*-*) ;;
6058 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6059 esac
6060 build=$ac_cv_build
6061 ac_save_IFS=$IFS; IFS='-'
6062 set x $ac_cv_build
6063 shift
6064 build_cpu=$1
6065 build_vendor=$2
6066 shift; shift
6067 # Remember, the first character of IFS is used to create $*,
6068 # except with old shells:
6069 build_os=$*
6070 IFS=$ac_save_IFS
6071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6075 $as_echo_n "checking host system type... " >&6; }
6076 if ${ac_cv_host+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test "x$host_alias" = x; then
6080   ac_cv_host=$ac_cv_build
6081 else
6082   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6083     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6084 fi
6085
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6088 $as_echo "$ac_cv_host" >&6; }
6089 case $ac_cv_host in
6090 *-*-*) ;;
6091 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6092 esac
6093 host=$ac_cv_host
6094 ac_save_IFS=$IFS; IFS='-'
6095 set x $ac_cv_host
6096 shift
6097 host_cpu=$1
6098 host_vendor=$2
6099 shift; shift
6100 # Remember, the first character of IFS is used to create $*,
6101 # except with old shells:
6102 host_os=$*
6103 IFS=$ac_save_IFS
6104 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6105
6106
6107 # Backslashify metacharacters that are still active within
6108 # double-quoted strings.
6109 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6110
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6113
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6117
6118 # Sed substitution to delay expansion of an escaped single quote.
6119 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6120
6121 # Sed substitution to avoid accidental globbing in evaled expressions
6122 no_glob_subst='s/\*/\\\*/g'
6123
6124 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6126 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6127
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6129 $as_echo_n "checking how to print strings... " >&6; }
6130 # Test print first, because it will be a builtin if present.
6131 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6132    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6133   ECHO='print -r --'
6134 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6135   ECHO='printf %s\n'
6136 else
6137   # Use this function as a fallback that always works.
6138   func_fallback_echo ()
6139   {
6140     eval 'cat <<_LTECHO_EOF
6141 $1
6142 _LTECHO_EOF'
6143   }
6144   ECHO='func_fallback_echo'
6145 fi
6146
6147 # func_echo_all arg...
6148 # Invoke $ECHO with all args, space-separated.
6149 func_echo_all ()
6150 {
6151     $ECHO ""
6152 }
6153
6154 case $ECHO in
6155   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6156 $as_echo "printf" >&6; } ;;
6157   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6158 $as_echo "print -r" >&6; } ;;
6159   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6160 $as_echo "cat" >&6; } ;;
6161 esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6177 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6178 if ${ac_cv_path_SED+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6182      for ac_i in 1 2 3 4 5 6 7; do
6183        ac_script="$ac_script$as_nl$ac_script"
6184      done
6185      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6186      { ac_script=; unset ac_script;}
6187      if test -z "$SED"; then
6188   ac_path_SED_found=false
6189   # Loop through the user's path and test for each of PROGNAME-LIST
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_prog in sed gsed; do
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6198       as_fn_executable_p "$ac_path_SED" || continue
6199 # Check for GNU ac_path_SED and select it if it is found.
6200   # Check for GNU $ac_path_SED
6201 case `"$ac_path_SED" --version 2>&1` in
6202 *GNU*)
6203   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6204 *)
6205   ac_count=0
6206   $as_echo_n 0123456789 >"conftest.in"
6207   while :
6208   do
6209     cat "conftest.in" "conftest.in" >"conftest.tmp"
6210     mv "conftest.tmp" "conftest.in"
6211     cp "conftest.in" "conftest.nl"
6212     $as_echo '' >> "conftest.nl"
6213     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215     as_fn_arith $ac_count + 1 && ac_count=$as_val
6216     if test $ac_count -gt ${ac_path_SED_max-0}; then
6217       # Best one so far, save it but keep looking for a better one
6218       ac_cv_path_SED="$ac_path_SED"
6219       ac_path_SED_max=$ac_count
6220     fi
6221     # 10*(2^10) chars as input seems more than enough
6222     test $ac_count -gt 10 && break
6223   done
6224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 esac
6226
6227       $ac_path_SED_found && break 3
6228     done
6229   done
6230   done
6231 IFS=$as_save_IFS
6232   if test -z "$ac_cv_path_SED"; then
6233     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6234   fi
6235 else
6236   ac_cv_path_SED=$SED
6237 fi
6238
6239 fi
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6241 $as_echo "$ac_cv_path_SED" >&6; }
6242  SED="$ac_cv_path_SED"
6243   rm -f conftest.sed
6244
6245 test -z "$SED" && SED=sed
6246 Xsed="$SED -e 1s/^X//"
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6259 $as_echo_n "checking for fgrep... " >&6; }
6260 if ${ac_cv_path_FGREP+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6264    then ac_cv_path_FGREP="$GREP -F"
6265    else
6266      if test -z "$FGREP"; then
6267   ac_path_FGREP_found=false
6268   # Loop through the user's path and test for each of PROGNAME-LIST
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_prog in fgrep; do
6275     for ac_exec_ext in '' $ac_executable_extensions; do
6276       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6277       as_fn_executable_p "$ac_path_FGREP" || continue
6278 # Check for GNU ac_path_FGREP and select it if it is found.
6279   # Check for GNU $ac_path_FGREP
6280 case `"$ac_path_FGREP" --version 2>&1` in
6281 *GNU*)
6282   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6283 *)
6284   ac_count=0
6285   $as_echo_n 0123456789 >"conftest.in"
6286   while :
6287   do
6288     cat "conftest.in" "conftest.in" >"conftest.tmp"
6289     mv "conftest.tmp" "conftest.in"
6290     cp "conftest.in" "conftest.nl"
6291     $as_echo 'FGREP' >> "conftest.nl"
6292     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6293     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6294     as_fn_arith $ac_count + 1 && ac_count=$as_val
6295     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6296       # Best one so far, save it but keep looking for a better one
6297       ac_cv_path_FGREP="$ac_path_FGREP"
6298       ac_path_FGREP_max=$ac_count
6299     fi
6300     # 10*(2^10) chars as input seems more than enough
6301     test $ac_count -gt 10 && break
6302   done
6303   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6304 esac
6305
6306       $ac_path_FGREP_found && break 3
6307     done
6308   done
6309   done
6310 IFS=$as_save_IFS
6311   if test -z "$ac_cv_path_FGREP"; then
6312     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6313   fi
6314 else
6315   ac_cv_path_FGREP=$FGREP
6316 fi
6317
6318    fi
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6321 $as_echo "$ac_cv_path_FGREP" >&6; }
6322  FGREP="$ac_cv_path_FGREP"
6323
6324
6325 test -z "$GREP" && GREP=grep
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 # Check whether --with-gnu-ld was given.
6346 if test "${with_gnu_ld+set}" = set; then :
6347   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6348 else
6349   with_gnu_ld=no
6350 fi
6351
6352 ac_prog=ld
6353 if test yes = "$GCC"; then
6354   # Check if gcc -print-prog-name=ld gives a path.
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6356 $as_echo_n "checking for ld used by $CC... " >&6; }
6357   case $host in
6358   *-*-mingw*)
6359     # gcc leaves a trailing carriage return, which upsets mingw
6360     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6361   *)
6362     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6363   esac
6364   case $ac_prog in
6365     # Accept absolute paths.
6366     [\\/]* | ?:[\\/]*)
6367       re_direlt='/[^/][^/]*/\.\./'
6368       # Canonicalize the pathname of ld
6369       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6370       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6371         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6372       done
6373       test -z "$LD" && LD=$ac_prog
6374       ;;
6375   "")
6376     # If it fails, then pretend we aren't using GCC.
6377     ac_prog=ld
6378     ;;
6379   *)
6380     # If it is relative, then search for the first ld in PATH.
6381     with_gnu_ld=unknown
6382     ;;
6383   esac
6384 elif test yes = "$with_gnu_ld"; then
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6386 $as_echo_n "checking for GNU ld... " >&6; }
6387 else
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6389 $as_echo_n "checking for non-GNU ld... " >&6; }
6390 fi
6391 if ${lt_cv_path_LD+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -z "$LD"; then
6395   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6396   for ac_dir in $PATH; do
6397     IFS=$lt_save_ifs
6398     test -z "$ac_dir" && ac_dir=.
6399     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6400       lt_cv_path_LD=$ac_dir/$ac_prog
6401       # Check to see if the program is GNU ld.  I'd rather use --version,
6402       # but apparently some variants of GNU ld only accept -v.
6403       # Break only if it was the GNU/non-GNU ld that we prefer.
6404       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6405       *GNU* | *'with BFD'*)
6406         test no != "$with_gnu_ld" && break
6407         ;;
6408       *)
6409         test yes != "$with_gnu_ld" && break
6410         ;;
6411       esac
6412     fi
6413   done
6414   IFS=$lt_save_ifs
6415 else
6416   lt_cv_path_LD=$LD # Let the user override the test with a path.
6417 fi
6418 fi
6419
6420 LD=$lt_cv_path_LD
6421 if test -n "$LD"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6423 $as_echo "$LD" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6430 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6431 if ${lt_cv_prog_gnu_ld+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6435 case `$LD -v 2>&1 </dev/null` in
6436 *GNU* | *'with BFD'*)
6437   lt_cv_prog_gnu_ld=yes
6438   ;;
6439 *)
6440   lt_cv_prog_gnu_ld=no
6441   ;;
6442 esac
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6445 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6446 with_gnu_ld=$lt_cv_prog_gnu_ld
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6457 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6458 if ${lt_cv_path_NM+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$NM"; then
6462   # Let the user override the test.
6463   lt_cv_path_NM=$NM
6464 else
6465   lt_nm_to_check=${ac_tool_prefix}nm
6466   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6467     lt_nm_to_check="$lt_nm_to_check nm"
6468   fi
6469   for lt_tmp_nm in $lt_nm_to_check; do
6470     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6471     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6472       IFS=$lt_save_ifs
6473       test -z "$ac_dir" && ac_dir=.
6474       tmp_nm=$ac_dir/$lt_tmp_nm
6475       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6476         # Check to see if the nm accepts a BSD-compat flag.
6477         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6478         #   nm: unknown option "B" ignored
6479         # Tru64's nm complains that /dev/null is an invalid object file
6480         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6481         case $build_os in
6482         mingw*) lt_bad_file=conftest.nm/nofile ;;
6483         *) lt_bad_file=/dev/null ;;
6484         esac
6485         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6486         *$lt_bad_file* | *'Invalid file or object type'*)
6487           lt_cv_path_NM="$tmp_nm -B"
6488           break 2
6489           ;;
6490         *)
6491           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6492           */dev/null*)
6493             lt_cv_path_NM="$tmp_nm -p"
6494             break 2
6495             ;;
6496           *)
6497             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6498             continue # so that we can try to find one that supports BSD flags
6499             ;;
6500           esac
6501           ;;
6502         esac
6503       fi
6504     done
6505     IFS=$lt_save_ifs
6506   done
6507   : ${lt_cv_path_NM=no}
6508 fi
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6511 $as_echo "$lt_cv_path_NM" >&6; }
6512 if test no != "$lt_cv_path_NM"; then
6513   NM=$lt_cv_path_NM
6514 else
6515   # Didn't find any BSD compatible name lister, look for dumpbin.
6516   if test -n "$DUMPBIN"; then :
6517     # Let the user override the test.
6518   else
6519     if test -n "$ac_tool_prefix"; then
6520   for ac_prog in dumpbin "link -dump"
6521   do
6522     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_DUMPBIN+:} false; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -n "$DUMPBIN"; then
6530   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 DUMPBIN=$ac_cv_prog_DUMPBIN
6550 if test -n "$DUMPBIN"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6552 $as_echo "$DUMPBIN" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559     test -n "$DUMPBIN" && break
6560   done
6561 fi
6562 if test -z "$DUMPBIN"; then
6563   ac_ct_DUMPBIN=$DUMPBIN
6564   for ac_prog in dumpbin "link -dump"
6565 do
6566   # Extract the first word of "$ac_prog", so it can be a program name with args.
6567 set dummy $ac_prog; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   if test -n "$ac_ct_DUMPBIN"; then
6574   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581     for ac_exec_ext in '' $ac_executable_extensions; do
6582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588   done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6594 if test -n "$ac_ct_DUMPBIN"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6596 $as_echo "$ac_ct_DUMPBIN" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602
6603   test -n "$ac_ct_DUMPBIN" && break
6604 done
6605
6606   if test "x$ac_ct_DUMPBIN" = x; then
6607     DUMPBIN=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     DUMPBIN=$ac_ct_DUMPBIN
6616   fi
6617 fi
6618
6619     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6620     *COFF*)
6621       DUMPBIN="$DUMPBIN -symbols -headers"
6622       ;;
6623     *)
6624       DUMPBIN=:
6625       ;;
6626     esac
6627   fi
6628
6629   if test : != "$DUMPBIN"; then
6630     NM=$DUMPBIN
6631   fi
6632 fi
6633 test -z "$NM" && NM=nm
6634
6635
6636
6637
6638
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6641 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6642 if ${lt_cv_nm_interface+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   lt_cv_nm_interface="BSD nm"
6646   echo "int some_variable = 0;" > conftest.$ac_ext
6647   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6648   (eval "$ac_compile" 2>conftest.err)
6649   cat conftest.err >&5
6650   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6651   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6652   cat conftest.err >&5
6653   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6654   cat conftest.out >&5
6655   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6656     lt_cv_nm_interface="MS dumpbin"
6657   fi
6658   rm -f conftest*
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6661 $as_echo "$lt_cv_nm_interface" >&6; }
6662
6663 # find the maximum length of command line arguments
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6665 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6666 if ${lt_cv_sys_max_cmd_len+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669     i=0
6670   teststring=ABCD
6671
6672   case $build_os in
6673   msdosdjgpp*)
6674     # On DJGPP, this test can blow up pretty badly due to problems in libc
6675     # (any single argument exceeding 2000 bytes causes a buffer overrun
6676     # during glob expansion).  Even if it were fixed, the result of this
6677     # check would be larger than it should be.
6678     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6679     ;;
6680
6681   gnu*)
6682     # Under GNU Hurd, this test is not required because there is
6683     # no limit to the length of command line arguments.
6684     # Libtool will interpret -1 as no limit whatsoever
6685     lt_cv_sys_max_cmd_len=-1;
6686     ;;
6687
6688   cygwin* | mingw* | cegcc*)
6689     # On Win9x/ME, this test blows up -- it succeeds, but takes
6690     # about 5 minutes as the teststring grows exponentially.
6691     # Worse, since 9x/ME are not pre-emptively multitasking,
6692     # you end up with a "frozen" computer, even though with patience
6693     # the test eventually succeeds (with a max line length of 256k).
6694     # Instead, let's just punt: use the minimum linelength reported by
6695     # all of the supported platforms: 8192 (on NT/2K/XP).
6696     lt_cv_sys_max_cmd_len=8192;
6697     ;;
6698
6699   mint*)
6700     # On MiNT this can take a long time and run out of memory.
6701     lt_cv_sys_max_cmd_len=8192;
6702     ;;
6703
6704   amigaos*)
6705     # On AmigaOS with pdksh, this test takes hours, literally.
6706     # So we just punt and use a minimum line length of 8192.
6707     lt_cv_sys_max_cmd_len=8192;
6708     ;;
6709
6710   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6711     # This has been around since 386BSD, at least.  Likely further.
6712     if test -x /sbin/sysctl; then
6713       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6714     elif test -x /usr/sbin/sysctl; then
6715       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6716     else
6717       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6718     fi
6719     # And add a safety zone
6720     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6721     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6722     ;;
6723
6724   interix*)
6725     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6726     lt_cv_sys_max_cmd_len=196608
6727     ;;
6728
6729   os2*)
6730     # The test takes a long time on OS/2.
6731     lt_cv_sys_max_cmd_len=8192
6732     ;;
6733
6734   osf*)
6735     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6736     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6737     # nice to cause kernel panics so lets avoid the loop below.
6738     # First set a reasonable default.
6739     lt_cv_sys_max_cmd_len=16384
6740     #
6741     if test -x /sbin/sysconfig; then
6742       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6743         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6744       esac
6745     fi
6746     ;;
6747   sco3.2v5*)
6748     lt_cv_sys_max_cmd_len=102400
6749     ;;
6750   sysv5* | sco5v6* | sysv4.2uw2*)
6751     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6752     if test -n "$kargmax"; then
6753       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6754     else
6755       lt_cv_sys_max_cmd_len=32768
6756     fi
6757     ;;
6758   *)
6759     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6760     if test -n "$lt_cv_sys_max_cmd_len" && \
6761        test undefined != "$lt_cv_sys_max_cmd_len"; then
6762       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6763       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6764     else
6765       # Make teststring a little bigger before we do anything with it.
6766       # a 1K string should be a reasonable start.
6767       for i in 1 2 3 4 5 6 7 8; do
6768         teststring=$teststring$teststring
6769       done
6770       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6771       # If test is not a shell built-in, we'll probably end up computing a
6772       # maximum length that is only half of the actual maximum length, but
6773       # we can't tell.
6774       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6775                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6776               test 17 != "$i" # 1/2 MB should be enough
6777       do
6778         i=`expr $i + 1`
6779         teststring=$teststring$teststring
6780       done
6781       # Only check the string length outside the loop.
6782       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6783       teststring=
6784       # Add a significant safety factor because C++ compilers can tack on
6785       # massive amounts of additional arguments before passing them to the
6786       # linker.  It appears as though 1/2 is a usable value.
6787       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6788     fi
6789     ;;
6790   esac
6791
6792 fi
6793
6794 if test -n "$lt_cv_sys_max_cmd_len"; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6796 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6799 $as_echo "none" >&6; }
6800 fi
6801 max_cmd_len=$lt_cv_sys_max_cmd_len
6802
6803
6804
6805
6806
6807
6808 : ${CP="cp -f"}
6809 : ${MV="mv -f"}
6810 : ${RM="rm -f"}
6811
6812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6813   lt_unset=unset
6814 else
6815   lt_unset=false
6816 fi
6817
6818
6819
6820
6821
6822 # test EBCDIC or ASCII
6823 case `echo X|tr X '\101'` in
6824  A) # ASCII based system
6825     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6826   lt_SP2NL='tr \040 \012'
6827   lt_NL2SP='tr \015\012 \040\040'
6828   ;;
6829  *) # EBCDIC based system
6830   lt_SP2NL='tr \100 \n'
6831   lt_NL2SP='tr \r\n \100\100'
6832   ;;
6833 esac
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6844 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6845 if ${lt_cv_to_host_file_cmd+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   case $host in
6849   *-*-mingw* )
6850     case $build in
6851       *-*-mingw* ) # actually msys
6852         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6853         ;;
6854       *-*-cygwin* )
6855         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6856         ;;
6857       * ) # otherwise, assume *nix
6858         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6859         ;;
6860     esac
6861     ;;
6862   *-*-cygwin* )
6863     case $build in
6864       *-*-mingw* ) # actually msys
6865         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6866         ;;
6867       *-*-cygwin* )
6868         lt_cv_to_host_file_cmd=func_convert_file_noop
6869         ;;
6870       * ) # otherwise, assume *nix
6871         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6872         ;;
6873     esac
6874     ;;
6875   * ) # unhandled hosts (and "normal" native builds)
6876     lt_cv_to_host_file_cmd=func_convert_file_noop
6877     ;;
6878 esac
6879
6880 fi
6881
6882 to_host_file_cmd=$lt_cv_to_host_file_cmd
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6884 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6885
6886
6887
6888
6889
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6891 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6892 if ${lt_cv_to_tool_file_cmd+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   #assume ordinary cross tools, or native build.
6896 lt_cv_to_tool_file_cmd=func_convert_file_noop
6897 case $host in
6898   *-*-mingw* )
6899     case $build in
6900       *-*-mingw* ) # actually msys
6901         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6902         ;;
6903     esac
6904     ;;
6905 esac
6906
6907 fi
6908
6909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6911 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6912
6913
6914
6915
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6918 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6919 if ${lt_cv_ld_reload_flag+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   lt_cv_ld_reload_flag='-r'
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6925 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6926 reload_flag=$lt_cv_ld_reload_flag
6927 case $reload_flag in
6928 "" | " "*) ;;
6929 *) reload_flag=" $reload_flag" ;;
6930 esac
6931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6932 case $host_os in
6933   cygwin* | mingw* | pw32* | cegcc*)
6934     if test yes != "$GCC"; then
6935       reload_cmds=false
6936     fi
6937     ;;
6938   darwin*)
6939     if test yes = "$GCC"; then
6940       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6941     else
6942       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6943     fi
6944     ;;
6945 esac
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 if test -n "$ac_tool_prefix"; then
6956   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_OBJDUMP+:} false; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   if test -n "$OBJDUMP"; then
6964   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978   done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 OBJDUMP=$ac_cv_prog_OBJDUMP
6984 if test -n "$OBJDUMP"; then
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6986 $as_echo "$OBJDUMP" >&6; }
6987 else
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_OBJDUMP"; then
6995   ac_ct_OBJDUMP=$OBJDUMP
6996   # Extract the first word of "objdump", so it can be a program name with args.
6997 set dummy objdump; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   if test -n "$ac_ct_OBJDUMP"; then
7004   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7024 if test -n "$ac_ct_OBJDUMP"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7026 $as_echo "$ac_ct_OBJDUMP" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032   if test "x$ac_ct_OBJDUMP" = x; then
7033     OBJDUMP="false"
7034   else
7035     case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041     OBJDUMP=$ac_ct_OBJDUMP
7042   fi
7043 else
7044   OBJDUMP="$ac_cv_prog_OBJDUMP"
7045 fi
7046
7047 test -z "$OBJDUMP" && OBJDUMP=objdump
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7058 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7059 if ${lt_cv_deplibs_check_method+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   lt_cv_file_magic_cmd='$MAGIC_CMD'
7063 lt_cv_file_magic_test_file=
7064 lt_cv_deplibs_check_method='unknown'
7065 # Need to set the preceding variable on all platforms that support
7066 # interlibrary dependencies.
7067 # 'none' -- dependencies not supported.
7068 # 'unknown' -- same as none, but documents that we really don't know.
7069 # 'pass_all' -- all dependencies passed with no checks.
7070 # 'test_compile' -- check by making test program.
7071 # 'file_magic [[regex]]' -- check by looking for files in library path
7072 # that responds to the $file_magic_cmd with a given extended regex.
7073 # If you have 'file' or equivalent on your system and you're not sure
7074 # whether 'pass_all' will *always* work, you probably want this one.
7075
7076 case $host_os in
7077 aix[4-9]*)
7078   lt_cv_deplibs_check_method=pass_all
7079   ;;
7080
7081 beos*)
7082   lt_cv_deplibs_check_method=pass_all
7083   ;;
7084
7085 bsdi[45]*)
7086   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7087   lt_cv_file_magic_cmd='/usr/bin/file -L'
7088   lt_cv_file_magic_test_file=/shlib/libc.so
7089   ;;
7090
7091 cygwin*)
7092   # func_win32_libid is a shell function defined in ltmain.sh
7093   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7094   lt_cv_file_magic_cmd='func_win32_libid'
7095   ;;
7096
7097 mingw* | pw32*)
7098   # Base MSYS/MinGW do not provide the 'file' command needed by
7099   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7100   # unless we find 'file', for example because we are cross-compiling.
7101   if ( file / ) >/dev/null 2>&1; then
7102     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7103     lt_cv_file_magic_cmd='func_win32_libid'
7104   else
7105     # Keep this pattern in sync with the one in func_win32_libid.
7106     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7107     lt_cv_file_magic_cmd='$OBJDUMP -f'
7108   fi
7109   ;;
7110
7111 cegcc*)
7112   # use the weaker test based on 'objdump'. See mingw*.
7113   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7114   lt_cv_file_magic_cmd='$OBJDUMP -f'
7115   ;;
7116
7117 darwin* | rhapsody*)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 freebsd* | dragonfly*)
7122   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7123     case $host_cpu in
7124     i*86 )
7125       # Not sure whether the presence of OpenBSD here was a mistake.
7126       # Let's accept both of them until this is cleared up.
7127       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7128       lt_cv_file_magic_cmd=/usr/bin/file
7129       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7130       ;;
7131     esac
7132   else
7133     lt_cv_deplibs_check_method=pass_all
7134   fi
7135   ;;
7136
7137 haiku*)
7138   lt_cv_deplibs_check_method=pass_all
7139   ;;
7140
7141 hpux10.20* | hpux11*)
7142   lt_cv_file_magic_cmd=/usr/bin/file
7143   case $host_cpu in
7144   ia64*)
7145     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7146     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7147     ;;
7148   hppa*64*)
7149     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]'
7150     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7151     ;;
7152   *)
7153     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7154     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7155     ;;
7156   esac
7157   ;;
7158
7159 interix[3-9]*)
7160   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7161   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7162   ;;
7163
7164 irix5* | irix6* | nonstopux*)
7165   case $LD in
7166   *-32|*"-32 ") libmagic=32-bit;;
7167   *-n32|*"-n32 ") libmagic=N32;;
7168   *-64|*"-64 ") libmagic=64-bit;;
7169   *) libmagic=never-match;;
7170   esac
7171   lt_cv_deplibs_check_method=pass_all
7172   ;;
7173
7174 # This must be glibc/ELF.
7175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7176   lt_cv_deplibs_check_method=pass_all
7177   ;;
7178
7179 netbsd*)
7180   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7181     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7182   else
7183     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7184   fi
7185   ;;
7186
7187 newos6*)
7188   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7189   lt_cv_file_magic_cmd=/usr/bin/file
7190   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7191   ;;
7192
7193 *nto* | *qnx*)
7194   lt_cv_deplibs_check_method=pass_all
7195   ;;
7196
7197 openbsd* | bitrig*)
7198   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7200   else
7201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7202   fi
7203   ;;
7204
7205 osf3* | osf4* | osf5*)
7206   lt_cv_deplibs_check_method=pass_all
7207   ;;
7208
7209 rdos*)
7210   lt_cv_deplibs_check_method=pass_all
7211   ;;
7212
7213 solaris*)
7214   lt_cv_deplibs_check_method=pass_all
7215   ;;
7216
7217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7218   lt_cv_deplibs_check_method=pass_all
7219   ;;
7220
7221 sysv4 | sysv4.3*)
7222   case $host_vendor in
7223   motorola)
7224     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]'
7225     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7226     ;;
7227   ncr)
7228     lt_cv_deplibs_check_method=pass_all
7229     ;;
7230   sequent)
7231     lt_cv_file_magic_cmd='/bin/file'
7232     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7233     ;;
7234   sni)
7235     lt_cv_file_magic_cmd='/bin/file'
7236     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7237     lt_cv_file_magic_test_file=/lib/libc.so
7238     ;;
7239   siemens)
7240     lt_cv_deplibs_check_method=pass_all
7241     ;;
7242   pc)
7243     lt_cv_deplibs_check_method=pass_all
7244     ;;
7245   esac
7246   ;;
7247
7248 tpf*)
7249   lt_cv_deplibs_check_method=pass_all
7250   ;;
7251 os2*)
7252   lt_cv_deplibs_check_method=pass_all
7253   ;;
7254 esac
7255
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7258 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7259
7260 file_magic_glob=
7261 want_nocaseglob=no
7262 if test "$build" = "$host"; then
7263   case $host_os in
7264   mingw* | pw32*)
7265     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7266       want_nocaseglob=yes
7267     else
7268       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7269     fi
7270     ;;
7271   esac
7272 fi
7273
7274 file_magic_cmd=$lt_cv_file_magic_cmd
7275 deplibs_check_method=$lt_cv_deplibs_check_method
7276 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299 if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DLLTOOL+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$DLLTOOL"; then
7308   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 DLLTOOL=$ac_cv_prog_DLLTOOL
7328 if test -n "$DLLTOOL"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7330 $as_echo "$DLLTOOL" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_DLLTOOL"; then
7339   ac_ct_DLLTOOL=$DLLTOOL
7340   # Extract the first word of "dlltool", so it can be a program name with args.
7341 set dummy dlltool; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$ac_ct_DLLTOOL"; then
7348   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7368 if test -n "$ac_ct_DLLTOOL"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7370 $as_echo "$ac_ct_DLLTOOL" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376   if test "x$ac_ct_DLLTOOL" = x; then
7377     DLLTOOL="false"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385     DLLTOOL=$ac_ct_DLLTOOL
7386   fi
7387 else
7388   DLLTOOL="$ac_cv_prog_DLLTOOL"
7389 fi
7390
7391 test -z "$DLLTOOL" && DLLTOOL=dlltool
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7403 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7404 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   lt_cv_sharedlib_from_linklib_cmd='unknown'
7408
7409 case $host_os in
7410 cygwin* | mingw* | pw32* | cegcc*)
7411   # two different shell functions defined in ltmain.sh;
7412   # decide which one to use based on capabilities of $DLLTOOL
7413   case `$DLLTOOL --help 2>&1` in
7414   *--identify-strict*)
7415     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7416     ;;
7417   *)
7418     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7419     ;;
7420   esac
7421   ;;
7422 *)
7423   # fallback: assume linklib IS sharedlib
7424   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7425   ;;
7426 esac
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7430 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7431 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7432 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7433
7434
7435
7436
7437
7438
7439
7440 if test -n "$ac_tool_prefix"; then
7441   for ac_prog in ar
7442   do
7443     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_AR+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$AR"; then
7451   ac_cv_prog_AR="$AR" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 AR=$ac_cv_prog_AR
7471 if test -n "$AR"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7473 $as_echo "$AR" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480     test -n "$AR" && break
7481   done
7482 fi
7483 if test -z "$AR"; then
7484   ac_ct_AR=$AR
7485   for ac_prog in ar
7486 do
7487   # Extract the first word of "$ac_prog", so it can be a program name with args.
7488 set dummy $ac_prog; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test -n "$ac_ct_AR"; then
7495   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_prog_ac_ct_AR="$ac_prog"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7515 if test -n "$ac_ct_AR"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7517 $as_echo "$ac_ct_AR" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523
7524   test -n "$ac_ct_AR" && break
7525 done
7526
7527   if test "x$ac_ct_AR" = x; then
7528     AR="false"
7529   else
7530     case $cross_compiling:$ac_tool_warned in
7531 yes:)
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7534 ac_tool_warned=yes ;;
7535 esac
7536     AR=$ac_ct_AR
7537   fi
7538 fi
7539
7540 : ${AR=ar}
7541 : ${AR_FLAGS=cru}
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7554 $as_echo_n "checking for archiver @FILE support... " >&6; }
7555 if ${lt_cv_ar_at_file+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   lt_cv_ar_at_file=no
7559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561
7562 int
7563 main ()
7564 {
7565
7566   ;
7567   return 0;
7568 }
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"; then :
7571   echo conftest.$ac_objext > conftest.lst
7572       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7573       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7574   (eval $lt_ar_try) 2>&5
7575   ac_status=$?
7576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7577   test $ac_status = 0; }
7578       if test 0 -eq "$ac_status"; then
7579         # Ensure the archiver fails upon bogus file names.
7580         rm -f conftest.$ac_objext libconftest.a
7581         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7582   (eval $lt_ar_try) 2>&5
7583   ac_status=$?
7584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585   test $ac_status = 0; }
7586         if test 0 -ne "$ac_status"; then
7587           lt_cv_ar_at_file=@
7588         fi
7589       fi
7590       rm -f conftest.* libconftest.a
7591
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7597 $as_echo "$lt_cv_ar_at_file" >&6; }
7598
7599 if test no = "$lt_cv_ar_at_file"; then
7600   archiver_list_spec=
7601 else
7602   archiver_list_spec=$lt_cv_ar_at_file
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611 if test -n "$ac_tool_prefix"; then
7612   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7613 set dummy ${ac_tool_prefix}strip; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_STRIP+:} false; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   if test -n "$STRIP"; then
7620   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 STRIP=$ac_cv_prog_STRIP
7640 if test -n "$STRIP"; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7642 $as_echo "$STRIP" >&6; }
7643 else
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648
7649 fi
7650 if test -z "$ac_cv_prog_STRIP"; then
7651   ac_ct_STRIP=$STRIP
7652   # Extract the first word of "strip", so it can be a program name with args.
7653 set dummy strip; ac_word=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   if test -n "$ac_ct_STRIP"; then
7660   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667     for ac_exec_ext in '' $ac_executable_extensions; do
7668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669     ac_cv_prog_ac_ct_STRIP="strip"
7670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671     break 2
7672   fi
7673 done
7674   done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7680 if test -n "$ac_ct_STRIP"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7682 $as_echo "$ac_ct_STRIP" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688   if test "x$ac_ct_STRIP" = x; then
7689     STRIP=":"
7690   else
7691     case $cross_compiling:$ac_tool_warned in
7692 yes:)
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7696 esac
7697     STRIP=$ac_ct_STRIP
7698   fi
7699 else
7700   STRIP="$ac_cv_prog_STRIP"
7701 fi
7702
7703 test -z "$STRIP" && STRIP=:
7704
7705
7706
7707
7708
7709
7710 if test -n "$ac_tool_prefix"; then
7711   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_RANLIB+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   if test -n "$RANLIB"; then
7719   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724   IFS=$as_save_IFS
7725   test -z "$as_dir" && as_dir=.
7726     for ac_exec_ext in '' $ac_executable_extensions; do
7727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730     break 2
7731   fi
7732 done
7733   done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 RANLIB=$ac_cv_prog_RANLIB
7739 if test -n "$RANLIB"; then
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7741 $as_echo "$RANLIB" >&6; }
7742 else
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 fi
7749 if test -z "$ac_cv_prog_RANLIB"; then
7750   ac_ct_RANLIB=$RANLIB
7751   # Extract the first word of "ranlib", so it can be a program name with args.
7752 set dummy ranlib; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754 $as_echo_n "checking for $ac_word... " >&6; }
7755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   if test -n "$ac_ct_RANLIB"; then
7759   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766     for ac_exec_ext in '' $ac_executable_extensions; do
7767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768     ac_cv_prog_ac_ct_RANLIB="ranlib"
7769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773   done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7779 if test -n "$ac_ct_RANLIB"; then
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7781 $as_echo "$ac_ct_RANLIB" >&6; }
7782 else
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784 $as_echo "no" >&6; }
7785 fi
7786
7787   if test "x$ac_ct_RANLIB" = x; then
7788     RANLIB=":"
7789   else
7790     case $cross_compiling:$ac_tool_warned in
7791 yes:)
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7794 ac_tool_warned=yes ;;
7795 esac
7796     RANLIB=$ac_ct_RANLIB
7797   fi
7798 else
7799   RANLIB="$ac_cv_prog_RANLIB"
7800 fi
7801
7802 test -z "$RANLIB" && RANLIB=:
7803
7804
7805
7806
7807
7808
7809 # Determine commands to create old-style static archives.
7810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7811 old_postinstall_cmds='chmod 644 $oldlib'
7812 old_postuninstall_cmds=
7813
7814 if test -n "$RANLIB"; then
7815   case $host_os in
7816   bitrig* | openbsd*)
7817     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7818     ;;
7819   *)
7820     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7821     ;;
7822   esac
7823   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7824 fi
7825
7826 case $host_os in
7827   darwin*)
7828     lock_old_archive_extraction=yes ;;
7829   *)
7830     lock_old_archive_extraction=no ;;
7831 esac
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 # If no C compiler was specified, use CC.
7872 LTCC=${LTCC-"$CC"}
7873
7874 # If no C compiler flags were specified, use CFLAGS.
7875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7876
7877 # Allow CC to be a program name with arguments.
7878 compiler=$CC
7879
7880
7881 # Check for command to grab the raw symbol name followed by C symbol from nm.
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7884 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887
7888 # These are sane defaults that work on at least a few old systems.
7889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7890
7891 # Character class describing NM global symbol codes.
7892 symcode='[BCDEGRST]'
7893
7894 # Regexp to match symbols that can be accessed directly from C.
7895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7896
7897 # Define system-specific variables.
7898 case $host_os in
7899 aix*)
7900   symcode='[BCDT]'
7901   ;;
7902 cygwin* | mingw* | pw32* | cegcc*)
7903   symcode='[ABCDGISTW]'
7904   ;;
7905 hpux*)
7906   if test ia64 = "$host_cpu"; then
7907     symcode='[ABCDEGRST]'
7908   fi
7909   ;;
7910 irix* | nonstopux*)
7911   symcode='[BCDEGRST]'
7912   ;;
7913 osf*)
7914   symcode='[BCDEGQRST]'
7915   ;;
7916 solaris*)
7917   symcode='[BDRT]'
7918   ;;
7919 sco3.2v5*)
7920   symcode='[DT]'
7921   ;;
7922 sysv4.2uw2*)
7923   symcode='[DT]'
7924   ;;
7925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7926   symcode='[ABDT]'
7927   ;;
7928 sysv4)
7929   symcode='[DFNSTU]'
7930   ;;
7931 esac
7932
7933 # If we're using GNU nm, then use its standard symbol codes.
7934 case `$NM -V 2>&1` in
7935 *GNU* | *'with BFD'*)
7936   symcode='[ABCDGIRSTW]' ;;
7937 esac
7938
7939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7940   # Gets list of data symbols to import.
7941   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7942   # Adjust the below global symbol transforms to fixup imported variables.
7943   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7944   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7945   lt_c_name_lib_hook="\
7946   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7947   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7948 else
7949   # Disable hooks by default.
7950   lt_cv_sys_global_symbol_to_import=
7951   lt_cdecl_hook=
7952   lt_c_name_hook=
7953   lt_c_name_lib_hook=
7954 fi
7955
7956 # Transform an extracted symbol line into a proper C declaration.
7957 # Some systems (esp. on ia64) link data and code symbols differently,
7958 # so use this general approach.
7959 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7960 $lt_cdecl_hook\
7961 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7962 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7963
7964 # Transform an extracted symbol line into symbol name and symbol address
7965 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7966 $lt_c_name_hook\
7967 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7968 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7969
7970 # Transform an extracted symbol line into symbol name with lib prefix and
7971 # symbol address.
7972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7973 $lt_c_name_lib_hook\
7974 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7975 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7976 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7977
7978 # Handle CRLF in mingw tool chain
7979 opt_cr=
7980 case $build_os in
7981 mingw*)
7982   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7983   ;;
7984 esac
7985
7986 # Try without a prefix underscore, then with it.
7987 for ac_symprfx in "" "_"; do
7988
7989   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7990   symxfrm="\\1 $ac_symprfx\\2 \\2"
7991
7992   # Write the raw and C identifiers.
7993   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7994     # Fake it for dumpbin and say T for any non-static function,
7995     # D for any global variable and I for any imported variable.
7996     # Also find C++ and __fastcall symbols from MSVC++,
7997     # which start with @ or ?.
7998     lt_cv_sys_global_symbol_pipe="$AWK '"\
7999 "     {last_section=section; section=\$ 3};"\
8000 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8001 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8002 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8003 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8004 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8005 "     \$ 0!~/External *\|/{next};"\
8006 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8007 "     {if(hide[section]) next};"\
8008 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8009 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8010 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8011 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8012 "     ' prfx=^$ac_symprfx"
8013   else
8014     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8015   fi
8016   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8017
8018   # Check to see that the pipe works correctly.
8019   pipe_works=no
8020
8021   rm -f conftest*
8022   cat > conftest.$ac_ext <<_LT_EOF
8023 #ifdef __cplusplus
8024 extern "C" {
8025 #endif
8026 char nm_test_var;
8027 void nm_test_func(void);
8028 void nm_test_func(void){}
8029 #ifdef __cplusplus
8030 }
8031 #endif
8032 int main(){nm_test_var='a';nm_test_func();return(0);}
8033 _LT_EOF
8034
8035   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036   (eval $ac_compile) 2>&5
8037   ac_status=$?
8038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039   test $ac_status = 0; }; then
8040     # Now try to grab the symbols.
8041     nlist=conftest.nm
8042     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8043   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8044   ac_status=$?
8045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8046   test $ac_status = 0; } && test -s "$nlist"; then
8047       # Try sorting and uniquifying the output.
8048       if sort "$nlist" | uniq > "$nlist"T; then
8049         mv -f "$nlist"T "$nlist"
8050       else
8051         rm -f "$nlist"T
8052       fi
8053
8054       # Make sure that we snagged all the symbols we need.
8055       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8056         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8057           cat <<_LT_EOF > conftest.$ac_ext
8058 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8059 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8060 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8061    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8062 # define LT_DLSYM_CONST
8063 #elif defined __osf__
8064 /* This system does not cope well with relocations in const data.  */
8065 # define LT_DLSYM_CONST
8066 #else
8067 # define LT_DLSYM_CONST const
8068 #endif
8069
8070 #ifdef __cplusplus
8071 extern "C" {
8072 #endif
8073
8074 _LT_EOF
8075           # Now generate the symbol file.
8076           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8077
8078           cat <<_LT_EOF >> conftest.$ac_ext
8079
8080 /* The mapping between symbol names and symbols.  */
8081 LT_DLSYM_CONST struct {
8082   const char *name;
8083   void       *address;
8084 }
8085 lt__PROGRAM__LTX_preloaded_symbols[] =
8086 {
8087   { "@PROGRAM@", (void *) 0 },
8088 _LT_EOF
8089           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8090           cat <<\_LT_EOF >> conftest.$ac_ext
8091   {0, (void *) 0}
8092 };
8093
8094 /* This works around a problem in FreeBSD linker */
8095 #ifdef FREEBSD_WORKAROUND
8096 static const void *lt_preloaded_setup() {
8097   return lt__PROGRAM__LTX_preloaded_symbols;
8098 }
8099 #endif
8100
8101 #ifdef __cplusplus
8102 }
8103 #endif
8104 _LT_EOF
8105           # Now try linking the two files.
8106           mv conftest.$ac_objext conftstm.$ac_objext
8107           lt_globsym_save_LIBS=$LIBS
8108           lt_globsym_save_CFLAGS=$CFLAGS
8109           LIBS=conftstm.$ac_objext
8110           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8111           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8112   (eval $ac_link) 2>&5
8113   ac_status=$?
8114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8115   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8116             pipe_works=yes
8117           fi
8118           LIBS=$lt_globsym_save_LIBS
8119           CFLAGS=$lt_globsym_save_CFLAGS
8120         else
8121           echo "cannot find nm_test_func in $nlist" >&5
8122         fi
8123       else
8124         echo "cannot find nm_test_var in $nlist" >&5
8125       fi
8126     else
8127       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8128     fi
8129   else
8130     echo "$progname: failed program was:" >&5
8131     cat conftest.$ac_ext >&5
8132   fi
8133   rm -rf conftest* conftst*
8134
8135   # Do not use the global_symbol_pipe unless it works.
8136   if test yes = "$pipe_works"; then
8137     break
8138   else
8139     lt_cv_sys_global_symbol_pipe=
8140   fi
8141 done
8142
8143 fi
8144
8145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8146   lt_cv_sys_global_symbol_to_cdecl=
8147 fi
8148 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8150 $as_echo "failed" >&6; }
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8153 $as_echo "ok" >&6; }
8154 fi
8155
8156 # Response file support.
8157 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8158   nm_file_list_spec='@'
8159 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8160   nm_file_list_spec='@'
8161 fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8200 $as_echo_n "checking for sysroot... " >&6; }
8201
8202 # Check whether --with-sysroot was given.
8203 if test "${with_sysroot+set}" = set; then :
8204   withval=$with_sysroot;
8205 else
8206   with_sysroot=no
8207 fi
8208
8209
8210 lt_sysroot=
8211 case $with_sysroot in #(
8212  yes)
8213    if test yes = "$GCC"; then
8214      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8215    fi
8216    ;; #(
8217  /*)
8218    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8219    ;; #(
8220  no|'')
8221    ;; #(
8222  *)
8223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8224 $as_echo "$with_sysroot" >&6; }
8225    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8226    ;;
8227 esac
8228
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8230 $as_echo "${lt_sysroot:-no}" >&6; }
8231
8232
8233
8234
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8237 $as_echo_n "checking for a working dd... " >&6; }
8238 if ${ac_cv_path_lt_DD+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   printf 0123456789abcdef0123456789abcdef >conftest.i
8242 cat conftest.i conftest.i >conftest2.i
8243 : ${lt_DD:=$DD}
8244 if test -z "$lt_DD"; then
8245   ac_path_lt_DD_found=false
8246   # Loop through the user's path and test for each of PROGNAME-LIST
8247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250   IFS=$as_save_IFS
8251   test -z "$as_dir" && as_dir=.
8252     for ac_prog in dd; do
8253     for ac_exec_ext in '' $ac_executable_extensions; do
8254       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8255       as_fn_executable_p "$ac_path_lt_DD" || continue
8256 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8257   cmp -s conftest.i conftest.out \
8258   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8259 fi
8260       $ac_path_lt_DD_found && break 3
8261     done
8262   done
8263   done
8264 IFS=$as_save_IFS
8265   if test -z "$ac_cv_path_lt_DD"; then
8266     :
8267   fi
8268 else
8269   ac_cv_path_lt_DD=$lt_DD
8270 fi
8271
8272 rm -f conftest.i conftest2.i conftest.out
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8275 $as_echo "$ac_cv_path_lt_DD" >&6; }
8276
8277
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8279 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8280 if ${lt_cv_truncate_bin+:} false; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   printf 0123456789abcdef0123456789abcdef >conftest.i
8284 cat conftest.i conftest.i >conftest2.i
8285 lt_cv_truncate_bin=
8286 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8287   cmp -s conftest.i conftest.out \
8288   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8289 fi
8290 rm -f conftest.i conftest2.i conftest.out
8291 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8294 $as_echo "$lt_cv_truncate_bin" >&6; }
8295
8296
8297
8298
8299
8300
8301
8302 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8303 func_cc_basename ()
8304 {
8305     for cc_temp in $*""; do
8306       case $cc_temp in
8307         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8309         \-*) ;;
8310         *) break;;
8311       esac
8312     done
8313     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8314 }
8315
8316 # Check whether --enable-libtool-lock was given.
8317 if test "${enable_libtool_lock+set}" = set; then :
8318   enableval=$enable_libtool_lock;
8319 fi
8320
8321 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8322
8323 # Some flags need to be propagated to the compiler or linker for good
8324 # libtool support.
8325 case $host in
8326 ia64-*-hpux*)
8327   # Find out what ABI is being produced by ac_compile, and set mode
8328   # options accordingly.
8329   echo 'int i;' > conftest.$ac_ext
8330   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8331   (eval $ac_compile) 2>&5
8332   ac_status=$?
8333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8334   test $ac_status = 0; }; then
8335     case `/usr/bin/file conftest.$ac_objext` in
8336       *ELF-32*)
8337         HPUX_IA64_MODE=32
8338         ;;
8339       *ELF-64*)
8340         HPUX_IA64_MODE=64
8341         ;;
8342     esac
8343   fi
8344   rm -rf conftest*
8345   ;;
8346 *-*-irix6*)
8347   # Find out what ABI is being produced by ac_compile, and set linker
8348   # options accordingly.
8349   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8350   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8351   (eval $ac_compile) 2>&5
8352   ac_status=$?
8353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8354   test $ac_status = 0; }; then
8355     if test yes = "$lt_cv_prog_gnu_ld"; then
8356       case `/usr/bin/file conftest.$ac_objext` in
8357         *32-bit*)
8358           LD="${LD-ld} -melf32bsmip"
8359           ;;
8360         *N32*)
8361           LD="${LD-ld} -melf32bmipn32"
8362           ;;
8363         *64-bit*)
8364           LD="${LD-ld} -melf64bmip"
8365         ;;
8366       esac
8367     else
8368       case `/usr/bin/file conftest.$ac_objext` in
8369         *32-bit*)
8370           LD="${LD-ld} -32"
8371           ;;
8372         *N32*)
8373           LD="${LD-ld} -n32"
8374           ;;
8375         *64-bit*)
8376           LD="${LD-ld} -64"
8377           ;;
8378       esac
8379     fi
8380   fi
8381   rm -rf conftest*
8382   ;;
8383
8384 mips64*-*linux*)
8385   # Find out what ABI is being produced by ac_compile, and set linker
8386   # options accordingly.
8387   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8388   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8389   (eval $ac_compile) 2>&5
8390   ac_status=$?
8391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8392   test $ac_status = 0; }; then
8393     emul=elf
8394     case `/usr/bin/file conftest.$ac_objext` in
8395       *32-bit*)
8396         emul="${emul}32"
8397         ;;
8398       *64-bit*)
8399         emul="${emul}64"
8400         ;;
8401     esac
8402     case `/usr/bin/file conftest.$ac_objext` in
8403       *MSB*)
8404         emul="${emul}btsmip"
8405         ;;
8406       *LSB*)
8407         emul="${emul}ltsmip"
8408         ;;
8409     esac
8410     case `/usr/bin/file conftest.$ac_objext` in
8411       *N32*)
8412         emul="${emul}n32"
8413         ;;
8414     esac
8415     LD="${LD-ld} -m $emul"
8416   fi
8417   rm -rf conftest*
8418   ;;
8419
8420 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8421 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8422   # Find out what ABI is being produced by ac_compile, and set linker
8423   # options accordingly.  Note that the listed cases only cover the
8424   # situations where additional linker options are needed (such as when
8425   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8426   # vice versa); the common cases where no linker options are needed do
8427   # not appear in the list.
8428   echo 'int i;' > conftest.$ac_ext
8429   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8430   (eval $ac_compile) 2>&5
8431   ac_status=$?
8432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433   test $ac_status = 0; }; then
8434     case `/usr/bin/file conftest.o` in
8435       *32-bit*)
8436         case $host in
8437           x86_64-*kfreebsd*-gnu)
8438             LD="${LD-ld} -m elf_i386_fbsd"
8439             ;;
8440           x86_64-*linux*)
8441             case `/usr/bin/file conftest.o` in
8442               *x86-64*)
8443                 LD="${LD-ld} -m elf32_x86_64"
8444                 ;;
8445               *)
8446                 LD="${LD-ld} -m elf_i386"
8447                 ;;
8448             esac
8449             ;;
8450           powerpc64le-*linux*)
8451             LD="${LD-ld} -m elf32lppclinux"
8452             ;;
8453           powerpc64-*linux*)
8454             LD="${LD-ld} -m elf32ppclinux"
8455             ;;
8456           s390x-*linux*)
8457             LD="${LD-ld} -m elf_s390"
8458             ;;
8459           sparc64-*linux*)
8460             LD="${LD-ld} -m elf32_sparc"
8461             ;;
8462         esac
8463         ;;
8464       *64-bit*)
8465         case $host in
8466           x86_64-*kfreebsd*-gnu)
8467             LD="${LD-ld} -m elf_x86_64_fbsd"
8468             ;;
8469           x86_64-*linux*)
8470             LD="${LD-ld} -m elf_x86_64"
8471             ;;
8472           powerpcle-*linux*)
8473             LD="${LD-ld} -m elf64lppc"
8474             ;;
8475           powerpc-*linux*)
8476             LD="${LD-ld} -m elf64ppc"
8477             ;;
8478           s390*-*linux*|s390*-*tpf*)
8479             LD="${LD-ld} -m elf64_s390"
8480             ;;
8481           sparc*-*linux*)
8482             LD="${LD-ld} -m elf64_sparc"
8483             ;;
8484         esac
8485         ;;
8486     esac
8487   fi
8488   rm -rf conftest*
8489   ;;
8490
8491 *-*-sco3.2v5*)
8492   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8493   SAVE_CFLAGS=$CFLAGS
8494   CFLAGS="$CFLAGS -belf"
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8496 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8497 if ${lt_cv_cc_needs_belf+:} false; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   ac_ext=c
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8505
8506      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h.  */
8508
8509 int
8510 main ()
8511 {
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518   lt_cv_cc_needs_belf=yes
8519 else
8520   lt_cv_cc_needs_belf=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext \
8523     conftest$ac_exeext conftest.$ac_ext
8524      ac_ext=c
8525 ac_cpp='$CPP $CPPFLAGS'
8526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8532 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8533   if test yes != "$lt_cv_cc_needs_belf"; then
8534     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8535     CFLAGS=$SAVE_CFLAGS
8536   fi
8537   ;;
8538 *-*solaris*)
8539   # Find out what ABI is being produced by ac_compile, and set linker
8540   # options accordingly.
8541   echo 'int i;' > conftest.$ac_ext
8542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8543   (eval $ac_compile) 2>&5
8544   ac_status=$?
8545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8546   test $ac_status = 0; }; then
8547     case `/usr/bin/file conftest.o` in
8548     *64-bit*)
8549       case $lt_cv_prog_gnu_ld in
8550       yes*)
8551         case $host in
8552         i?86-*-solaris*|x86_64-*-solaris*)
8553           LD="${LD-ld} -m elf_x86_64"
8554           ;;
8555         sparc*-*-solaris*)
8556           LD="${LD-ld} -m elf64_sparc"
8557           ;;
8558         esac
8559         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8560         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8561           LD=${LD-ld}_sol2
8562         fi
8563         ;;
8564       *)
8565         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8566           LD="${LD-ld} -64"
8567         fi
8568         ;;
8569       esac
8570       ;;
8571     esac
8572   fi
8573   rm -rf conftest*
8574   ;;
8575 esac
8576
8577 need_locks=$enable_libtool_lock
8578
8579 if test -n "$ac_tool_prefix"; then
8580   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}mt; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   if test -n "$MANIFEST_TOOL"; then
8588   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593   IFS=$as_save_IFS
8594   test -z "$as_dir" && as_dir=.
8595     for ac_exec_ext in '' $ac_executable_extensions; do
8596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599     break 2
8600   fi
8601 done
8602   done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8608 if test -n "$MANIFEST_TOOL"; then
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8610 $as_echo "$MANIFEST_TOOL" >&6; }
8611 else
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617 fi
8618 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8619   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8620   # Extract the first word of "mt", so it can be a program name with args.
8621 set dummy mt; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627   if test -n "$ac_ct_MANIFEST_TOOL"; then
8628   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8648 if test -n "$ac_ct_MANIFEST_TOOL"; then
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8650 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8651 else
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8657     MANIFEST_TOOL=":"
8658   else
8659     case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8666   fi
8667 else
8668   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8669 fi
8670
8671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8673 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8674 if ${lt_cv_path_mainfest_tool+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   lt_cv_path_mainfest_tool=no
8678   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8679   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8680   cat conftest.err >&5
8681   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8682     lt_cv_path_mainfest_tool=yes
8683   fi
8684   rm -f conftest*
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8687 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8688 if test yes != "$lt_cv_path_mainfest_tool"; then
8689   MANIFEST_TOOL=:
8690 fi
8691
8692
8693
8694
8695
8696
8697   case $host_os in
8698     rhapsody* | darwin*)
8699     if test -n "$ac_tool_prefix"; then
8700   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8701 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   if test -n "$DSYMUTIL"; then
8708   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8709 else
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713   IFS=$as_save_IFS
8714   test -z "$as_dir" && as_dir=.
8715     for ac_exec_ext in '' $ac_executable_extensions; do
8716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719     break 2
8720   fi
8721 done
8722   done
8723 IFS=$as_save_IFS
8724
8725 fi
8726 fi
8727 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8728 if test -n "$DSYMUTIL"; then
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8730 $as_echo "$DSYMUTIL" >&6; }
8731 else
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8734 fi
8735
8736
8737 fi
8738 if test -z "$ac_cv_prog_DSYMUTIL"; then
8739   ac_ct_DSYMUTIL=$DSYMUTIL
8740   # Extract the first word of "dsymutil", so it can be a program name with args.
8741 set dummy dsymutil; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   if test -n "$ac_ct_DSYMUTIL"; then
8748   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753   IFS=$as_save_IFS
8754   test -z "$as_dir" && as_dir=.
8755     for ac_exec_ext in '' $ac_executable_extensions; do
8756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759     break 2
8760   fi
8761 done
8762   done
8763 IFS=$as_save_IFS
8764
8765 fi
8766 fi
8767 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8768 if test -n "$ac_ct_DSYMUTIL"; then
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8770 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8771 else
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776   if test "x$ac_ct_DSYMUTIL" = x; then
8777     DSYMUTIL=":"
8778   else
8779     case $cross_compiling:$ac_tool_warned in
8780 yes:)
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783 ac_tool_warned=yes ;;
8784 esac
8785     DSYMUTIL=$ac_ct_DSYMUTIL
8786   fi
8787 else
8788   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8789 fi
8790
8791     if test -n "$ac_tool_prefix"; then
8792   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8793 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 $as_echo_n "checking for $ac_word... " >&6; }
8796 if ${ac_cv_prog_NMEDIT+:} false; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   if test -n "$NMEDIT"; then
8800   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8801 else
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816
8817 fi
8818 fi
8819 NMEDIT=$ac_cv_prog_NMEDIT
8820 if test -n "$NMEDIT"; then
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8822 $as_echo "$NMEDIT" >&6; }
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8826 fi
8827
8828
8829 fi
8830 if test -z "$ac_cv_prog_NMEDIT"; then
8831   ac_ct_NMEDIT=$NMEDIT
8832   # Extract the first word of "nmedit", so it can be a program name with args.
8833 set dummy nmedit; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   if test -n "$ac_ct_NMEDIT"; then
8840   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845   IFS=$as_save_IFS
8846   test -z "$as_dir" && as_dir=.
8847     for ac_exec_ext in '' $ac_executable_extensions; do
8848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851     break 2
8852   fi
8853 done
8854   done
8855 IFS=$as_save_IFS
8856
8857 fi
8858 fi
8859 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8860 if test -n "$ac_ct_NMEDIT"; then
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8862 $as_echo "$ac_ct_NMEDIT" >&6; }
8863 else
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868   if test "x$ac_ct_NMEDIT" = x; then
8869     NMEDIT=":"
8870   else
8871     case $cross_compiling:$ac_tool_warned in
8872 yes:)
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8875 ac_tool_warned=yes ;;
8876 esac
8877     NMEDIT=$ac_ct_NMEDIT
8878   fi
8879 else
8880   NMEDIT="$ac_cv_prog_NMEDIT"
8881 fi
8882
8883     if test -n "$ac_tool_prefix"; then
8884   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8885 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_prog_LIPO+:} false; then :
8889   $as_echo_n "(cached) " >&6
8890 else
8891   if test -n "$LIPO"; then
8892   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8893 else
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897   IFS=$as_save_IFS
8898   test -z "$as_dir" && as_dir=.
8899     for ac_exec_ext in '' $ac_executable_extensions; do
8900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903     break 2
8904   fi
8905 done
8906   done
8907 IFS=$as_save_IFS
8908
8909 fi
8910 fi
8911 LIPO=$ac_cv_prog_LIPO
8912 if test -n "$LIPO"; then
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8914 $as_echo "$LIPO" >&6; }
8915 else
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8918 fi
8919
8920
8921 fi
8922 if test -z "$ac_cv_prog_LIPO"; then
8923   ac_ct_LIPO=$LIPO
8924   # Extract the first word of "lipo", so it can be a program name with args.
8925 set dummy lipo; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   if test -n "$ac_ct_LIPO"; then
8932   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8933 else
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935 for as_dir in $PATH
8936 do
8937   IFS=$as_save_IFS
8938   test -z "$as_dir" && as_dir=.
8939     for ac_exec_ext in '' $ac_executable_extensions; do
8940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8941     ac_cv_prog_ac_ct_LIPO="lipo"
8942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943     break 2
8944   fi
8945 done
8946   done
8947 IFS=$as_save_IFS
8948
8949 fi
8950 fi
8951 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8952 if test -n "$ac_ct_LIPO"; then
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8954 $as_echo "$ac_ct_LIPO" >&6; }
8955 else
8956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8958 fi
8959
8960   if test "x$ac_ct_LIPO" = x; then
8961     LIPO=":"
8962   else
8963     case $cross_compiling:$ac_tool_warned in
8964 yes:)
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967 ac_tool_warned=yes ;;
8968 esac
8969     LIPO=$ac_ct_LIPO
8970   fi
8971 else
8972   LIPO="$ac_cv_prog_LIPO"
8973 fi
8974
8975     if test -n "$ac_tool_prefix"; then
8976   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}otool; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if ${ac_cv_prog_OTOOL+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   if test -n "$OTOOL"; then
8984   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991     for ac_exec_ext in '' $ac_executable_extensions; do
8992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998   done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 OTOOL=$ac_cv_prog_OTOOL
9004 if test -n "$OTOOL"; then
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9006 $as_echo "$OTOOL" >&6; }
9007 else
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 fi
9014 if test -z "$ac_cv_prog_OTOOL"; then
9015   ac_ct_OTOOL=$OTOOL
9016   # Extract the first word of "otool", so it can be a program name with args.
9017 set dummy otool; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   if test -n "$ac_ct_OTOOL"; then
9024   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029   IFS=$as_save_IFS
9030   test -z "$as_dir" && as_dir=.
9031     for ac_exec_ext in '' $ac_executable_extensions; do
9032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033     ac_cv_prog_ac_ct_OTOOL="otool"
9034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035     break 2
9036   fi
9037 done
9038   done
9039 IFS=$as_save_IFS
9040
9041 fi
9042 fi
9043 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9044 if test -n "$ac_ct_OTOOL"; then
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9046 $as_echo "$ac_ct_OTOOL" >&6; }
9047 else
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051
9052   if test "x$ac_ct_OTOOL" = x; then
9053     OTOOL=":"
9054   else
9055     case $cross_compiling:$ac_tool_warned in
9056 yes:)
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9060 esac
9061     OTOOL=$ac_ct_OTOOL
9062   fi
9063 else
9064   OTOOL="$ac_cv_prog_OTOOL"
9065 fi
9066
9067     if test -n "$ac_tool_prefix"; then
9068   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9069 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_prog_OTOOL64+:} false; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   if test -n "$OTOOL64"; then
9076   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9080 do
9081   IFS=$as_save_IFS
9082   test -z "$as_dir" && as_dir=.
9083     for ac_exec_ext in '' $ac_executable_extensions; do
9084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9085     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087     break 2
9088   fi
9089 done
9090   done
9091 IFS=$as_save_IFS
9092
9093 fi
9094 fi
9095 OTOOL64=$ac_cv_prog_OTOOL64
9096 if test -n "$OTOOL64"; then
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9098 $as_echo "$OTOOL64" >&6; }
9099 else
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9102 fi
9103
9104
9105 fi
9106 if test -z "$ac_cv_prog_OTOOL64"; then
9107   ac_ct_OTOOL64=$OTOOL64
9108   # Extract the first word of "otool64", so it can be a program name with args.
9109 set dummy otool64; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   if test -n "$ac_ct_OTOOL64"; then
9116   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121   IFS=$as_save_IFS
9122   test -z "$as_dir" && as_dir=.
9123     for ac_exec_ext in '' $ac_executable_extensions; do
9124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125     ac_cv_prog_ac_ct_OTOOL64="otool64"
9126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127     break 2
9128   fi
9129 done
9130   done
9131 IFS=$as_save_IFS
9132
9133 fi
9134 fi
9135 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9136 if test -n "$ac_ct_OTOOL64"; then
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9138 $as_echo "$ac_ct_OTOOL64" >&6; }
9139 else
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142 fi
9143
9144   if test "x$ac_ct_OTOOL64" = x; then
9145     OTOOL64=":"
9146   else
9147     case $cross_compiling:$ac_tool_warned in
9148 yes:)
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9151 ac_tool_warned=yes ;;
9152 esac
9153     OTOOL64=$ac_ct_OTOOL64
9154   fi
9155 else
9156   OTOOL64="$ac_cv_prog_OTOOL64"
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9186 $as_echo_n "checking for -single_module linker flag... " >&6; }
9187 if ${lt_cv_apple_cc_single_mod+:} false; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   lt_cv_apple_cc_single_mod=no
9191       if test -z "$LT_MULTI_MODULE"; then
9192         # By default we will add the -single_module flag. You can override
9193         # by either setting the environment variable LT_MULTI_MODULE
9194         # non-empty at configure time, or by adding -multi_module to the
9195         # link flags.
9196         rm -rf libconftest.dylib*
9197         echo "int foo(void){return 1;}" > conftest.c
9198         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9199 -dynamiclib -Wl,-single_module conftest.c" >&5
9200         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9201           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9202         _lt_result=$?
9203         # If there is a non-empty error log, and "single_module"
9204         # appears in it, assume the flag caused a linker warning
9205         if test -s conftest.err && $GREP single_module conftest.err; then
9206           cat conftest.err >&5
9207         # Otherwise, if the output was created with a 0 exit code from
9208         # the compiler, it worked.
9209         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9210           lt_cv_apple_cc_single_mod=yes
9211         else
9212           cat conftest.err >&5
9213         fi
9214         rm -rf libconftest.dylib*
9215         rm -f conftest.*
9216       fi
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9219 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9220
9221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9222 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9223 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   lt_cv_ld_exported_symbols_list=no
9227       save_LDFLAGS=$LDFLAGS
9228       echo "_main" > conftest.sym
9229       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9230       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h.  */
9232
9233 int
9234 main ()
9235 {
9236
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242   lt_cv_ld_exported_symbols_list=yes
9243 else
9244   lt_cv_ld_exported_symbols_list=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247     conftest$ac_exeext conftest.$ac_ext
9248         LDFLAGS=$save_LDFLAGS
9249
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9252 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9253
9254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9255 $as_echo_n "checking for -force_load linker flag... " >&6; }
9256 if ${lt_cv_ld_force_load+:} false; then :
9257   $as_echo_n "(cached) " >&6
9258 else
9259   lt_cv_ld_force_load=no
9260       cat > conftest.c << _LT_EOF
9261 int forced_loaded() { return 2;}
9262 _LT_EOF
9263       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9264       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9265       echo "$AR cru libconftest.a conftest.o" >&5
9266       $AR cru libconftest.a conftest.o 2>&5
9267       echo "$RANLIB libconftest.a" >&5
9268       $RANLIB libconftest.a 2>&5
9269       cat > conftest.c << _LT_EOF
9270 int main() { return 0;}
9271 _LT_EOF
9272       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9273       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9274       _lt_result=$?
9275       if test -s conftest.err && $GREP force_load conftest.err; then
9276         cat conftest.err >&5
9277       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9278         lt_cv_ld_force_load=yes
9279       else
9280         cat conftest.err >&5
9281       fi
9282         rm -f conftest.err libconftest.a conftest conftest.c
9283         rm -rf conftest.dSYM
9284
9285 fi
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9287 $as_echo "$lt_cv_ld_force_load" >&6; }
9288     case $host_os in
9289     rhapsody* | darwin1.[012])
9290       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9291     darwin1.*)
9292       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9293     darwin*) # darwin 5.x on
9294       # if running on 10.5 or later, the deployment target defaults
9295       # to the OS version, if on x86, and 10.4, the deployment
9296       # target defaults to 10.4. Don't you love it?
9297       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9298         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9299           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9300         10.[012][,.]*)
9301           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9302         10.*)
9303           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9304       esac
9305     ;;
9306   esac
9307     if test yes = "$lt_cv_apple_cc_single_mod"; then
9308       _lt_dar_single_mod='$single_module'
9309     fi
9310     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9311       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9312     else
9313       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9314     fi
9315     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9316       _lt_dsymutil='~$DSYMUTIL $lib || :'
9317     else
9318       _lt_dsymutil=
9319     fi
9320     ;;
9321   esac
9322
9323 # func_munge_path_list VARIABLE PATH
9324 # -----------------------------------
9325 # VARIABLE is name of variable containing _space_ separated list of
9326 # directories to be munged by the contents of PATH, which is string
9327 # having a format:
9328 # "DIR[:DIR]:"
9329 #       string "DIR[ DIR]" will be prepended to VARIABLE
9330 # ":DIR[:DIR]"
9331 #       string "DIR[ DIR]" will be appended to VARIABLE
9332 # "DIRP[:DIRP]::[DIRA:]DIRA"
9333 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9334 #       "DIRA[ DIRA]" will be appended to VARIABLE
9335 # "DIR[:DIR]"
9336 #       VARIABLE will be replaced by "DIR[ DIR]"
9337 func_munge_path_list ()
9338 {
9339     case x$2 in
9340     x)
9341         ;;
9342     *:)
9343         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9344         ;;
9345     x:*)
9346         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9347         ;;
9348     *::*)
9349         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9350         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9351         ;;
9352     *)
9353         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9354         ;;
9355     esac
9356 }
9357
9358 for ac_header in dlfcn.h
9359 do :
9360   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9361 "
9362 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9363   cat >>confdefs.h <<_ACEOF
9364 #define HAVE_DLFCN_H 1
9365 _ACEOF
9366
9367 fi
9368
9369 done
9370
9371
9372
9373
9374
9375 # Set options
9376
9377
9378
9379         enable_dlopen=no
9380
9381
9382   enable_win32_dll=no
9383
9384
9385             # Check whether --enable-shared was given.
9386 if test "${enable_shared+set}" = set; then :
9387   enableval=$enable_shared; p=${PACKAGE-default}
9388     case $enableval in
9389     yes) enable_shared=yes ;;
9390     no) enable_shared=no ;;
9391     *)
9392       enable_shared=no
9393       # Look at the argument we got.  We use all the common list separators.
9394       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9395       for pkg in $enableval; do
9396         IFS=$lt_save_ifs
9397         if test "X$pkg" = "X$p"; then
9398           enable_shared=yes
9399         fi
9400       done
9401       IFS=$lt_save_ifs
9402       ;;
9403     esac
9404 else
9405   enable_shared=yes
9406 fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416   # Check whether --enable-static was given.
9417 if test "${enable_static+set}" = set; then :
9418   enableval=$enable_static; p=${PACKAGE-default}
9419     case $enableval in
9420     yes) enable_static=yes ;;
9421     no) enable_static=no ;;
9422     *)
9423      enable_static=no
9424       # Look at the argument we got.  We use all the common list separators.
9425       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9426       for pkg in $enableval; do
9427         IFS=$lt_save_ifs
9428         if test "X$pkg" = "X$p"; then
9429           enable_static=yes
9430         fi
9431       done
9432       IFS=$lt_save_ifs
9433       ;;
9434     esac
9435 else
9436   enable_static=yes
9437 fi
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448 # Check whether --with-pic was given.
9449 if test "${with_pic+set}" = set; then :
9450   withval=$with_pic; lt_p=${PACKAGE-default}
9451     case $withval in
9452     yes|no) pic_mode=$withval ;;
9453     *)
9454       pic_mode=default
9455       # Look at the argument we got.  We use all the common list separators.
9456       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9457       for lt_pkg in $withval; do
9458         IFS=$lt_save_ifs
9459         if test "X$lt_pkg" = "X$lt_p"; then
9460           pic_mode=yes
9461         fi
9462       done
9463       IFS=$lt_save_ifs
9464       ;;
9465     esac
9466 else
9467   pic_mode=default
9468 fi
9469
9470
9471
9472
9473
9474
9475
9476
9477   # Check whether --enable-fast-install was given.
9478 if test "${enable_fast_install+set}" = set; then :
9479   enableval=$enable_fast_install; p=${PACKAGE-default}
9480     case $enableval in
9481     yes) enable_fast_install=yes ;;
9482     no) enable_fast_install=no ;;
9483     *)
9484       enable_fast_install=no
9485       # Look at the argument we got.  We use all the common list separators.
9486       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487       for pkg in $enableval; do
9488         IFS=$lt_save_ifs
9489         if test "X$pkg" = "X$p"; then
9490           enable_fast_install=yes
9491         fi
9492       done
9493       IFS=$lt_save_ifs
9494       ;;
9495     esac
9496 else
9497   enable_fast_install=yes
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507   shared_archive_member_spec=
9508 case $host,$enable_shared in
9509 power*-*-aix[5-9]*,yes)
9510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9511 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9512
9513 # Check whether --with-aix-soname was given.
9514 if test "${with_aix_soname+set}" = set; then :
9515   withval=$with_aix_soname; case $withval in
9516     aix|svr4|both)
9517       ;;
9518     *)
9519       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9520       ;;
9521     esac
9522     lt_cv_with_aix_soname=$with_aix_soname
9523 else
9524   if ${lt_cv_with_aix_soname+:} false; then :
9525   $as_echo_n "(cached) " >&6
9526 else
9527   lt_cv_with_aix_soname=aix
9528 fi
9529
9530     with_aix_soname=$lt_cv_with_aix_soname
9531 fi
9532
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9534 $as_echo "$with_aix_soname" >&6; }
9535   if test aix != "$with_aix_soname"; then
9536     # For the AIX way of multilib, we name the shared archive member
9537     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9538     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9539     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9540     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9541     if test 64 = "${OBJECT_MODE-32}"; then
9542       shared_archive_member_spec=shr_64
9543     else
9544       shared_archive_member_spec=shr
9545     fi
9546   fi
9547   ;;
9548 *)
9549   with_aix_soname=aix
9550   ;;
9551 esac
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562 # This can be used to rebuild libtool when needed
9563 LIBTOOL_DEPS=$ltmain
9564
9565 # Always use our own libtool.
9566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597 test -z "$LN_S" && LN_S="ln -s"
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612 if test -n "${ZSH_VERSION+set}"; then
9613    setopt NO_GLOB_SUBST
9614 fi
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9617 $as_echo_n "checking for objdir... " >&6; }
9618 if ${lt_cv_objdir+:} false; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   rm -f .libs 2>/dev/null
9622 mkdir .libs 2>/dev/null
9623 if test -d .libs; then
9624   lt_cv_objdir=.libs
9625 else
9626   # MS-DOS does not allow filenames that begin with a dot.
9627   lt_cv_objdir=_libs
9628 fi
9629 rmdir .libs 2>/dev/null
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9632 $as_echo "$lt_cv_objdir" >&6; }
9633 objdir=$lt_cv_objdir
9634
9635
9636
9637
9638
9639 cat >>confdefs.h <<_ACEOF
9640 #define LT_OBJDIR "$lt_cv_objdir/"
9641 _ACEOF
9642
9643
9644
9645
9646 case $host_os in
9647 aix3*)
9648   # AIX sometimes has problems with the GCC collect2 program.  For some
9649   # reason, if we set the COLLECT_NAMES environment variable, the problems
9650   # vanish in a puff of smoke.
9651   if test set != "${COLLECT_NAMES+set}"; then
9652     COLLECT_NAMES=
9653     export COLLECT_NAMES
9654   fi
9655   ;;
9656 esac
9657
9658 # Global variables:
9659 ofile=libtool
9660 can_build_shared=yes
9661
9662 # All known linkers require a '.a' archive for static linking (except MSVC,
9663 # which needs '.lib').
9664 libext=a
9665
9666 with_gnu_ld=$lt_cv_prog_gnu_ld
9667
9668 old_CC=$CC
9669 old_CFLAGS=$CFLAGS
9670
9671 # Set sane defaults for various variables
9672 test -z "$CC" && CC=cc
9673 test -z "$LTCC" && LTCC=$CC
9674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9675 test -z "$LD" && LD=ld
9676 test -z "$ac_objext" && ac_objext=o
9677
9678 func_cc_basename $compiler
9679 cc_basename=$func_cc_basename_result
9680
9681
9682 # Only perform the check for file, if the check method requires it
9683 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9684 case $deplibs_check_method in
9685 file_magic*)
9686   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9688 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9689 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9690   $as_echo_n "(cached) " >&6
9691 else
9692   case $MAGIC_CMD in
9693 [\\/*] |  ?:[\\/]*)
9694   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9695   ;;
9696 *)
9697   lt_save_MAGIC_CMD=$MAGIC_CMD
9698   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9700   for ac_dir in $ac_dummy; do
9701     IFS=$lt_save_ifs
9702     test -z "$ac_dir" && ac_dir=.
9703     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9704       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9705       if test -n "$file_magic_test_file"; then
9706         case $deplibs_check_method in
9707         "file_magic "*)
9708           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9709           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9711             $EGREP "$file_magic_regex" > /dev/null; then
9712             :
9713           else
9714             cat <<_LT_EOF 1>&2
9715
9716 *** Warning: the command libtool uses to detect shared libraries,
9717 *** $file_magic_cmd, produces output that libtool cannot recognize.
9718 *** The result is that libtool may fail to recognize shared libraries
9719 *** as such.  This will affect the creation of libtool libraries that
9720 *** depend on shared libraries, but programs linked with such libtool
9721 *** libraries will work regardless of this problem.  Nevertheless, you
9722 *** may want to report the problem to your system manager and/or to
9723 *** bug-libtool@gnu.org
9724
9725 _LT_EOF
9726           fi ;;
9727         esac
9728       fi
9729       break
9730     fi
9731   done
9732   IFS=$lt_save_ifs
9733   MAGIC_CMD=$lt_save_MAGIC_CMD
9734   ;;
9735 esac
9736 fi
9737
9738 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9739 if test -n "$MAGIC_CMD"; then
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9741 $as_echo "$MAGIC_CMD" >&6; }
9742 else
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9745 fi
9746
9747
9748
9749
9750
9751 if test -z "$lt_cv_path_MAGIC_CMD"; then
9752   if test -n "$ac_tool_prefix"; then
9753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9754 $as_echo_n "checking for file... " >&6; }
9755 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9756   $as_echo_n "(cached) " >&6
9757 else
9758   case $MAGIC_CMD in
9759 [\\/*] |  ?:[\\/]*)
9760   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9761   ;;
9762 *)
9763   lt_save_MAGIC_CMD=$MAGIC_CMD
9764   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9765   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9766   for ac_dir in $ac_dummy; do
9767     IFS=$lt_save_ifs
9768     test -z "$ac_dir" && ac_dir=.
9769     if test -f "$ac_dir/file"; then
9770       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9771       if test -n "$file_magic_test_file"; then
9772         case $deplibs_check_method in
9773         "file_magic "*)
9774           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9775           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9776           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9777             $EGREP "$file_magic_regex" > /dev/null; then
9778             :
9779           else
9780             cat <<_LT_EOF 1>&2
9781
9782 *** Warning: the command libtool uses to detect shared libraries,
9783 *** $file_magic_cmd, produces output that libtool cannot recognize.
9784 *** The result is that libtool may fail to recognize shared libraries
9785 *** as such.  This will affect the creation of libtool libraries that
9786 *** depend on shared libraries, but programs linked with such libtool
9787 *** libraries will work regardless of this problem.  Nevertheless, you
9788 *** may want to report the problem to your system manager and/or to
9789 *** bug-libtool@gnu.org
9790
9791 _LT_EOF
9792           fi ;;
9793         esac
9794       fi
9795       break
9796     fi
9797   done
9798   IFS=$lt_save_ifs
9799   MAGIC_CMD=$lt_save_MAGIC_CMD
9800   ;;
9801 esac
9802 fi
9803
9804 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9805 if test -n "$MAGIC_CMD"; then
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9807 $as_echo "$MAGIC_CMD" >&6; }
9808 else
9809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9811 fi
9812
9813
9814   else
9815     MAGIC_CMD=:
9816   fi
9817 fi
9818
9819   fi
9820   ;;
9821 esac
9822
9823 # Use C for the default configuration in the libtool script
9824
9825 lt_save_CC=$CC
9826 ac_ext=c
9827 ac_cpp='$CPP $CPPFLAGS'
9828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9831
9832
9833 # Source file extension for C test sources.
9834 ac_ext=c
9835
9836 # Object file extension for compiled C test sources.
9837 objext=o
9838 objext=$objext
9839
9840 # Code to be used in simple compile tests
9841 lt_simple_compile_test_code="int some_variable = 0;"
9842
9843 # Code to be used in simple link tests
9844 lt_simple_link_test_code='int main(){return(0);}'
9845
9846
9847
9848
9849
9850
9851
9852 # If no C compiler was specified, use CC.
9853 LTCC=${LTCC-"$CC"}
9854
9855 # If no C compiler flags were specified, use CFLAGS.
9856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9857
9858 # Allow CC to be a program name with arguments.
9859 compiler=$CC
9860
9861 # Save the default compiler, since it gets overwritten when the other
9862 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9863 compiler_DEFAULT=$CC
9864
9865 # save warnings/boilerplate of simple test code
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_compiler_boilerplate=`cat conftest.err`
9870 $RM conftest*
9871
9872 ac_outfile=conftest.$ac_objext
9873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9875 _lt_linker_boilerplate=`cat conftest.err`
9876 $RM -r conftest*
9877
9878
9879 ## CAVEAT EMPTOR:
9880 ## There is no encapsulation within the following macros, do not change
9881 ## the running order or otherwise move them around unless you know exactly
9882 ## what you are doing...
9883 if test -n "$compiler"; then
9884
9885 lt_prog_compiler_no_builtin_flag=
9886
9887 if test yes = "$GCC"; then
9888   case $cc_basename in
9889   nvcc*)
9890     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9891   *)
9892     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9893   esac
9894
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9896 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9897 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   lt_cv_prog_compiler_rtti_exceptions=no
9901    ac_outfile=conftest.$ac_objext
9902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9904    # Insert the option either (1) after the last *FLAGS variable, or
9905    # (2) before a word containing "conftest.", or (3) at the end.
9906    # Note that $ac_compile itself does not contain backslashes and begins
9907    # with a dollar sign (not a hyphen), so the echo should work correctly.
9908    # The option is referenced via a variable to avoid confusing sed.
9909    lt_compile=`echo "$ac_compile" | $SED \
9910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9912    -e 's:$: $lt_compiler_flag:'`
9913    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9914    (eval "$lt_compile" 2>conftest.err)
9915    ac_status=$?
9916    cat conftest.err >&5
9917    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918    if (exit $ac_status) && test -s "$ac_outfile"; then
9919      # The compiler can only warn and ignore the option if not recognized
9920      # So say no if there are warnings other than the usual output.
9921      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9922      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9923      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9924        lt_cv_prog_compiler_rtti_exceptions=yes
9925      fi
9926    fi
9927    $RM conftest*
9928
9929 fi
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9931 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9932
9933 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9934     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9935 else
9936     :
9937 fi
9938
9939 fi
9940
9941
9942
9943
9944
9945
9946   lt_prog_compiler_wl=
9947 lt_prog_compiler_pic=
9948 lt_prog_compiler_static=
9949
9950
9951   if test yes = "$GCC"; then
9952     lt_prog_compiler_wl='-Wl,'
9953     lt_prog_compiler_static='-static'
9954
9955     case $host_os in
9956       aix*)
9957       # All AIX code is PIC.
9958       if test ia64 = "$host_cpu"; then
9959         # AIX 5 now supports IA64 processor
9960         lt_prog_compiler_static='-Bstatic'
9961       fi
9962       lt_prog_compiler_pic='-fPIC'
9963       ;;
9964
9965     amigaos*)
9966       case $host_cpu in
9967       powerpc)
9968             # see comment about AmigaOS4 .so support
9969             lt_prog_compiler_pic='-fPIC'
9970         ;;
9971       m68k)
9972             # FIXME: we need at least 68020 code to build shared libraries, but
9973             # adding the '-m68020' flag to GCC prevents building anything better,
9974             # like '-m68040'.
9975             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9976         ;;
9977       esac
9978       ;;
9979
9980     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9981       # PIC is the default for these OSes.
9982       ;;
9983
9984     mingw* | cygwin* | pw32* | os2* | cegcc*)
9985       # This hack is so that the source file can tell whether it is being
9986       # built for inclusion in a dll (and should export symbols for example).
9987       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9988       # (--disable-auto-import) libraries
9989       lt_prog_compiler_pic='-DDLL_EXPORT'
9990       case $host_os in
9991       os2*)
9992         lt_prog_compiler_static='$wl-static'
9993         ;;
9994       esac
9995       ;;
9996
9997     darwin* | rhapsody*)
9998       # PIC is the default on this platform
9999       # Common symbols not allowed in MH_DYLIB files
10000       lt_prog_compiler_pic='-fno-common'
10001       ;;
10002
10003     haiku*)
10004       # PIC is the default for Haiku.
10005       # The "-static" flag exists, but is broken.
10006       lt_prog_compiler_static=
10007       ;;
10008
10009     hpux*)
10010       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10011       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10012       # sets the default TLS model and affects inlining.
10013       case $host_cpu in
10014       hppa*64*)
10015         # +Z the default
10016         ;;
10017       *)
10018         lt_prog_compiler_pic='-fPIC'
10019         ;;
10020       esac
10021       ;;
10022
10023     interix[3-9]*)
10024       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10025       # Instead, we relocate shared libraries at runtime.
10026       ;;
10027
10028     msdosdjgpp*)
10029       # Just because we use GCC doesn't mean we suddenly get shared libraries
10030       # on systems that don't support them.
10031       lt_prog_compiler_can_build_shared=no
10032       enable_shared=no
10033       ;;
10034
10035     *nto* | *qnx*)
10036       # QNX uses GNU C++, but need to define -shared option too, otherwise
10037       # it will coredump.
10038       lt_prog_compiler_pic='-fPIC -shared'
10039       ;;
10040
10041     sysv4*MP*)
10042       if test -d /usr/nec; then
10043         lt_prog_compiler_pic=-Kconform_pic
10044       fi
10045       ;;
10046
10047     *)
10048       lt_prog_compiler_pic='-fPIC'
10049       ;;
10050     esac
10051
10052     case $cc_basename in
10053     nvcc*) # Cuda Compiler Driver 2.2
10054       lt_prog_compiler_wl='-Xlinker '
10055       if test -n "$lt_prog_compiler_pic"; then
10056         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10057       fi
10058       ;;
10059     esac
10060   else
10061     # PORTME Check for flag to pass linker flags through the system compiler.
10062     case $host_os in
10063     aix*)
10064       lt_prog_compiler_wl='-Wl,'
10065       if test ia64 = "$host_cpu"; then
10066         # AIX 5 now supports IA64 processor
10067         lt_prog_compiler_static='-Bstatic'
10068       else
10069         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10070       fi
10071       ;;
10072
10073     darwin* | rhapsody*)
10074       # PIC is the default on this platform
10075       # Common symbols not allowed in MH_DYLIB files
10076       lt_prog_compiler_pic='-fno-common'
10077       case $cc_basename in
10078       nagfor*)
10079         # NAG Fortran compiler
10080         lt_prog_compiler_wl='-Wl,-Wl,,'
10081         lt_prog_compiler_pic='-PIC'
10082         lt_prog_compiler_static='-Bstatic'
10083         ;;
10084       esac
10085       ;;
10086
10087     mingw* | cygwin* | pw32* | os2* | cegcc*)
10088       # This hack is so that the source file can tell whether it is being
10089       # built for inclusion in a dll (and should export symbols for example).
10090       lt_prog_compiler_pic='-DDLL_EXPORT'
10091       case $host_os in
10092       os2*)
10093         lt_prog_compiler_static='$wl-static'
10094         ;;
10095       esac
10096       ;;
10097
10098     hpux9* | hpux10* | hpux11*)
10099       lt_prog_compiler_wl='-Wl,'
10100       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10101       # not for PA HP-UX.
10102       case $host_cpu in
10103       hppa*64*|ia64*)
10104         # +Z the default
10105         ;;
10106       *)
10107         lt_prog_compiler_pic='+Z'
10108         ;;
10109       esac
10110       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10111       lt_prog_compiler_static='$wl-a ${wl}archive'
10112       ;;
10113
10114     irix5* | irix6* | nonstopux*)
10115       lt_prog_compiler_wl='-Wl,'
10116       # PIC (with -KPIC) is the default.
10117       lt_prog_compiler_static='-non_shared'
10118       ;;
10119
10120     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10121       case $cc_basename in
10122       # old Intel for x86_64, which still supported -KPIC.
10123       ecc*)
10124         lt_prog_compiler_wl='-Wl,'
10125         lt_prog_compiler_pic='-KPIC'
10126         lt_prog_compiler_static='-static'
10127         ;;
10128       # icc used to be incompatible with GCC.
10129       # ICC 10 doesn't accept -KPIC any more.
10130       icc* | ifort*)
10131         lt_prog_compiler_wl='-Wl,'
10132         lt_prog_compiler_pic='-fPIC'
10133         lt_prog_compiler_static='-static'
10134         ;;
10135       # Lahey Fortran 8.1.
10136       lf95*)
10137         lt_prog_compiler_wl='-Wl,'
10138         lt_prog_compiler_pic='--shared'
10139         lt_prog_compiler_static='--static'
10140         ;;
10141       nagfor*)
10142         # NAG Fortran compiler
10143         lt_prog_compiler_wl='-Wl,-Wl,,'
10144         lt_prog_compiler_pic='-PIC'
10145         lt_prog_compiler_static='-Bstatic'
10146         ;;
10147       tcc*)
10148         # Fabrice Bellard et al's Tiny C Compiler
10149         lt_prog_compiler_wl='-Wl,'
10150         lt_prog_compiler_pic='-fPIC'
10151         lt_prog_compiler_static='-static'
10152         ;;
10153       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10154         # Portland Group compilers (*not* the Pentium gcc compiler,
10155         # which looks to be a dead project)
10156         lt_prog_compiler_wl='-Wl,'
10157         lt_prog_compiler_pic='-fpic'
10158         lt_prog_compiler_static='-Bstatic'
10159         ;;
10160       ccc*)
10161         lt_prog_compiler_wl='-Wl,'
10162         # All Alpha code is PIC.
10163         lt_prog_compiler_static='-non_shared'
10164         ;;
10165       xl* | bgxl* | bgf* | mpixl*)
10166         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10167         lt_prog_compiler_wl='-Wl,'
10168         lt_prog_compiler_pic='-qpic'
10169         lt_prog_compiler_static='-qstaticlink'
10170         ;;
10171       *)
10172         case `$CC -V 2>&1 | sed 5q` in
10173         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10174           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10175           lt_prog_compiler_pic='-KPIC'
10176           lt_prog_compiler_static='-Bstatic'
10177           lt_prog_compiler_wl=''
10178           ;;
10179         *Sun\ F* | *Sun*Fortran*)
10180           lt_prog_compiler_pic='-KPIC'
10181           lt_prog_compiler_static='-Bstatic'
10182           lt_prog_compiler_wl='-Qoption ld '
10183           ;;
10184         *Sun\ C*)
10185           # Sun C 5.9
10186           lt_prog_compiler_pic='-KPIC'
10187           lt_prog_compiler_static='-Bstatic'
10188           lt_prog_compiler_wl='-Wl,'
10189           ;;
10190         *Intel*\ [CF]*Compiler*)
10191           lt_prog_compiler_wl='-Wl,'
10192           lt_prog_compiler_pic='-fPIC'
10193           lt_prog_compiler_static='-static'
10194           ;;
10195         *Portland\ Group*)
10196           lt_prog_compiler_wl='-Wl,'
10197           lt_prog_compiler_pic='-fpic'
10198           lt_prog_compiler_static='-Bstatic'
10199           ;;
10200         esac
10201         ;;
10202       esac
10203       ;;
10204
10205     newsos6)
10206       lt_prog_compiler_pic='-KPIC'
10207       lt_prog_compiler_static='-Bstatic'
10208       ;;
10209
10210     *nto* | *qnx*)
10211       # QNX uses GNU C++, but need to define -shared option too, otherwise
10212       # it will coredump.
10213       lt_prog_compiler_pic='-fPIC -shared'
10214       ;;
10215
10216     osf3* | osf4* | osf5*)
10217       lt_prog_compiler_wl='-Wl,'
10218       # All OSF/1 code is PIC.
10219       lt_prog_compiler_static='-non_shared'
10220       ;;
10221
10222     rdos*)
10223       lt_prog_compiler_static='-non_shared'
10224       ;;
10225
10226     solaris*)
10227       lt_prog_compiler_pic='-KPIC'
10228       lt_prog_compiler_static='-Bstatic'
10229       case $cc_basename in
10230       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10231         lt_prog_compiler_wl='-Qoption ld ';;
10232       *)
10233         lt_prog_compiler_wl='-Wl,';;
10234       esac
10235       ;;
10236
10237     sunos4*)
10238       lt_prog_compiler_wl='-Qoption ld '
10239       lt_prog_compiler_pic='-PIC'
10240       lt_prog_compiler_static='-Bstatic'
10241       ;;
10242
10243     sysv4 | sysv4.2uw2* | sysv4.3*)
10244       lt_prog_compiler_wl='-Wl,'
10245       lt_prog_compiler_pic='-KPIC'
10246       lt_prog_compiler_static='-Bstatic'
10247       ;;
10248
10249     sysv4*MP*)
10250       if test -d /usr/nec; then
10251         lt_prog_compiler_pic='-Kconform_pic'
10252         lt_prog_compiler_static='-Bstatic'
10253       fi
10254       ;;
10255
10256     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10257       lt_prog_compiler_wl='-Wl,'
10258       lt_prog_compiler_pic='-KPIC'
10259       lt_prog_compiler_static='-Bstatic'
10260       ;;
10261
10262     unicos*)
10263       lt_prog_compiler_wl='-Wl,'
10264       lt_prog_compiler_can_build_shared=no
10265       ;;
10266
10267     uts4*)
10268       lt_prog_compiler_pic='-pic'
10269       lt_prog_compiler_static='-Bstatic'
10270       ;;
10271
10272     *)
10273       lt_prog_compiler_can_build_shared=no
10274       ;;
10275     esac
10276   fi
10277
10278 case $host_os in
10279   # For platforms that do not support PIC, -DPIC is meaningless:
10280   *djgpp*)
10281     lt_prog_compiler_pic=
10282     ;;
10283   *)
10284     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10285     ;;
10286 esac
10287
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10289 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10290 if ${lt_cv_prog_compiler_pic+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10296 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10297 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10298
10299 #
10300 # Check to make sure the PIC flag actually works.
10301 #
10302 if test -n "$lt_prog_compiler_pic"; then
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10304 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10305 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10306   $as_echo_n "(cached) " >&6
10307 else
10308   lt_cv_prog_compiler_pic_works=no
10309    ac_outfile=conftest.$ac_objext
10310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10311    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10312    # Insert the option either (1) after the last *FLAGS variable, or
10313    # (2) before a word containing "conftest.", or (3) at the end.
10314    # Note that $ac_compile itself does not contain backslashes and begins
10315    # with a dollar sign (not a hyphen), so the echo should work correctly.
10316    # The option is referenced via a variable to avoid confusing sed.
10317    lt_compile=`echo "$ac_compile" | $SED \
10318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10320    -e 's:$: $lt_compiler_flag:'`
10321    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10322    (eval "$lt_compile" 2>conftest.err)
10323    ac_status=$?
10324    cat conftest.err >&5
10325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326    if (exit $ac_status) && test -s "$ac_outfile"; then
10327      # The compiler can only warn and ignore the option if not recognized
10328      # So say no if there are warnings other than the usual output.
10329      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10330      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10331      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10332        lt_cv_prog_compiler_pic_works=yes
10333      fi
10334    fi
10335    $RM conftest*
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10339 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10340
10341 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10342     case $lt_prog_compiler_pic in
10343      "" | " "*) ;;
10344      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10345      esac
10346 else
10347     lt_prog_compiler_pic=
10348      lt_prog_compiler_can_build_shared=no
10349 fi
10350
10351 fi
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363 #
10364 # Check to make sure the static flag actually works.
10365 #
10366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10369 if ${lt_cv_prog_compiler_static_works+:} false; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372   lt_cv_prog_compiler_static_works=no
10373    save_LDFLAGS=$LDFLAGS
10374    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10375    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10376    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10377      # The linker can only warn and ignore the option if not recognized
10378      # So say no if there are warnings
10379      if test -s conftest.err; then
10380        # Append any errors to the config.log.
10381        cat conftest.err 1>&5
10382        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10383        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10384        if diff conftest.exp conftest.er2 >/dev/null; then
10385          lt_cv_prog_compiler_static_works=yes
10386        fi
10387      else
10388        lt_cv_prog_compiler_static_works=yes
10389      fi
10390    fi
10391    $RM -r conftest*
10392    LDFLAGS=$save_LDFLAGS
10393
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10397
10398 if test yes = "$lt_cv_prog_compiler_static_works"; then
10399     :
10400 else
10401     lt_prog_compiler_static=
10402 fi
10403
10404
10405
10406
10407
10408
10409
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10412 if ${lt_cv_prog_compiler_c_o+:} false; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   lt_cv_prog_compiler_c_o=no
10416    $RM -r conftest 2>/dev/null
10417    mkdir conftest
10418    cd conftest
10419    mkdir out
10420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10421
10422    lt_compiler_flag="-o out/conftest2.$ac_objext"
10423    # Insert the option either (1) after the last *FLAGS variable, or
10424    # (2) before a word containing "conftest.", or (3) at the end.
10425    # Note that $ac_compile itself does not contain backslashes and begins
10426    # with a dollar sign (not a hyphen), so the echo should work correctly.
10427    lt_compile=`echo "$ac_compile" | $SED \
10428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10430    -e 's:$: $lt_compiler_flag:'`
10431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10432    (eval "$lt_compile" 2>out/conftest.err)
10433    ac_status=$?
10434    cat out/conftest.err >&5
10435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10437    then
10438      # The compiler can only warn and ignore the option if not recognized
10439      # So say no if there are warnings
10440      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10441      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10442      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10443        lt_cv_prog_compiler_c_o=yes
10444      fi
10445    fi
10446    chmod u+w . 2>&5
10447    $RM conftest*
10448    # SGI C++ compiler will create directory out/ii_files/ for
10449    # template instantiation
10450    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10451    $RM out/* && rmdir out
10452    cd ..
10453    $RM -r conftest
10454    $RM conftest*
10455
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10459
10460
10461
10462
10463
10464
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10467 if ${lt_cv_prog_compiler_c_o+:} false; then :
10468   $as_echo_n "(cached) " >&6
10469 else
10470   lt_cv_prog_compiler_c_o=no
10471    $RM -r conftest 2>/dev/null
10472    mkdir conftest
10473    cd conftest
10474    mkdir out
10475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477    lt_compiler_flag="-o out/conftest2.$ac_objext"
10478    # Insert the option either (1) after the last *FLAGS variable, or
10479    # (2) before a word containing "conftest.", or (3) at the end.
10480    # Note that $ac_compile itself does not contain backslashes and begins
10481    # with a dollar sign (not a hyphen), so the echo should work correctly.
10482    lt_compile=`echo "$ac_compile" | $SED \
10483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10485    -e 's:$: $lt_compiler_flag:'`
10486    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10487    (eval "$lt_compile" 2>out/conftest.err)
10488    ac_status=$?
10489    cat out/conftest.err >&5
10490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10492    then
10493      # The compiler can only warn and ignore the option if not recognized
10494      # So say no if there are warnings
10495      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10498        lt_cv_prog_compiler_c_o=yes
10499      fi
10500    fi
10501    chmod u+w . 2>&5
10502    $RM conftest*
10503    # SGI C++ compiler will create directory out/ii_files/ for
10504    # template instantiation
10505    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10506    $RM out/* && rmdir out
10507    cd ..
10508    $RM -r conftest
10509    $RM conftest*
10510
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10514
10515
10516
10517
10518 hard_links=nottested
10519 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10520   # do not overwrite the value of need_locks provided by the user
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10522 $as_echo_n "checking if we can lock with hard links... " >&6; }
10523   hard_links=yes
10524   $RM conftest*
10525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10526   touch conftest.a
10527   ln conftest.a conftest.b 2>&5 || hard_links=no
10528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10530 $as_echo "$hard_links" >&6; }
10531   if test no = "$hard_links"; then
10532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10533 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10534     need_locks=warn
10535   fi
10536 else
10537   need_locks=no
10538 fi
10539
10540
10541
10542
10543
10544
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10547
10548   runpath_var=
10549   allow_undefined_flag=
10550   always_export_symbols=no
10551   archive_cmds=
10552   archive_expsym_cmds=
10553   compiler_needs_object=no
10554   enable_shared_with_static_runtimes=no
10555   export_dynamic_flag_spec=
10556   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10557   hardcode_automatic=no
10558   hardcode_direct=no
10559   hardcode_direct_absolute=no
10560   hardcode_libdir_flag_spec=
10561   hardcode_libdir_separator=
10562   hardcode_minus_L=no
10563   hardcode_shlibpath_var=unsupported
10564   inherit_rpath=no
10565   link_all_deplibs=unknown
10566   module_cmds=
10567   module_expsym_cmds=
10568   old_archive_from_new_cmds=
10569   old_archive_from_expsyms_cmds=
10570   thread_safe_flag_spec=
10571   whole_archive_flag_spec=
10572   # include_expsyms should be a list of space-separated symbols to be *always*
10573   # included in the symbol list
10574   include_expsyms=
10575   # exclude_expsyms can be an extended regexp of symbols to exclude
10576   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10577   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10578   # as well as any symbol that contains 'd'.
10579   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10581   # platforms (ab)use it in PIC code, but their linkers get confused if
10582   # the symbol is explicitly referenced.  Since portable code cannot
10583   # rely on this symbol name, it's probably fine to never include it in
10584   # preloaded symbol tables.
10585   # Exclude shared library initialization/finalization symbols.
10586   extract_expsyms_cmds=
10587
10588   case $host_os in
10589   cygwin* | mingw* | pw32* | cegcc*)
10590     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10591     # When not using gcc, we currently assume that we are using
10592     # Microsoft Visual C++.
10593     if test yes != "$GCC"; then
10594       with_gnu_ld=no
10595     fi
10596     ;;
10597   interix*)
10598     # we just hope/assume this is gcc and not c89 (= MSVC++)
10599     with_gnu_ld=yes
10600     ;;
10601   openbsd* | bitrig*)
10602     with_gnu_ld=no
10603     ;;
10604   esac
10605
10606   ld_shlibs=yes
10607
10608   # On some targets, GNU ld is compatible enough with the native linker
10609   # that we're better off using the native interface for both.
10610   lt_use_gnu_ld_interface=no
10611   if test yes = "$with_gnu_ld"; then
10612     case $host_os in
10613       aix*)
10614         # The AIX port of GNU ld has always aspired to compatibility
10615         # with the native linker.  However, as the warning in the GNU ld
10616         # block says, versions before 2.19.5* couldn't really create working
10617         # shared libraries, regardless of the interface used.
10618         case `$LD -v 2>&1` in
10619           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10620           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10621           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10622           *)
10623             lt_use_gnu_ld_interface=yes
10624             ;;
10625         esac
10626         ;;
10627       *)
10628         lt_use_gnu_ld_interface=yes
10629         ;;
10630     esac
10631   fi
10632
10633   if test yes = "$lt_use_gnu_ld_interface"; then
10634     # If archive_cmds runs LD, not CC, wlarc should be empty
10635     wlarc='$wl'
10636
10637     # Set some defaults for GNU ld with shared library support. These
10638     # are reset later if shared libraries are not supported. Putting them
10639     # here allows them to be overridden if necessary.
10640     runpath_var=LD_RUN_PATH
10641     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10642     export_dynamic_flag_spec='$wl--export-dynamic'
10643     # ancient GNU ld didn't support --whole-archive et. al.
10644     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10645       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10646     else
10647       whole_archive_flag_spec=
10648     fi
10649     supports_anon_versioning=no
10650     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10651       *GNU\ gold*) supports_anon_versioning=yes ;;
10652       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10653       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10654       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10655       *\ 2.11.*) ;; # other 2.11 versions
10656       *) supports_anon_versioning=yes ;;
10657     esac
10658
10659     # See if GNU ld supports shared libraries.
10660     case $host_os in
10661     aix[3-9]*)
10662       # On AIX/PPC, the GNU linker is very broken
10663       if test ia64 != "$host_cpu"; then
10664         ld_shlibs=no
10665         cat <<_LT_EOF 1>&2
10666
10667 *** Warning: the GNU linker, at least up to release 2.19, is reported
10668 *** to be unable to reliably create shared libraries on AIX.
10669 *** Therefore, libtool is disabling shared libraries support.  If you
10670 *** really care for shared libraries, you may want to install binutils
10671 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10672 *** You will then need to restart the configuration process.
10673
10674 _LT_EOF
10675       fi
10676       ;;
10677
10678     amigaos*)
10679       case $host_cpu in
10680       powerpc)
10681             # see comment about AmigaOS4 .so support
10682             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10683             archive_expsym_cmds=''
10684         ;;
10685       m68k)
10686             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)'
10687             hardcode_libdir_flag_spec='-L$libdir'
10688             hardcode_minus_L=yes
10689         ;;
10690       esac
10691       ;;
10692
10693     beos*)
10694       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10695         allow_undefined_flag=unsupported
10696         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10697         # support --undefined.  This deserves some investigation.  FIXME
10698         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10699       else
10700         ld_shlibs=no
10701       fi
10702       ;;
10703
10704     cygwin* | mingw* | pw32* | cegcc*)
10705       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10706       # as there is no search path for DLLs.
10707       hardcode_libdir_flag_spec='-L$libdir'
10708       export_dynamic_flag_spec='$wl--export-all-symbols'
10709       allow_undefined_flag=unsupported
10710       always_export_symbols=no
10711       enable_shared_with_static_runtimes=yes
10712       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10713       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10714
10715       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10717         # If the export-symbols file already is a .def file, use it as
10718         # is; otherwise, prepend EXPORTS...
10719         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10720           cp $export_symbols $output_objdir/$soname.def;
10721         else
10722           echo EXPORTS > $output_objdir/$soname.def;
10723           cat $export_symbols >> $output_objdir/$soname.def;
10724         fi~
10725         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10726       else
10727         ld_shlibs=no
10728       fi
10729       ;;
10730
10731     haiku*)
10732       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10733       link_all_deplibs=yes
10734       ;;
10735
10736     os2*)
10737       hardcode_libdir_flag_spec='-L$libdir'
10738       hardcode_minus_L=yes
10739       allow_undefined_flag=unsupported
10740       shrext_cmds=.dll
10741       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10742         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10743         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10744         $ECHO EXPORTS >> $output_objdir/$libname.def~
10745         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10746         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10747         emximp -o $lib $output_objdir/$libname.def'
10748       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10749         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10750         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10751         $ECHO EXPORTS >> $output_objdir/$libname.def~
10752         prefix_cmds="$SED"~
10753         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10754           prefix_cmds="$prefix_cmds -e 1d";
10755         fi~
10756         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10757         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10758         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10759         emximp -o $lib $output_objdir/$libname.def'
10760       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10761       enable_shared_with_static_runtimes=yes
10762       ;;
10763
10764     interix[3-9]*)
10765       hardcode_direct=no
10766       hardcode_shlibpath_var=no
10767       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10768       export_dynamic_flag_spec='$wl-E'
10769       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10770       # Instead, shared libraries are loaded at an image base (0x10000000 by
10771       # default) and relocated if they conflict, which is a slow very memory
10772       # consuming and fragmenting process.  To avoid this, we pick a random,
10773       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10774       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10775       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10776       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'
10777       ;;
10778
10779     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10780       tmp_diet=no
10781       if test linux-dietlibc = "$host_os"; then
10782         case $cc_basename in
10783           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10784         esac
10785       fi
10786       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10787          && test no = "$tmp_diet"
10788       then
10789         tmp_addflag=' $pic_flag'
10790         tmp_sharedflag='-shared'
10791         case $cc_basename,$host_cpu in
10792         pgcc*)                          # Portland Group C compiler
10793           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'
10794           tmp_addflag=' $pic_flag'
10795           ;;
10796         pgf77* | pgf90* | pgf95* | pgfortran*)
10797                                         # Portland Group f77 and f90 compilers
10798           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'
10799           tmp_addflag=' $pic_flag -Mnomain' ;;
10800         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10801           tmp_addflag=' -i_dynamic' ;;
10802         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10803           tmp_addflag=' -i_dynamic -nofor_main' ;;
10804         ifc* | ifort*)                  # Intel Fortran compiler
10805           tmp_addflag=' -nofor_main' ;;
10806         lf95*)                          # Lahey Fortran 8.1
10807           whole_archive_flag_spec=
10808           tmp_sharedflag='--shared' ;;
10809         nagfor*)                        # NAGFOR 5.3
10810           tmp_sharedflag='-Wl,-shared' ;;
10811         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10812           tmp_sharedflag='-qmkshrobj'
10813           tmp_addflag= ;;
10814         nvcc*)  # Cuda Compiler Driver 2.2
10815           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'
10816           compiler_needs_object=yes
10817           ;;
10818         esac
10819         case `$CC -V 2>&1 | sed 5q` in
10820         *Sun\ C*)                       # Sun C 5.9
10821           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'
10822           compiler_needs_object=yes
10823           tmp_sharedflag='-G' ;;
10824         *Sun\ F*)                       # Sun Fortran 8.3
10825           tmp_sharedflag='-G' ;;
10826         esac
10827         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10828
10829         if test yes = "$supports_anon_versioning"; then
10830           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10831             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10832             echo "local: *; };" >> $output_objdir/$libname.ver~
10833             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10834         fi
10835
10836         case $cc_basename in
10837         tcc*)
10838           export_dynamic_flag_spec='-rdynamic'
10839           ;;
10840         xlf* | bgf* | bgxlf* | mpixlf*)
10841           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10842           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10843           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10844           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10845           if test yes = "$supports_anon_versioning"; then
10846             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10847               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10848               echo "local: *; };" >> $output_objdir/$libname.ver~
10849               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10850           fi
10851           ;;
10852         esac
10853       else
10854         ld_shlibs=no
10855       fi
10856       ;;
10857
10858     netbsd*)
10859       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10860         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10861         wlarc=
10862       else
10863         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10864         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10865       fi
10866       ;;
10867
10868     solaris*)
10869       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10870         ld_shlibs=no
10871         cat <<_LT_EOF 1>&2
10872
10873 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10874 *** create shared libraries on Solaris systems.  Therefore, libtool
10875 *** is disabling shared libraries support.  We urge you to upgrade GNU
10876 *** binutils to release 2.9.1 or newer.  Another option is to modify
10877 *** your PATH or compiler configuration so that the native linker is
10878 *** used, and then restart.
10879
10880 _LT_EOF
10881       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10882         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10883         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10884       else
10885         ld_shlibs=no
10886       fi
10887       ;;
10888
10889     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10890       case `$LD -v 2>&1` in
10891         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10892         ld_shlibs=no
10893         cat <<_LT_EOF 1>&2
10894
10895 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10896 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10897 *** is disabling shared libraries support.  We urge you to upgrade GNU
10898 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10899 *** your PATH or compiler configuration so that the native linker is
10900 *** used, and then restart.
10901
10902 _LT_EOF
10903         ;;
10904         *)
10905           # For security reasons, it is highly recommended that you always
10906           # use absolute paths for naming shared libraries, and exclude the
10907           # DT_RUNPATH tag from executables and libraries.  But doing so
10908           # requires that you compile everything twice, which is a pain.
10909           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10910             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10912             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10913           else
10914             ld_shlibs=no
10915           fi
10916         ;;
10917       esac
10918       ;;
10919
10920     sunos4*)
10921       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10922       wlarc=
10923       hardcode_direct=yes
10924       hardcode_shlibpath_var=no
10925       ;;
10926
10927     *)
10928       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10929         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10930         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10931       else
10932         ld_shlibs=no
10933       fi
10934       ;;
10935     esac
10936
10937     if test no = "$ld_shlibs"; then
10938       runpath_var=
10939       hardcode_libdir_flag_spec=
10940       export_dynamic_flag_spec=
10941       whole_archive_flag_spec=
10942     fi
10943   else
10944     # PORTME fill in a description of your system's linker (not GNU ld)
10945     case $host_os in
10946     aix3*)
10947       allow_undefined_flag=unsupported
10948       always_export_symbols=yes
10949       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'
10950       # Note: this linker hardcodes the directories in LIBPATH if there
10951       # are no directories specified by -L.
10952       hardcode_minus_L=yes
10953       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10954         # Neither direct hardcoding nor static linking is supported with a
10955         # broken collect2.
10956         hardcode_direct=unsupported
10957       fi
10958       ;;
10959
10960     aix[4-9]*)
10961       if test ia64 = "$host_cpu"; then
10962         # On IA64, the linker does run time linking by default, so we don't
10963         # have to do anything special.
10964         aix_use_runtimelinking=no
10965         exp_sym_flag='-Bexport'
10966         no_entry_flag=
10967       else
10968         # If we're using GNU nm, then we don't want the "-C" option.
10969         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10970         # Without the "-l" option, or with the "-B" option, AIX nm treats
10971         # weak defined symbols like other global defined symbols, whereas
10972         # GNU nm marks them as "W".
10973         # While the 'weak' keyword is ignored in the Export File, we need
10974         # it in the Import File for the 'aix-soname' feature, so we have
10975         # to replace the "-B" option with "-P" for AIX nm.
10976         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10977           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10978         else
10979           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10980         fi
10981         aix_use_runtimelinking=no
10982
10983         # Test if we are trying to use run time linking or normal
10984         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10985         # have runtime linking enabled, and use it for executables.
10986         # For shared libraries, we enable/disable runtime linking
10987         # depending on the kind of the shared library created -
10988         # when "with_aix_soname,aix_use_runtimelinking" is:
10989         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10990         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10991         #            lib.a           static archive
10992         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10993         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10994         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10995         #            lib.a(lib.so.V) shared, rtl:no
10996         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10997         #            lib.a           static archive
10998         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10999           for ld_flag in $LDFLAGS; do
11000           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11001             aix_use_runtimelinking=yes
11002             break
11003           fi
11004           done
11005           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11006             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11007             # so we don't have lib.a shared libs to link our executables.
11008             # We have to force runtime linking in this case.
11009             aix_use_runtimelinking=yes
11010             LDFLAGS="$LDFLAGS -Wl,-brtl"
11011           fi
11012           ;;
11013         esac
11014
11015         exp_sym_flag='-bexport'
11016         no_entry_flag='-bnoentry'
11017       fi
11018
11019       # When large executables or shared objects are built, AIX ld can
11020       # have problems creating the table of contents.  If linking a library
11021       # or program results in "error TOC overflow" add -mminimal-toc to
11022       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11023       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11024
11025       archive_cmds=''
11026       hardcode_direct=yes
11027       hardcode_direct_absolute=yes
11028       hardcode_libdir_separator=':'
11029       link_all_deplibs=yes
11030       file_list_spec='$wl-f,'
11031       case $with_aix_soname,$aix_use_runtimelinking in
11032       aix,*) ;; # traditional, no import file
11033       svr4,* | *,yes) # use import file
11034         # The Import File defines what to hardcode.
11035         hardcode_direct=no
11036         hardcode_direct_absolute=no
11037         ;;
11038       esac
11039
11040       if test yes = "$GCC"; then
11041         case $host_os in aix4.[012]|aix4.[012].*)
11042         # We only want to do this on AIX 4.2 and lower, the check
11043         # below for broken collect2 doesn't work under 4.3+
11044           collect2name=`$CC -print-prog-name=collect2`
11045           if test -f "$collect2name" &&
11046            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11047           then
11048           # We have reworked collect2
11049           :
11050           else
11051           # We have old collect2
11052           hardcode_direct=unsupported
11053           # It fails to find uninstalled libraries when the uninstalled
11054           # path is not listed in the libpath.  Setting hardcode_minus_L
11055           # to unsupported forces relinking
11056           hardcode_minus_L=yes
11057           hardcode_libdir_flag_spec='-L$libdir'
11058           hardcode_libdir_separator=
11059           fi
11060           ;;
11061         esac
11062         shared_flag='-shared'
11063         if test yes = "$aix_use_runtimelinking"; then
11064           shared_flag="$shared_flag "'$wl-G'
11065         fi
11066         # Need to ensure runtime linking is disabled for the traditional
11067         # shared library, or the linker may eventually find shared libraries
11068         # /with/ Import File - we do not want to mix them.
11069         shared_flag_aix='-shared'
11070         shared_flag_svr4='-shared $wl-G'
11071       else
11072         # not using gcc
11073         if test ia64 = "$host_cpu"; then
11074         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11075         # chokes on -Wl,-G. The following line is correct:
11076           shared_flag='-G'
11077         else
11078           if test yes = "$aix_use_runtimelinking"; then
11079             shared_flag='$wl-G'
11080           else
11081             shared_flag='$wl-bM:SRE'
11082           fi
11083           shared_flag_aix='$wl-bM:SRE'
11084           shared_flag_svr4='$wl-G'
11085         fi
11086       fi
11087
11088       export_dynamic_flag_spec='$wl-bexpall'
11089       # It seems that -bexpall does not export symbols beginning with
11090       # underscore (_), so it is better to generate a list of symbols to export.
11091       always_export_symbols=yes
11092       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11093         # Warning - without using the other runtime loading flags (-brtl),
11094         # -berok will link without error, but may produce a broken library.
11095         allow_undefined_flag='-berok'
11096         # Determine the default libpath from the value encoded in an
11097         # empty executable.
11098         if test set = "${lt_cv_aix_libpath+set}"; then
11099   aix_libpath=$lt_cv_aix_libpath
11100 else
11101   if ${lt_cv_aix_libpath_+:} false; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106
11107 int
11108 main ()
11109 {
11110
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116
11117   lt_aix_libpath_sed='
11118       /Import File Strings/,/^$/ {
11119           /^0/ {
11120               s/^0  *\([^ ]*\) *$/\1/
11121               p
11122           }
11123       }'
11124   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11125   # Check for a 64-bit object if we didn't find anything.
11126   if test -z "$lt_cv_aix_libpath_"; then
11127     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11128   fi
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext \
11131     conftest$ac_exeext conftest.$ac_ext
11132   if test -z "$lt_cv_aix_libpath_"; then
11133     lt_cv_aix_libpath_=/usr/lib:/lib
11134   fi
11135
11136 fi
11137
11138   aix_libpath=$lt_cv_aix_libpath_
11139 fi
11140
11141         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11142         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11143       else
11144         if test ia64 = "$host_cpu"; then
11145           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11146           allow_undefined_flag="-z nodefs"
11147           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"
11148         else
11149          # Determine the default libpath from the value encoded in an
11150          # empty executable.
11151          if test set = "${lt_cv_aix_libpath+set}"; then
11152   aix_libpath=$lt_cv_aix_libpath
11153 else
11154   if ${lt_cv_aix_libpath_+:} false; then :
11155   $as_echo_n "(cached) " >&6
11156 else
11157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 int
11161 main ()
11162 {
11163
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169
11170   lt_aix_libpath_sed='
11171       /Import File Strings/,/^$/ {
11172           /^0/ {
11173               s/^0  *\([^ ]*\) *$/\1/
11174               p
11175           }
11176       }'
11177   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178   # Check for a 64-bit object if we didn't find anything.
11179   if test -z "$lt_cv_aix_libpath_"; then
11180     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11181   fi
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185   if test -z "$lt_cv_aix_libpath_"; then
11186     lt_cv_aix_libpath_=/usr/lib:/lib
11187   fi
11188
11189 fi
11190
11191   aix_libpath=$lt_cv_aix_libpath_
11192 fi
11193
11194          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11195           # Warning - without using the other run time loading flags,
11196           # -berok will link without error, but may produce a broken library.
11197           no_undefined_flag=' $wl-bernotok'
11198           allow_undefined_flag=' $wl-berok'
11199           if test yes = "$with_gnu_ld"; then
11200             # We only use this code for GNU lds that support --whole-archive.
11201             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11202           else
11203             # Exported symbols can be pulled into shared objects from archives
11204             whole_archive_flag_spec='$convenience'
11205           fi
11206           archive_cmds_need_lc=yes
11207           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11208           # -brtl affects multiple linker settings, -berok does not and is overridden later
11209           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11210           if test svr4 != "$with_aix_soname"; then
11211             # This is similar to how AIX traditionally builds its shared libraries.
11212             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11213           fi
11214           if test aix != "$with_aix_soname"; then
11215             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11216           else
11217             # used by -dlpreopen to get the symbols
11218             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11219           fi
11220           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11221         fi
11222       fi
11223       ;;
11224
11225     amigaos*)
11226       case $host_cpu in
11227       powerpc)
11228             # see comment about AmigaOS4 .so support
11229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11230             archive_expsym_cmds=''
11231         ;;
11232       m68k)
11233             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)'
11234             hardcode_libdir_flag_spec='-L$libdir'
11235             hardcode_minus_L=yes
11236         ;;
11237       esac
11238       ;;
11239
11240     bsdi[45]*)
11241       export_dynamic_flag_spec=-rdynamic
11242       ;;
11243
11244     cygwin* | mingw* | pw32* | cegcc*)
11245       # When not using gcc, we currently assume that we are using
11246       # Microsoft Visual C++.
11247       # hardcode_libdir_flag_spec is actually meaningless, as there is
11248       # no search path for DLLs.
11249       case $cc_basename in
11250       cl*)
11251         # Native MSVC
11252         hardcode_libdir_flag_spec=' '
11253         allow_undefined_flag=unsupported
11254         always_export_symbols=yes
11255         file_list_spec='@'
11256         # Tell ltmain to make .lib files, not .a files.
11257         libext=lib
11258         # Tell ltmain to make .dll files, not .so files.
11259         shrext_cmds=.dll
11260         # FIXME: Setting linknames here is a bad hack.
11261         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11262         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11263             cp "$export_symbols" "$output_objdir/$soname.def";
11264             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11265           else
11266             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11267           fi~
11268           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11269           linknames='
11270         # The linker will not automatically build a static lib if we build a DLL.
11271         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11272         enable_shared_with_static_runtimes=yes
11273         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11274         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11275         # Don't use ranlib
11276         old_postinstall_cmds='chmod 644 $oldlib'
11277         postlink_cmds='lt_outputfile="@OUTPUT@"~
11278           lt_tool_outputfile="@TOOL_OUTPUT@"~
11279           case $lt_outputfile in
11280             *.exe|*.EXE) ;;
11281             *)
11282               lt_outputfile=$lt_outputfile.exe
11283               lt_tool_outputfile=$lt_tool_outputfile.exe
11284               ;;
11285           esac~
11286           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11287             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11288             $RM "$lt_outputfile.manifest";
11289           fi'
11290         ;;
11291       *)
11292         # Assume MSVC wrapper
11293         hardcode_libdir_flag_spec=' '
11294         allow_undefined_flag=unsupported
11295         # Tell ltmain to make .lib files, not .a files.
11296         libext=lib
11297         # Tell ltmain to make .dll files, not .so files.
11298         shrext_cmds=.dll
11299         # FIXME: Setting linknames here is a bad hack.
11300         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11301         # The linker will automatically build a .lib file if we build a DLL.
11302         old_archive_from_new_cmds='true'
11303         # FIXME: Should let the user specify the lib program.
11304         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11305         enable_shared_with_static_runtimes=yes
11306         ;;
11307       esac
11308       ;;
11309
11310     darwin* | rhapsody*)
11311
11312
11313   archive_cmds_need_lc=no
11314   hardcode_direct=no
11315   hardcode_automatic=yes
11316   hardcode_shlibpath_var=unsupported
11317   if test yes = "$lt_cv_ld_force_load"; then
11318     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\"`'
11319
11320   else
11321     whole_archive_flag_spec=''
11322   fi
11323   link_all_deplibs=yes
11324   allow_undefined_flag=$_lt_dar_allow_undefined
11325   case $cc_basename in
11326      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11327      *) _lt_dar_can_shared=$GCC ;;
11328   esac
11329   if test yes = "$_lt_dar_can_shared"; then
11330     output_verbose_link_cmd=func_echo_all
11331     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11332     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11333     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"
11334     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"
11335
11336   else
11337   ld_shlibs=no
11338   fi
11339
11340       ;;
11341
11342     dgux*)
11343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344       hardcode_libdir_flag_spec='-L$libdir'
11345       hardcode_shlibpath_var=no
11346       ;;
11347
11348     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11349     # support.  Future versions do this automatically, but an explicit c++rt0.o
11350     # does not break anything, and helps significantly (at the cost of a little
11351     # extra space).
11352     freebsd2.2*)
11353       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11354       hardcode_libdir_flag_spec='-R$libdir'
11355       hardcode_direct=yes
11356       hardcode_shlibpath_var=no
11357       ;;
11358
11359     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11360     freebsd2.*)
11361       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11362       hardcode_direct=yes
11363       hardcode_minus_L=yes
11364       hardcode_shlibpath_var=no
11365       ;;
11366
11367     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11368     freebsd* | dragonfly*)
11369       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370       hardcode_libdir_flag_spec='-R$libdir'
11371       hardcode_direct=yes
11372       hardcode_shlibpath_var=no
11373       ;;
11374
11375     hpux9*)
11376       if test yes = "$GCC"; then
11377         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11378       else
11379         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11380       fi
11381       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11382       hardcode_libdir_separator=:
11383       hardcode_direct=yes
11384
11385       # hardcode_minus_L: Not really in the search PATH,
11386       # but as the default location of the library.
11387       hardcode_minus_L=yes
11388       export_dynamic_flag_spec='$wl-E'
11389       ;;
11390
11391     hpux10*)
11392       if test yes,no = "$GCC,$with_gnu_ld"; then
11393         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11394       else
11395         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11396       fi
11397       if test no = "$with_gnu_ld"; then
11398         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11399         hardcode_libdir_separator=:
11400         hardcode_direct=yes
11401         hardcode_direct_absolute=yes
11402         export_dynamic_flag_spec='$wl-E'
11403         # hardcode_minus_L: Not really in the search PATH,
11404         # but as the default location of the library.
11405         hardcode_minus_L=yes
11406       fi
11407       ;;
11408
11409     hpux11*)
11410       if test yes,no = "$GCC,$with_gnu_ld"; then
11411         case $host_cpu in
11412         hppa*64*)
11413           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11414           ;;
11415         ia64*)
11416           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11417           ;;
11418         *)
11419           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11420           ;;
11421         esac
11422       else
11423         case $host_cpu in
11424         hppa*64*)
11425           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11426           ;;
11427         ia64*)
11428           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11429           ;;
11430         *)
11431
11432           # Older versions of the 11.00 compiler do not understand -b yet
11433           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11434           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11435 $as_echo_n "checking if $CC understands -b... " >&6; }
11436 if ${lt_cv_prog_compiler__b+:} false; then :
11437   $as_echo_n "(cached) " >&6
11438 else
11439   lt_cv_prog_compiler__b=no
11440    save_LDFLAGS=$LDFLAGS
11441    LDFLAGS="$LDFLAGS -b"
11442    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11443    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11444      # The linker can only warn and ignore the option if not recognized
11445      # So say no if there are warnings
11446      if test -s conftest.err; then
11447        # Append any errors to the config.log.
11448        cat conftest.err 1>&5
11449        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11450        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11451        if diff conftest.exp conftest.er2 >/dev/null; then
11452          lt_cv_prog_compiler__b=yes
11453        fi
11454      else
11455        lt_cv_prog_compiler__b=yes
11456      fi
11457    fi
11458    $RM -r conftest*
11459    LDFLAGS=$save_LDFLAGS
11460
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11464
11465 if test yes = "$lt_cv_prog_compiler__b"; then
11466     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11467 else
11468     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11469 fi
11470
11471           ;;
11472         esac
11473       fi
11474       if test no = "$with_gnu_ld"; then
11475         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11476         hardcode_libdir_separator=:
11477
11478         case $host_cpu in
11479         hppa*64*|ia64*)
11480           hardcode_direct=no
11481           hardcode_shlibpath_var=no
11482           ;;
11483         *)
11484           hardcode_direct=yes
11485           hardcode_direct_absolute=yes
11486           export_dynamic_flag_spec='$wl-E'
11487
11488           # hardcode_minus_L: Not really in the search PATH,
11489           # but as the default location of the library.
11490           hardcode_minus_L=yes
11491           ;;
11492         esac
11493       fi
11494       ;;
11495
11496     irix5* | irix6* | nonstopux*)
11497       if test yes = "$GCC"; then
11498         archive_cmds='$CC -shared $pic_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'
11499         # Try to use the -exported_symbol ld option, if it does not
11500         # work, assume that -exports_file does not work either and
11501         # implicitly export all symbols.
11502         # This should be the same for all languages, so no per-tag cache variable.
11503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11504 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11505 if ${lt_cv_irix_exported_symbol+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   save_LDFLAGS=$LDFLAGS
11509            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11510            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h.  */
11512 int foo (void) { return 0; }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515   lt_cv_irix_exported_symbol=yes
11516 else
11517   lt_cv_irix_exported_symbol=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520     conftest$ac_exeext conftest.$ac_ext
11521            LDFLAGS=$save_LDFLAGS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11524 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11525         if test yes = "$lt_cv_irix_exported_symbol"; then
11526           archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
11527         fi
11528       else
11529         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'
11530         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'
11531       fi
11532       archive_cmds_need_lc='no'
11533       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11534       hardcode_libdir_separator=:
11535       inherit_rpath=yes
11536       link_all_deplibs=yes
11537       ;;
11538
11539     linux*)
11540       case $cc_basename in
11541       tcc*)
11542         # Fabrice Bellard et al's Tiny C Compiler
11543         ld_shlibs=yes
11544         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11545         ;;
11546       esac
11547       ;;
11548
11549     netbsd*)
11550       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11551         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11552       else
11553         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11554       fi
11555       hardcode_libdir_flag_spec='-R$libdir'
11556       hardcode_direct=yes
11557       hardcode_shlibpath_var=no
11558       ;;
11559
11560     newsos6)
11561       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11562       hardcode_direct=yes
11563       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11564       hardcode_libdir_separator=:
11565       hardcode_shlibpath_var=no
11566       ;;
11567
11568     *nto* | *qnx*)
11569       ;;
11570
11571     openbsd* | bitrig*)
11572       if test -f /usr/libexec/ld.so; then
11573         hardcode_direct=yes
11574         hardcode_shlibpath_var=no
11575         hardcode_direct_absolute=yes
11576         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11577           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11578           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11579           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11580           export_dynamic_flag_spec='$wl-E'
11581         else
11582           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11583           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11584         fi
11585       else
11586         ld_shlibs=no
11587       fi
11588       ;;
11589
11590     os2*)
11591       hardcode_libdir_flag_spec='-L$libdir'
11592       hardcode_minus_L=yes
11593       allow_undefined_flag=unsupported
11594       shrext_cmds=.dll
11595       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11596         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11597         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11598         $ECHO EXPORTS >> $output_objdir/$libname.def~
11599         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11600         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11601         emximp -o $lib $output_objdir/$libname.def'
11602       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11603         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11604         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11605         $ECHO EXPORTS >> $output_objdir/$libname.def~
11606         prefix_cmds="$SED"~
11607         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11608           prefix_cmds="$prefix_cmds -e 1d";
11609         fi~
11610         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11611         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11612         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11613         emximp -o $lib $output_objdir/$libname.def'
11614       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11615       enable_shared_with_static_runtimes=yes
11616       ;;
11617
11618     osf3*)
11619       if test yes = "$GCC"; then
11620         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11621         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'
11622       else
11623         allow_undefined_flag=' -expect_unresolved \*'
11624         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'
11625       fi
11626       archive_cmds_need_lc='no'
11627       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11628       hardcode_libdir_separator=:
11629       ;;
11630
11631     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11632       if test yes = "$GCC"; then
11633         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11634         archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
11635         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11636       else
11637         allow_undefined_flag=' -expect_unresolved \*'
11638         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'
11639         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~
11640           $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'
11641
11642         # Both c and cxx compiler support -rpath directly
11643         hardcode_libdir_flag_spec='-rpath $libdir'
11644       fi
11645       archive_cmds_need_lc='no'
11646       hardcode_libdir_separator=:
11647       ;;
11648
11649     solaris*)
11650       no_undefined_flag=' -z defs'
11651       if test yes = "$GCC"; then
11652         wlarc='$wl'
11653         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11654         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11655           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11656       else
11657         case `$CC -V 2>&1` in
11658         *"Compilers 5.0"*)
11659           wlarc=''
11660           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11661           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11662             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11663           ;;
11664         *)
11665           wlarc='$wl'
11666           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11667           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11668             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11669           ;;
11670         esac
11671       fi
11672       hardcode_libdir_flag_spec='-R$libdir'
11673       hardcode_shlibpath_var=no
11674       case $host_os in
11675       solaris2.[0-5] | solaris2.[0-5].*) ;;
11676       *)
11677         # The compiler driver will combine and reorder linker options,
11678         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11679         # but is careful enough not to reorder.
11680         # Supported since Solaris 2.6 (maybe 2.5.1?)
11681         if test yes = "$GCC"; then
11682           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11683         else
11684           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11685         fi
11686         ;;
11687       esac
11688       link_all_deplibs=yes
11689       ;;
11690
11691     sunos4*)
11692       if test sequent = "$host_vendor"; then
11693         # Use $CC to link under sequent, because it throws in some extra .o
11694         # files that make .init and .fini sections work.
11695         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11696       else
11697         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11698       fi
11699       hardcode_libdir_flag_spec='-L$libdir'
11700       hardcode_direct=yes
11701       hardcode_minus_L=yes
11702       hardcode_shlibpath_var=no
11703       ;;
11704
11705     sysv4)
11706       case $host_vendor in
11707         sni)
11708           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11709           hardcode_direct=yes # is this really true???
11710         ;;
11711         siemens)
11712           ## LD is ld it makes a PLAMLIB
11713           ## CC just makes a GrossModule.
11714           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11715           reload_cmds='$CC -r -o $output$reload_objs'
11716           hardcode_direct=no
11717         ;;
11718         motorola)
11719           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11720           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11721         ;;
11722       esac
11723       runpath_var='LD_RUN_PATH'
11724       hardcode_shlibpath_var=no
11725       ;;
11726
11727     sysv4.3*)
11728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729       hardcode_shlibpath_var=no
11730       export_dynamic_flag_spec='-Bexport'
11731       ;;
11732
11733     sysv4*MP*)
11734       if test -d /usr/nec; then
11735         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11736         hardcode_shlibpath_var=no
11737         runpath_var=LD_RUN_PATH
11738         hardcode_runpath_var=yes
11739         ld_shlibs=yes
11740       fi
11741       ;;
11742
11743     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11744       no_undefined_flag='$wl-z,text'
11745       archive_cmds_need_lc=no
11746       hardcode_shlibpath_var=no
11747       runpath_var='LD_RUN_PATH'
11748
11749       if test yes = "$GCC"; then
11750         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752       else
11753         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755       fi
11756       ;;
11757
11758     sysv5* | sco3.2v5* | sco5v6*)
11759       # Note: We CANNOT use -z defs as we might desire, because we do not
11760       # link with -lc, and that would cause any symbols used from libc to
11761       # always be unresolved, which means just about no library would
11762       # ever link correctly.  If we're not using GNU ld we use -z text
11763       # though, which does catch some bad symbols but isn't as heavy-handed
11764       # as -z defs.
11765       no_undefined_flag='$wl-z,text'
11766       allow_undefined_flag='$wl-z,nodefs'
11767       archive_cmds_need_lc=no
11768       hardcode_shlibpath_var=no
11769       hardcode_libdir_flag_spec='$wl-R,$libdir'
11770       hardcode_libdir_separator=':'
11771       link_all_deplibs=yes
11772       export_dynamic_flag_spec='$wl-Bexport'
11773       runpath_var='LD_RUN_PATH'
11774
11775       if test yes = "$GCC"; then
11776         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11777         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778       else
11779         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781       fi
11782       ;;
11783
11784     uts4*)
11785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11786       hardcode_libdir_flag_spec='-L$libdir'
11787       hardcode_shlibpath_var=no
11788       ;;
11789
11790     *)
11791       ld_shlibs=no
11792       ;;
11793     esac
11794
11795     if test sni = "$host_vendor"; then
11796       case $host in
11797       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11798         export_dynamic_flag_spec='$wl-Blargedynsym'
11799         ;;
11800       esac
11801     fi
11802   fi
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11805 $as_echo "$ld_shlibs" >&6; }
11806 test no = "$ld_shlibs" && can_build_shared=no
11807
11808 with_gnu_ld=$with_gnu_ld
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824 #
11825 # Do we need to explicitly link libc?
11826 #
11827 case "x$archive_cmds_need_lc" in
11828 x|xyes)
11829   # Assume -lc should be added
11830   archive_cmds_need_lc=yes
11831
11832   if test yes,yes = "$GCC,$enable_shared"; then
11833     case $archive_cmds in
11834     *'~'*)
11835       # FIXME: we may have to deal with multi-command sequences.
11836       ;;
11837     '$CC '*)
11838       # Test whether the compiler implicitly links with -lc since on some
11839       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11840       # to ld, don't add -lc before -lgcc.
11841       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11842 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11843 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   $RM conftest*
11847         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11848
11849         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11850   (eval $ac_compile) 2>&5
11851   ac_status=$?
11852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853   test $ac_status = 0; } 2>conftest.err; then
11854           soname=conftest
11855           lib=conftest
11856           libobjs=conftest.$ac_objext
11857           deplibs=
11858           wl=$lt_prog_compiler_wl
11859           pic_flag=$lt_prog_compiler_pic
11860           compiler_flags=-v
11861           linker_flags=-v
11862           verstring=
11863           output_objdir=.
11864           libname=conftest
11865           lt_save_allow_undefined_flag=$allow_undefined_flag
11866           allow_undefined_flag=
11867           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11868   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11869   ac_status=$?
11870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11871   test $ac_status = 0; }
11872           then
11873             lt_cv_archive_cmds_need_lc=no
11874           else
11875             lt_cv_archive_cmds_need_lc=yes
11876           fi
11877           allow_undefined_flag=$lt_save_allow_undefined_flag
11878         else
11879           cat conftest.err 1>&5
11880         fi
11881         $RM conftest*
11882
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11885 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11886       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11887       ;;
11888     esac
11889   fi
11890   ;;
11891 esac
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12045 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12046
12047 if test yes = "$GCC"; then
12048   case $host_os in
12049     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12050     *) lt_awk_arg='/^libraries:/' ;;
12051   esac
12052   case $host_os in
12053     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12054     *) lt_sed_strip_eq='s|=/|/|g' ;;
12055   esac
12056   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12057   case $lt_search_path_spec in
12058   *\;*)
12059     # if the path contains ";" then we assume it to be the separator
12060     # otherwise default to the standard path separator (i.e. ":") - it is
12061     # assumed that no part of a normal pathname contains ";" but that should
12062     # okay in the real world where ";" in dirpaths is itself problematic.
12063     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12064     ;;
12065   *)
12066     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12067     ;;
12068   esac
12069   # Ok, now we have the path, separated by spaces, we can step through it
12070   # and add multilib dir if necessary...
12071   lt_tmp_lt_search_path_spec=
12072   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12073   # ...but if some path component already ends with the multilib dir we assume
12074   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12075   case "$lt_multi_os_dir; $lt_search_path_spec " in
12076   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12077     lt_multi_os_dir=
12078     ;;
12079   esac
12080   for lt_sys_path in $lt_search_path_spec; do
12081     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12082       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12083     elif test -n "$lt_multi_os_dir"; then
12084       test -d "$lt_sys_path" && \
12085         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12086     fi
12087   done
12088   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12089 BEGIN {RS = " "; FS = "/|\n";} {
12090   lt_foo = "";
12091   lt_count = 0;
12092   for (lt_i = NF; lt_i > 0; lt_i--) {
12093     if ($lt_i != "" && $lt_i != ".") {
12094       if ($lt_i == "..") {
12095         lt_count++;
12096       } else {
12097         if (lt_count == 0) {
12098           lt_foo = "/" $lt_i lt_foo;
12099         } else {
12100           lt_count--;
12101         }
12102       }
12103     }
12104   }
12105   if (lt_foo != "") { lt_freq[lt_foo]++; }
12106   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12107 }'`
12108   # AWK program above erroneously prepends '/' to C:/dos/paths
12109   # for these hosts.
12110   case $host_os in
12111     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12112       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12113   esac
12114   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12115 else
12116   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12117 fi
12118 library_names_spec=
12119 libname_spec='lib$name'
12120 soname_spec=
12121 shrext_cmds=.so
12122 postinstall_cmds=
12123 postuninstall_cmds=
12124 finish_cmds=
12125 finish_eval=
12126 shlibpath_var=
12127 shlibpath_overrides_runpath=unknown
12128 version_type=none
12129 dynamic_linker="$host_os ld.so"
12130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12131 need_lib_prefix=unknown
12132 hardcode_into_libs=no
12133
12134 # when you set need_version to no, make sure it does not cause -set_version
12135 # flags to be left without arguments
12136 need_version=unknown
12137
12138
12139
12140 case $host_os in
12141 aix3*)
12142   version_type=linux # correct to gnu/linux during the next big refactor
12143   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12144   shlibpath_var=LIBPATH
12145
12146   # AIX 3 has no versioning support, so we append a major version to the name.
12147   soname_spec='$libname$release$shared_ext$major'
12148   ;;
12149
12150 aix[4-9]*)
12151   version_type=linux # correct to gnu/linux during the next big refactor
12152   need_lib_prefix=no
12153   need_version=no
12154   hardcode_into_libs=yes
12155   if test ia64 = "$host_cpu"; then
12156     # AIX 5 supports IA64
12157     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12158     shlibpath_var=LD_LIBRARY_PATH
12159   else
12160     # With GCC up to 2.95.x, collect2 would create an import file
12161     # for dependence libraries.  The import file would start with
12162     # the line '#! .'.  This would cause the generated library to
12163     # depend on '.', always an invalid library.  This was fixed in
12164     # development snapshots of GCC prior to 3.0.
12165     case $host_os in
12166       aix4 | aix4.[01] | aix4.[01].*)
12167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12168            echo ' yes '
12169            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12170         :
12171       else
12172         can_build_shared=no
12173       fi
12174       ;;
12175     esac
12176     # Using Import Files as archive members, it is possible to support
12177     # filename-based versioning of shared library archives on AIX. While
12178     # this would work for both with and without runtime linking, it will
12179     # prevent static linking of such archives. So we do filename-based
12180     # shared library versioning with .so extension only, which is used
12181     # when both runtime linking and shared linking is enabled.
12182     # Unfortunately, runtime linking may impact performance, so we do
12183     # not want this to be the default eventually. Also, we use the
12184     # versioned .so libs for executables only if there is the -brtl
12185     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12186     # To allow for filename-based versioning support, we need to create
12187     # libNAME.so.V as an archive file, containing:
12188     # *) an Import File, referring to the versioned filename of the
12189     #    archive as well as the shared archive member, telling the
12190     #    bitwidth (32 or 64) of that shared object, and providing the
12191     #    list of exported symbols of that shared object, eventually
12192     #    decorated with the 'weak' keyword
12193     # *) the shared object with the F_LOADONLY flag set, to really avoid
12194     #    it being seen by the linker.
12195     # At run time we better use the real file rather than another symlink,
12196     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12197
12198     case $with_aix_soname,$aix_use_runtimelinking in
12199     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12200     # soname into executable. Probably we can add versioning support to
12201     # collect2, so additional links can be useful in future.
12202     aix,yes) # traditional libtool
12203       dynamic_linker='AIX unversionable lib.so'
12204       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12205       # instead of lib<name>.a to let people know that these are not
12206       # typical AIX shared libraries.
12207       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12208       ;;
12209     aix,no) # traditional AIX only
12210       dynamic_linker='AIX lib.a(lib.so.V)'
12211       # We preserve .a as extension for shared libraries through AIX4.2
12212       # and later when we are not doing run time linking.
12213       library_names_spec='$libname$release.a $libname.a'
12214       soname_spec='$libname$release$shared_ext$major'
12215       ;;
12216     svr4,*) # full svr4 only
12217       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12218       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12219       # We do not specify a path in Import Files, so LIBPATH fires.
12220       shlibpath_overrides_runpath=yes
12221       ;;
12222     *,yes) # both, prefer svr4
12223       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12224       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12225       # unpreferred sharedlib libNAME.a needs extra handling
12226       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12227       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12228       # We do not specify a path in Import Files, so LIBPATH fires.
12229       shlibpath_overrides_runpath=yes
12230       ;;
12231     *,no) # both, prefer aix
12232       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12233       library_names_spec='$libname$release.a $libname.a'
12234       soname_spec='$libname$release$shared_ext$major'
12235       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12236       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12237       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12238       ;;
12239     esac
12240     shlibpath_var=LIBPATH
12241   fi
12242   ;;
12243
12244 amigaos*)
12245   case $host_cpu in
12246   powerpc)
12247     # Since July 2007 AmigaOS4 officially supports .so libraries.
12248     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12249     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250     ;;
12251   m68k)
12252     library_names_spec='$libname.ixlibrary $libname.a'
12253     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12254     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12255     ;;
12256   esac
12257   ;;
12258
12259 beos*)
12260   library_names_spec='$libname$shared_ext'
12261   dynamic_linker="$host_os ld.so"
12262   shlibpath_var=LIBRARY_PATH
12263   ;;
12264
12265 bsdi[45]*)
12266   version_type=linux # correct to gnu/linux during the next big refactor
12267   need_version=no
12268   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12269   soname_spec='$libname$release$shared_ext$major'
12270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12271   shlibpath_var=LD_LIBRARY_PATH
12272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12274   # the default ld.so.conf also contains /usr/contrib/lib and
12275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12276   # libtool to hard-code these into programs
12277   ;;
12278
12279 cygwin* | mingw* | pw32* | cegcc*)
12280   version_type=windows
12281   shrext_cmds=.dll
12282   need_version=no
12283   need_lib_prefix=no
12284
12285   case $GCC,$cc_basename in
12286   yes,*)
12287     # gcc
12288     library_names_spec='$libname.dll.a'
12289     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290     postinstall_cmds='base_file=`basename \$file`~
12291       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12292       dldir=$destdir/`dirname \$dlpath`~
12293       test -d \$dldir || mkdir -p \$dldir~
12294       $install_prog $dir/$dlname \$dldir/$dlname~
12295       chmod a+x \$dldir/$dlname~
12296       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12297         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12298       fi'
12299     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12300       dlpath=$dir/\$dldll~
12301        $RM \$dlpath'
12302     shlibpath_overrides_runpath=yes
12303
12304     case $host_os in
12305     cygwin*)
12306       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12307       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12308
12309       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12310       ;;
12311     mingw* | cegcc*)
12312       # MinGW DLLs use traditional 'lib' prefix
12313       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12314       ;;
12315     pw32*)
12316       # pw32 DLLs use 'pw' prefix rather than 'lib'
12317       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12318       ;;
12319     esac
12320     dynamic_linker='Win32 ld.exe'
12321     ;;
12322
12323   *,cl*)
12324     # Native MSVC
12325     libname_spec='$name'
12326     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12327     library_names_spec='$libname.dll.lib'
12328
12329     case $build_os in
12330     mingw*)
12331       sys_lib_search_path_spec=
12332       lt_save_ifs=$IFS
12333       IFS=';'
12334       for lt_path in $LIB
12335       do
12336         IFS=$lt_save_ifs
12337         # Let DOS variable expansion print the short 8.3 style file name.
12338         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12339         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12340       done
12341       IFS=$lt_save_ifs
12342       # Convert to MSYS style.
12343       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12344       ;;
12345     cygwin*)
12346       # Convert to unix form, then to dos form, then back to unix form
12347       # but this time dos style (no spaces!) so that the unix form looks
12348       # like /cygdrive/c/PROGRA~1:/cygdr...
12349       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12350       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12351       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12352       ;;
12353     *)
12354       sys_lib_search_path_spec=$LIB
12355       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12356         # It is most probably a Windows format PATH.
12357         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12358       else
12359         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12360       fi
12361       # FIXME: find the short name or the path components, as spaces are
12362       # common. (e.g. "Program Files" -> "PROGRA~1")
12363       ;;
12364     esac
12365
12366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12367     postinstall_cmds='base_file=`basename \$file`~
12368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12369       dldir=$destdir/`dirname \$dlpath`~
12370       test -d \$dldir || mkdir -p \$dldir~
12371       $install_prog $dir/$dlname \$dldir/$dlname'
12372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12373       dlpath=$dir/\$dldll~
12374        $RM \$dlpath'
12375     shlibpath_overrides_runpath=yes
12376     dynamic_linker='Win32 link.exe'
12377     ;;
12378
12379   *)
12380     # Assume MSVC wrapper
12381     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12382     dynamic_linker='Win32 ld.exe'
12383     ;;
12384   esac
12385   # FIXME: first we should search . and the directory the executable is in
12386   shlibpath_var=PATH
12387   ;;
12388
12389 darwin* | rhapsody*)
12390   dynamic_linker="$host_os dyld"
12391   version_type=darwin
12392   need_lib_prefix=no
12393   need_version=no
12394   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12395   soname_spec='$libname$release$major$shared_ext'
12396   shlibpath_overrides_runpath=yes
12397   shlibpath_var=DYLD_LIBRARY_PATH
12398   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12399
12400   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12401   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12402   ;;
12403
12404 dgux*)
12405   version_type=linux # correct to gnu/linux during the next big refactor
12406   need_lib_prefix=no
12407   need_version=no
12408   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409   soname_spec='$libname$release$shared_ext$major'
12410   shlibpath_var=LD_LIBRARY_PATH
12411   ;;
12412
12413 freebsd* | dragonfly*)
12414   # DragonFly does not have aout.  When/if they implement a new
12415   # versioning mechanism, adjust this.
12416   if test -x /usr/bin/objformat; then
12417     objformat=`/usr/bin/objformat`
12418   else
12419     case $host_os in
12420     freebsd[23].*) objformat=aout ;;
12421     *) objformat=elf ;;
12422     esac
12423   fi
12424   version_type=freebsd-$objformat
12425   case $version_type in
12426     freebsd-elf*)
12427       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12428       soname_spec='$libname$release$shared_ext$major'
12429       need_version=no
12430       need_lib_prefix=no
12431       ;;
12432     freebsd-*)
12433       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12434       need_version=yes
12435       ;;
12436   esac
12437   shlibpath_var=LD_LIBRARY_PATH
12438   case $host_os in
12439   freebsd2.*)
12440     shlibpath_overrides_runpath=yes
12441     ;;
12442   freebsd3.[01]* | freebsdelf3.[01]*)
12443     shlibpath_overrides_runpath=yes
12444     hardcode_into_libs=yes
12445     ;;
12446   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12447   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12448     shlibpath_overrides_runpath=no
12449     hardcode_into_libs=yes
12450     ;;
12451   *) # from 4.6 on, and DragonFly
12452     shlibpath_overrides_runpath=yes
12453     hardcode_into_libs=yes
12454     ;;
12455   esac
12456   ;;
12457
12458 haiku*)
12459   version_type=linux # correct to gnu/linux during the next big refactor
12460   need_lib_prefix=no
12461   need_version=no
12462   dynamic_linker="$host_os runtime_loader"
12463   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464   soname_spec='$libname$release$shared_ext$major'
12465   shlibpath_var=LIBRARY_PATH
12466   shlibpath_overrides_runpath=no
12467   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12468   hardcode_into_libs=yes
12469   ;;
12470
12471 hpux9* | hpux10* | hpux11*)
12472   # Give a soname corresponding to the major version so that dld.sl refuses to
12473   # link against other versions.
12474   version_type=sunos
12475   need_lib_prefix=no
12476   need_version=no
12477   case $host_cpu in
12478   ia64*)
12479     shrext_cmds='.so'
12480     hardcode_into_libs=yes
12481     dynamic_linker="$host_os dld.so"
12482     shlibpath_var=LD_LIBRARY_PATH
12483     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12484     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485     soname_spec='$libname$release$shared_ext$major'
12486     if test 32 = "$HPUX_IA64_MODE"; then
12487       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12488       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12489     else
12490       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12491       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12492     fi
12493     ;;
12494   hppa*64*)
12495     shrext_cmds='.sl'
12496     hardcode_into_libs=yes
12497     dynamic_linker="$host_os dld.sl"
12498     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12499     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12500     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12501     soname_spec='$libname$release$shared_ext$major'
12502     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12503     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12504     ;;
12505   *)
12506     shrext_cmds='.sl'
12507     dynamic_linker="$host_os dld.sl"
12508     shlibpath_var=SHLIB_PATH
12509     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12510     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511     soname_spec='$libname$release$shared_ext$major'
12512     ;;
12513   esac
12514   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12515   postinstall_cmds='chmod 555 $lib'
12516   # or fails outright, so override atomically:
12517   install_override_mode=555
12518   ;;
12519
12520 interix[3-9]*)
12521   version_type=linux # correct to gnu/linux during the next big refactor
12522   need_lib_prefix=no
12523   need_version=no
12524   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12525   soname_spec='$libname$release$shared_ext$major'
12526   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12527   shlibpath_var=LD_LIBRARY_PATH
12528   shlibpath_overrides_runpath=no
12529   hardcode_into_libs=yes
12530   ;;
12531
12532 irix5* | irix6* | nonstopux*)
12533   case $host_os in
12534     nonstopux*) version_type=nonstopux ;;
12535     *)
12536         if test yes = "$lt_cv_prog_gnu_ld"; then
12537                 version_type=linux # correct to gnu/linux during the next big refactor
12538         else
12539                 version_type=irix
12540         fi ;;
12541   esac
12542   need_lib_prefix=no
12543   need_version=no
12544   soname_spec='$libname$release$shared_ext$major'
12545   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12546   case $host_os in
12547   irix5* | nonstopux*)
12548     libsuff= shlibsuff=
12549     ;;
12550   *)
12551     case $LD in # libtool.m4 will add one of these switches to LD
12552     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12553       libsuff= shlibsuff= libmagic=32-bit;;
12554     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12555       libsuff=32 shlibsuff=N32 libmagic=N32;;
12556     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12557       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12558     *) libsuff= shlibsuff= libmagic=never-match;;
12559     esac
12560     ;;
12561   esac
12562   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12563   shlibpath_overrides_runpath=no
12564   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12565   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12566   hardcode_into_libs=yes
12567   ;;
12568
12569 # No shared lib support for Linux oldld, aout, or coff.
12570 linux*oldld* | linux*aout* | linux*coff*)
12571   dynamic_linker=no
12572   ;;
12573
12574 linux*android*)
12575   version_type=none # Android doesn't support versioned libraries.
12576   need_lib_prefix=no
12577   need_version=no
12578   library_names_spec='$libname$release$shared_ext'
12579   soname_spec='$libname$release$shared_ext'
12580   finish_cmds=
12581   shlibpath_var=LD_LIBRARY_PATH
12582   shlibpath_overrides_runpath=yes
12583
12584   # This implies no fast_install, which is unacceptable.
12585   # Some rework will be needed to allow for fast_install
12586   # before this can be enabled.
12587   hardcode_into_libs=yes
12588
12589   dynamic_linker='Android linker'
12590   # Don't embed -rpath directories since the linker doesn't support them.
12591   hardcode_libdir_flag_spec='-L$libdir'
12592   ;;
12593
12594 # This must be glibc/ELF.
12595 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12596   version_type=linux # correct to gnu/linux during the next big refactor
12597   need_lib_prefix=no
12598   need_version=no
12599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600   soname_spec='$libname$release$shared_ext$major'
12601   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12602   shlibpath_var=LD_LIBRARY_PATH
12603   shlibpath_overrides_runpath=no
12604
12605   # Some binutils ld are patched to set DT_RUNPATH
12606   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   lt_cv_shlibpath_overrides_runpath=no
12610     save_LDFLAGS=$LDFLAGS
12611     save_libdir=$libdir
12612     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12613          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616
12617 int
12618 main ()
12619 {
12620
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12627   lt_cv_shlibpath_overrides_runpath=yes
12628 fi
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631     conftest$ac_exeext conftest.$ac_ext
12632     LDFLAGS=$save_LDFLAGS
12633     libdir=$save_libdir
12634
12635 fi
12636
12637   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12638
12639   # This implies no fast_install, which is unacceptable.
12640   # Some rework will be needed to allow for fast_install
12641   # before this can be enabled.
12642   hardcode_into_libs=yes
12643
12644   # Ideally, we could use ldconfig to report *all* directores which are
12645   # searched for libraries, however this is still not possible.  Aside from not
12646   # being certain /sbin/ldconfig is available, command
12647   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12648   # even though it is searched at run-time.  Try to do the best guess by
12649   # appending ld.so.conf contents (and includes) to the search path.
12650   if test -f /etc/ld.so.conf; then
12651     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' ' '`
12652     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12653   fi
12654
12655   # We used to test for /lib/ld.so.1 and disable shared libraries on
12656   # powerpc, because MkLinux only supported shared libraries with the
12657   # GNU dynamic linker.  Since this was broken with cross compilers,
12658   # most powerpc-linux boxes support dynamic linking these days and
12659   # people can always --disable-shared, the test was removed, and we
12660   # assume the GNU/Linux dynamic linker is in use.
12661   dynamic_linker='GNU/Linux ld.so'
12662   ;;
12663
12664 netbsd*)
12665   version_type=sunos
12666   need_lib_prefix=no
12667   need_version=no
12668   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12669     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12670     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12671     dynamic_linker='NetBSD (a.out) ld.so'
12672   else
12673     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674     soname_spec='$libname$release$shared_ext$major'
12675     dynamic_linker='NetBSD ld.elf_so'
12676   fi
12677   shlibpath_var=LD_LIBRARY_PATH
12678   shlibpath_overrides_runpath=yes
12679   hardcode_into_libs=yes
12680   ;;
12681
12682 newsos6)
12683   version_type=linux # correct to gnu/linux during the next big refactor
12684   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12685   shlibpath_var=LD_LIBRARY_PATH
12686   shlibpath_overrides_runpath=yes
12687   ;;
12688
12689 *nto* | *qnx*)
12690   version_type=qnx
12691   need_lib_prefix=no
12692   need_version=no
12693   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694   soname_spec='$libname$release$shared_ext$major'
12695   shlibpath_var=LD_LIBRARY_PATH
12696   shlibpath_overrides_runpath=no
12697   hardcode_into_libs=yes
12698   dynamic_linker='ldqnx.so'
12699   ;;
12700
12701 openbsd* | bitrig*)
12702   version_type=sunos
12703   sys_lib_dlsearch_path_spec=/usr/lib
12704   need_lib_prefix=no
12705   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12706     need_version=no
12707   else
12708     need_version=yes
12709   fi
12710   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12712   shlibpath_var=LD_LIBRARY_PATH
12713   shlibpath_overrides_runpath=yes
12714   ;;
12715
12716 os2*)
12717   libname_spec='$name'
12718   version_type=windows
12719   shrext_cmds=.dll
12720   need_version=no
12721   need_lib_prefix=no
12722   # OS/2 can only load a DLL with a base name of 8 characters or less.
12723   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12724     v=$($ECHO $release$versuffix | tr -d .-);
12725     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12726     $ECHO $n$v`$shared_ext'
12727   library_names_spec='${libname}_dll.$libext'
12728   dynamic_linker='OS/2 ld.exe'
12729   shlibpath_var=BEGINLIBPATH
12730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12731   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12732   postinstall_cmds='base_file=`basename \$file`~
12733     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12734     dldir=$destdir/`dirname \$dlpath`~
12735     test -d \$dldir || mkdir -p \$dldir~
12736     $install_prog $dir/$dlname \$dldir/$dlname~
12737     chmod a+x \$dldir/$dlname~
12738     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12739       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12740     fi'
12741   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12742     dlpath=$dir/\$dldll~
12743     $RM \$dlpath'
12744   ;;
12745
12746 osf3* | osf4* | osf5*)
12747   version_type=osf
12748   need_lib_prefix=no
12749   need_version=no
12750   soname_spec='$libname$release$shared_ext$major'
12751   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752   shlibpath_var=LD_LIBRARY_PATH
12753   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12754   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12755   ;;
12756
12757 rdos*)
12758   dynamic_linker=no
12759   ;;
12760
12761 solaris*)
12762   version_type=linux # correct to gnu/linux during the next big refactor
12763   need_lib_prefix=no
12764   need_version=no
12765   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766   soname_spec='$libname$release$shared_ext$major'
12767   shlibpath_var=LD_LIBRARY_PATH
12768   shlibpath_overrides_runpath=yes
12769   hardcode_into_libs=yes
12770   # ldd complains unless libraries are executable
12771   postinstall_cmds='chmod +x $lib'
12772   ;;
12773
12774 sunos4*)
12775   version_type=sunos
12776   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12777   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12778   shlibpath_var=LD_LIBRARY_PATH
12779   shlibpath_overrides_runpath=yes
12780   if test yes = "$with_gnu_ld"; then
12781     need_lib_prefix=no
12782   fi
12783   need_version=yes
12784   ;;
12785
12786 sysv4 | sysv4.3*)
12787   version_type=linux # correct to gnu/linux during the next big refactor
12788   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12789   soname_spec='$libname$release$shared_ext$major'
12790   shlibpath_var=LD_LIBRARY_PATH
12791   case $host_vendor in
12792     sni)
12793       shlibpath_overrides_runpath=no
12794       need_lib_prefix=no
12795       runpath_var=LD_RUN_PATH
12796       ;;
12797     siemens)
12798       need_lib_prefix=no
12799       ;;
12800     motorola)
12801       need_lib_prefix=no
12802       need_version=no
12803       shlibpath_overrides_runpath=no
12804       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12805       ;;
12806   esac
12807   ;;
12808
12809 sysv4*MP*)
12810   if test -d /usr/nec; then
12811     version_type=linux # correct to gnu/linux during the next big refactor
12812     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12813     soname_spec='$libname$shared_ext.$major'
12814     shlibpath_var=LD_LIBRARY_PATH
12815   fi
12816   ;;
12817
12818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12819   version_type=sco
12820   need_lib_prefix=no
12821   need_version=no
12822   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12823   soname_spec='$libname$release$shared_ext$major'
12824   shlibpath_var=LD_LIBRARY_PATH
12825   shlibpath_overrides_runpath=yes
12826   hardcode_into_libs=yes
12827   if test yes = "$with_gnu_ld"; then
12828     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12829   else
12830     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12831     case $host_os in
12832       sco3.2v5*)
12833         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12834         ;;
12835     esac
12836   fi
12837   sys_lib_dlsearch_path_spec='/usr/lib'
12838   ;;
12839
12840 tpf*)
12841   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12842   version_type=linux # correct to gnu/linux during the next big refactor
12843   need_lib_prefix=no
12844   need_version=no
12845   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12846   shlibpath_var=LD_LIBRARY_PATH
12847   shlibpath_overrides_runpath=no
12848   hardcode_into_libs=yes
12849   ;;
12850
12851 uts4*)
12852   version_type=linux # correct to gnu/linux during the next big refactor
12853   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12854   soname_spec='$libname$release$shared_ext$major'
12855   shlibpath_var=LD_LIBRARY_PATH
12856   ;;
12857
12858 *)
12859   dynamic_linker=no
12860   ;;
12861 esac
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12863 $as_echo "$dynamic_linker" >&6; }
12864 test no = "$dynamic_linker" && can_build_shared=no
12865
12866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12867 if test yes = "$GCC"; then
12868   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12869 fi
12870
12871 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12872   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12873 fi
12874
12875 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12876   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12877 fi
12878
12879 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12880 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12881
12882 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12883 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12884
12885 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12886 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12985 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12986 hardcode_action=
12987 if test -n "$hardcode_libdir_flag_spec" ||
12988    test -n "$runpath_var" ||
12989    test yes = "$hardcode_automatic"; then
12990
12991   # We can hardcode non-existent directories.
12992   if test no != "$hardcode_direct" &&
12993      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12994      # have to relink, otherwise we might link with an installed library
12995      # when we should be linking with a yet-to-be-installed one
12996      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12997      test no != "$hardcode_minus_L"; then
12998     # Linking always hardcodes the temporary library directory.
12999     hardcode_action=relink
13000   else
13001     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13002     hardcode_action=immediate
13003   fi
13004 else
13005   # We cannot hardcode anything, or else we can only hardcode existing
13006   # directories.
13007   hardcode_action=unsupported
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13010 $as_echo "$hardcode_action" >&6; }
13011
13012 if test relink = "$hardcode_action" ||
13013    test yes = "$inherit_rpath"; then
13014   # Fast installation is not supported
13015   enable_fast_install=no
13016 elif test yes = "$shlibpath_overrides_runpath" ||
13017      test no = "$enable_shared"; then
13018   # Fast installation is not necessary
13019   enable_fast_install=needless
13020 fi
13021
13022
13023
13024
13025
13026
13027   if test yes != "$enable_dlopen"; then
13028   enable_dlopen=unknown
13029   enable_dlopen_self=unknown
13030   enable_dlopen_self_static=unknown
13031 else
13032   lt_cv_dlopen=no
13033   lt_cv_dlopen_libs=
13034
13035   case $host_os in
13036   beos*)
13037     lt_cv_dlopen=load_add_on
13038     lt_cv_dlopen_libs=
13039     lt_cv_dlopen_self=yes
13040     ;;
13041
13042   mingw* | pw32* | cegcc*)
13043     lt_cv_dlopen=LoadLibrary
13044     lt_cv_dlopen_libs=
13045     ;;
13046
13047   cygwin*)
13048     lt_cv_dlopen=dlopen
13049     lt_cv_dlopen_libs=
13050     ;;
13051
13052   darwin*)
13053     # if libdl is installed we need to link against it
13054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13056 if ${ac_cv_lib_dl_dlopen+:} false; then :
13057   $as_echo_n "(cached) " >&6
13058 else
13059   ac_check_lib_save_LIBS=$LIBS
13060 LIBS="-ldl  $LIBS"
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h.  */
13063
13064 /* Override any GCC internal prototype to avoid an error.
13065    Use char because int might match the return type of a GCC
13066    builtin and then its argument prototype would still apply.  */
13067 #ifdef __cplusplus
13068 extern "C"
13069 #endif
13070 char dlopen ();
13071 int
13072 main ()
13073 {
13074 return dlopen ();
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_c_try_link "$LINENO"; then :
13080   ac_cv_lib_dl_dlopen=yes
13081 else
13082   ac_cv_lib_dl_dlopen=no
13083 fi
13084 rm -f core conftest.err conftest.$ac_objext \
13085     conftest$ac_exeext conftest.$ac_ext
13086 LIBS=$ac_check_lib_save_LIBS
13087 fi
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13089 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13090 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13091   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13092 else
13093
13094     lt_cv_dlopen=dyld
13095     lt_cv_dlopen_libs=
13096     lt_cv_dlopen_self=yes
13097
13098 fi
13099
13100     ;;
13101
13102   tpf*)
13103     # Don't try to run any link tests for TPF.  We know it's impossible
13104     # because TPF is a cross-compiler, and we know how we open DSOs.
13105     lt_cv_dlopen=dlopen
13106     lt_cv_dlopen_libs=
13107     lt_cv_dlopen_self=no
13108     ;;
13109
13110   *)
13111     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13112 if test "x$ac_cv_func_shl_load" = xyes; then :
13113   lt_cv_dlopen=shl_load
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13116 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13117 if ${ac_cv_lib_dld_shl_load+:} false; then :
13118   $as_echo_n "(cached) " >&6
13119 else
13120   ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-ldld  $LIBS"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h.  */
13124
13125 /* Override any GCC internal prototype to avoid an error.
13126    Use char because int might match the return type of a GCC
13127    builtin and then its argument prototype would still apply.  */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char shl_load ();
13132 int
13133 main ()
13134 {
13135 return shl_load ();
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141   ac_cv_lib_dld_shl_load=yes
13142 else
13143   ac_cv_lib_dld_shl_load=no
13144 fi
13145 rm -f core conftest.err conftest.$ac_objext \
13146     conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13150 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13151 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13152   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13153 else
13154   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13155 if test "x$ac_cv_func_dlopen" = xyes; then :
13156   lt_cv_dlopen=dlopen
13157 else
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13159 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13160 if ${ac_cv_lib_dl_dlopen+:} false; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163   ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-ldl  $LIBS"
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167
13168 /* Override any GCC internal prototype to avoid an error.
13169    Use char because int might match the return type of a GCC
13170    builtin and then its argument prototype would still apply.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 #endif
13174 char dlopen ();
13175 int
13176 main ()
13177 {
13178 return dlopen ();
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184   ac_cv_lib_dl_dlopen=yes
13185 else
13186   ac_cv_lib_dl_dlopen=no
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189     conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13193 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13194 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13195   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13196 else
13197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13198 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13199 if ${ac_cv_lib_svld_dlopen+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202   ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lsvld  $LIBS"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206
13207 /* Override any GCC internal prototype to avoid an error.
13208    Use char because int might match the return type of a GCC
13209    builtin and then its argument prototype would still apply.  */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 char dlopen ();
13214 int
13215 main ()
13216 {
13217 return dlopen ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 if ac_fn_c_try_link "$LINENO"; then :
13223   ac_cv_lib_svld_dlopen=yes
13224 else
13225   ac_cv_lib_svld_dlopen=no
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext \
13228     conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13230 fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13232 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13233 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13234   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13235 else
13236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13237 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13238 if ${ac_cv_lib_dld_dld_link+:} false; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241   ac_check_lib_save_LIBS=$LIBS
13242 LIBS="-ldld  $LIBS"
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245
13246 /* Override any GCC internal prototype to avoid an error.
13247    Use char because int might match the return type of a GCC
13248    builtin and then its argument prototype would still apply.  */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char dld_link ();
13253 int
13254 main ()
13255 {
13256 return dld_link ();
13257   ;
13258   return 0;
13259 }
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262   ac_cv_lib_dld_dld_link=yes
13263 else
13264   ac_cv_lib_dld_dld_link=no
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext \
13267     conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13271 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13272 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13273   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13274 fi
13275
13276
13277 fi
13278
13279
13280 fi
13281
13282
13283 fi
13284
13285
13286 fi
13287
13288
13289 fi
13290
13291     ;;
13292   esac
13293
13294   if test no = "$lt_cv_dlopen"; then
13295     enable_dlopen=no
13296   else
13297     enable_dlopen=yes
13298   fi
13299
13300   case $lt_cv_dlopen in
13301   dlopen)
13302     save_CPPFLAGS=$CPPFLAGS
13303     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13304
13305     save_LDFLAGS=$LDFLAGS
13306     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13307
13308     save_LIBS=$LIBS
13309     LIBS="$lt_cv_dlopen_libs $LIBS"
13310
13311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13312 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13313 if ${lt_cv_dlopen_self+:} false; then :
13314   $as_echo_n "(cached) " >&6
13315 else
13316           if test yes = "$cross_compiling"; then :
13317   lt_cv_dlopen_self=cross
13318 else
13319   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13320   lt_status=$lt_dlunknown
13321   cat > conftest.$ac_ext <<_LT_EOF
13322 #line $LINENO "configure"
13323 #include "confdefs.h"
13324
13325 #if HAVE_DLFCN_H
13326 #include <dlfcn.h>
13327 #endif
13328
13329 #include <stdio.h>
13330
13331 #ifdef RTLD_GLOBAL
13332 #  define LT_DLGLOBAL           RTLD_GLOBAL
13333 #else
13334 #  ifdef DL_GLOBAL
13335 #    define LT_DLGLOBAL         DL_GLOBAL
13336 #  else
13337 #    define LT_DLGLOBAL         0
13338 #  endif
13339 #endif
13340
13341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13342    find out it does not work in some platform. */
13343 #ifndef LT_DLLAZY_OR_NOW
13344 #  ifdef RTLD_LAZY
13345 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13346 #  else
13347 #    ifdef DL_LAZY
13348 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13349 #    else
13350 #      ifdef RTLD_NOW
13351 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13352 #      else
13353 #        ifdef DL_NOW
13354 #          define LT_DLLAZY_OR_NOW      DL_NOW
13355 #        else
13356 #          define LT_DLLAZY_OR_NOW      0
13357 #        endif
13358 #      endif
13359 #    endif
13360 #  endif
13361 #endif
13362
13363 /* When -fvisibility=hidden is used, assume the code has been annotated
13364    correspondingly for the symbols needed.  */
13365 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13366 int fnord () __attribute__((visibility("default")));
13367 #endif
13368
13369 int fnord () { return 42; }
13370 int main ()
13371 {
13372   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13373   int status = $lt_dlunknown;
13374
13375   if (self)
13376     {
13377       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13378       else
13379         {
13380           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13381           else puts (dlerror ());
13382         }
13383       /* dlclose (self); */
13384     }
13385   else
13386     puts (dlerror ());
13387
13388   return status;
13389 }
13390 _LT_EOF
13391   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13392   (eval $ac_link) 2>&5
13393   ac_status=$?
13394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13396     (./conftest; exit; ) >&5 2>/dev/null
13397     lt_status=$?
13398     case x$lt_status in
13399       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13400       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13401       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13402     esac
13403   else :
13404     # compilation failed
13405     lt_cv_dlopen_self=no
13406   fi
13407 fi
13408 rm -fr conftest*
13409
13410
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13413 $as_echo "$lt_cv_dlopen_self" >&6; }
13414
13415     if test yes = "$lt_cv_dlopen_self"; then
13416       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13417       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13418 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13419 if ${lt_cv_dlopen_self_static+:} false; then :
13420   $as_echo_n "(cached) " >&6
13421 else
13422           if test yes = "$cross_compiling"; then :
13423   lt_cv_dlopen_self_static=cross
13424 else
13425   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13426   lt_status=$lt_dlunknown
13427   cat > conftest.$ac_ext <<_LT_EOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13430
13431 #if HAVE_DLFCN_H
13432 #include <dlfcn.h>
13433 #endif
13434
13435 #include <stdio.h>
13436
13437 #ifdef RTLD_GLOBAL
13438 #  define LT_DLGLOBAL           RTLD_GLOBAL
13439 #else
13440 #  ifdef DL_GLOBAL
13441 #    define LT_DLGLOBAL         DL_GLOBAL
13442 #  else
13443 #    define LT_DLGLOBAL         0
13444 #  endif
13445 #endif
13446
13447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13448    find out it does not work in some platform. */
13449 #ifndef LT_DLLAZY_OR_NOW
13450 #  ifdef RTLD_LAZY
13451 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13452 #  else
13453 #    ifdef DL_LAZY
13454 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13455 #    else
13456 #      ifdef RTLD_NOW
13457 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13458 #      else
13459 #        ifdef DL_NOW
13460 #          define LT_DLLAZY_OR_NOW      DL_NOW
13461 #        else
13462 #          define LT_DLLAZY_OR_NOW      0
13463 #        endif
13464 #      endif
13465 #    endif
13466 #  endif
13467 #endif
13468
13469 /* When -fvisibility=hidden is used, assume the code has been annotated
13470    correspondingly for the symbols needed.  */
13471 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13472 int fnord () __attribute__((visibility("default")));
13473 #endif
13474
13475 int fnord () { return 42; }
13476 int main ()
13477 {
13478   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13479   int status = $lt_dlunknown;
13480
13481   if (self)
13482     {
13483       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13484       else
13485         {
13486           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13487           else puts (dlerror ());
13488         }
13489       /* dlclose (self); */
13490     }
13491   else
13492     puts (dlerror ());
13493
13494   return status;
13495 }
13496 _LT_EOF
13497   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13498   (eval $ac_link) 2>&5
13499   ac_status=$?
13500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13502     (./conftest; exit; ) >&5 2>/dev/null
13503     lt_status=$?
13504     case x$lt_status in
13505       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13506       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13507       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13508     esac
13509   else :
13510     # compilation failed
13511     lt_cv_dlopen_self_static=no
13512   fi
13513 fi
13514 rm -fr conftest*
13515
13516
13517 fi
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13519 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13520     fi
13521
13522     CPPFLAGS=$save_CPPFLAGS
13523     LDFLAGS=$save_LDFLAGS
13524     LIBS=$save_LIBS
13525     ;;
13526   esac
13527
13528   case $lt_cv_dlopen_self in
13529   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13530   *) enable_dlopen_self=unknown ;;
13531   esac
13532
13533   case $lt_cv_dlopen_self_static in
13534   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13535   *) enable_dlopen_self_static=unknown ;;
13536   esac
13537 fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555 striplib=
13556 old_striplib=
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13558 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13559 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13560   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13561   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13563 $as_echo "yes" >&6; }
13564 else
13565 # FIXME - insert some real tests, host_os isn't really good enough
13566   case $host_os in
13567   darwin*)
13568     if test -n "$STRIP"; then
13569       striplib="$STRIP -x"
13570       old_striplib="$STRIP -S"
13571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13572 $as_echo "yes" >&6; }
13573     else
13574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576     fi
13577     ;;
13578   *)
13579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13581     ;;
13582   esac
13583 fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596   # Report what library types will actually be built
13597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13598 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13600 $as_echo "$can_build_shared" >&6; }
13601
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13603 $as_echo_n "checking whether to build shared libraries... " >&6; }
13604   test no = "$can_build_shared" && enable_shared=no
13605
13606   # On AIX, shared libraries and static libraries use the same namespace, and
13607   # are all built from PIC.
13608   case $host_os in
13609   aix3*)
13610     test yes = "$enable_shared" && enable_static=no
13611     if test -n "$RANLIB"; then
13612       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13613       postinstall_cmds='$RANLIB $lib'
13614     fi
13615     ;;
13616
13617   aix[4-9]*)
13618     if test ia64 != "$host_cpu"; then
13619       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13620       yes,aix,yes) ;;                   # shared object as lib.so file only
13621       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13622       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13623       esac
13624     fi
13625     ;;
13626   esac
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13628 $as_echo "$enable_shared" >&6; }
13629
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13631 $as_echo_n "checking whether to build static libraries... " >&6; }
13632   # Make sure either enable_shared or enable_static is yes.
13633   test yes = "$enable_shared" || enable_static=yes
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13635 $as_echo "$enable_static" >&6; }
13636
13637
13638
13639
13640 fi
13641 ac_ext=c
13642 ac_cpp='$CPP $CPPFLAGS'
13643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646
13647 CC=$lt_save_CC
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663         ac_config_commands="$ac_config_commands libtool"
13664
13665
13666
13667
13668 # Only expand once:
13669
13670
13671
13672 # initialize libtool to build .la files
13673
13674
13675 # add these options to CFLAGS if the compiler supports them
13676
13677 # Do not use the -ansi flag, currently there is a bug in MinGW/MinGW-w64
13678 # which prevents Check from compiling. Add after this is resolved:
13679 #    sourceforge.net/p/mingw/bugs/2024
13680 #AX_CFLAGS_WARN_ALL_ANSI
13681 # Do not use the -pedantic flag, as on solaris it has a different
13682 # meaning than on gcc. Using the flag causes the build to fail.
13683
13684
13685
13686
13687
13688   flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13689
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
13691 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
13692 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695
13696
13697     ac_ext=c
13698 ac_cpp='$CPP $CPPFLAGS'
13699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13702
13703
13704     save_CFLAGS="$CFLAGS"
13705     CFLAGS="$CFLAGS -Wextra"
13706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h.  */
13708
13709
13710 int
13711 main ()
13712 {
13713
13714   ;
13715   return 0;
13716 }
13717
13718 _ACEOF
13719 if ac_fn_c_try_compile "$LINENO"; then :
13720
13721       eval "ax_cv_c_check_flag_$flag=yes"
13722
13723 else
13724
13725       eval "ax_cv_c_check_flag_$flag=no"
13726
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729
13730     CFLAGS="$save_CFLAGS"
13731
13732     ac_ext=c
13733 ac_cpp='$CPP $CPPFLAGS'
13734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13737
13738
13739
13740 fi
13741 eval ac_res=\$ax_cv_c_check_flag_$flag
13742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13743 $as_echo "$ac_res" >&6; }
13744
13745   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13746
13747     :
13748     CFLAGS="$CFLAGS -Wextra"
13749
13750 else
13751
13752     :
13753
13754
13755 fi
13756
13757
13758
13759
13760
13761
13762   flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13763
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13765 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13766 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13767   $as_echo_n "(cached) " >&6
13768 else
13769
13770
13771     ac_ext=c
13772 ac_cpp='$CPP $CPPFLAGS'
13773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13776
13777
13778     save_CFLAGS="$CFLAGS"
13779     CFLAGS="$CFLAGS -Wstrict-prototypes"
13780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h.  */
13782
13783
13784 int
13785 main ()
13786 {
13787
13788   ;
13789   return 0;
13790 }
13791
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794
13795       eval "ax_cv_c_check_flag_$flag=yes"
13796
13797 else
13798
13799       eval "ax_cv_c_check_flag_$flag=no"
13800
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803
13804     CFLAGS="$save_CFLAGS"
13805
13806     ac_ext=c
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811
13812
13813
13814 fi
13815 eval ac_res=\$ax_cv_c_check_flag_$flag
13816                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13817 $as_echo "$ac_res" >&6; }
13818
13819   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13820
13821     :
13822     CFLAGS="$CFLAGS -Wstrict-prototypes"
13823
13824 else
13825
13826     :
13827
13828
13829 fi
13830
13831
13832
13833
13834
13835
13836   flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13837
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13839 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13840 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13841   $as_echo_n "(cached) " >&6
13842 else
13843
13844
13845     ac_ext=c
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850
13851
13852     save_CFLAGS="$CFLAGS"
13853     CFLAGS="$CFLAGS -Wmissing-prototypes"
13854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h.  */
13856
13857
13858 int
13859 main ()
13860 {
13861
13862   ;
13863   return 0;
13864 }
13865
13866 _ACEOF
13867 if ac_fn_c_try_compile "$LINENO"; then :
13868
13869       eval "ax_cv_c_check_flag_$flag=yes"
13870
13871 else
13872
13873       eval "ax_cv_c_check_flag_$flag=no"
13874
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877
13878     CFLAGS="$save_CFLAGS"
13879
13880     ac_ext=c
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13885
13886
13887
13888 fi
13889 eval ac_res=\$ax_cv_c_check_flag_$flag
13890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13891 $as_echo "$ac_res" >&6; }
13892
13893   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13894
13895     :
13896     CFLAGS="$CFLAGS -Wmissing-prototypes"
13897
13898 else
13899
13900     :
13901
13902
13903 fi
13904
13905
13906
13907
13908
13909
13910   flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13911
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
13913 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
13914 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13915   $as_echo_n "(cached) " >&6
13916 else
13917
13918
13919     ac_ext=c
13920 ac_cpp='$CPP $CPPFLAGS'
13921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13924
13925
13926     save_CFLAGS="$CFLAGS"
13927     CFLAGS="$CFLAGS -Wwrite-strings"
13928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h.  */
13930
13931
13932 int
13933 main ()
13934 {
13935
13936   ;
13937   return 0;
13938 }
13939
13940 _ACEOF
13941 if ac_fn_c_try_compile "$LINENO"; then :
13942
13943       eval "ax_cv_c_check_flag_$flag=yes"
13944
13945 else
13946
13947       eval "ax_cv_c_check_flag_$flag=no"
13948
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951
13952     CFLAGS="$save_CFLAGS"
13953
13954     ac_ext=c
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13959
13960
13961
13962 fi
13963 eval ac_res=\$ax_cv_c_check_flag_$flag
13964                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13965 $as_echo "$ac_res" >&6; }
13966
13967   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13968
13969     :
13970     CFLAGS="$CFLAGS -Wwrite-strings"
13971
13972 else
13973
13974     :
13975
13976
13977 fi
13978
13979
13980
13981
13982
13983
13984   flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13985
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
13987 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
13988 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13989   $as_echo_n "(cached) " >&6
13990 else
13991
13992
13993     ac_ext=c
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13998
13999
14000     save_CFLAGS="$CFLAGS"
14001     CFLAGS="$CFLAGS -Wno-variadic-macros"
14002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h.  */
14004
14005
14006 int
14007 main ()
14008 {
14009
14010   ;
14011   return 0;
14012 }
14013
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016
14017       eval "ax_cv_c_check_flag_$flag=yes"
14018
14019 else
14020
14021       eval "ax_cv_c_check_flag_$flag=no"
14022
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025
14026     CFLAGS="$save_CFLAGS"
14027
14028     ac_ext=c
14029 ac_cpp='$CPP $CPPFLAGS'
14030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14033
14034
14035
14036 fi
14037 eval ac_res=\$ax_cv_c_check_flag_$flag
14038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14039 $as_echo "$ac_res" >&6; }
14040
14041   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14042
14043     :
14044     CFLAGS="$CFLAGS -Wno-variadic-macros"
14045
14046 else
14047
14048     :
14049
14050
14051 fi
14052
14053
14054
14055
14056
14057
14058   flag=`echo "-Wimport" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14059
14060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wimport flag" >&5
14061 $as_echo_n "checking whether the C compiler accepts the -Wimport flag... " >&6; }
14062 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065
14066
14067     ac_ext=c
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14072
14073
14074     save_CFLAGS="$CFLAGS"
14075     CFLAGS="$CFLAGS -Wimport"
14076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h.  */
14078
14079
14080 int
14081 main ()
14082 {
14083
14084   ;
14085   return 0;
14086 }
14087
14088 _ACEOF
14089 if ac_fn_c_try_compile "$LINENO"; then :
14090
14091       eval "ax_cv_c_check_flag_$flag=yes"
14092
14093 else
14094
14095       eval "ax_cv_c_check_flag_$flag=no"
14096
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099
14100     CFLAGS="$save_CFLAGS"
14101
14102     ac_ext=c
14103 ac_cpp='$CPP $CPPFLAGS'
14104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14107
14108
14109
14110 fi
14111 eval ac_res=\$ax_cv_c_check_flag_$flag
14112                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14113 $as_echo "$ac_res" >&6; }
14114
14115   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14116
14117     :
14118     CFLAGS="$CFLAGS -Wimport"
14119
14120 else
14121
14122     :
14123
14124
14125 fi
14126
14127
14128
14129
14130
14131
14132   flag=`echo "-Wfatal-errors" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14133
14134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wfatal-errors flag" >&5
14135 $as_echo_n "checking whether the C compiler accepts the -Wfatal-errors flag... " >&6; }
14136 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14137   $as_echo_n "(cached) " >&6
14138 else
14139
14140
14141     ac_ext=c
14142 ac_cpp='$CPP $CPPFLAGS'
14143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14146
14147
14148     save_CFLAGS="$CFLAGS"
14149     CFLAGS="$CFLAGS -Wfatal-errors"
14150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h.  */
14152
14153
14154 int
14155 main ()
14156 {
14157
14158   ;
14159   return 0;
14160 }
14161
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164
14165       eval "ax_cv_c_check_flag_$flag=yes"
14166
14167 else
14168
14169       eval "ax_cv_c_check_flag_$flag=no"
14170
14171 fi
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173
14174     CFLAGS="$save_CFLAGS"
14175
14176     ac_ext=c
14177 ac_cpp='$CPP $CPPFLAGS'
14178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14181
14182
14183
14184 fi
14185 eval ac_res=\$ax_cv_c_check_flag_$flag
14186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14187 $as_echo "$ac_res" >&6; }
14188
14189   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14190
14191     :
14192     CFLAGS="$CFLAGS -Wfatal-errors"
14193
14194 else
14195
14196     :
14197
14198
14199 fi
14200
14201
14202
14203
14204
14205
14206   flag=`echo "-Wformat=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14207
14208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wformat=2 flag" >&5
14209 $as_echo_n "checking whether the C compiler accepts the -Wformat=2 flag... " >&6; }
14210 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14211   $as_echo_n "(cached) " >&6
14212 else
14213
14214
14215     ac_ext=c
14216 ac_cpp='$CPP $CPPFLAGS'
14217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14220
14221
14222     save_CFLAGS="$CFLAGS"
14223     CFLAGS="$CFLAGS -Wformat=2"
14224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h.  */
14226
14227
14228 int
14229 main ()
14230 {
14231
14232   ;
14233   return 0;
14234 }
14235
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238
14239       eval "ax_cv_c_check_flag_$flag=yes"
14240
14241 else
14242
14243       eval "ax_cv_c_check_flag_$flag=no"
14244
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247
14248     CFLAGS="$save_CFLAGS"
14249
14250     ac_ext=c
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14255
14256
14257
14258 fi
14259 eval ac_res=\$ax_cv_c_check_flag_$flag
14260                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14261 $as_echo "$ac_res" >&6; }
14262
14263   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14264
14265     :
14266     CFLAGS="$CFLAGS -Wformat=2"
14267
14268 else
14269
14270     :
14271
14272
14273 fi
14274
14275
14276
14277
14278
14279
14280   flag=`echo "-Winit-self" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14281
14282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Winit-self flag" >&5
14283 $as_echo_n "checking whether the C compiler accepts the -Winit-self flag... " >&6; }
14284 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14285   $as_echo_n "(cached) " >&6
14286 else
14287
14288
14289     ac_ext=c
14290 ac_cpp='$CPP $CPPFLAGS'
14291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294
14295
14296     save_CFLAGS="$CFLAGS"
14297     CFLAGS="$CFLAGS -Winit-self"
14298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h.  */
14300
14301
14302 int
14303 main ()
14304 {
14305
14306   ;
14307   return 0;
14308 }
14309
14310 _ACEOF
14311 if ac_fn_c_try_compile "$LINENO"; then :
14312
14313       eval "ax_cv_c_check_flag_$flag=yes"
14314
14315 else
14316
14317       eval "ax_cv_c_check_flag_$flag=no"
14318
14319 fi
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321
14322     CFLAGS="$save_CFLAGS"
14323
14324     ac_ext=c
14325 ac_cpp='$CPP $CPPFLAGS'
14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330
14331
14332 fi
14333 eval ac_res=\$ax_cv_c_check_flag_$flag
14334                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14335 $as_echo "$ac_res" >&6; }
14336
14337   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14338
14339     :
14340     CFLAGS="$CFLAGS -Winit-self"
14341
14342 else
14343
14344     :
14345
14346
14347 fi
14348
14349
14350
14351
14352
14353
14354   flag=`echo "-Wmissing-include-dirs" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14355
14356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-include-dirs flag" >&5
14357 $as_echo_n "checking whether the C compiler accepts the -Wmissing-include-dirs flag... " >&6; }
14358 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14359   $as_echo_n "(cached) " >&6
14360 else
14361
14362
14363     ac_ext=c
14364 ac_cpp='$CPP $CPPFLAGS'
14365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14368
14369
14370     save_CFLAGS="$CFLAGS"
14371     CFLAGS="$CFLAGS -Wmissing-include-dirs"
14372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h.  */
14374
14375
14376 int
14377 main ()
14378 {
14379
14380   ;
14381   return 0;
14382 }
14383
14384 _ACEOF
14385 if ac_fn_c_try_compile "$LINENO"; then :
14386
14387       eval "ax_cv_c_check_flag_$flag=yes"
14388
14389 else
14390
14391       eval "ax_cv_c_check_flag_$flag=no"
14392
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395
14396     CFLAGS="$save_CFLAGS"
14397
14398     ac_ext=c
14399 ac_cpp='$CPP $CPPFLAGS'
14400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14403
14404
14405
14406 fi
14407 eval ac_res=\$ax_cv_c_check_flag_$flag
14408                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14409 $as_echo "$ac_res" >&6; }
14410
14411   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14412
14413     :
14414     CFLAGS="$CFLAGS -Wmissing-include-dirs"
14415
14416 else
14417
14418     :
14419
14420
14421 fi
14422
14423
14424
14425
14426
14427
14428   flag=`echo "-Wswitch-default" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14429
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wswitch-default flag" >&5
14431 $as_echo_n "checking whether the C compiler accepts the -Wswitch-default flag... " >&6; }
14432 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435
14436
14437     ac_ext=c
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14442
14443
14444     save_CFLAGS="$CFLAGS"
14445     CFLAGS="$CFLAGS -Wswitch-default"
14446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h.  */
14448
14449
14450 int
14451 main ()
14452 {
14453
14454   ;
14455   return 0;
14456 }
14457
14458 _ACEOF
14459 if ac_fn_c_try_compile "$LINENO"; then :
14460
14461       eval "ax_cv_c_check_flag_$flag=yes"
14462
14463 else
14464
14465       eval "ax_cv_c_check_flag_$flag=no"
14466
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469
14470     CFLAGS="$save_CFLAGS"
14471
14472     ac_ext=c
14473 ac_cpp='$CPP $CPPFLAGS'
14474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14477
14478
14479
14480 fi
14481 eval ac_res=\$ax_cv_c_check_flag_$flag
14482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14483 $as_echo "$ac_res" >&6; }
14484
14485   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14486
14487     :
14488     CFLAGS="$CFLAGS -Wswitch-default"
14489
14490 else
14491
14492     :
14493
14494
14495 fi
14496
14497
14498
14499
14500
14501
14502   flag=`echo "-Wunknown-pragmas" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14503
14504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wunknown-pragmas flag" >&5
14505 $as_echo_n "checking whether the C compiler accepts the -Wunknown-pragmas flag... " >&6; }
14506 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14507   $as_echo_n "(cached) " >&6
14508 else
14509
14510
14511     ac_ext=c
14512 ac_cpp='$CPP $CPPFLAGS'
14513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14516
14517
14518     save_CFLAGS="$CFLAGS"
14519     CFLAGS="$CFLAGS -Wunknown-pragmas"
14520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h.  */
14522
14523
14524 int
14525 main ()
14526 {
14527
14528   ;
14529   return 0;
14530 }
14531
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534
14535       eval "ax_cv_c_check_flag_$flag=yes"
14536
14537 else
14538
14539       eval "ax_cv_c_check_flag_$flag=no"
14540
14541 fi
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543
14544     CFLAGS="$save_CFLAGS"
14545
14546     ac_ext=c
14547 ac_cpp='$CPP $CPPFLAGS'
14548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14551
14552
14553
14554 fi
14555 eval ac_res=\$ax_cv_c_check_flag_$flag
14556                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14557 $as_echo "$ac_res" >&6; }
14558
14559   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14560
14561     :
14562     CFLAGS="$CFLAGS -Wunknown-pragmas"
14563
14564 else
14565
14566     :
14567
14568
14569 fi
14570
14571 # The following flag is to enable C99 support on AIX, which is
14572 # necessary for variable macros in check.h
14573 case "${host_os}" in
14574     *aix*)
14575     if ! test "$GCC" = "yes"; then
14576
14577
14578
14579
14580
14581   flag=`echo "-qlanglvl=stdc99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14582
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -qlanglvl=stdc99 flag" >&5
14584 $as_echo_n "checking whether the C compiler accepts the -qlanglvl=stdc99 flag... " >&6; }
14585 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588
14589
14590     ac_ext=c
14591 ac_cpp='$CPP $CPPFLAGS'
14592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14595
14596
14597     save_CFLAGS="$CFLAGS"
14598     CFLAGS="$CFLAGS -qlanglvl=stdc99"
14599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601
14602
14603 int
14604 main ()
14605 {
14606
14607   ;
14608   return 0;
14609 }
14610
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613
14614       eval "ax_cv_c_check_flag_$flag=yes"
14615
14616 else
14617
14618       eval "ax_cv_c_check_flag_$flag=no"
14619
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622
14623     CFLAGS="$save_CFLAGS"
14624
14625     ac_ext=c
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14630
14631
14632
14633 fi
14634 eval ac_res=\$ax_cv_c_check_flag_$flag
14635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14636 $as_echo "$ac_res" >&6; }
14637
14638   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14639
14640     :
14641     CFLAGS="$CFLAGS -qlanglvl=stdc99"
14642
14643 else
14644
14645     :
14646
14647
14648 fi
14649
14650     fi
14651     ;;
14652     *)
14653     ;;
14654 esac
14655
14656 for ac_prog in gcov
14657 do
14658   # Extract the first word of "$ac_prog", so it can be a program name with args.
14659 set dummy $ac_prog; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if ${ac_cv_prog_GCOV+:} false; then :
14663   $as_echo_n "(cached) " >&6
14664 else
14665   if test -n "$GCOV"; then
14666   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14670 do
14671   IFS=$as_save_IFS
14672   test -z "$as_dir" && as_dir=.
14673     for ac_exec_ext in '' $ac_executable_extensions; do
14674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14675     ac_cv_prog_GCOV="$ac_prog"
14676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677     break 2
14678   fi
14679 done
14680   done
14681 IFS=$as_save_IFS
14682
14683 fi
14684 fi
14685 GCOV=$ac_cv_prog_GCOV
14686 if test -n "$GCOV"; then
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14688 $as_echo "$GCOV" >&6; }
14689 else
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693
14694
14695   test -n "$GCOV" && break
14696 done
14697 test -n "$GCOV" || GCOV="false"
14698
14699 for ac_prog in lcov
14700 do
14701   # Extract the first word of "$ac_prog", so it can be a program name with args.
14702 set dummy $ac_prog; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_LCOV+:} false; then :
14706   $as_echo_n "(cached) " >&6
14707 else
14708   if test -n "$LCOV"; then
14709   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14710 else
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14713 do
14714   IFS=$as_save_IFS
14715   test -z "$as_dir" && as_dir=.
14716     for ac_exec_ext in '' $ac_executable_extensions; do
14717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718     ac_cv_prog_LCOV="$ac_prog"
14719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720     break 2
14721   fi
14722 done
14723   done
14724 IFS=$as_save_IFS
14725
14726 fi
14727 fi
14728 LCOV=$ac_cv_prog_LCOV
14729 if test -n "$LCOV"; then
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14731 $as_echo "$LCOV" >&6; }
14732 else
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14735 fi
14736
14737
14738   test -n "$LCOV" && break
14739 done
14740 test -n "$LCOV" || LCOV="false"
14741
14742 for ac_prog in genhtml
14743 do
14744   # Extract the first word of "$ac_prog", so it can be a program name with args.
14745 set dummy $ac_prog; ac_word=$2
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14747 $as_echo_n "checking for $ac_word... " >&6; }
14748 if ${ac_cv_prog_GENHTML+:} false; then :
14749   $as_echo_n "(cached) " >&6
14750 else
14751   if test -n "$GENHTML"; then
14752   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14753 else
14754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14755 for as_dir in $PATH
14756 do
14757   IFS=$as_save_IFS
14758   test -z "$as_dir" && as_dir=.
14759     for ac_exec_ext in '' $ac_executable_extensions; do
14760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14761     ac_cv_prog_GENHTML="$ac_prog"
14762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14763     break 2
14764   fi
14765 done
14766   done
14767 IFS=$as_save_IFS
14768
14769 fi
14770 fi
14771 GENHTML=$ac_cv_prog_GENHTML
14772 if test -n "$GENHTML"; then
14773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14774 $as_echo "$GENHTML" >&6; }
14775 else
14776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14778 fi
14779
14780
14781   test -n "$GENHTML" && break
14782 done
14783 test -n "$GENHTML" || GENHTML="false"
14784
14785
14786 if test "xtrue" = x"$enable_build_docs"; then
14787     for ac_prog in makeinfo
14788 do
14789   # Extract the first word of "$ac_prog", so it can be a program name with args.
14790 set dummy $ac_prog; ac_word=$2
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14792 $as_echo_n "checking for $ac_word... " >&6; }
14793 if ${ac_cv_prog_MAKEINFO+:} false; then :
14794   $as_echo_n "(cached) " >&6
14795 else
14796   if test -n "$MAKEINFO"; then
14797   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14798 else
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14801 do
14802   IFS=$as_save_IFS
14803   test -z "$as_dir" && as_dir=.
14804     for ac_exec_ext in '' $ac_executable_extensions; do
14805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806     ac_cv_prog_MAKEINFO="$ac_prog"
14807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14808     break 2
14809   fi
14810 done
14811   done
14812 IFS=$as_save_IFS
14813
14814 fi
14815 fi
14816 MAKEINFO=$ac_cv_prog_MAKEINFO
14817 if test -n "$MAKEINFO"; then
14818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14819 $as_echo "$MAKEINFO" >&6; }
14820 else
14821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822 $as_echo "no" >&6; }
14823 fi
14824
14825
14826   test -n "$MAKEINFO" && break
14827 done
14828 test -n "$MAKEINFO" || MAKEINFO="false"
14829
14830     if test "$MAKEINFO" = "false"; then
14831         # Make it [somewhat] clear to maintainers that makeinfo is missing. Not an error
14832         # though because 'make install' (which users need) does not build the docs
14833         # anyway.
14834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&5
14835 $as_echo "$as_me: WARNING: makeinfo not installed: cannot rebuild HTML documentation." >&2;}
14836     fi
14837
14838      if test x"$MAKEINFO" != "xfalse"; then
14839   MAKE_DOCS_TRUE=
14840   MAKE_DOCS_FALSE='#'
14841 else
14842   MAKE_DOCS_TRUE='#'
14843   MAKE_DOCS_FALSE=
14844 fi
14845
14846 else
14847     if false; then
14848   MAKE_DOCS_TRUE=
14849   MAKE_DOCS_FALSE='#'
14850 else
14851   MAKE_DOCS_TRUE='#'
14852   MAKE_DOCS_FALSE=
14853 fi
14854
14855 fi
14856 for ac_prog in filterdiff
14857 do
14858   # Extract the first word of "$ac_prog", so it can be a program name with args.
14859 set dummy $ac_prog; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_prog_FILTERDIFF+:} false; then :
14863   $as_echo_n "(cached) " >&6
14864 else
14865   if test -n "$FILTERDIFF"; then
14866   ac_cv_prog_FILTERDIFF="$FILTERDIFF" # Let the user override the test.
14867 else
14868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869 for as_dir in $PATH
14870 do
14871   IFS=$as_save_IFS
14872   test -z "$as_dir" && as_dir=.
14873     for ac_exec_ext in '' $ac_executable_extensions; do
14874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14875     ac_cv_prog_FILTERDIFF="$ac_prog"
14876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14877     break 2
14878   fi
14879 done
14880   done
14881 IFS=$as_save_IFS
14882
14883 fi
14884 fi
14885 FILTERDIFF=$ac_cv_prog_FILTERDIFF
14886 if test -n "$FILTERDIFF"; then
14887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILTERDIFF" >&5
14888 $as_echo "$FILTERDIFF" >&6; }
14889 else
14890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891 $as_echo "no" >&6; }
14892 fi
14893
14894
14895   test -n "$FILTERDIFF" && break
14896 done
14897 test -n "$FILTERDIFF" || FILTERDIFF="false"
14898
14899 if test "$FILTERDIFF" = "false"; then
14900     # Make it [somewhat] clear to maintainers that filterdiff is missing.
14901     # This is not an error, but will prevent builds from being
14902     # reproducible.
14903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: filterdiff not installed; build will not be reproducible." >&5
14904 $as_echo "$as_me: WARNING: filterdiff not installed; build will not be reproducible." >&2;}
14905 fi
14906
14907  if test x"$FILTERDIFF" = x"filterdiff"; then
14908   USE_FILTERDIFF_TRUE=
14909   USE_FILTERDIFF_FALSE='#'
14910 else
14911   USE_FILTERDIFF_TRUE='#'
14912   USE_FILTERDIFF_FALSE=
14913 fi
14914
14915
14916 for ac_prog in dot
14917 do
14918   # Extract the first word of "$ac_prog", so it can be a program name with args.
14919 set dummy $ac_prog; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
14923   $as_echo_n "(cached) " >&6
14924 else
14925   if test -n "$GRAPHVIZ"; then
14926   ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
14927 else
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14930 do
14931   IFS=$as_save_IFS
14932   test -z "$as_dir" && as_dir=.
14933     for ac_exec_ext in '' $ac_executable_extensions; do
14934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935     ac_cv_prog_GRAPHVIZ="$ac_prog"
14936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937     break 2
14938   fi
14939 done
14940   done
14941 IFS=$as_save_IFS
14942
14943 fi
14944 fi
14945 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
14946 if test -n "$GRAPHVIZ"; then
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
14948 $as_echo "$GRAPHVIZ" >&6; }
14949 else
14950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14952 fi
14953
14954
14955   test -n "$GRAPHVIZ" && break
14956 done
14957 test -n "$GRAPHVIZ" || GRAPHVIZ="false"
14958
14959 # If graphviz doesn't exist 'make doc/doxygen-devel' will skip rendering graphs
14960 # and inform the developer about it. This target is optional and it aims
14961 # developers of libcheck, not users.
14962  if test x"$GRAPHVIZ" = x"dot"; then
14963   USE_GRAPHVIZ_TRUE=
14964   USE_GRAPHVIZ_FALSE='#'
14965 else
14966   USE_GRAPHVIZ_TRUE='#'
14967   USE_GRAPHVIZ_FALSE=
14968 fi
14969
14970
14971 # Checks for pthread implementation.
14972
14973
14974
14975 ac_ext=c
14976 ac_cpp='$CPP $CPPFLAGS'
14977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14980
14981 acx_pthread_ok=no
14982
14983 # We used to check for pthread.h first, but this fails if pthread.h
14984 # requires special compiler flags (e.g. on True64 or Sequent).
14985 # It gets checked for in the link test anyway.
14986
14987 # First of all, check if the user has set any of the PTHREAD_LIBS,
14988 # etcetera environment variables, and if threads linking works using
14989 # them:
14990 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14991         save_CFLAGS="$CFLAGS"
14992         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14993         save_LIBS="$LIBS"
14994         LIBS="$PTHREAD_LIBS $LIBS"
14995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14996 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999
15000 /* Override any GCC internal prototype to avoid an error.
15001    Use char because int might match the return type of a GCC
15002    builtin and then its argument prototype would still apply.  */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char pthread_join ();
15007 int
15008 main ()
15009 {
15010 return pthread_join ();
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15016   acx_pthread_ok=yes
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext \
15019     conftest$ac_exeext conftest.$ac_ext
15020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15021 $as_echo "$acx_pthread_ok" >&6; }
15022         if test x"$acx_pthread_ok" = xno; then
15023                 PTHREAD_LIBS=""
15024                 PTHREAD_CFLAGS=""
15025         fi
15026         LIBS="$save_LIBS"
15027         CFLAGS="$save_CFLAGS"
15028 fi
15029
15030 # We must check for the threads library under a number of different
15031 # names; the ordering is very important because some systems
15032 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15033 # libraries is broken (non-POSIX).
15034
15035 # Create a list of thread flags to try.  Items starting with a "-" are
15036 # C compiler flags, and other items are library names, except for "none"
15037 # which indicates that we try without any flags at all, and "pthread-config"
15038 # which is a program returning the flags for the Pth emulation library.
15039
15040 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15041
15042 # The ordering *is* (sometimes) important.  Some notes on the
15043 # individual items follow:
15044
15045 # pthreads: AIX (must check this before -lpthread)
15046 # none: in case threads are in libc; should be tried before -Kthread and
15047 #       other compiler flags to prevent continual compiler warnings
15048 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15049 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15050 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15051 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15052 # -pthreads: Solaris/gcc
15053 # -mthreads: Mingw32/gcc, Lynx/gcc
15054 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15055 #      doesn't hurt to check since this sometimes defines pthreads too;
15056 #      also defines -D_REENTRANT)
15057 #      ... -mt is also the pthreads flag for HP/aCC
15058 # pthread: Linux, etcetera
15059 # --thread-safe: KAI C++
15060 # pthread-config: use pthread-config program (for GNU Pth library)
15061
15062 case "${host_cpu}-${host_os}" in
15063         *solaris*)
15064
15065         # On Solaris (at least, for some versions), libc contains stubbed
15066         # (non-functional) versions of the pthreads routines, so link-based
15067         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15068         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15069         # a function called by this macro, so we could check for that, but
15070         # who knows whether they'll stub that too in a future libc.)  So,
15071         # we'll just look for -pthreads and -lpthread first:
15072
15073         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15074         ;;
15075 esac
15076
15077 if test x"$acx_pthread_ok" = xno; then
15078 for flag in $acx_pthread_flags; do
15079
15080         case $flag in
15081                 none)
15082                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15083 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15084                 ;;
15085
15086                 -*)
15087                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15088 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15089                 PTHREAD_CFLAGS="$flag"
15090                 ;;
15091
15092                 pthread-config)
15093                 # Extract the first word of "pthread-config", so it can be a program name with args.
15094 set dummy pthread-config; ac_word=$2
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15096 $as_echo_n "checking for $ac_word... " >&6; }
15097 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15098   $as_echo_n "(cached) " >&6
15099 else
15100   if test -n "$acx_pthread_config"; then
15101   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15102 else
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15105 do
15106   IFS=$as_save_IFS
15107   test -z "$as_dir" && as_dir=.
15108     for ac_exec_ext in '' $ac_executable_extensions; do
15109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110     ac_cv_prog_acx_pthread_config="yes"
15111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15112     break 2
15113   fi
15114 done
15115   done
15116 IFS=$as_save_IFS
15117
15118   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15119 fi
15120 fi
15121 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15122 if test -n "$acx_pthread_config"; then
15123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15124 $as_echo "$acx_pthread_config" >&6; }
15125 else
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15128 fi
15129
15130
15131                 if test x"$acx_pthread_config" = xno; then continue; fi
15132                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15133                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15134                 ;;
15135
15136                 *)
15137                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15138 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15139                 PTHREAD_LIBS="-l$flag"
15140                 ;;
15141         esac
15142
15143         save_LIBS="$LIBS"
15144         save_CFLAGS="$CFLAGS"
15145         LIBS="$PTHREAD_LIBS $LIBS"
15146         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15147
15148         # Check for various functions.  We must include pthread.h,
15149         # since some functions may be macros.  (On the Sequent, we
15150         # need a special flag -Kthread to make this header compile.)
15151         # We check for pthread_join because it is in -lpthread on IRIX
15152         # while pthread_create is in libc.  We check for pthread_attr_init
15153         # due to DEC craziness with -lpthreads.  We check for
15154         # pthread_cleanup_push because it is one of the few pthread
15155         # functions on Solaris that doesn't have a non-functional libc stub.
15156         # We try pthread_create on general principles.
15157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h.  */
15159 #include <pthread.h>
15160 int
15161 main ()
15162 {
15163 pthread_t th; pthread_join(th, 0);
15164                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15165                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15171   acx_pthread_ok=yes
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174     conftest$ac_exeext conftest.$ac_ext
15175
15176         LIBS="$save_LIBS"
15177         CFLAGS="$save_CFLAGS"
15178
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15180 $as_echo "$acx_pthread_ok" >&6; }
15181         if test "x$acx_pthread_ok" = xyes; then
15182                 break;
15183         fi
15184
15185         PTHREAD_LIBS=""
15186         PTHREAD_CFLAGS=""
15187 done
15188 fi
15189
15190 # Various other checks:
15191 if test "x$acx_pthread_ok" = xyes; then
15192         save_LIBS="$LIBS"
15193         LIBS="$PTHREAD_LIBS $LIBS"
15194         save_CFLAGS="$CFLAGS"
15195         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15196
15197         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15199 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15200         attr_name=unknown
15201         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15202             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h.  */
15204 #include <pthread.h>
15205 int
15206 main ()
15207 {
15208 int attr=$attr; return attr;
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_link "$LINENO"; then :
15214   attr_name=$attr; break
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext \
15217     conftest$ac_exeext conftest.$ac_ext
15218         done
15219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15220 $as_echo "$attr_name" >&6; }
15221         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15222
15223 cat >>confdefs.h <<_ACEOF
15224 #define PTHREAD_CREATE_JOINABLE $attr_name
15225 _ACEOF
15226
15227         fi
15228
15229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15230 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15231         flag=no
15232         case "${host_cpu}-${host_os}" in
15233             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15234             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15235         esac
15236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15237 $as_echo "${flag}" >&6; }
15238         if test "x$flag" != xno; then
15239             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15240         fi
15241
15242         LIBS="$save_LIBS"
15243         CFLAGS="$save_CFLAGS"
15244
15245         # More AIX lossage: must compile with xlc_r or cc_r
15246         if test x"$GCC" != xyes; then
15247           for ac_prog in xlc_r cc_r
15248 do
15249   # Extract the first word of "$ac_prog", so it can be a program name with args.
15250 set dummy $ac_prog; ac_word=$2
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15252 $as_echo_n "checking for $ac_word... " >&6; }
15253 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15254   $as_echo_n "(cached) " >&6
15255 else
15256   if test -n "$PTHREAD_CC"; then
15257   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15258 else
15259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15260 for as_dir in $PATH
15261 do
15262   IFS=$as_save_IFS
15263   test -z "$as_dir" && as_dir=.
15264     for ac_exec_ext in '' $ac_executable_extensions; do
15265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15266     ac_cv_prog_PTHREAD_CC="$ac_prog"
15267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15268     break 2
15269   fi
15270 done
15271   done
15272 IFS=$as_save_IFS
15273
15274 fi
15275 fi
15276 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15277 if test -n "$PTHREAD_CC"; then
15278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15279 $as_echo "$PTHREAD_CC" >&6; }
15280 else
15281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15283 fi
15284
15285
15286   test -n "$PTHREAD_CC" && break
15287 done
15288 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15289
15290         else
15291           PTHREAD_CC=$CC
15292         fi
15293 else
15294         PTHREAD_CC="$CC"
15295 fi
15296
15297
15298
15299
15300
15301 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15302 if test x"$acx_pthread_ok" = xyes; then
15303
15304 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15305
15306         :
15307 else
15308         acx_pthread_ok=no
15309
15310 fi
15311 ac_ext=c
15312 ac_cpp='$CPP $CPPFLAGS'
15313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15316
15317
15318 CC="$PTHREAD_CC"
15319
15320 # Check if floor is in the math library, and if so add -lm to LIBS
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15322 $as_echo_n "checking for floor in -lm... " >&6; }
15323 if ${ac_cv_lib_m_floor+:} false; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lm  $LIBS"
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h.  */
15330
15331 /* Override any GCC internal prototype to avoid an error.
15332    Use char because int might match the return type of a GCC
15333    builtin and then its argument prototype would still apply.  */
15334 #ifdef __cplusplus
15335 extern "C"
15336 #endif
15337 char floor ();
15338 int
15339 main ()
15340 {
15341 return floor ();
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 if ac_fn_c_try_link "$LINENO"; then :
15347   ac_cv_lib_m_floor=yes
15348 else
15349   ac_cv_lib_m_floor=no
15350 fi
15351 rm -f core conftest.err conftest.$ac_objext \
15352     conftest$ac_exeext conftest.$ac_ext
15353 LIBS=$ac_check_lib_save_LIBS
15354 fi
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15356 $as_echo "$ac_cv_lib_m_floor" >&6; }
15357 if test "x$ac_cv_lib_m_floor" = xyes; then :
15358   cat >>confdefs.h <<_ACEOF
15359 #define HAVE_LIBM 1
15360 _ACEOF
15361
15362   LIBS="-lm $LIBS"
15363
15364 fi
15365
15366
15367 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
15368 # add -lrt to LIBS
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt" >&5
15370 $as_echo_n "checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt... " >&6; }
15371 if ${ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete+:} false; then :
15372   $as_echo_n "(cached) " >&6
15373 else
15374   ac_check_lib_save_LIBS=$LIBS
15375 LIBS="-lrt  $LIBS"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h.  */
15378
15379 /* Override any GCC internal prototype to avoid an error.
15380    Use char because int might match the return type of a GCC
15381    builtin and then its argument prototype would still apply.  */
15382 #ifdef __cplusplus
15383 extern "C"
15384 #endif
15385 char clock_gettime, timer_create, timer_settime, timer_delete ();
15386 int
15387 main ()
15388 {
15389 return clock_gettime, timer_create, timer_settime, timer_delete ();
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394 if ac_fn_c_try_link "$LINENO"; then :
15395   ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=yes
15396 else
15397   ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=no
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext \
15400     conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&5
15404 $as_echo "$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&6; }
15405 if test "x$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" = xyes; then :
15406   cat >>confdefs.h <<_ACEOF
15407 #define HAVE_LIBRT 1
15408 _ACEOF
15409
15410   LIBS="-lrt $LIBS"
15411
15412 fi
15413
15414
15415 # check that struct timespec is defined in time.h. If not, we need to
15416 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15417 # On MinGW and MinGW-w64, the pthread.h file contains the timespec
15418 # definition.
15419 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_sec" "ac_cv_member_struct_timespec_tv_sec" "
15420 #include <time.h>
15421 #if defined(HAVE_PTHREAD)
15422 #include <pthread.h>
15423 #endif /* HAVE_PTHREAD */
15424
15425 "
15426 if test "x$ac_cv_member_struct_timespec_tv_sec" = xyes; then :
15427
15428 cat >>confdefs.h <<_ACEOF
15429 #define HAVE_STRUCT_TIMESPEC_TV_SEC 1
15430 _ACEOF
15431
15432
15433 else
15434
15435 cat >>confdefs.h <<_ACEOF
15436 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15437 _ACEOF
15438
15439 fi
15440 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
15441 #include <time.h>
15442 #if defined(HAVE_PTHREAD)
15443 #include <pthread.h>
15444 #endif /* HAVE_PTHREAD */
15445
15446 "
15447 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
15451 _ACEOF
15452
15453
15454 else
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15458 _ACEOF
15459
15460 fi
15461
15462
15463 # check that struct itimerspec is defined in time.h. If not, we need to
15464 # define it in libcompat.h.  Note the optional inclusion of pthread.h.
15465 # On MinGW and MinGW-w64, the pthread.h file contains the itimerspec
15466 # definition.
15467 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_interval" "ac_cv_member_struct_itimerspec_it_interval" "
15468 #include <time.h>
15469 #if defined(HAVE_PTHREAD)
15470 #include <pthread.h>
15471 #endif /* HAVE_PTHREAD */
15472
15473 "
15474 if test "x$ac_cv_member_struct_itimerspec_it_interval" = xyes; then :
15475
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_STRUCT_ITIMERSPEC_IT_INTERVAL 1
15478 _ACEOF
15479
15480
15481 else
15482
15483 cat >>confdefs.h <<_ACEOF
15484 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15485 _ACEOF
15486
15487 fi
15488 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_value" "ac_cv_member_struct_itimerspec_it_value" "
15489 #include <time.h>
15490 #if defined(HAVE_PTHREAD)
15491 #include <pthread.h>
15492 #endif /* HAVE_PTHREAD */
15493
15494 "
15495 if test "x$ac_cv_member_struct_itimerspec_it_value" = xyes; then :
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_STRUCT_ITIMERSPEC_IT_VALUE 1
15499 _ACEOF
15500
15501
15502 else
15503
15504 cat >>confdefs.h <<_ACEOF
15505 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15506 _ACEOF
15507
15508 fi
15509
15510
15511 # Checks for header files.
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15513 $as_echo_n "checking for ANSI C header files... " >&6; }
15514 if ${ac_cv_header_stdc+:} false; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h.  */
15519 #include <stdlib.h>
15520 #include <stdarg.h>
15521 #include <string.h>
15522 #include <float.h>
15523
15524 int
15525 main ()
15526 {
15527
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_compile "$LINENO"; then :
15533   ac_cv_header_stdc=yes
15534 else
15535   ac_cv_header_stdc=no
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538
15539 if test $ac_cv_header_stdc = yes; then
15540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h.  */
15543 #include <string.h>
15544
15545 _ACEOF
15546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15547   $EGREP "memchr" >/dev/null 2>&1; then :
15548
15549 else
15550   ac_cv_header_stdc=no
15551 fi
15552 rm -f conftest*
15553
15554 fi
15555
15556 if test $ac_cv_header_stdc = yes; then
15557   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h.  */
15560 #include <stdlib.h>
15561
15562 _ACEOF
15563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15564   $EGREP "free" >/dev/null 2>&1; then :
15565
15566 else
15567   ac_cv_header_stdc=no
15568 fi
15569 rm -f conftest*
15570
15571 fi
15572
15573 if test $ac_cv_header_stdc = yes; then
15574   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15575   if test "$cross_compiling" = yes; then :
15576   :
15577 else
15578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h.  */
15580 #include <ctype.h>
15581 #include <stdlib.h>
15582 #if ((' ' & 0x0FF) == 0x020)
15583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15585 #else
15586 # define ISLOWER(c) \
15587                    (('a' <= (c) && (c) <= 'i') \
15588                      || ('j' <= (c) && (c) <= 'r') \
15589                      || ('s' <= (c) && (c) <= 'z'))
15590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15591 #endif
15592
15593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15594 int
15595 main ()
15596 {
15597   int i;
15598   for (i = 0; i < 256; i++)
15599     if (XOR (islower (i), ISLOWER (i))
15600         || toupper (i) != TOUPPER (i))
15601       return 2;
15602   return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_run "$LINENO"; then :
15606
15607 else
15608   ac_cv_header_stdc=no
15609 fi
15610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15611   conftest.$ac_objext conftest.beam conftest.$ac_ext
15612 fi
15613
15614 fi
15615 fi
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15617 $as_echo "$ac_cv_header_stdc" >&6; }
15618 if test $ac_cv_header_stdc = yes; then
15619
15620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15621
15622 fi
15623
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15625 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15626 if ${ac_cv_header_sys_wait_h+:} false; then :
15627   $as_echo_n "(cached) " >&6
15628 else
15629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h.  */
15631 #include <sys/types.h>
15632 #include <sys/wait.h>
15633 #ifndef WEXITSTATUS
15634 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15635 #endif
15636 #ifndef WIFEXITED
15637 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15638 #endif
15639
15640 int
15641 main ()
15642 {
15643   int s;
15644   wait (&s);
15645   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15646   ;
15647   return 0;
15648 }
15649 _ACEOF
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651   ac_cv_header_sys_wait_h=yes
15652 else
15653   ac_cv_header_sys_wait_h=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15659 if test $ac_cv_header_sys_wait_h = yes; then
15660
15661 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15662
15663 fi
15664
15665 for ac_header in fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h
15666 do :
15667   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15670   cat >>confdefs.h <<_ACEOF
15671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15672 _ACEOF
15673
15674 fi
15675
15676 done
15677
15678 # ------ AX CREATE STDINT H -------------------------------------
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15680 $as_echo_n "checking for stdint types... " >&6; }
15681 ac_stdint_h=`echo check_stdint.h`
15682 # try to shortcircuit - if the default include path of the compiler
15683 # can find a "stdint.h" header then we assume that all compilers can.
15684 if ${ac_cv_header_stdint_t+:} false; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687
15688 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15689 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15690 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h.  */
15693 #include <stdint.h>
15694 int
15695 main ()
15696 {
15697 int_least32_t v = 0;
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703   ac_cv_stdint_result="(assuming C99 compatible system)"
15704  ac_cv_header_stdint_t="stdint.h";
15705 else
15706   ac_cv_header_stdint_t=""
15707 fi
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15710 CFLAGS="-std=c99"
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h.  */
15713 #include <stdint.h>
15714 int
15715 main ()
15716 {
15717 int_least32_t v = 0;
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15724 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15725 fi
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 fi
15728 CXXFLAGS="$old_CXXFLAGS"
15729 CPPFLAGS="$old_CPPFLAGS"
15730 CFLAGS="$old_CFLAGS"
15731 fi
15732
15733
15734 v="... $ac_cv_header_stdint_h"
15735 if test "$ac_stdint_h" = "stdint.h" ; then
15736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15737 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15738 elif test "$ac_stdint_h" = "inttypes.h" ; then
15739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15740 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15741 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15743 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15744 else
15745  ac_cv_header_stdint="$ac_cv_header_stdint_t"
15746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15747 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15748 fi
15749
15750 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
15751
15752
15753 inttype_headers=`echo  | sed -e 's/,/ /g'`
15754
15755 ac_cv_stdint_result="(no helpful system typedefs seen)"
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15758 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15759 if ${ac_cv_header_stdint_x+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762
15763  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15765 $as_echo "(..)" >&6; }
15766   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
15767   do
15768    unset ac_cv_type_uintptr_t
15769    unset ac_cv_type_uint64_t
15770    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15771 "
15772 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15773   ac_cv_header_stdint_x=$i
15774 else
15775   continue
15776 fi
15777
15778    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15779 "
15780 if test "x$ac_cv_type_uint64_t" = xyes; then :
15781   and64="/uint64_t"
15782 else
15783   and64=""
15784 fi
15785
15786    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15787  break
15788   done
15789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15790 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15791
15792 fi
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15794 $as_echo "$ac_cv_header_stdint_x" >&6; }
15795
15796
15797 if test "_$ac_cv_header_stdint_x" = "_" ; then
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15800 $as_echo_n "checking for stdint uint32_t... " >&6; }
15801 if ${ac_cv_header_stdint_o+:} false; then :
15802   $as_echo_n "(cached) " >&6
15803 else
15804
15805  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15807 $as_echo "(..)" >&6; }
15808   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
15809   do
15810    unset ac_cv_type_uint32_t
15811    unset ac_cv_type_uint64_t
15812    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15813 "
15814 if test "x$ac_cv_type_uint32_t" = xyes; then :
15815   ac_cv_header_stdint_o=$i
15816 else
15817   continue
15818 fi
15819
15820    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15821 "
15822 if test "x$ac_cv_type_uint64_t" = xyes; then :
15823   and64="/uint64_t"
15824 else
15825   and64=""
15826 fi
15827
15828    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15829  break
15830    break;
15831   done
15832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15833 $as_echo_n "checking for stdint uint32_t... " >&6; }
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
15837 $as_echo "$ac_cv_header_stdint_o" >&6; }
15838
15839 fi
15840
15841 if test "_$ac_cv_header_stdint_x" = "_" ; then
15842 if test "_$ac_cv_header_stdint_o" = "_" ; then
15843
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15845 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15846 if ${ac_cv_header_stdint_u+:} false; then :
15847   $as_echo_n "(cached) " >&6
15848 else
15849
15850  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15852 $as_echo "(..)" >&6; }
15853   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15854    unset ac_cv_type_u_int32_t
15855    unset ac_cv_type_u_int64_t
15856    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
15857 "
15858 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15859   ac_cv_header_stdint_u=$i
15860 else
15861   continue
15862 fi
15863
15864    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
15865 "
15866 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15867   and64="/u_int64_t"
15868 else
15869   and64=""
15870 fi
15871
15872    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
15873  break
15874    break;
15875   done
15876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15877 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15878
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
15881 $as_echo "$ac_cv_header_stdint_u" >&6; }
15882
15883 fi fi
15884
15885 if test "_$ac_cv_header_stdint_x" = "_" ; then
15886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
15887 $as_echo_n "checking for stdint datatype model... " >&6; }
15888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15889 $as_echo "(..)" >&6; }
15890
15891    # The cast to long int works around a bug in the HP C Compiler
15892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15894 # This bug is HP SR number 8606223364.
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15896 $as_echo_n "checking size of char... " >&6; }
15897 if ${ac_cv_sizeof_char+:} false; then :
15898   $as_echo_n "(cached) " >&6
15899 else
15900   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15901
15902 else
15903   if test "$ac_cv_type_char" = yes; then
15904      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15906 as_fn_error 77 "cannot compute sizeof (char)
15907 See \`config.log' for more details" "$LINENO" 5; }
15908    else
15909      ac_cv_sizeof_char=0
15910    fi
15911 fi
15912
15913 fi
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15915 $as_echo "$ac_cv_sizeof_char" >&6; }
15916
15917
15918
15919 cat >>confdefs.h <<_ACEOF
15920 #define SIZEOF_CHAR $ac_cv_sizeof_char
15921 _ACEOF
15922
15923
15924    # The cast to long int works around a bug in the HP C Compiler
15925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15927 # This bug is HP SR number 8606223364.
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15929 $as_echo_n "checking size of short... " >&6; }
15930 if ${ac_cv_sizeof_short+:} false; then :
15931   $as_echo_n "(cached) " >&6
15932 else
15933   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15934
15935 else
15936   if test "$ac_cv_type_short" = yes; then
15937      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15939 as_fn_error 77 "cannot compute sizeof (short)
15940 See \`config.log' for more details" "$LINENO" 5; }
15941    else
15942      ac_cv_sizeof_short=0
15943    fi
15944 fi
15945
15946 fi
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15948 $as_echo "$ac_cv_sizeof_short" >&6; }
15949
15950
15951
15952 cat >>confdefs.h <<_ACEOF
15953 #define SIZEOF_SHORT $ac_cv_sizeof_short
15954 _ACEOF
15955
15956
15957    # The cast to long int works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15962 $as_echo_n "checking size of int... " >&6; }
15963 if ${ac_cv_sizeof_int+:} false; then :
15964   $as_echo_n "(cached) " >&6
15965 else
15966   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15967
15968 else
15969   if test "$ac_cv_type_int" = yes; then
15970      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15972 as_fn_error 77 "cannot compute sizeof (int)
15973 See \`config.log' for more details" "$LINENO" 5; }
15974    else
15975      ac_cv_sizeof_int=0
15976    fi
15977 fi
15978
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15981 $as_echo "$ac_cv_sizeof_int" >&6; }
15982
15983
15984
15985 cat >>confdefs.h <<_ACEOF
15986 #define SIZEOF_INT $ac_cv_sizeof_int
15987 _ACEOF
15988
15989
15990    # The cast to long int works around a bug in the HP C Compiler
15991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15993 # This bug is HP SR number 8606223364.
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15995 $as_echo_n "checking size of long... " >&6; }
15996 if ${ac_cv_sizeof_long+:} false; then :
15997   $as_echo_n "(cached) " >&6
15998 else
15999   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16000
16001 else
16002   if test "$ac_cv_type_long" = yes; then
16003      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16005 as_fn_error 77 "cannot compute sizeof (long)
16006 See \`config.log' for more details" "$LINENO" 5; }
16007    else
16008      ac_cv_sizeof_long=0
16009    fi
16010 fi
16011
16012 fi
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16014 $as_echo "$ac_cv_sizeof_long" >&6; }
16015
16016
16017
16018 cat >>confdefs.h <<_ACEOF
16019 #define SIZEOF_LONG $ac_cv_sizeof_long
16020 _ACEOF
16021
16022
16023    # The cast to long int works around a bug in the HP C Compiler
16024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16026 # This bug is HP SR number 8606223364.
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
16028 $as_echo_n "checking size of void*... " >&6; }
16029 if ${ac_cv_sizeof_voidp+:} false; then :
16030   $as_echo_n "(cached) " >&6
16031 else
16032   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
16033
16034 else
16035   if test "$ac_cv_type_voidp" = yes; then
16036      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16038 as_fn_error 77 "cannot compute sizeof (void*)
16039 See \`config.log' for more details" "$LINENO" 5; }
16040    else
16041      ac_cv_sizeof_voidp=0
16042    fi
16043 fi
16044
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
16047 $as_echo "$ac_cv_sizeof_voidp" >&6; }
16048
16049
16050
16051 cat >>confdefs.h <<_ACEOF
16052 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
16053 _ACEOF
16054
16055
16056    ac_cv_char_data_model=""
16057    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
16058    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
16059    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
16060    ac_cv_long_data_model=""
16061    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
16062    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
16063    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
16064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
16065 $as_echo_n "checking data model... " >&6; }
16066    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16067     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
16068     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
16069     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
16070     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16071     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
16072     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16073     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
16074     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16075     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
16076     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16077     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16078     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16079     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16080     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16081     222/*|333/*|444/*|666/*|888/*) :
16082                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
16083      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
16084    esac
16085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16086 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16087
16088 fi
16089
16090 if test "_$ac_cv_header_stdint_x" != "_" ; then
16091    ac_cv_header_stdint="$ac_cv_header_stdint_x"
16092 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
16093    ac_cv_header_stdint="$ac_cv_header_stdint_o"
16094 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
16095    ac_cv_header_stdint="$ac_cv_header_stdint_u"
16096 else
16097    ac_cv_header_stdint="stddef.h"
16098 fi
16099
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16101 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16103 $as_echo "($ac_cv_header_stdint)" >&6; }
16104 unset ac_cv_type_int_least32_t
16105 unset ac_cv_type_int_fast32_t
16106 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16107 "
16108 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16109
16110 fi
16111
16112 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16113 "
16114 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16115
16116 fi
16117
16118 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16119 "
16120 if test "x$ac_cv_type_intmax_t" = xyes; then :
16121
16122 fi
16123
16124
16125 fi # shortcircut to system "stdint.h"
16126 # ------------------ PREPARE VARIABLES ------------------------------
16127 if test "$GCC" = "yes" ; then
16128 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16129 else
16130 ac_cv_stdint_message="using $CC"
16131 fi
16132
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16134 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16135
16136 # ----------------- DONE inttypes.h checks START header -------------
16137 ac_config_commands="$ac_config_commands $ac_stdint_h"
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16149         if test -n "$ac_tool_prefix"; then
16150   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16155   $as_echo_n "(cached) " >&6
16156 else
16157   case $PKG_CONFIG in
16158   [\\/]* | ?:[\\/]*)
16159   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16160   ;;
16161   *)
16162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16164 do
16165   IFS=$as_save_IFS
16166   test -z "$as_dir" && as_dir=.
16167     for ac_exec_ext in '' $ac_executable_extensions; do
16168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16169     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16171     break 2
16172   fi
16173 done
16174   done
16175 IFS=$as_save_IFS
16176
16177   ;;
16178 esac
16179 fi
16180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16181 if test -n "$PKG_CONFIG"; then
16182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16183 $as_echo "$PKG_CONFIG" >&6; }
16184 else
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16186 $as_echo "no" >&6; }
16187 fi
16188
16189
16190 fi
16191 if test -z "$ac_cv_path_PKG_CONFIG"; then
16192   ac_pt_PKG_CONFIG=$PKG_CONFIG
16193   # Extract the first word of "pkg-config", so it can be a program name with args.
16194 set dummy pkg-config; ac_word=$2
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16196 $as_echo_n "checking for $ac_word... " >&6; }
16197 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16198   $as_echo_n "(cached) " >&6
16199 else
16200   case $ac_pt_PKG_CONFIG in
16201   [\\/]* | ?:[\\/]*)
16202   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16203   ;;
16204   *)
16205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 for as_dir in $PATH
16207 do
16208   IFS=$as_save_IFS
16209   test -z "$as_dir" && as_dir=.
16210     for ac_exec_ext in '' $ac_executable_extensions; do
16211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214     break 2
16215   fi
16216 done
16217   done
16218 IFS=$as_save_IFS
16219
16220   ;;
16221 esac
16222 fi
16223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16224 if test -n "$ac_pt_PKG_CONFIG"; then
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16226 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16227 else
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231
16232   if test "x$ac_pt_PKG_CONFIG" = x; then
16233     PKG_CONFIG=""
16234   else
16235     case $cross_compiling:$ac_tool_warned in
16236 yes:)
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16239 ac_tool_warned=yes ;;
16240 esac
16241     PKG_CONFIG=$ac_pt_PKG_CONFIG
16242   fi
16243 else
16244   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16245 fi
16246
16247 fi
16248 if test -n "$PKG_CONFIG"; then
16249         _pkg_min_version=0.9.0
16250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16251 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16252         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16254 $as_echo "yes" >&6; }
16255         else
16256                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258                 PKG_CONFIG=""
16259         fi
16260 fi
16261 if test x"$enable_subunit" != "xfalse" && test x"$enable_subunit" != "xtrue"; then :
16262
16263         if test -n "$PKG_CONFIG" && \
16264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16265   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16266   ac_status=$?
16267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268   test $ac_status = 0; }; then
16269   :
16270 else
16271   enable_subunit=false
16272 fi
16273
16274 fi
16275 if test x"$enable_subunit" != "xfalse"; then :
16276
16277
16278 pkg_failed=no
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsubunit" >&5
16280 $as_echo_n "checking for libsubunit... " >&6; }
16281
16282 if test -n "$LIBSUBUNIT_CFLAGS"; then
16283     pkg_cv_LIBSUBUNIT_CFLAGS="$LIBSUBUNIT_CFLAGS"
16284  elif test -n "$PKG_CONFIG"; then
16285     if test -n "$PKG_CONFIG" && \
16286     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16287   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16288   ac_status=$?
16289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290   test $ac_status = 0; }; then
16291   pkg_cv_LIBSUBUNIT_CFLAGS=`$PKG_CONFIG --cflags "libsubunit" 2>/dev/null`
16292                       test "x$?" != "x0" && pkg_failed=yes
16293 else
16294   pkg_failed=yes
16295 fi
16296  else
16297     pkg_failed=untried
16298 fi
16299 if test -n "$LIBSUBUNIT_LIBS"; then
16300     pkg_cv_LIBSUBUNIT_LIBS="$LIBSUBUNIT_LIBS"
16301  elif test -n "$PKG_CONFIG"; then
16302     if test -n "$PKG_CONFIG" && \
16303     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16304   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16305   ac_status=$?
16306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16307   test $ac_status = 0; }; then
16308   pkg_cv_LIBSUBUNIT_LIBS=`$PKG_CONFIG --libs "libsubunit" 2>/dev/null`
16309                       test "x$?" != "x0" && pkg_failed=yes
16310 else
16311   pkg_failed=yes
16312 fi
16313  else
16314     pkg_failed=untried
16315 fi
16316
16317
16318
16319 if test $pkg_failed = yes; then
16320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16322
16323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16324         _pkg_short_errors_supported=yes
16325 else
16326         _pkg_short_errors_supported=no
16327 fi
16328         if test $_pkg_short_errors_supported = yes; then
16329                 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsubunit" 2>&1`
16330         else
16331                 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsubunit" 2>&1`
16332         fi
16333         # Put the nasty error message in config.log where it belongs
16334         echo "$LIBSUBUNIT_PKG_ERRORS" >&5
16335
16336         as_fn_error $? "Package requirements (libsubunit) were not met:
16337
16338 $LIBSUBUNIT_PKG_ERRORS
16339
16340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16341 installed software in a non-standard prefix.
16342
16343 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16344 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16345 See the pkg-config man page for more details." "$LINENO" 5
16346 elif test $pkg_failed = untried; then
16347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16349         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16351 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16352 is in your PATH or set the PKG_CONFIG environment variable to the full
16353 path to pkg-config.
16354
16355 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16356 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16357 See the pkg-config man page for more details.
16358
16359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16360 See \`config.log' for more details" "$LINENO" 5; }
16361 else
16362         LIBSUBUNIT_CFLAGS=$pkg_cv_LIBSUBUNIT_CFLAGS
16363         LIBSUBUNIT_LIBS=$pkg_cv_LIBSUBUNIT_LIBS
16364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16365 $as_echo "yes" >&6; }
16366
16367 fi
16368
16369 fi
16370 if test "xfalse" = x"$enable_subunit"; then
16371 ENABLE_SUBUNIT="0"
16372 LIBSUBUNIT_PC=""
16373 else
16374 ENABLE_SUBUNIT="1"
16375 LIBSUBUNIT_PC="libsubunit"
16376 fi
16377
16378
16379
16380 cat >>confdefs.h <<_ACEOF
16381 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
16382 _ACEOF
16383
16384
16385  if test x"$enable_subunit" != "xfalse"; then
16386   SUBUNIT_TRUE=
16387   SUBUNIT_FALSE='#'
16388 else
16389   SUBUNIT_TRUE='#'
16390   SUBUNIT_FALSE=
16391 fi
16392
16393
16394 # Check for POSIX regular expressions support.
16395 for ac_header in regex.h
16396 do :
16397   ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_regex_h" = xyes; then :
16399   cat >>confdefs.h <<_ACEOF
16400 #define HAVE_REGEX_H 1
16401 _ACEOF
16402  HAVE_REGEX_H=1
16403 else
16404   HAVE_REGEX_H=0
16405 fi
16406
16407 done
16408
16409
16410 if test "x$HAVE_REGEX_H" = "x1"; then
16411     for ac_func in regcomp regexec
16412 do :
16413   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16415 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16416   cat >>confdefs.h <<_ACEOF
16417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16418 _ACEOF
16419  HAVE_REGEX=1
16420 else
16421   HAVE_REGEX=0
16422 fi
16423 done
16424
16425 else
16426     HAVE_REGEX=0
16427 fi
16428
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define HAVE_REGEX $HAVE_REGEX
16432 _ACEOF
16433
16434
16435 if test "x$HAVE_REGEX" = "x1"; then
16436     ENABLE_REGEX="1"
16437 else
16438     ENABLE_REGEX="0"
16439 fi
16440
16441
16442 cat >>confdefs.h <<_ACEOF
16443 #define ENABLE_REGEX $ENABLE_REGEX
16444 _ACEOF
16445
16446
16447 # Checks for typedefs, structures, and compiler characteristics.
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16449 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16450 if ${ac_cv_c_const+:} false; then :
16451   $as_echo_n "(cached) " >&6
16452 else
16453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h.  */
16455
16456 int
16457 main ()
16458 {
16459
16460 #ifndef __cplusplus
16461   /* Ultrix mips cc rejects this sort of thing.  */
16462   typedef int charset[2];
16463   const charset cs = { 0, 0 };
16464   /* SunOS 4.1.1 cc rejects this.  */
16465   char const *const *pcpcc;
16466   char **ppc;
16467   /* NEC SVR4.0.2 mips cc rejects this.  */
16468   struct point {int x, y;};
16469   static struct point const zero = {0,0};
16470   /* AIX XL C 1.02.0.0 rejects this.
16471      It does not let you subtract one const X* pointer from another in
16472      an arm of an if-expression whose if-part is not a constant
16473      expression */
16474   const char *g = "string";
16475   pcpcc = &g + (g ? g-g : 0);
16476   /* HPUX 7.0 cc rejects these. */
16477   ++pcpcc;
16478   ppc = (char**) pcpcc;
16479   pcpcc = (char const *const *) ppc;
16480   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16481     char tx;
16482     char *t = &tx;
16483     char const *s = 0 ? (char *) 0 : (char const *) 0;
16484
16485     *t++ = 0;
16486     if (s) return 0;
16487   }
16488   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16489     int x[] = {25, 17};
16490     const int *foo = &x[0];
16491     ++foo;
16492   }
16493   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16494     typedef const int *iptr;
16495     iptr p = 0;
16496     ++p;
16497   }
16498   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16499        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16500     struct s { int j; const int *ap[3]; } bx;
16501     struct s *b = &bx; b->j = 5;
16502   }
16503   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16504     const int foo = 10;
16505     if (!foo) return 0;
16506   }
16507   return !cs[0] && !zero.x;
16508 #endif
16509
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 if ac_fn_c_try_compile "$LINENO"; then :
16515   ac_cv_c_const=yes
16516 else
16517   ac_cv_c_const=no
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16522 $as_echo "$ac_cv_c_const" >&6; }
16523 if test $ac_cv_c_const = no; then
16524
16525 $as_echo "#define const /**/" >>confdefs.h
16526
16527 fi
16528
16529 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16530 if test "x$ac_cv_type_pid_t" = xyes; then :
16531
16532 else
16533
16534 cat >>confdefs.h <<_ACEOF
16535 #define pid_t int
16536 _ACEOF
16537
16538 fi
16539
16540 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16541 if test "x$ac_cv_type_size_t" = xyes; then :
16542
16543 else
16544
16545 cat >>confdefs.h <<_ACEOF
16546 #define size_t unsigned int
16547 _ACEOF
16548
16549 fi
16550
16551
16552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16553 $as_echo_n "checking for unsigned long long int... " >&6; }
16554 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16555   $as_echo_n "(cached) " >&6
16556 else
16557   ac_cv_type_unsigned_long_long_int=yes
16558      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16559        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h.  */
16561
16562   /* For now, do not test the preprocessor; as of 2007 there are too many
16563          implementations with broken preprocessors.  Perhaps this can
16564          be revisited in 2012.  In the meantime, code should not expect
16565          #if to work with literals wider than 32 bits.  */
16566       /* Test literals.  */
16567       long long int ll = 9223372036854775807ll;
16568       long long int nll = -9223372036854775807LL;
16569       unsigned long long int ull = 18446744073709551615ULL;
16570       /* Test constant expressions.   */
16571       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16572                      ? 1 : -1)];
16573       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16574                      ? 1 : -1)];
16575       int i = 63;
16576 int
16577 main ()
16578 {
16579 /* Test availability of runtime routines for shift and division.  */
16580       long long int llmax = 9223372036854775807ll;
16581       unsigned long long int ullmax = 18446744073709551615ull;
16582       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16583               | (llmax / ll) | (llmax % ll)
16584               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16585               | (ullmax / ull) | (ullmax % ull));
16586   ;
16587   return 0;
16588 }
16589
16590 _ACEOF
16591 if ac_fn_c_try_link "$LINENO"; then :
16592
16593 else
16594   ac_cv_type_unsigned_long_long_int=no
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext \
16597     conftest$ac_exeext conftest.$ac_ext
16598      fi
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16601 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16602   if test $ac_cv_type_unsigned_long_long_int = yes; then
16603
16604 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16605
16606   fi
16607
16608
16609
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16611 $as_echo_n "checking for long long int... " >&6; }
16612 if ${ac_cv_type_long_long_int+:} false; then :
16613   $as_echo_n "(cached) " >&6
16614 else
16615   ac_cv_type_long_long_int=yes
16616       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16617         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16618         if test $ac_cv_type_long_long_int = yes; then
16619                                   if test "$cross_compiling" = yes; then :
16620   :
16621 else
16622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h.  */
16624 #include <limits.h>
16625                  #ifndef LLONG_MAX
16626                  # define HALF \
16627                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16628                  # define LLONG_MAX (HALF - 1 + HALF)
16629                  #endif
16630 int
16631 main ()
16632 {
16633 long long int n = 1;
16634                  int i;
16635                  for (i = 0; ; i++)
16636                    {
16637                      long long int m = n << i;
16638                      if (m >> i != n)
16639                        return 1;
16640                      if (LLONG_MAX / 2 < m)
16641                        break;
16642                    }
16643                  return 0;
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_run "$LINENO"; then :
16649
16650 else
16651   ac_cv_type_long_long_int=no
16652 fi
16653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16654   conftest.$ac_objext conftest.beam conftest.$ac_ext
16655 fi
16656
16657         fi
16658       fi
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16661 $as_echo "$ac_cv_type_long_long_int" >&6; }
16662   if test $ac_cv_type_long_long_int = yes; then
16663
16664 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16665
16666   fi
16667
16668
16669
16670   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16671 if test "x$ac_cv_type_intmax_t" = xyes; then :
16672
16673 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16674
16675 else
16676   test $ac_cv_type_long_long_int = yes \
16677        && ac_type='long long int' \
16678        || ac_type='long int'
16679
16680 cat >>confdefs.h <<_ACEOF
16681 #define intmax_t $ac_type
16682 _ACEOF
16683
16684 fi
16685
16686
16687
16688
16689   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16690 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16691
16692 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16693
16694 else
16695   test $ac_cv_type_unsigned_long_long_int = yes \
16696        && ac_type='unsigned long long int' \
16697        || ac_type='unsigned long int'
16698
16699 cat >>confdefs.h <<_ACEOF
16700 #define uintmax_t $ac_type
16701 _ACEOF
16702
16703 fi
16704
16705
16706 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16707 case $ac_cv_c_uint32_t in #(
16708   no|yes) ;; #(
16709   *)
16710
16711 $as_echo "#define _UINT32_T 1" >>confdefs.h
16712
16713
16714 cat >>confdefs.h <<_ACEOF
16715 #define uint32_t $ac_cv_c_uint32_t
16716 _ACEOF
16717 ;;
16718   esac
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16721 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16722 if ${ac_cv_header_time+:} false; then :
16723   $as_echo_n "(cached) " >&6
16724 else
16725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h.  */
16727 #include <sys/types.h>
16728 #include <sys/time.h>
16729 #include <time.h>
16730
16731 int
16732 main ()
16733 {
16734 if ((struct tm *) 0)
16735 return 0;
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741   ac_cv_header_time=yes
16742 else
16743   ac_cv_header_time=no
16744 fi
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16748 $as_echo "$ac_cv_header_time" >&6; }
16749 if test $ac_cv_header_time = yes; then
16750
16751 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16752
16753 fi
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16756 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16757 if ${ac_cv_struct_tm+:} false; then :
16758   $as_echo_n "(cached) " >&6
16759 else
16760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h.  */
16762 #include <sys/types.h>
16763 #include <time.h>
16764
16765 int
16766 main ()
16767 {
16768 struct tm tm;
16769                                      int *p = &tm.tm_sec;
16770                                      return !p;
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 if ac_fn_c_try_compile "$LINENO"; then :
16776   ac_cv_struct_tm=time.h
16777 else
16778   ac_cv_struct_tm=sys/time.h
16779 fi
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16783 $as_echo "$ac_cv_struct_tm" >&6; }
16784 if test $ac_cv_struct_tm = sys/time.h; then
16785
16786 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16787
16788 fi
16789
16790
16791 # The cast to long int works around a bug in the HP C Compiler
16792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16794 # This bug is HP SR number 8606223364.
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16796 $as_echo_n "checking size of int... " >&6; }
16797 if ${ac_cv_sizeof_int+:} false; then :
16798   $as_echo_n "(cached) " >&6
16799 else
16800   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16801
16802 else
16803   if test "$ac_cv_type_int" = yes; then
16804      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16806 as_fn_error 77 "cannot compute sizeof (int)
16807 See \`config.log' for more details" "$LINENO" 5; }
16808    else
16809      ac_cv_sizeof_int=0
16810    fi
16811 fi
16812
16813 fi
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16815 $as_echo "$ac_cv_sizeof_int" >&6; }
16816
16817
16818
16819 cat >>confdefs.h <<_ACEOF
16820 #define SIZEOF_INT $ac_cv_sizeof_int
16821 _ACEOF
16822
16823
16824 # The cast to long int works around a bug in the HP C Compiler
16825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16827 # This bug is HP SR number 8606223364.
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16829 $as_echo_n "checking size of short... " >&6; }
16830 if ${ac_cv_sizeof_short+:} false; then :
16831   $as_echo_n "(cached) " >&6
16832 else
16833   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16834
16835 else
16836   if test "$ac_cv_type_short" = yes; then
16837      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16839 as_fn_error 77 "cannot compute sizeof (short)
16840 See \`config.log' for more details" "$LINENO" 5; }
16841    else
16842      ac_cv_sizeof_short=0
16843    fi
16844 fi
16845
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16848 $as_echo "$ac_cv_sizeof_short" >&6; }
16849
16850
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define SIZEOF_SHORT $ac_cv_sizeof_short
16854 _ACEOF
16855
16856
16857 # The cast to long int works around a bug in the HP C Compiler
16858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16860 # This bug is HP SR number 8606223364.
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16862 $as_echo_n "checking size of long... " >&6; }
16863 if ${ac_cv_sizeof_long+:} false; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16867
16868 else
16869   if test "$ac_cv_type_long" = yes; then
16870      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16872 as_fn_error 77 "cannot compute sizeof (long)
16873 See \`config.log' for more details" "$LINENO" 5; }
16874    else
16875      ac_cv_sizeof_long=0
16876    fi
16877 fi
16878
16879 fi
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16881 $as_echo "$ac_cv_sizeof_long" >&6; }
16882
16883
16884
16885 cat >>confdefs.h <<_ACEOF
16886 #define SIZEOF_LONG $ac_cv_sizeof_long
16887 _ACEOF
16888
16889
16890
16891 # The following two checks will attempt to include pthread.h. The
16892 # reason is MinGW and MinGW-w64 have been known to put the time
16893 # related definitions in the pthread headers. Without include
16894 # pthread.h, these checks may mistakenly fail to find the
16895 # definitions.
16896 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16897 $ac_includes_default
16898 #if defined(HAVE_PTHREAD)
16899 #include <pthread.h>
16900 #endif /* HAVE_PTHREAD */
16901
16902 "
16903 if test "x$ac_cv_type_clockid_t" = xyes; then :
16904
16905 else
16906
16907 $as_echo "#define clockid_t int" >>confdefs.h
16908
16909 fi
16910
16911 ac_fn_c_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "
16912 $ac_includes_default
16913 #if defined(HAVE_PTHREAD)
16914 #include <pthread.h>
16915 #endif /* HAVE_PTHREAD */
16916
16917 "
16918 if test "x$ac_cv_type_timer_t" = xyes; then :
16919
16920 else
16921
16922 $as_echo "#define timer_t int" >>confdefs.h
16923
16924 fi
16925
16926
16927 # Checks for library functions.
16928 for ac_header in stdlib.h
16929 do :
16930   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16931 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16932   cat >>confdefs.h <<_ACEOF
16933 #define HAVE_STDLIB_H 1
16934 _ACEOF
16935
16936 fi
16937
16938 done
16939
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16941 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16942 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16943   $as_echo_n "(cached) " >&6
16944 else
16945   if test "$cross_compiling" = yes; then :
16946   ac_cv_func_malloc_0_nonnull=no
16947 else
16948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h.  */
16950 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16951 # include <stdlib.h>
16952 #else
16953 char *malloc ();
16954 #endif
16955
16956 int
16957 main ()
16958 {
16959 return ! malloc (0);
16960   ;
16961   return 0;
16962 }
16963 _ACEOF
16964 if ac_fn_c_try_run "$LINENO"; then :
16965   ac_cv_func_malloc_0_nonnull=yes
16966 else
16967   ac_cv_func_malloc_0_nonnull=no
16968 fi
16969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16970   conftest.$ac_objext conftest.beam conftest.$ac_ext
16971 fi
16972
16973 fi
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16975 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16976 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16977
16978 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16979
16980 else
16981   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16982
16983    case " $LIBOBJS " in
16984   *" malloc.$ac_objext "* ) ;;
16985   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16986  ;;
16987 esac
16988
16989
16990 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16991
16992 fi
16993
16994
16995 for ac_header in stdlib.h
16996 do :
16997   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16998 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16999   cat >>confdefs.h <<_ACEOF
17000 #define HAVE_STDLIB_H 1
17001 _ACEOF
17002
17003 fi
17004
17005 done
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
17008 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
17009 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
17010   $as_echo_n "(cached) " >&6
17011 else
17012   if test "$cross_compiling" = yes; then :
17013   ac_cv_func_realloc_0_nonnull=no
17014 else
17015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17016 /* end confdefs.h.  */
17017 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17018 # include <stdlib.h>
17019 #else
17020 char *realloc ();
17021 #endif
17022
17023 int
17024 main ()
17025 {
17026 return ! realloc (0, 0);
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 if ac_fn_c_try_run "$LINENO"; then :
17032   ac_cv_func_realloc_0_nonnull=yes
17033 else
17034   ac_cv_func_realloc_0_nonnull=no
17035 fi
17036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17037   conftest.$ac_objext conftest.beam conftest.$ac_ext
17038 fi
17039
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
17042 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
17043 if test $ac_cv_func_realloc_0_nonnull = yes; then :
17044
17045 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
17046
17047 else
17048   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
17049
17050    case " $LIBOBJS " in
17051   *" realloc.$ac_objext "* ) ;;
17052   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
17053  ;;
17054 esac
17055
17056
17057 $as_echo "#define realloc rpl_realloc" >>confdefs.h
17058
17059 fi
17060
17061
17062
17063 # Check if the timer_create(), timer_settime(), and timer_delete()
17064 # functions on the system are available and suitable, or need to be
17065 # replaced with Check's replacement of these functions.
17066
17067
17068
17069   for ac_header in $ac_header_list
17070 do :
17071   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17072 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17073 "
17074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17075   cat >>confdefs.h <<_ACEOF
17076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17077 _ACEOF
17078
17079 fi
17080
17081 done
17082
17083
17084
17085
17086
17087
17088
17089
17090   if test "xtrue" != x"$enable_timer_replacement"; then
17091           ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17092 if test "x$ac_cv_func_timer_create" = xyes; then :
17093   hw_cv_librt_timers=yes
17094 else
17095   hw_cv_librt_timers=no
17096 fi
17097
17098           if test "$hw_cv_librt_timers" = yes; then :
17099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if timer_create is supported on the system" >&5
17100 $as_echo_n "checking if timer_create is supported on the system... " >&6; }
17101 if ${hw_cv_librt_timers_posix+:} false; then :
17102   $as_echo_n "(cached) " >&6
17103 else
17104   if test "$cross_compiling" = yes; then :
17105   hw_cv_librt_timers_posix=autodetect
17106 else
17107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h.  */
17109 #if HAVE_TIME_H
17110                           #include <time.h>
17111                           #endif
17112               #include <errno.h>
17113                           static int test_timer_create()
17114                           {
17115                 timer_t timerid;
17116                 if(timer_create(CLOCK_REALTIME, NULL, &timerid) != 0)
17117                 {
17118                     /*
17119                       On this system, although the function is available,
17120                       no meaningful implementation is provided.
17121                     */
17122                     if(errno == ENOSYS)
17123                     {
17124                         return 1;
17125                     }
17126                 }
17127                 return 0;
17128                           }
17129 int
17130 main ()
17131 {
17132 return test_timer_create();
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 if ac_fn_c_try_run "$LINENO"; then :
17138   hw_cv_librt_timers_posix=yes
17139 else
17140   hw_cv_librt_timers_posix=no
17141 fi
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17143   conftest.$ac_objext conftest.beam conftest.$ac_ext
17144 fi
17145
17146 fi
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_librt_timers_posix" >&5
17148 $as_echo "$hw_cv_librt_timers_posix" >&6; }
17149 else
17150   hw_cv_librt_timers_posix=no
17151 fi
17152   else
17153       hw_cv_librt_timers_posix=no
17154   fi
17155
17156   # If the system does not have a POSIX timer_create(), then use
17157   # Check's reimplementation of the timer_* calls
17158   if test "$hw_cv_librt_timers_posix" = no; then :
17159
17160   if test "x$_hw_cv_librt_timers_replace_done" != xyes; then :
17161   case " $LIBOBJS " in
17162   *" timer_create.$ac_objext "* ) ;;
17163   *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17164  ;;
17165 esac
17166
17167      case " $LIBOBJS " in
17168   *" timer_settime.$ac_objext "* ) ;;
17169   *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17170  ;;
17171 esac
17172
17173      case " $LIBOBJS " in
17174   *" timer_delete.$ac_objext "* ) ;;
17175   *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17176  ;;
17177 esac
17178
17179     _hw_cv_librt_timers_replace_done=yes
17180 fi
17181
17182 fi
17183
17184   # If we are cross compiling, do the normal check for the
17185   # timer_* calls.
17186   if test "$hw_cv_librt_timers_posix" = autodetect; then :
17187   ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17188 if test "x$ac_cv_func_timer_create" = xyes; then :
17189   $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
17190
17191 else
17192   case " $LIBOBJS " in
17193   *" timer_create.$ac_objext "* ) ;;
17194   *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17195  ;;
17196 esac
17197
17198 fi
17199
17200 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
17201 if test "x$ac_cv_func_timer_settime" = xyes; then :
17202   $as_echo "#define HAVE_TIMER_SETTIME 1" >>confdefs.h
17203
17204 else
17205   case " $LIBOBJS " in
17206   *" timer_settime.$ac_objext "* ) ;;
17207   *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17208  ;;
17209 esac
17210
17211 fi
17212
17213 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
17214 if test "x$ac_cv_func_timer_delete" = xyes; then :
17215   $as_echo "#define HAVE_TIMER_DELETE 1" >>confdefs.h
17216
17217 else
17218   case " $LIBOBJS " in
17219   *" timer_delete.$ac_objext "* ) ;;
17220   *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17221  ;;
17222 esac
17223
17224 fi
17225
17226
17227      ac_fn_c_check_decl "$LINENO" "timer_create" "ac_cv_have_decl_timer_create" "$ac_includes_default"
17228 if test "x$ac_cv_have_decl_timer_create" = xyes; then :
17229   ac_have_decl=1
17230 else
17231   ac_have_decl=0
17232 fi
17233
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_DECL_TIMER_CREATE $ac_have_decl
17236 _ACEOF
17237 ac_fn_c_check_decl "$LINENO" "timer_settime" "ac_cv_have_decl_timer_settime" "$ac_includes_default"
17238 if test "x$ac_cv_have_decl_timer_settime" = xyes; then :
17239   ac_have_decl=1
17240 else
17241   ac_have_decl=0
17242 fi
17243
17244 cat >>confdefs.h <<_ACEOF
17245 #define HAVE_DECL_TIMER_SETTIME $ac_have_decl
17246 _ACEOF
17247 ac_fn_c_check_decl "$LINENO" "timer_delete" "ac_cv_have_decl_timer_delete" "$ac_includes_default"
17248 if test "x$ac_cv_have_decl_timer_delete" = xyes; then :
17249   ac_have_decl=1
17250 else
17251   ac_have_decl=0
17252 fi
17253
17254 cat >>confdefs.h <<_ACEOF
17255 #define HAVE_DECL_TIMER_DELETE $ac_have_decl
17256 _ACEOF
17257
17258 fi
17259
17260
17261 # The following checks will replace missing functions from libcompat
17262 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17263 if test "x$ac_cv_func_alarm" = xyes; then :
17264   $as_echo "#define HAVE_ALARM 1" >>confdefs.h
17265
17266 else
17267   case " $LIBOBJS " in
17268   *" alarm.$ac_objext "* ) ;;
17269   *) LIBOBJS="$LIBOBJS alarm.$ac_objext"
17270  ;;
17271 esac
17272
17273 fi
17274
17275 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17276 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17277   $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17278
17279 else
17280   case " $LIBOBJS " in
17281   *" clock_gettime.$ac_objext "* ) ;;
17282   *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17283  ;;
17284 esac
17285
17286 fi
17287
17288 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17289 if test "x$ac_cv_func_getline" = xyes; then :
17290   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17291
17292 else
17293   case " $LIBOBJS " in
17294   *" getline.$ac_objext "* ) ;;
17295   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17296  ;;
17297 esac
17298
17299 fi
17300
17301 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17302 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17303   $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17304
17305 else
17306   case " $LIBOBJS " in
17307   *" gettimeofday.$ac_objext "* ) ;;
17308   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17309  ;;
17310 esac
17311
17312 fi
17313
17314 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17315 if test "x$ac_cv_func_localtime_r" = xyes; then :
17316   $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17317
17318 else
17319   case " $LIBOBJS " in
17320   *" localtime_r.$ac_objext "* ) ;;
17321   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17322  ;;
17323 esac
17324
17325 fi
17326
17327 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17328 if test "x$ac_cv_func_strdup" = xyes; then :
17329   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17330
17331 else
17332   case " $LIBOBJS " in
17333   *" strdup.$ac_objext "* ) ;;
17334   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17335  ;;
17336 esac
17337
17338 fi
17339
17340 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17341 if test "x$ac_cv_func_strsignal" = xyes; then :
17342   $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17343
17344 else
17345   case " $LIBOBJS " in
17346   *" strsignal.$ac_objext "* ) ;;
17347   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17348  ;;
17349 esac
17350
17351 fi
17352
17353
17354 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
17355 if test "x$ac_cv_have_decl_alarm" = xyes; then :
17356   ac_have_decl=1
17357 else
17358   ac_have_decl=0
17359 fi
17360
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_DECL_ALARM $ac_have_decl
17363 _ACEOF
17364 ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$ac_includes_default"
17365 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17366   ac_have_decl=1
17367 else
17368   ac_have_decl=0
17369 fi
17370
17371 cat >>confdefs.h <<_ACEOF
17372 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17373 _ACEOF
17374 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17375 if test "x$ac_cv_have_decl_getline" = xyes; then :
17376   ac_have_decl=1
17377 else
17378   ac_have_decl=0
17379 fi
17380
17381 cat >>confdefs.h <<_ACEOF
17382 #define HAVE_DECL_GETLINE $ac_have_decl
17383 _ACEOF
17384 ac_fn_c_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$ac_includes_default"
17385 if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
17386   ac_have_decl=1
17387 else
17388   ac_have_decl=0
17389 fi
17390
17391 cat >>confdefs.h <<_ACEOF
17392 #define HAVE_DECL_GETTIMEOFDAY $ac_have_decl
17393 _ACEOF
17394 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
17395 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17396   ac_have_decl=1
17397 else
17398   ac_have_decl=0
17399 fi
17400
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
17403 _ACEOF
17404 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17405 if test "x$ac_cv_have_decl_strdup" = xyes; then :
17406   ac_have_decl=1
17407 else
17408   ac_have_decl=0
17409 fi
17410
17411 cat >>confdefs.h <<_ACEOF
17412 #define HAVE_DECL_STRDUP $ac_have_decl
17413 _ACEOF
17414 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17415 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17416   ac_have_decl=1
17417 else
17418   ac_have_decl=0
17419 fi
17420
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_DECL_STRSIGNAL $ac_have_decl
17423 _ACEOF
17424
17425
17426 # The following checks are to only detect if the functions exist, but
17427 # not replace them
17428 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17429 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17430   ac_have_decl=1
17431 else
17432   ac_have_decl=0
17433 fi
17434
17435 cat >>confdefs.h <<_ACEOF
17436 #define HAVE_DECL_SETENV $ac_have_decl
17437 _ACEOF
17438
17439
17440 for ac_func in setitimer
17441 do :
17442   ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17443 if test "x$ac_cv_func_setitimer" = xyes; then :
17444   cat >>confdefs.h <<_ACEOF
17445 #define HAVE_SETITIMER 1
17446 _ACEOF
17447
17448 fi
17449 done
17450
17451
17452 # Checks for functions not available in Windows
17453 if test "xtrue" = x"$enable_fork"; then
17454         for ac_func in fork
17455 do :
17456   ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17457 if test "x$ac_cv_func_fork" = xyes; then :
17458   cat >>confdefs.h <<_ACEOF
17459 #define HAVE_FORK 1
17460 _ACEOF
17461  HAVE_FORK=1
17462 else
17463   HAVE_FORK=0
17464 fi
17465 done
17466
17467 else
17468         HAVE_FORK=0
17469 fi
17470
17471 for ac_func in sigaction
17472 do :
17473   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17474 if test "x$ac_cv_func_sigaction" = xyes; then :
17475   cat >>confdefs.h <<_ACEOF
17476 #define HAVE_SIGACTION 1
17477 _ACEOF
17478
17479 fi
17480 done
17481
17482 for ac_func in mkstemp
17483 do :
17484   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17485 if test "x$ac_cv_func_mkstemp" = xyes; then :
17486   cat >>confdefs.h <<_ACEOF
17487 #define HAVE_MKSTEMP 1
17488 _ACEOF
17489
17490 fi
17491 done
17492
17493
17494 # Check if the system's snprintf (and its variations) are C99 compliant.
17495 # If they are not, use the version in libcompat.
17496
17497
17498
17499
17500
17501
17502
17503   if test "xtrue" != x"$enable_snprintf_replacement"; then
17504           ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17505 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17506   hw_cv_func_vsnprintf=yes
17507 else
17508   hw_cv_func_vsnprintf=no
17509 fi
17510
17511           if test "$hw_cv_func_vsnprintf" = yes; then :
17512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
17513 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
17514 if ${hw_cv_func_vsnprintf_c99+:} false; then :
17515   $as_echo_n "(cached) " >&6
17516 else
17517   if test "$cross_compiling" = yes; then :
17518   hw_cv_func_vsnprintf_c99=no
17519 else
17520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h.  */
17522 #if HAVE_STDARG_H
17523                           #include <stdarg.h>
17524                           #endif
17525                           #include <stdio.h>
17526                           static int testprintf(char *buf, size_t size, const char *format, ...)
17527                           {
17528                                 int result;
17529                                 va_list ap;
17530                                 va_start(ap, format);
17531                                 result = vsnprintf(buf, size, format, ap);
17532                                 va_end(ap);
17533                                 return result;
17534                           }
17535 int
17536 main ()
17537 {
17538 char buf[43];
17539                           if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17540                                   testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17541                                   buf[0] != 'T' || buf[3] != '\0')
17542                                 return 1;
17543   ;
17544   return 0;
17545 }
17546 _ACEOF
17547 if ac_fn_c_try_run "$LINENO"; then :
17548   hw_cv_func_vsnprintf_c99=yes
17549 else
17550   hw_cv_func_vsnprintf_c99=no
17551 fi
17552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17553   conftest.$ac_objext conftest.beam conftest.$ac_ext
17554 fi
17555
17556 fi
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
17558 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
17559 else
17560   hw_cv_func_snprintf_c99=no
17561 fi
17562           if test "$hw_cv_func_vsnprintf_c99" = yes; then :
17563
17564 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17565
17566 fi
17567   else
17568       hw_cv_func_vsnprintf_c99=no
17569   fi
17570
17571   if test "$hw_cv_func_vsnprintf_c99" = no; then :
17572
17573 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
17574
17575     for ac_header in inttypes.h locale.h stddef.h stdint.h
17576 do :
17577   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17580   cat >>confdefs.h <<_ACEOF
17581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17582 _ACEOF
17583
17584 fi
17585
17586 done
17587
17588     ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
17589 "
17590 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
17591
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
17594 _ACEOF
17595
17596
17597 fi
17598 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
17599 "
17600 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
17601
17602 cat >>confdefs.h <<_ACEOF
17603 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
17604 _ACEOF
17605
17606
17607 fi
17608
17609
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
17611 $as_echo_n "checking for long double... " >&6; }
17612 if ${ac_cv_type_long_double+:} false; then :
17613   $as_echo_n "(cached) " >&6
17614 else
17615   if test "$GCC" = yes; then
17616        ac_cv_type_long_double=yes
17617      else
17618        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h.  */
17620 /* The Stardent Vistra knows sizeof (long double), but does
17621                  not support it.  */
17622               long double foo = 0.0L;
17623 int
17624 main ()
17625 {
17626 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
17627               sizeof (double) <= sizeof (long double))];
17628 test_array [0] = 0;
17629 return test_array [0];
17630
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 if ac_fn_c_try_compile "$LINENO"; then :
17636   ac_cv_type_long_double=yes
17637 else
17638   ac_cv_type_long_double=no
17639 fi
17640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641      fi
17642 fi
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
17644 $as_echo "$ac_cv_type_long_double" >&6; }
17645   if test $ac_cv_type_long_double = yes; then
17646
17647 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17648
17649   fi
17650
17651
17652
17653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17654 $as_echo_n "checking for long long int... " >&6; }
17655 if ${ac_cv_type_long_long_int+:} false; then :
17656   $as_echo_n "(cached) " >&6
17657 else
17658   ac_cv_type_long_long_int=yes
17659       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17660         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17661         if test $ac_cv_type_long_long_int = yes; then
17662                                   if test "$cross_compiling" = yes; then :
17663   :
17664 else
17665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h.  */
17667 #include <limits.h>
17668                  #ifndef LLONG_MAX
17669                  # define HALF \
17670                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17671                  # define LLONG_MAX (HALF - 1 + HALF)
17672                  #endif
17673 int
17674 main ()
17675 {
17676 long long int n = 1;
17677                  int i;
17678                  for (i = 0; ; i++)
17679                    {
17680                      long long int m = n << i;
17681                      if (m >> i != n)
17682                        return 1;
17683                      if (LLONG_MAX / 2 < m)
17684                        break;
17685                    }
17686                  return 0;
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_run "$LINENO"; then :
17692
17693 else
17694   ac_cv_type_long_long_int=no
17695 fi
17696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17697   conftest.$ac_objext conftest.beam conftest.$ac_ext
17698 fi
17699
17700         fi
17701       fi
17702 fi
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17704 $as_echo "$ac_cv_type_long_long_int" >&6; }
17705   if test $ac_cv_type_long_long_int = yes; then
17706
17707 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17708
17709   fi
17710
17711
17712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17713 $as_echo_n "checking for unsigned long long int... " >&6; }
17714 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17715   $as_echo_n "(cached) " >&6
17716 else
17717   ac_cv_type_unsigned_long_long_int=yes
17718      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17719        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h.  */
17721
17722   /* For now, do not test the preprocessor; as of 2007 there are too many
17723          implementations with broken preprocessors.  Perhaps this can
17724          be revisited in 2012.  In the meantime, code should not expect
17725          #if to work with literals wider than 32 bits.  */
17726       /* Test literals.  */
17727       long long int ll = 9223372036854775807ll;
17728       long long int nll = -9223372036854775807LL;
17729       unsigned long long int ull = 18446744073709551615ULL;
17730       /* Test constant expressions.   */
17731       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17732                      ? 1 : -1)];
17733       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17734                      ? 1 : -1)];
17735       int i = 63;
17736 int
17737 main ()
17738 {
17739 /* Test availability of runtime routines for shift and division.  */
17740       long long int llmax = 9223372036854775807ll;
17741       unsigned long long int ullmax = 18446744073709551615ull;
17742       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17743               | (llmax / ll) | (llmax % ll)
17744               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17745               | (ullmax / ull) | (ullmax % ull));
17746   ;
17747   return 0;
17748 }
17749
17750 _ACEOF
17751 if ac_fn_c_try_link "$LINENO"; then :
17752
17753 else
17754   ac_cv_type_unsigned_long_long_int=no
17755 fi
17756 rm -f core conftest.err conftest.$ac_objext \
17757     conftest$ac_exeext conftest.$ac_ext
17758      fi
17759 fi
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17761 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17762   if test $ac_cv_type_unsigned_long_long_int = yes; then
17763
17764 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17765
17766   fi
17767
17768     ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17769 if test "x$ac_cv_type_size_t" = xyes; then :
17770
17771 else
17772
17773 cat >>confdefs.h <<_ACEOF
17774 #define size_t unsigned int
17775 _ACEOF
17776
17777 fi
17778
17779
17780
17781   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17782 if test "x$ac_cv_type_intmax_t" = xyes; then :
17783
17784 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17785
17786 else
17787   test $ac_cv_type_long_long_int = yes \
17788        && ac_type='long long int' \
17789        || ac_type='long int'
17790
17791 cat >>confdefs.h <<_ACEOF
17792 #define intmax_t $ac_type
17793 _ACEOF
17794
17795 fi
17796
17797
17798
17799
17800   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17801 if test "x$ac_cv_type_uintmax_t" = xyes; then :
17802
17803 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17804
17805 else
17806   test $ac_cv_type_unsigned_long_long_int = yes \
17807        && ac_type='unsigned long long int' \
17808        || ac_type='unsigned long int'
17809
17810 cat >>confdefs.h <<_ACEOF
17811 #define uintmax_t $ac_type
17812 _ACEOF
17813
17814 fi
17815
17816
17817
17818   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17819 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17820
17821 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17822
17823 else
17824   for ac_type in 'unsigned int' 'unsigned long int' \
17825         'unsigned long long int'; do
17826        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h.  */
17828 $ac_includes_default
17829 int
17830 main ()
17831 {
17832 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17833 test_array [0] = 0;
17834 return test_array [0];
17835
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 if ac_fn_c_try_compile "$LINENO"; then :
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define uintptr_t $ac_type
17844 _ACEOF
17845
17846           ac_type=
17847 fi
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849        test -z "$ac_type" && break
17850      done
17851 fi
17852
17853
17854     ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17855 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17856
17857 cat >>confdefs.h <<_ACEOF
17858 #define HAVE_PTRDIFF_T 1
17859 _ACEOF
17860
17861
17862 fi
17863
17864     for ac_func in localeconv
17865 do :
17866   ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17867 if test "x$ac_cv_func_localeconv" = xyes; then :
17868   cat >>confdefs.h <<_ACEOF
17869 #define HAVE_LOCALECONV 1
17870 _ACEOF
17871
17872 fi
17873 done
17874
17875
17876   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17878 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17879 if ${ac_cv_c_const+:} false; then :
17880   $as_echo_n "(cached) " >&6
17881 else
17882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h.  */
17884
17885 int
17886 main ()
17887 {
17888
17889 #ifndef __cplusplus
17890   /* Ultrix mips cc rejects this sort of thing.  */
17891   typedef int charset[2];
17892   const charset cs = { 0, 0 };
17893   /* SunOS 4.1.1 cc rejects this.  */
17894   char const *const *pcpcc;
17895   char **ppc;
17896   /* NEC SVR4.0.2 mips cc rejects this.  */
17897   struct point {int x, y;};
17898   static struct point const zero = {0,0};
17899   /* AIX XL C 1.02.0.0 rejects this.
17900      It does not let you subtract one const X* pointer from another in
17901      an arm of an if-expression whose if-part is not a constant
17902      expression */
17903   const char *g = "string";
17904   pcpcc = &g + (g ? g-g : 0);
17905   /* HPUX 7.0 cc rejects these. */
17906   ++pcpcc;
17907   ppc = (char**) pcpcc;
17908   pcpcc = (char const *const *) ppc;
17909   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17910     char tx;
17911     char *t = &tx;
17912     char const *s = 0 ? (char *) 0 : (char const *) 0;
17913
17914     *t++ = 0;
17915     if (s) return 0;
17916   }
17917   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17918     int x[] = {25, 17};
17919     const int *foo = &x[0];
17920     ++foo;
17921   }
17922   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17923     typedef const int *iptr;
17924     iptr p = 0;
17925     ++p;
17926   }
17927   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17928        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17929     struct s { int j; const int *ap[3]; } bx;
17930     struct s *b = &bx; b->j = 5;
17931   }
17932   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17933     const int foo = 10;
17934     if (!foo) return 0;
17935   }
17936   return !cs[0] && !zero.x;
17937 #endif
17938
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 if ac_fn_c_try_compile "$LINENO"; then :
17944   ac_cv_c_const=yes
17945 else
17946   ac_cv_c_const=no
17947 fi
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17951 $as_echo "$ac_cv_c_const" >&6; }
17952 if test $ac_cv_c_const = no; then
17953
17954 $as_echo "#define const /**/" >>confdefs.h
17955
17956 fi
17957
17958
17959
17960
17961     case " $LIBOBJS " in
17962   *" snprintf.$ac_objext "* ) ;;
17963   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17964  ;;
17965 esac
17966
17967     _hw_cv_func_xprintf_replace_done=yes
17968 fi
17969
17970 fi
17971
17972
17973
17974   if test "xtrue" != x"$enable_snprintf_replacement"; then
17975           ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17976 if test "x$ac_cv_func_snprintf" = xyes; then :
17977   hw_cv_func_snprintf=yes
17978 else
17979   hw_cv_func_snprintf=no
17980 fi
17981
17982           if test "$hw_cv_func_snprintf" = yes; then :
17983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
17984 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
17985 if ${hw_cv_func_snprintf_c99+:} false; then :
17986   $as_echo_n "(cached) " >&6
17987 else
17988   if test "$cross_compiling" = yes; then :
17989   hw_cv_func_snprintf_c99=no
17990 else
17991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h.  */
17993 #include <stdio.h>
17994 int
17995 main ()
17996 {
17997 char buf[43];
17998                           if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17999                                   snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
18000                                   buf[0] != 'T' || buf[3] != '\0')
18001                                 return 1;
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_c_try_run "$LINENO"; then :
18007   hw_cv_func_snprintf_c99=yes
18008 else
18009   hw_cv_func_snprintf_c99=no
18010 fi
18011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18012   conftest.$ac_objext conftest.beam conftest.$ac_ext
18013 fi
18014
18015 fi
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
18017 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
18018 else
18019   hw_cv_func_snprintf_c99=no
18020 fi
18021   else
18022       hw_cv_func_snprintf_c99=no
18023   fi
18024
18025   if test "$hw_cv_func_snprintf_c99" = yes; then :
18026
18027 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18028
18029 else
18030
18031 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
18032
18033
18034   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
18035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18036 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18037 if ${ac_cv_c_const+:} false; then :
18038   $as_echo_n "(cached) " >&6
18039 else
18040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h.  */
18042
18043 int
18044 main ()
18045 {
18046
18047 #ifndef __cplusplus
18048   /* Ultrix mips cc rejects this sort of thing.  */
18049   typedef int charset[2];
18050   const charset cs = { 0, 0 };
18051   /* SunOS 4.1.1 cc rejects this.  */
18052   char const *const *pcpcc;
18053   char **ppc;
18054   /* NEC SVR4.0.2 mips cc rejects this.  */
18055   struct point {int x, y;};
18056   static struct point const zero = {0,0};
18057   /* AIX XL C 1.02.0.0 rejects this.
18058      It does not let you subtract one const X* pointer from another in
18059      an arm of an if-expression whose if-part is not a constant
18060      expression */
18061   const char *g = "string";
18062   pcpcc = &g + (g ? g-g : 0);
18063   /* HPUX 7.0 cc rejects these. */
18064   ++pcpcc;
18065   ppc = (char**) pcpcc;
18066   pcpcc = (char const *const *) ppc;
18067   { /* SCO 3.2v4 cc rejects this sort of thing.  */
18068     char tx;
18069     char *t = &tx;
18070     char const *s = 0 ? (char *) 0 : (char const *) 0;
18071
18072     *t++ = 0;
18073     if (s) return 0;
18074   }
18075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18076     int x[] = {25, 17};
18077     const int *foo = &x[0];
18078     ++foo;
18079   }
18080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18081     typedef const int *iptr;
18082     iptr p = 0;
18083     ++p;
18084   }
18085   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18087     struct s { int j; const int *ap[3]; } bx;
18088     struct s *b = &bx; b->j = 5;
18089   }
18090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18091     const int foo = 10;
18092     if (!foo) return 0;
18093   }
18094   return !cs[0] && !zero.x;
18095 #endif
18096
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 if ac_fn_c_try_compile "$LINENO"; then :
18102   ac_cv_c_const=yes
18103 else
18104   ac_cv_c_const=no
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107 fi
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18109 $as_echo "$ac_cv_c_const" >&6; }
18110 if test $ac_cv_c_const = no; then
18111
18112 $as_echo "#define const /**/" >>confdefs.h
18113
18114 fi
18115
18116
18117
18118
18119     case " $LIBOBJS " in
18120   *" snprintf.$ac_objext "* ) ;;
18121   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18122  ;;
18123 esac
18124
18125     _hw_cv_func_xprintf_replace_done=yes
18126 fi
18127
18128 fi
18129
18130
18131 # Check for whether we can install checkmk (we have a usable awk)
18132
18133 # Extract the first word of "$AWK", so it can be a program name with args.
18134 set dummy $AWK; ac_word=$2
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18136 $as_echo_n "checking for $ac_word... " >&6; }
18137 if ${ac_cv_path_AWK_PATH+:} false; then :
18138   $as_echo_n "(cached) " >&6
18139 else
18140   case $AWK_PATH in
18141   [\\/]* | ?:[\\/]*)
18142   ac_cv_path_AWK_PATH="$AWK_PATH" # Let the user override the test with a path.
18143   ;;
18144   *)
18145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18146 for as_dir in $PATH
18147 do
18148   IFS=$as_save_IFS
18149   test -z "$as_dir" && as_dir=.
18150     for ac_exec_ext in '' $ac_executable_extensions; do
18151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18152     ac_cv_path_AWK_PATH="$as_dir/$ac_word$ac_exec_ext"
18153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18154     break 2
18155   fi
18156 done
18157   done
18158 IFS=$as_save_IFS
18159
18160   test -z "$ac_cv_path_AWK_PATH" && ac_cv_path_AWK_PATH="*NO AWK*"
18161   ;;
18162 esac
18163 fi
18164 AWK_PATH=$ac_cv_path_AWK_PATH
18165 if test -n "$AWK_PATH"; then
18166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK_PATH" >&5
18167 $as_echo "$AWK_PATH" >&6; }
18168 else
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170 $as_echo "no" >&6; }
18171 fi
18172
18173
18174  if test "x$AWK_PATH" != 'x*NO AWK*'; then
18175   INSTALL_CHECKMK_TRUE=
18176   INSTALL_CHECKMK_FALSE='#'
18177 else
18178   INSTALL_CHECKMK_TRUE='#'
18179   INSTALL_CHECKMK_FALSE=
18180 fi
18181
18182
18183 # Certain awk implementations disagree with each other on how to
18184 # substitute doubled backslashes in gsub()
18185 AWK_GSUB_DBL_BSLASH='\\\\'
18186
18187
18188 if test "x$AWK_PATH" = 'x*NO AWK*'; then :
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find a usable awk; won't install checkmk." >&5
18190 $as_echo "$as_me: WARNING: Couldn't find a usable awk; won't install checkmk." >&2;}
18191 else
18192   # Determine correct number of backslashes for gsub's replacement
18193       # value.
18194       if echo '\' |
18195               "$AWK_PATH" '{ gsub("\\\\", "\\\\", $0); print }' |
18196               grep '^\\$' >/dev/null 2>&1; then :
18197   AWK_GSUB_DBL_BSLASH='\\\\\\\\'
18198 fi
18199        ac_config_files="$ac_config_files checkmk/checkmk"
18200
18201        ac_config_commands="$ac_config_commands checkmk-x"
18202
18203 fi
18204
18205 # Output files
18206 ac_config_headers="$ac_config_headers config.h"
18207
18208
18209 ac_config_files="$ac_config_files check.pc Makefile checkmk/Makefile doc/Makefile lib/Makefile src/check.h src/Makefile tests/Makefile tests/test_vars"
18210
18211
18212 cat >confcache <<\_ACEOF
18213 # This file is a shell script that caches the results of configure
18214 # tests run on this system so they can be shared between configure
18215 # scripts and configure runs, see configure's option --config-cache.
18216 # It is not useful on other systems.  If it contains results you don't
18217 # want to keep, you may remove or edit it.
18218 #
18219 # config.status only pays attention to the cache file if you give it
18220 # the --recheck option to rerun configure.
18221 #
18222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18224 # following values.
18225
18226 _ACEOF
18227
18228 # The following way of writing the cache mishandles newlines in values,
18229 # but we know of no workaround that is simple, portable, and efficient.
18230 # So, we kill variables containing newlines.
18231 # Ultrix sh set writes to stderr and can't be redirected directly,
18232 # and sets the high bit in the cache file unless we assign to the vars.
18233 (
18234   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18235     eval ac_val=\$$ac_var
18236     case $ac_val in #(
18237     *${as_nl}*)
18238       case $ac_var in #(
18239       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18241       esac
18242       case $ac_var in #(
18243       _ | IFS | as_nl) ;; #(
18244       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18245       *) { eval $ac_var=; unset $ac_var;} ;;
18246       esac ;;
18247     esac
18248   done
18249
18250   (set) 2>&1 |
18251     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18252     *${as_nl}ac_space=\ *)
18253       # `set' does not quote correctly, so add quotes: double-quote
18254       # substitution turns \\\\ into \\, and sed turns \\ into \.
18255       sed -n \
18256         "s/'/'\\\\''/g;
18257           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18258       ;; #(
18259     *)
18260       # `set' quotes correctly as required by POSIX, so do not add quotes.
18261       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18262       ;;
18263     esac |
18264     sort
18265 ) |
18266   sed '
18267      /^ac_cv_env_/b end
18268      t clear
18269      :clear
18270      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18271      t end
18272      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18273      :end' >>confcache
18274 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18275   if test -w "$cache_file"; then
18276     if test "x$cache_file" != "x/dev/null"; then
18277       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18278 $as_echo "$as_me: updating cache $cache_file" >&6;}
18279       if test ! -f "$cache_file" || test -h "$cache_file"; then
18280         cat confcache >"$cache_file"
18281       else
18282         case $cache_file in #(
18283         */* | ?:*)
18284           mv -f confcache "$cache_file"$$ &&
18285           mv -f "$cache_file"$$ "$cache_file" ;; #(
18286         *)
18287           mv -f confcache "$cache_file" ;;
18288         esac
18289       fi
18290     fi
18291   else
18292     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18294   fi
18295 fi
18296 rm -f confcache
18297
18298 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18299 # Let make expand exec_prefix.
18300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18301
18302 DEFS=-DHAVE_CONFIG_H
18303
18304 ac_libobjs=
18305 ac_ltlibobjs=
18306 U=
18307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18308   # 1. Remove the extension, and $U if already installed.
18309   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18310   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18311   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18312   #    will be set to the directory where LIBOBJS objects are built.
18313   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18314   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18315 done
18316 LIBOBJS=$ac_libobjs
18317
18318 LTLIBOBJS=$ac_ltlibobjs
18319
18320
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18322 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18323    if test -n "$am_sleep_pid"; then
18324      # Hide warnings about reused PIDs.
18325      wait $am_sleep_pid 2>/dev/null
18326    fi
18327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18328 $as_echo "done" >&6; }
18329  if test -n "$EXEEXT"; then
18330   am__EXEEXT_TRUE=
18331   am__EXEEXT_FALSE='#'
18332 else
18333   am__EXEEXT_TRUE='#'
18334   am__EXEEXT_FALSE=
18335 fi
18336
18337 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18338   as_fn_error $? "conditional \"AMDEP\" was never defined.
18339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18340 fi
18341 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18342   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18344 fi
18345 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
18346   as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
18347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18348 fi
18349 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
18350   as_fn_error $? "conditional \"NO_TIMEOUT_TESTS\" was never defined.
18351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18352 fi
18353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18354   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18356 fi
18357 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18358   as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18360 fi
18361 if test -z "${MAKE_DOCS_TRUE}" && test -z "${MAKE_DOCS_FALSE}"; then
18362   as_fn_error $? "conditional \"MAKE_DOCS\" was never defined.
18363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18364 fi
18365 if test -z "${USE_FILTERDIFF_TRUE}" && test -z "${USE_FILTERDIFF_FALSE}"; then
18366   as_fn_error $? "conditional \"USE_FILTERDIFF\" was never defined.
18367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18368 fi
18369 if test -z "${USE_GRAPHVIZ_TRUE}" && test -z "${USE_GRAPHVIZ_FALSE}"; then
18370   as_fn_error $? "conditional \"USE_GRAPHVIZ\" was never defined.
18371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18372 fi
18373 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
18374   as_fn_error $? "conditional \"SUBUNIT\" was never defined.
18375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18376 fi
18377 if test -z "${INSTALL_CHECKMK_TRUE}" && test -z "${INSTALL_CHECKMK_FALSE}"; then
18378   as_fn_error $? "conditional \"INSTALL_CHECKMK\" was never defined.
18379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18380 fi
18381
18382 : "${CONFIG_STATUS=./config.status}"
18383 ac_write_fail=0
18384 ac_clean_files_save=$ac_clean_files
18385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18387 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18388 as_write_fail=0
18389 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18390 #! $SHELL
18391 # Generated by $as_me.
18392 # Run this file to recreate the current configuration.
18393 # Compiler output produced by configure, useful for debugging
18394 # configure, is in config.log if it exists.
18395
18396 debug=false
18397 ac_cs_recheck=false
18398 ac_cs_silent=false
18399
18400 SHELL=\${CONFIG_SHELL-$SHELL}
18401 export SHELL
18402 _ASEOF
18403 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18404 ## -------------------- ##
18405 ## M4sh Initialization. ##
18406 ## -------------------- ##
18407
18408 # Be more Bourne compatible
18409 DUALCASE=1; export DUALCASE # for MKS sh
18410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18411   emulate sh
18412   NULLCMD=:
18413   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18414   # is contrary to our usage.  Disable this feature.
18415   alias -g '${1+"$@"}'='"$@"'
18416   setopt NO_GLOB_SUBST
18417 else
18418   case `(set -o) 2>/dev/null` in #(
18419   *posix*) :
18420     set -o posix ;; #(
18421   *) :
18422      ;;
18423 esac
18424 fi
18425
18426
18427 as_nl='
18428 '
18429 export as_nl
18430 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18431 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18433 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18434 # Prefer a ksh shell builtin over an external printf program on Solaris,
18435 # but without wasting forks for bash or zsh.
18436 if test -z "$BASH_VERSION$ZSH_VERSION" \
18437     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18438   as_echo='print -r --'
18439   as_echo_n='print -rn --'
18440 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18441   as_echo='printf %s\n'
18442   as_echo_n='printf %s'
18443 else
18444   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18445     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18446     as_echo_n='/usr/ucb/echo -n'
18447   else
18448     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18449     as_echo_n_body='eval
18450       arg=$1;
18451       case $arg in #(
18452       *"$as_nl"*)
18453         expr "X$arg" : "X\\(.*\\)$as_nl";
18454         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18455       esac;
18456       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18457     '
18458     export as_echo_n_body
18459     as_echo_n='sh -c $as_echo_n_body as_echo'
18460   fi
18461   export as_echo_body
18462   as_echo='sh -c $as_echo_body as_echo'
18463 fi
18464
18465 # The user is always right.
18466 if test "${PATH_SEPARATOR+set}" != set; then
18467   PATH_SEPARATOR=:
18468   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18469     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18470       PATH_SEPARATOR=';'
18471   }
18472 fi
18473
18474
18475 # IFS
18476 # We need space, tab and new line, in precisely that order.  Quoting is
18477 # there to prevent editors from complaining about space-tab.
18478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18479 # splitting by setting IFS to empty value.)
18480 IFS=" ""        $as_nl"
18481
18482 # Find who we are.  Look in the path if we contain no directory separator.
18483 as_myself=
18484 case $0 in #((
18485   *[\\/]* ) as_myself=$0 ;;
18486   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487 for as_dir in $PATH
18488 do
18489   IFS=$as_save_IFS
18490   test -z "$as_dir" && as_dir=.
18491     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18492   done
18493 IFS=$as_save_IFS
18494
18495      ;;
18496 esac
18497 # We did not find ourselves, most probably we were run as `sh COMMAND'
18498 # in which case we are not to be found in the path.
18499 if test "x$as_myself" = x; then
18500   as_myself=$0
18501 fi
18502 if test ! -f "$as_myself"; then
18503   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18504   exit 1
18505 fi
18506
18507 # Unset variables that we do not need and which cause bugs (e.g. in
18508 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18509 # suppresses any "Segmentation fault" message there.  '((' could
18510 # trigger a bug in pdksh 5.2.14.
18511 for as_var in BASH_ENV ENV MAIL MAILPATH
18512 do eval test x\${$as_var+set} = xset \
18513   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18514 done
18515 PS1='$ '
18516 PS2='> '
18517 PS4='+ '
18518
18519 # NLS nuisances.
18520 LC_ALL=C
18521 export LC_ALL
18522 LANGUAGE=C
18523 export LANGUAGE
18524
18525 # CDPATH.
18526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18527
18528
18529 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18530 # ----------------------------------------
18531 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18532 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18533 # script with STATUS, using 1 if that was 0.
18534 as_fn_error ()
18535 {
18536   as_status=$1; test $as_status -eq 0 && as_status=1
18537   if test "$4"; then
18538     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18539     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18540   fi
18541   $as_echo "$as_me: error: $2" >&2
18542   as_fn_exit $as_status
18543 } # as_fn_error
18544
18545
18546 # as_fn_set_status STATUS
18547 # -----------------------
18548 # Set $? to STATUS, without forking.
18549 as_fn_set_status ()
18550 {
18551   return $1
18552 } # as_fn_set_status
18553
18554 # as_fn_exit STATUS
18555 # -----------------
18556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18557 as_fn_exit ()
18558 {
18559   set +e
18560   as_fn_set_status $1
18561   exit $1
18562 } # as_fn_exit
18563
18564 # as_fn_unset VAR
18565 # ---------------
18566 # Portably unset VAR.
18567 as_fn_unset ()
18568 {
18569   { eval $1=; unset $1;}
18570 }
18571 as_unset=as_fn_unset
18572 # as_fn_append VAR VALUE
18573 # ----------------------
18574 # Append the text in VALUE to the end of the definition contained in VAR. Take
18575 # advantage of any shell optimizations that allow amortized linear growth over
18576 # repeated appends, instead of the typical quadratic growth present in naive
18577 # implementations.
18578 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18579   eval 'as_fn_append ()
18580   {
18581     eval $1+=\$2
18582   }'
18583 else
18584   as_fn_append ()
18585   {
18586     eval $1=\$$1\$2
18587   }
18588 fi # as_fn_append
18589
18590 # as_fn_arith ARG...
18591 # ------------------
18592 # Perform arithmetic evaluation on the ARGs, and store the result in the
18593 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18594 # must be portable across $(()) and expr.
18595 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18596   eval 'as_fn_arith ()
18597   {
18598     as_val=$(( $* ))
18599   }'
18600 else
18601   as_fn_arith ()
18602   {
18603     as_val=`expr "$@" || test $? -eq 1`
18604   }
18605 fi # as_fn_arith
18606
18607
18608 if expr a : '\(a\)' >/dev/null 2>&1 &&
18609    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18610   as_expr=expr
18611 else
18612   as_expr=false
18613 fi
18614
18615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18616   as_basename=basename
18617 else
18618   as_basename=false
18619 fi
18620
18621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18622   as_dirname=dirname
18623 else
18624   as_dirname=false
18625 fi
18626
18627 as_me=`$as_basename -- "$0" ||
18628 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18629          X"$0" : 'X\(//\)$' \| \
18630          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18631 $as_echo X/"$0" |
18632     sed '/^.*\/\([^/][^/]*\)\/*$/{
18633             s//\1/
18634             q
18635           }
18636           /^X\/\(\/\/\)$/{
18637             s//\1/
18638             q
18639           }
18640           /^X\/\(\/\).*/{
18641             s//\1/
18642             q
18643           }
18644           s/.*/./; q'`
18645
18646 # Avoid depending upon Character Ranges.
18647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650 as_cr_digits='0123456789'
18651 as_cr_alnum=$as_cr_Letters$as_cr_digits
18652
18653 ECHO_C= ECHO_N= ECHO_T=
18654 case `echo -n x` in #(((((
18655 -n*)
18656   case `echo 'xy\c'` in
18657   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18658   xy)  ECHO_C='\c';;
18659   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18660        ECHO_T=' ';;
18661   esac;;
18662 *)
18663   ECHO_N='-n';;
18664 esac
18665
18666 rm -f conf$$ conf$$.exe conf$$.file
18667 if test -d conf$$.dir; then
18668   rm -f conf$$.dir/conf$$.file
18669 else
18670   rm -f conf$$.dir
18671   mkdir conf$$.dir 2>/dev/null
18672 fi
18673 if (echo >conf$$.file) 2>/dev/null; then
18674   if ln -s conf$$.file conf$$ 2>/dev/null; then
18675     as_ln_s='ln -s'
18676     # ... but there are two gotchas:
18677     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18678     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18679     # In both cases, we have to default to `cp -pR'.
18680     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18681       as_ln_s='cp -pR'
18682   elif ln conf$$.file conf$$ 2>/dev/null; then
18683     as_ln_s=ln
18684   else
18685     as_ln_s='cp -pR'
18686   fi
18687 else
18688   as_ln_s='cp -pR'
18689 fi
18690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18691 rmdir conf$$.dir 2>/dev/null
18692
18693
18694 # as_fn_mkdir_p
18695 # -------------
18696 # Create "$as_dir" as a directory, including parents if necessary.
18697 as_fn_mkdir_p ()
18698 {
18699
18700   case $as_dir in #(
18701   -*) as_dir=./$as_dir;;
18702   esac
18703   test -d "$as_dir" || eval $as_mkdir_p || {
18704     as_dirs=
18705     while :; do
18706       case $as_dir in #(
18707       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18708       *) as_qdir=$as_dir;;
18709       esac
18710       as_dirs="'$as_qdir' $as_dirs"
18711       as_dir=`$as_dirname -- "$as_dir" ||
18712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18713          X"$as_dir" : 'X\(//\)[^/]' \| \
18714          X"$as_dir" : 'X\(//\)$' \| \
18715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18716 $as_echo X"$as_dir" |
18717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18718             s//\1/
18719             q
18720           }
18721           /^X\(\/\/\)[^/].*/{
18722             s//\1/
18723             q
18724           }
18725           /^X\(\/\/\)$/{
18726             s//\1/
18727             q
18728           }
18729           /^X\(\/\).*/{
18730             s//\1/
18731             q
18732           }
18733           s/.*/./; q'`
18734       test -d "$as_dir" && break
18735     done
18736     test -z "$as_dirs" || eval "mkdir $as_dirs"
18737   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18738
18739
18740 } # as_fn_mkdir_p
18741 if mkdir -p . 2>/dev/null; then
18742   as_mkdir_p='mkdir -p "$as_dir"'
18743 else
18744   test -d ./-p && rmdir ./-p
18745   as_mkdir_p=false
18746 fi
18747
18748
18749 # as_fn_executable_p FILE
18750 # -----------------------
18751 # Test if FILE is an executable regular file.
18752 as_fn_executable_p ()
18753 {
18754   test -f "$1" && test -x "$1"
18755 } # as_fn_executable_p
18756 as_test_x='test -x'
18757 as_executable_p=as_fn_executable_p
18758
18759 # Sed expression to map a string onto a valid CPP name.
18760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18761
18762 # Sed expression to map a string onto a valid variable name.
18763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18764
18765
18766 exec 6>&1
18767 ## ----------------------------------- ##
18768 ## Main body of $CONFIG_STATUS script. ##
18769 ## ----------------------------------- ##
18770 _ASEOF
18771 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18772
18773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774 # Save the log message, to keep $0 and so on meaningful, and to
18775 # report actual input values of CONFIG_FILES etc. instead of their
18776 # values after options handling.
18777 ac_log="
18778 This file was extended by Check $as_me 0.14.0, which was
18779 generated by GNU Autoconf 2.69.  Invocation command line was
18780
18781   CONFIG_FILES    = $CONFIG_FILES
18782   CONFIG_HEADERS  = $CONFIG_HEADERS
18783   CONFIG_LINKS    = $CONFIG_LINKS
18784   CONFIG_COMMANDS = $CONFIG_COMMANDS
18785   $ $0 $@
18786
18787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18788 "
18789
18790 _ACEOF
18791
18792 case $ac_config_files in *"
18793 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18794 esac
18795
18796 case $ac_config_headers in *"
18797 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18798 esac
18799
18800
18801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 # Files that config.status was made for.
18803 config_files="$ac_config_files"
18804 config_headers="$ac_config_headers"
18805 config_commands="$ac_config_commands"
18806
18807 _ACEOF
18808
18809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810 ac_cs_usage="\
18811 \`$as_me' instantiates files and other configuration actions
18812 from templates according to the current configuration.  Unless the files
18813 and actions are specified as TAGs, all are instantiated by default.
18814
18815 Usage: $0 [OPTION]... [TAG]...
18816
18817   -h, --help       print this help, then exit
18818   -V, --version    print version number and configuration settings, then exit
18819       --config     print configuration, then exit
18820   -q, --quiet, --silent
18821                    do not print progress messages
18822   -d, --debug      don't remove temporary files
18823       --recheck    update $as_me by reconfiguring in the same conditions
18824       --file=FILE[:TEMPLATE]
18825                    instantiate the configuration file FILE
18826       --header=FILE[:TEMPLATE]
18827                    instantiate the configuration header FILE
18828
18829 Configuration files:
18830 $config_files
18831
18832 Configuration headers:
18833 $config_headers
18834
18835 Configuration commands:
18836 $config_commands
18837
18838 Report bugs to <check-devel at lists dot sourceforge dot net>."
18839
18840 _ACEOF
18841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18842 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18843 ac_cs_version="\\
18844 Check config.status 0.14.0
18845 configured by $0, generated by GNU Autoconf 2.69,
18846   with options \\"\$ac_cs_config\\"
18847
18848 Copyright (C) 2012 Free Software Foundation, Inc.
18849 This config.status script is free software; the Free Software Foundation
18850 gives unlimited permission to copy, distribute and modify it."
18851
18852 ac_pwd='$ac_pwd'
18853 srcdir='$srcdir'
18854 INSTALL='$INSTALL'
18855 MKDIR_P='$MKDIR_P'
18856 AWK='$AWK'
18857 test -n "\$AWK" || AWK=awk
18858 _ACEOF
18859
18860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861 # The default lists apply if the user does not specify any file.
18862 ac_need_defaults=:
18863 while test $# != 0
18864 do
18865   case $1 in
18866   --*=?*)
18867     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18868     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18869     ac_shift=:
18870     ;;
18871   --*=)
18872     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18873     ac_optarg=
18874     ac_shift=:
18875     ;;
18876   *)
18877     ac_option=$1
18878     ac_optarg=$2
18879     ac_shift=shift
18880     ;;
18881   esac
18882
18883   case $ac_option in
18884   # Handling of the options.
18885   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18886     ac_cs_recheck=: ;;
18887   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18888     $as_echo "$ac_cs_version"; exit ;;
18889   --config | --confi | --conf | --con | --co | --c )
18890     $as_echo "$ac_cs_config"; exit ;;
18891   --debug | --debu | --deb | --de | --d | -d )
18892     debug=: ;;
18893   --file | --fil | --fi | --f )
18894     $ac_shift
18895     case $ac_optarg in
18896     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18897     '') as_fn_error $? "missing file argument" ;;
18898     esac
18899     as_fn_append CONFIG_FILES " '$ac_optarg'"
18900     ac_need_defaults=false;;
18901   --header | --heade | --head | --hea )
18902     $ac_shift
18903     case $ac_optarg in
18904     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18905     esac
18906     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18907     ac_need_defaults=false;;
18908   --he | --h)
18909     # Conflict between --help and --header
18910     as_fn_error $? "ambiguous option: \`$1'
18911 Try \`$0 --help' for more information.";;
18912   --help | --hel | -h )
18913     $as_echo "$ac_cs_usage"; exit ;;
18914   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18915   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18916     ac_cs_silent=: ;;
18917
18918   # This is an error.
18919   -*) as_fn_error $? "unrecognized option: \`$1'
18920 Try \`$0 --help' for more information." ;;
18921
18922   *) as_fn_append ac_config_targets " $1"
18923      ac_need_defaults=false ;;
18924
18925   esac
18926   shift
18927 done
18928
18929 ac_configure_extra_args=
18930
18931 if $ac_cs_silent; then
18932   exec 6>/dev/null
18933   ac_configure_extra_args="$ac_configure_extra_args --silent"
18934 fi
18935
18936 _ACEOF
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 if \$ac_cs_recheck; then
18939   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18940   shift
18941   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18942   CONFIG_SHELL='$SHELL'
18943   export CONFIG_SHELL
18944   exec "\$@"
18945 fi
18946
18947 _ACEOF
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949 exec 5>>config.log
18950 {
18951   echo
18952   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18953 ## Running $as_me. ##
18954 _ASBOX
18955   $as_echo "$ac_log"
18956 } >&5
18957
18958 _ACEOF
18959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18960 #
18961 # INIT-COMMANDS
18962 #
18963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18964
18965
18966 # The HP-UX ksh and POSIX shell print the target directory to stdout
18967 # if CDPATH is set.
18968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18969
18970 sed_quote_subst='$sed_quote_subst'
18971 double_quote_subst='$double_quote_subst'
18972 delay_variable_subst='$delay_variable_subst'
18973 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18974 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18975 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18976 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18977 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18978 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18979 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18980 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18981 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18982 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18983 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18984 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18985 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18986 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18987 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18988 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18989 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18990 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18991 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18992 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18993 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18994 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18995 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18996 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18997 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18998 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18999 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19000 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19001 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19002 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19003 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19004 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19005 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19006 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19007 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19008 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19009 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19010 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19011 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19012 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19013 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19014 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19015 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19016 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19017 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19018 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19019 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19020 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19021 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19022 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19023 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19024 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19025 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19026 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19027 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19028 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19029 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19030 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19031 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"`'
19032 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19033 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19034 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19035 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19039 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19040 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19044 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19045 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19046 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19047 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19048 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19049 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19050 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19051 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19052 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19053 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19054 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19055 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19056 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19057 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19058 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19059 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19060 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19061 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19062 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19063 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19064 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19065 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19066 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19067 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19076 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19077 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19078 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19079 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19080 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19081 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19100 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19101 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19108
19109 LTCC='$LTCC'
19110 LTCFLAGS='$LTCFLAGS'
19111 compiler='$compiler_DEFAULT'
19112
19113 # A function that is used when there is no print builtin or printf.
19114 func_fallback_echo ()
19115 {
19116   eval 'cat <<_LTECHO_EOF
19117 \$1
19118 _LTECHO_EOF'
19119 }
19120
19121 # Quote evaled strings.
19122 for var in SHELL \
19123 ECHO \
19124 PATH_SEPARATOR \
19125 SED \
19126 GREP \
19127 EGREP \
19128 FGREP \
19129 LD \
19130 NM \
19131 LN_S \
19132 lt_SP2NL \
19133 lt_NL2SP \
19134 reload_flag \
19135 OBJDUMP \
19136 deplibs_check_method \
19137 file_magic_cmd \
19138 file_magic_glob \
19139 want_nocaseglob \
19140 DLLTOOL \
19141 sharedlib_from_linklib_cmd \
19142 AR \
19143 AR_FLAGS \
19144 archiver_list_spec \
19145 STRIP \
19146 RANLIB \
19147 CC \
19148 CFLAGS \
19149 compiler \
19150 lt_cv_sys_global_symbol_pipe \
19151 lt_cv_sys_global_symbol_to_cdecl \
19152 lt_cv_sys_global_symbol_to_import \
19153 lt_cv_sys_global_symbol_to_c_name_address \
19154 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19155 lt_cv_nm_interface \
19156 nm_file_list_spec \
19157 lt_cv_truncate_bin \
19158 lt_prog_compiler_no_builtin_flag \
19159 lt_prog_compiler_pic \
19160 lt_prog_compiler_wl \
19161 lt_prog_compiler_static \
19162 lt_cv_prog_compiler_c_o \
19163 need_locks \
19164 MANIFEST_TOOL \
19165 DSYMUTIL \
19166 NMEDIT \
19167 LIPO \
19168 OTOOL \
19169 OTOOL64 \
19170 shrext_cmds \
19171 export_dynamic_flag_spec \
19172 whole_archive_flag_spec \
19173 compiler_needs_object \
19174 with_gnu_ld \
19175 allow_undefined_flag \
19176 no_undefined_flag \
19177 hardcode_libdir_flag_spec \
19178 hardcode_libdir_separator \
19179 exclude_expsyms \
19180 include_expsyms \
19181 file_list_spec \
19182 variables_saved_for_relink \
19183 libname_spec \
19184 library_names_spec \
19185 soname_spec \
19186 install_override_mode \
19187 finish_eval \
19188 old_striplib \
19189 striplib; do
19190     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19191     *[\\\\\\\`\\"\\\$]*)
19192       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19193       ;;
19194     *)
19195       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19196       ;;
19197     esac
19198 done
19199
19200 # Double-quote double-evaled strings.
19201 for var in reload_cmds \
19202 old_postinstall_cmds \
19203 old_postuninstall_cmds \
19204 old_archive_cmds \
19205 extract_expsyms_cmds \
19206 old_archive_from_new_cmds \
19207 old_archive_from_expsyms_cmds \
19208 archive_cmds \
19209 archive_expsym_cmds \
19210 module_cmds \
19211 module_expsym_cmds \
19212 export_symbols_cmds \
19213 prelink_cmds \
19214 postlink_cmds \
19215 postinstall_cmds \
19216 postuninstall_cmds \
19217 finish_cmds \
19218 sys_lib_search_path_spec \
19219 configure_time_dlsearch_path \
19220 configure_time_lt_sys_library_path; do
19221     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19222     *[\\\\\\\`\\"\\\$]*)
19223       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19224       ;;
19225     *)
19226       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19227       ;;
19228     esac
19229 done
19230
19231 ac_aux_dir='$ac_aux_dir'
19232
19233 # See if we are running on zsh, and set the options that allow our
19234 # commands through without removal of \ escapes INIT.
19235 if test -n "\${ZSH_VERSION+set}"; then
19236    setopt NO_GLOB_SUBST
19237 fi
19238
19239
19240     PACKAGE='$PACKAGE'
19241     VERSION='$VERSION'
19242     RM='$RM'
19243     ofile='$ofile'
19244
19245
19246
19247 # variables for create stdint.h replacement
19248 PACKAGE="$PACKAGE"
19249 VERSION="$VERSION"
19250 ac_stdint_h="$ac_stdint_h"
19251 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19252 ac_cv_stdint_message="$ac_cv_stdint_message"
19253 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19254 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19255 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19256 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19257 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19258 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19259 ac_cv_char_data_model="$ac_cv_char_data_model"
19260 ac_cv_long_data_model="$ac_cv_long_data_model"
19261 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19262 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19263 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19264
19265
19266 _ACEOF
19267
19268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19269
19270 # Handling of arguments.
19271 for ac_config_target in $ac_config_targets
19272 do
19273   case $ac_config_target in
19274     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19275     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19276     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19277     "checkmk/checkmk") CONFIG_FILES="$CONFIG_FILES checkmk/checkmk" ;;
19278     "checkmk-x") CONFIG_COMMANDS="$CONFIG_COMMANDS checkmk-x" ;;
19279     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19280     "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
19281     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19282     "checkmk/Makefile") CONFIG_FILES="$CONFIG_FILES checkmk/Makefile" ;;
19283     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19284     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19285     "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
19286     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19287     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19288     "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
19289
19290   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19291   esac
19292 done
19293
19294
19295 # If the user did not use the arguments to specify the items to instantiate,
19296 # then the envvar interface is used.  Set only those that are not.
19297 # We use the long form for the default assignment because of an extremely
19298 # bizarre bug on SunOS 4.1.3.
19299 if $ac_need_defaults; then
19300   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19301   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19302   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19303 fi
19304
19305 # Have a temporary directory for convenience.  Make it in the build tree
19306 # simply because there is no reason against having it here, and in addition,
19307 # creating and moving files from /tmp can sometimes cause problems.
19308 # Hook for its removal unless debugging.
19309 # Note that there is a small window in which the directory will not be cleaned:
19310 # after its creation but before its name has been assigned to `$tmp'.
19311 $debug ||
19312 {
19313   tmp= ac_tmp=
19314   trap 'exit_status=$?
19315   : "${ac_tmp:=$tmp}"
19316   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19317 ' 0
19318   trap 'as_fn_exit 1' 1 2 13 15
19319 }
19320 # Create a (secure) tmp directory for tmp files.
19321
19322 {
19323   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19324   test -d "$tmp"
19325 }  ||
19326 {
19327   tmp=./conf$$-$RANDOM
19328   (umask 077 && mkdir "$tmp")
19329 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19330 ac_tmp=$tmp
19331
19332 # Set up the scripts for CONFIG_FILES section.
19333 # No need to generate them if there are no CONFIG_FILES.
19334 # This happens for instance with `./config.status config.h'.
19335 if test -n "$CONFIG_FILES"; then
19336
19337
19338 ac_cr=`echo X | tr X '\015'`
19339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19340 # But we know of no other shell where ac_cr would be empty at this
19341 # point, so we can use a bashism as a fallback.
19342 if test "x$ac_cr" = x; then
19343   eval ac_cr=\$\'\\r\'
19344 fi
19345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19347   ac_cs_awk_cr='\\r'
19348 else
19349   ac_cs_awk_cr=$ac_cr
19350 fi
19351
19352 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19353 _ACEOF
19354
19355
19356 {
19357   echo "cat >conf$$subs.awk <<_ACEOF" &&
19358   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19359   echo "_ACEOF"
19360 } >conf$$subs.sh ||
19361   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19363 ac_delim='%!_!# '
19364 for ac_last_try in false false false false false :; do
19365   . ./conf$$subs.sh ||
19366     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19367
19368   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19369   if test $ac_delim_n = $ac_delim_num; then
19370     break
19371   elif $ac_last_try; then
19372     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19373   else
19374     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19375   fi
19376 done
19377 rm -f conf$$subs.sh
19378
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19381 _ACEOF
19382 sed -n '
19383 h
19384 s/^/S["/; s/!.*/"]=/
19385 p
19386 g
19387 s/^[^!]*!//
19388 :repl
19389 t repl
19390 s/'"$ac_delim"'$//
19391 t delim
19392 :nl
19393 h
19394 s/\(.\{148\}\)..*/\1/
19395 t more1
19396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19397 p
19398 n
19399 b repl
19400 :more1
19401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19402 p
19403 g
19404 s/.\{148\}//
19405 t nl
19406 :delim
19407 h
19408 s/\(.\{148\}\)..*/\1/
19409 t more2
19410 s/["\\]/\\&/g; s/^/"/; s/$/"/
19411 p
19412 b
19413 :more2
19414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19415 p
19416 g
19417 s/.\{148\}//
19418 t delim
19419 ' <conf$$subs.awk | sed '
19420 /^[^""]/{
19421   N
19422   s/\n//
19423 }
19424 ' >>$CONFIG_STATUS || ac_write_fail=1
19425 rm -f conf$$subs.awk
19426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19427 _ACAWK
19428 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19429   for (key in S) S_is_set[key] = 1
19430   FS = "\a"
19431
19432 }
19433 {
19434   line = $ 0
19435   nfields = split(line, field, "@")
19436   substed = 0
19437   len = length(field[1])
19438   for (i = 2; i < nfields; i++) {
19439     key = field[i]
19440     keylen = length(key)
19441     if (S_is_set[key]) {
19442       value = S[key]
19443       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19444       len += length(value) + length(field[++i])
19445       substed = 1
19446     } else
19447       len += 1 + keylen
19448   }
19449
19450   print line
19451 }
19452
19453 _ACAWK
19454 _ACEOF
19455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19457   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19458 else
19459   cat
19460 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19461   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19462 _ACEOF
19463
19464 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19465 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19466 # trailing colons and then remove the whole line if VPATH becomes empty
19467 # (actually we leave an empty line to preserve line numbers).
19468 if test "x$srcdir" = x.; then
19469   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19470 h
19471 s///
19472 s/^/:/
19473 s/[      ]*$/:/
19474 s/:\$(srcdir):/:/g
19475 s/:\${srcdir}:/:/g
19476 s/:@srcdir@:/:/g
19477 s/^:*//
19478 s/:*$//
19479 x
19480 s/\(=[   ]*\).*/\1/
19481 G
19482 s/\n//
19483 s/^[^=]*=[       ]*$//
19484 }'
19485 fi
19486
19487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19488 fi # test -n "$CONFIG_FILES"
19489
19490 # Set up the scripts for CONFIG_HEADERS section.
19491 # No need to generate them if there are no CONFIG_HEADERS.
19492 # This happens for instance with `./config.status Makefile'.
19493 if test -n "$CONFIG_HEADERS"; then
19494 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19495 BEGIN {
19496 _ACEOF
19497
19498 # Transform confdefs.h into an awk script `defines.awk', embedded as
19499 # here-document in config.status, that substitutes the proper values into
19500 # config.h.in to produce config.h.
19501
19502 # Create a delimiter string that does not exist in confdefs.h, to ease
19503 # handling of long lines.
19504 ac_delim='%!_!# '
19505 for ac_last_try in false false :; do
19506   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19507   if test -z "$ac_tt"; then
19508     break
19509   elif $ac_last_try; then
19510     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19511   else
19512     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19513   fi
19514 done
19515
19516 # For the awk script, D is an array of macro values keyed by name,
19517 # likewise P contains macro parameters if any.  Preserve backslash
19518 # newline sequences.
19519
19520 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19521 sed -n '
19522 s/.\{148\}/&'"$ac_delim"'/g
19523 t rset
19524 :rset
19525 s/^[     ]*#[    ]*define[       ][      ]*/ /
19526 t def
19527 d
19528 :def
19529 s/\\$//
19530 t bsnl
19531 s/["\\]/\\&/g
19532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19533 D["\1"]=" \3"/p
19534 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19535 d
19536 :bsnl
19537 s/["\\]/\\&/g
19538 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19539 D["\1"]=" \3\\\\\\n"\\/p
19540 t cont
19541 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19542 t cont
19543 d
19544 :cont
19545 n
19546 s/.\{148\}/&'"$ac_delim"'/g
19547 t clear
19548 :clear
19549 s/\\$//
19550 t bsnlc
19551 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19552 d
19553 :bsnlc
19554 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19555 b cont
19556 ' <confdefs.h | sed '
19557 s/'"$ac_delim"'/"\\\
19558 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19559
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561   for (key in D) D_is_set[key] = 1
19562   FS = "\a"
19563 }
19564 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19565   line = \$ 0
19566   split(line, arg, " ")
19567   if (arg[1] == "#") {
19568     defundef = arg[2]
19569     mac1 = arg[3]
19570   } else {
19571     defundef = substr(arg[1], 2)
19572     mac1 = arg[2]
19573   }
19574   split(mac1, mac2, "(") #)
19575   macro = mac2[1]
19576   prefix = substr(line, 1, index(line, defundef) - 1)
19577   if (D_is_set[macro]) {
19578     # Preserve the white space surrounding the "#".
19579     print prefix "define", macro P[macro] D[macro]
19580     next
19581   } else {
19582     # Replace #undef with comments.  This is necessary, for example,
19583     # in the case of _POSIX_SOURCE, which is predefined and required
19584     # on some systems where configure will not decide to define it.
19585     if (defundef == "undef") {
19586       print "/*", prefix defundef, macro, "*/"
19587       next
19588     }
19589   }
19590 }
19591 { print }
19592 _ACAWK
19593 _ACEOF
19594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19596 fi # test -n "$CONFIG_HEADERS"
19597
19598
19599 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19600 shift
19601 for ac_tag
19602 do
19603   case $ac_tag in
19604   :[FHLC]) ac_mode=$ac_tag; continue;;
19605   esac
19606   case $ac_mode$ac_tag in
19607   :[FHL]*:*);;
19608   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19609   :[FH]-) ac_tag=-:-;;
19610   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19611   esac
19612   ac_save_IFS=$IFS
19613   IFS=:
19614   set x $ac_tag
19615   IFS=$ac_save_IFS
19616   shift
19617   ac_file=$1
19618   shift
19619
19620   case $ac_mode in
19621   :L) ac_source=$1;;
19622   :[FH])
19623     ac_file_inputs=
19624     for ac_f
19625     do
19626       case $ac_f in
19627       -) ac_f="$ac_tmp/stdin";;
19628       *) # Look for the file first in the build tree, then in the source tree
19629          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19630          # because $ac_f cannot contain `:'.
19631          test -f "$ac_f" ||
19632            case $ac_f in
19633            [\\/$]*) false;;
19634            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19635            esac ||
19636            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19637       esac
19638       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19639       as_fn_append ac_file_inputs " '$ac_f'"
19640     done
19641
19642     # Let's still pretend it is `configure' which instantiates (i.e., don't
19643     # use $as_me), people would be surprised to read:
19644     #    /* config.h.  Generated by config.status.  */
19645     configure_input='Generated from '`
19646           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19647         `' by configure.'
19648     if test x"$ac_file" != x-; then
19649       configure_input="$ac_file.  $configure_input"
19650       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19651 $as_echo "$as_me: creating $ac_file" >&6;}
19652     fi
19653     # Neutralize special characters interpreted by sed in replacement strings.
19654     case $configure_input in #(
19655     *\&* | *\|* | *\\* )
19656        ac_sed_conf_input=`$as_echo "$configure_input" |
19657        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19658     *) ac_sed_conf_input=$configure_input;;
19659     esac
19660
19661     case $ac_tag in
19662     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19663       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19664     esac
19665     ;;
19666   esac
19667
19668   ac_dir=`$as_dirname -- "$ac_file" ||
19669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19670          X"$ac_file" : 'X\(//\)[^/]' \| \
19671          X"$ac_file" : 'X\(//\)$' \| \
19672          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19673 $as_echo X"$ac_file" |
19674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19675             s//\1/
19676             q
19677           }
19678           /^X\(\/\/\)[^/].*/{
19679             s//\1/
19680             q
19681           }
19682           /^X\(\/\/\)$/{
19683             s//\1/
19684             q
19685           }
19686           /^X\(\/\).*/{
19687             s//\1/
19688             q
19689           }
19690           s/.*/./; q'`
19691   as_dir="$ac_dir"; as_fn_mkdir_p
19692   ac_builddir=.
19693
19694 case "$ac_dir" in
19695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19696 *)
19697   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19698   # A ".." for each directory in $ac_dir_suffix.
19699   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19700   case $ac_top_builddir_sub in
19701   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19702   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19703   esac ;;
19704 esac
19705 ac_abs_top_builddir=$ac_pwd
19706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19707 # for backward compatibility:
19708 ac_top_builddir=$ac_top_build_prefix
19709
19710 case $srcdir in
19711   .)  # We are building in place.
19712     ac_srcdir=.
19713     ac_top_srcdir=$ac_top_builddir_sub
19714     ac_abs_top_srcdir=$ac_pwd ;;
19715   [\\/]* | ?:[\\/]* )  # Absolute name.
19716     ac_srcdir=$srcdir$ac_dir_suffix;
19717     ac_top_srcdir=$srcdir
19718     ac_abs_top_srcdir=$srcdir ;;
19719   *) # Relative name.
19720     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19721     ac_top_srcdir=$ac_top_build_prefix$srcdir
19722     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19723 esac
19724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19725
19726
19727   case $ac_mode in
19728   :F)
19729   #
19730   # CONFIG_FILE
19731   #
19732
19733   case $INSTALL in
19734   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19735   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19736   esac
19737   ac_MKDIR_P=$MKDIR_P
19738   case $MKDIR_P in
19739   [\\/$]* | ?:[\\/]* ) ;;
19740   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19741   esac
19742 _ACEOF
19743
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19745 # If the template does not know about datarootdir, expand it.
19746 # FIXME: This hack should be removed a few years after 2.60.
19747 ac_datarootdir_hack=; ac_datarootdir_seen=
19748 ac_sed_dataroot='
19749 /datarootdir/ {
19750   p
19751   q
19752 }
19753 /@datadir@/p
19754 /@docdir@/p
19755 /@infodir@/p
19756 /@localedir@/p
19757 /@mandir@/p'
19758 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19759 *datarootdir*) ac_datarootdir_seen=yes;;
19760 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19761   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19762 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19763 _ACEOF
19764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19765   ac_datarootdir_hack='
19766   s&@datadir@&$datadir&g
19767   s&@docdir@&$docdir&g
19768   s&@infodir@&$infodir&g
19769   s&@localedir@&$localedir&g
19770   s&@mandir@&$mandir&g
19771   s&\\\${datarootdir}&$datarootdir&g' ;;
19772 esac
19773 _ACEOF
19774
19775 # Neutralize VPATH when `$srcdir' = `.'.
19776 # Shell code in configure.ac might set extrasub.
19777 # FIXME: do we really want to maintain this feature?
19778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19779 ac_sed_extra="$ac_vpsub
19780 $extrasub
19781 _ACEOF
19782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19783 :t
19784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19785 s|@configure_input@|$ac_sed_conf_input|;t t
19786 s&@top_builddir@&$ac_top_builddir_sub&;t t
19787 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19788 s&@srcdir@&$ac_srcdir&;t t
19789 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19790 s&@top_srcdir@&$ac_top_srcdir&;t t
19791 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19792 s&@builddir@&$ac_builddir&;t t
19793 s&@abs_builddir@&$ac_abs_builddir&;t t
19794 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19795 s&@INSTALL@&$ac_INSTALL&;t t
19796 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19797 $ac_datarootdir_hack
19798 "
19799 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19800   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19801
19802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19803   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19804   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19805       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19806   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19807 which seems to be undefined.  Please make sure it is defined" >&5
19808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19809 which seems to be undefined.  Please make sure it is defined" >&2;}
19810
19811   rm -f "$ac_tmp/stdin"
19812   case $ac_file in
19813   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19814   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19815   esac \
19816   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19817  ;;
19818   :H)
19819   #
19820   # CONFIG_HEADER
19821   #
19822   if test x"$ac_file" != x-; then
19823     {
19824       $as_echo "/* $configure_input  */" \
19825       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19826     } >"$ac_tmp/config.h" \
19827       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19828     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19829       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19831     else
19832       rm -f "$ac_file"
19833       mv "$ac_tmp/config.h" "$ac_file" \
19834         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19835     fi
19836   else
19837     $as_echo "/* $configure_input  */" \
19838       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19839       || as_fn_error $? "could not create -" "$LINENO" 5
19840   fi
19841 # Compute "$ac_file"'s index in $config_headers.
19842 _am_arg="$ac_file"
19843 _am_stamp_count=1
19844 for _am_header in $config_headers :; do
19845   case $_am_header in
19846     $_am_arg | $_am_arg:* )
19847       break ;;
19848     * )
19849       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19850   esac
19851 done
19852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19854          X"$_am_arg" : 'X\(//\)[^/]' \| \
19855          X"$_am_arg" : 'X\(//\)$' \| \
19856          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19857 $as_echo X"$_am_arg" |
19858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19859             s//\1/
19860             q
19861           }
19862           /^X\(\/\/\)[^/].*/{
19863             s//\1/
19864             q
19865           }
19866           /^X\(\/\/\)$/{
19867             s//\1/
19868             q
19869           }
19870           /^X\(\/\).*/{
19871             s//\1/
19872             q
19873           }
19874           s/.*/./; q'`/stamp-h$_am_stamp_count
19875  ;;
19876
19877   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19878 $as_echo "$as_me: executing $ac_file commands" >&6;}
19879  ;;
19880   esac
19881
19882
19883   case $ac_file$ac_mode in
19884     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19885   # Older Autoconf quotes --file arguments for eval, but not when files
19886   # are listed without --file.  Let's play safe and only enable the eval
19887   # if we detect the quoting.
19888   case $CONFIG_FILES in
19889   *\'*) eval set x "$CONFIG_FILES" ;;
19890   *)   set x $CONFIG_FILES ;;
19891   esac
19892   shift
19893   for mf
19894   do
19895     # Strip MF so we end up with the name of the file.
19896     mf=`echo "$mf" | sed -e 's/:.*$//'`
19897     # Check whether this is an Automake generated Makefile or not.
19898     # We used to match only the files named 'Makefile.in', but
19899     # some people rename them; so instead we look at the file content.
19900     # Grep'ing the first line is not enough: some people post-process
19901     # each Makefile.in and add a new line on top of each file to say so.
19902     # Grep'ing the whole file is not good either: AIX grep has a line
19903     # limit of 2048, but all sed's we know have understand at least 4000.
19904     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19905       dirpart=`$as_dirname -- "$mf" ||
19906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19907          X"$mf" : 'X\(//\)[^/]' \| \
19908          X"$mf" : 'X\(//\)$' \| \
19909          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19910 $as_echo X"$mf" |
19911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19912             s//\1/
19913             q
19914           }
19915           /^X\(\/\/\)[^/].*/{
19916             s//\1/
19917             q
19918           }
19919           /^X\(\/\/\)$/{
19920             s//\1/
19921             q
19922           }
19923           /^X\(\/\).*/{
19924             s//\1/
19925             q
19926           }
19927           s/.*/./; q'`
19928     else
19929       continue
19930     fi
19931     # Extract the definition of DEPDIR, am__include, and am__quote
19932     # from the Makefile without running 'make'.
19933     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19934     test -z "$DEPDIR" && continue
19935     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19936     test -z "$am__include" && continue
19937     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19938     # Find all dependency output files, they are included files with
19939     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19940     # simplest approach to changing $(DEPDIR) to its actual value in the
19941     # expansion.
19942     for file in `sed -n "
19943       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19944          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19945       # Make sure the directory exists.
19946       test -f "$dirpart/$file" && continue
19947       fdir=`$as_dirname -- "$file" ||
19948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19949          X"$file" : 'X\(//\)[^/]' \| \
19950          X"$file" : 'X\(//\)$' \| \
19951          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19952 $as_echo X"$file" |
19953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19954             s//\1/
19955             q
19956           }
19957           /^X\(\/\/\)[^/].*/{
19958             s//\1/
19959             q
19960           }
19961           /^X\(\/\/\)$/{
19962             s//\1/
19963             q
19964           }
19965           /^X\(\/\).*/{
19966             s//\1/
19967             q
19968           }
19969           s/.*/./; q'`
19970       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19971       # echo "creating $dirpart/$file"
19972       echo '# dummy' > "$dirpart/$file"
19973     done
19974   done
19975 }
19976  ;;
19977     "libtool":C)
19978
19979     # See if we are running on zsh, and set the options that allow our
19980     # commands through without removal of \ escapes.
19981     if test -n "${ZSH_VERSION+set}"; then
19982       setopt NO_GLOB_SUBST
19983     fi
19984
19985     cfgfile=${ofile}T
19986     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19987     $RM "$cfgfile"
19988
19989     cat <<_LT_EOF >> "$cfgfile"
19990 #! $SHELL
19991 # Generated automatically by $as_me ($PACKAGE) $VERSION
19992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19993 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19994
19995 # Provide generalized library-building support services.
19996 # Written by Gordon Matzigkeit, 1996
19997
19998 # Copyright (C) 2014 Free Software Foundation, Inc.
19999 # This is free software; see the source for copying conditions.  There is NO
20000 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20001
20002 # GNU Libtool is free software; you can redistribute it and/or modify
20003 # it under the terms of the GNU General Public License as published by
20004 # the Free Software Foundation; either version 2 of of the License, or
20005 # (at your option) any later version.
20006 #
20007 # As a special exception to the GNU General Public License, if you
20008 # distribute this file as part of a program or library that is built
20009 # using GNU Libtool, you may include this file under the  same
20010 # distribution terms that you use for the rest of that program.
20011 #
20012 # GNU Libtool is distributed in the hope that it will be useful, but
20013 # WITHOUT ANY WARRANTY; without even the implied warranty of
20014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20015 # GNU General Public License for more details.
20016 #
20017 # You should have received a copy of the GNU General Public License
20018 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20019
20020
20021 # The names of the tagged configurations supported by this script.
20022 available_tags=''
20023
20024 # Configured defaults for sys_lib_dlsearch_path munging.
20025 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20026
20027 # ### BEGIN LIBTOOL CONFIG
20028
20029 # Which release of libtool.m4 was used?
20030 macro_version=$macro_version
20031 macro_revision=$macro_revision
20032
20033 # Whether or not to build shared libraries.
20034 build_libtool_libs=$enable_shared
20035
20036 # Whether or not to build static libraries.
20037 build_old_libs=$enable_static
20038
20039 # What type of objects to build.
20040 pic_mode=$pic_mode
20041
20042 # Whether or not to optimize for fast installation.
20043 fast_install=$enable_fast_install
20044
20045 # Shared archive member basename,for filename based shared library versioning on AIX.
20046 shared_archive_member_spec=$shared_archive_member_spec
20047
20048 # Shell to use when invoking shell scripts.
20049 SHELL=$lt_SHELL
20050
20051 # An echo program that protects backslashes.
20052 ECHO=$lt_ECHO
20053
20054 # The PATH separator for the build system.
20055 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20056
20057 # The host system.
20058 host_alias=$host_alias
20059 host=$host
20060 host_os=$host_os
20061
20062 # The build system.
20063 build_alias=$build_alias
20064 build=$build
20065 build_os=$build_os
20066
20067 # A sed program that does not truncate output.
20068 SED=$lt_SED
20069
20070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20071 Xsed="\$SED -e 1s/^X//"
20072
20073 # A grep program that handles long lines.
20074 GREP=$lt_GREP
20075
20076 # An ERE matcher.
20077 EGREP=$lt_EGREP
20078
20079 # A literal string matcher.
20080 FGREP=$lt_FGREP
20081
20082 # A BSD- or MS-compatible name lister.
20083 NM=$lt_NM
20084
20085 # Whether we need soft or hard links.
20086 LN_S=$lt_LN_S
20087
20088 # What is the maximum length of a command?
20089 max_cmd_len=$max_cmd_len
20090
20091 # Object file suffix (normally "o").
20092 objext=$ac_objext
20093
20094 # Executable file suffix (normally "").
20095 exeext=$exeext
20096
20097 # whether the shell understands "unset".
20098 lt_unset=$lt_unset
20099
20100 # turn spaces into newlines.
20101 SP2NL=$lt_lt_SP2NL
20102
20103 # turn newlines into spaces.
20104 NL2SP=$lt_lt_NL2SP
20105
20106 # convert \$build file names to \$host format.
20107 to_host_file_cmd=$lt_cv_to_host_file_cmd
20108
20109 # convert \$build files to toolchain format.
20110 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20111
20112 # An object symbol dumper.
20113 OBJDUMP=$lt_OBJDUMP
20114
20115 # Method to check whether dependent libraries are shared objects.
20116 deplibs_check_method=$lt_deplibs_check_method
20117
20118 # Command to use when deplibs_check_method = "file_magic".
20119 file_magic_cmd=$lt_file_magic_cmd
20120
20121 # How to find potential files when deplibs_check_method = "file_magic".
20122 file_magic_glob=$lt_file_magic_glob
20123
20124 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20125 want_nocaseglob=$lt_want_nocaseglob
20126
20127 # DLL creation program.
20128 DLLTOOL=$lt_DLLTOOL
20129
20130 # Command to associate shared and link libraries.
20131 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20132
20133 # The archiver.
20134 AR=$lt_AR
20135
20136 # Flags to create an archive.
20137 AR_FLAGS=$lt_AR_FLAGS
20138
20139 # How to feed a file listing to the archiver.
20140 archiver_list_spec=$lt_archiver_list_spec
20141
20142 # A symbol stripping program.
20143 STRIP=$lt_STRIP
20144
20145 # Commands used to install an old-style archive.
20146 RANLIB=$lt_RANLIB
20147 old_postinstall_cmds=$lt_old_postinstall_cmds
20148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20149
20150 # Whether to use a lock for old archive extraction.
20151 lock_old_archive_extraction=$lock_old_archive_extraction
20152
20153 # A C compiler.
20154 LTCC=$lt_CC
20155
20156 # LTCC compiler flags.
20157 LTCFLAGS=$lt_CFLAGS
20158
20159 # Take the output of nm and produce a listing of raw symbols and C names.
20160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20161
20162 # Transform the output of nm in a proper C declaration.
20163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20164
20165 # Transform the output of nm into a list of symbols to manually relocate.
20166 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20167
20168 # Transform the output of nm in a C name address pair.
20169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20170
20171 # Transform the output of nm in a C name address pair when lib prefix is needed.
20172 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20173
20174 # The name lister interface.
20175 nm_interface=$lt_lt_cv_nm_interface
20176
20177 # Specify filename containing input files for \$NM.
20178 nm_file_list_spec=$lt_nm_file_list_spec
20179
20180 # The root where to search for dependent libraries,and where our libraries should be installed.
20181 lt_sysroot=$lt_sysroot
20182
20183 # Command to truncate a binary pipe.
20184 lt_truncate_bin=$lt_lt_cv_truncate_bin
20185
20186 # The name of the directory that contains temporary libtool files.
20187 objdir=$objdir
20188
20189 # Used to examine libraries when file_magic_cmd begins with "file".
20190 MAGIC_CMD=$MAGIC_CMD
20191
20192 # Must we lock files when doing compilation?
20193 need_locks=$lt_need_locks
20194
20195 # Manifest tool.
20196 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20197
20198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20199 DSYMUTIL=$lt_DSYMUTIL
20200
20201 # Tool to change global to local symbols on Mac OS X.
20202 NMEDIT=$lt_NMEDIT
20203
20204 # Tool to manipulate fat objects and archives on Mac OS X.
20205 LIPO=$lt_LIPO
20206
20207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20208 OTOOL=$lt_OTOOL
20209
20210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20211 OTOOL64=$lt_OTOOL64
20212
20213 # Old archive suffix (normally "a").
20214 libext=$libext
20215
20216 # Shared library suffix (normally ".so").
20217 shrext_cmds=$lt_shrext_cmds
20218
20219 # The commands to extract the exported symbol list from a shared archive.
20220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20221
20222 # Variables whose values should be saved in libtool wrapper scripts and
20223 # restored at link time.
20224 variables_saved_for_relink=$lt_variables_saved_for_relink
20225
20226 # Do we need the "lib" prefix for modules?
20227 need_lib_prefix=$need_lib_prefix
20228
20229 # Do we need a version for libraries?
20230 need_version=$need_version
20231
20232 # Library versioning type.
20233 version_type=$version_type
20234
20235 # Shared library runtime path variable.
20236 runpath_var=$runpath_var
20237
20238 # Shared library path variable.
20239 shlibpath_var=$shlibpath_var
20240
20241 # Is shlibpath searched before the hard-coded library search path?
20242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20243
20244 # Format of library name prefix.
20245 libname_spec=$lt_libname_spec
20246
20247 # List of archive names.  First name is the real one, the rest are links.
20248 # The last name is the one that the linker finds with -lNAME
20249 library_names_spec=$lt_library_names_spec
20250
20251 # The coded name of the library, if different from the real name.
20252 soname_spec=$lt_soname_spec
20253
20254 # Permission mode override for installation of shared libraries.
20255 install_override_mode=$lt_install_override_mode
20256
20257 # Command to use after installation of a shared archive.
20258 postinstall_cmds=$lt_postinstall_cmds
20259
20260 # Command to use after uninstallation of a shared archive.
20261 postuninstall_cmds=$lt_postuninstall_cmds
20262
20263 # Commands used to finish a libtool library installation in a directory.
20264 finish_cmds=$lt_finish_cmds
20265
20266 # As "finish_cmds", except a single script fragment to be evaled but
20267 # not shown.
20268 finish_eval=$lt_finish_eval
20269
20270 # Whether we should hardcode library paths into libraries.
20271 hardcode_into_libs=$hardcode_into_libs
20272
20273 # Compile-time system search path for libraries.
20274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20275
20276 # Detected run-time system search path for libraries.
20277 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20278
20279 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20280 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20281
20282 # Whether dlopen is supported.
20283 dlopen_support=$enable_dlopen
20284
20285 # Whether dlopen of programs is supported.
20286 dlopen_self=$enable_dlopen_self
20287
20288 # Whether dlopen of statically linked programs is supported.
20289 dlopen_self_static=$enable_dlopen_self_static
20290
20291 # Commands to strip libraries.
20292 old_striplib=$lt_old_striplib
20293 striplib=$lt_striplib
20294
20295
20296 # The linker used to build libraries.
20297 LD=$lt_LD
20298
20299 # How to create reloadable object files.
20300 reload_flag=$lt_reload_flag
20301 reload_cmds=$lt_reload_cmds
20302
20303 # Commands used to build an old-style archive.
20304 old_archive_cmds=$lt_old_archive_cmds
20305
20306 # A language specific compiler.
20307 CC=$lt_compiler
20308
20309 # Is the compiler the GNU compiler?
20310 with_gcc=$GCC
20311
20312 # Compiler flag to turn off builtin functions.
20313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20314
20315 # Additional compiler flags for building library objects.
20316 pic_flag=$lt_lt_prog_compiler_pic
20317
20318 # How to pass a linker flag through the compiler.
20319 wl=$lt_lt_prog_compiler_wl
20320
20321 # Compiler flag to prevent dynamic linking.
20322 link_static_flag=$lt_lt_prog_compiler_static
20323
20324 # Does compiler simultaneously support -c and -o options?
20325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20326
20327 # Whether or not to add -lc for building shared libraries.
20328 build_libtool_need_lc=$archive_cmds_need_lc
20329
20330 # Whether or not to disallow shared libs when runtime libs are static.
20331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20332
20333 # Compiler flag to allow reflexive dlopens.
20334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20335
20336 # Compiler flag to generate shared objects directly from archives.
20337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20338
20339 # Whether the compiler copes with passing no objects directly.
20340 compiler_needs_object=$lt_compiler_needs_object
20341
20342 # Create an old-style archive from a shared archive.
20343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20344
20345 # Create a temporary old-style archive to link instead of a shared archive.
20346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20347
20348 # Commands used to build a shared archive.
20349 archive_cmds=$lt_archive_cmds
20350 archive_expsym_cmds=$lt_archive_expsym_cmds
20351
20352 # Commands used to build a loadable module if different from building
20353 # a shared archive.
20354 module_cmds=$lt_module_cmds
20355 module_expsym_cmds=$lt_module_expsym_cmds
20356
20357 # Whether we are building with GNU ld or not.
20358 with_gnu_ld=$lt_with_gnu_ld
20359
20360 # Flag that allows shared libraries with undefined symbols to be built.
20361 allow_undefined_flag=$lt_allow_undefined_flag
20362
20363 # Flag that enforces no undefined symbols.
20364 no_undefined_flag=$lt_no_undefined_flag
20365
20366 # Flag to hardcode \$libdir into a binary during linking.
20367 # This must work even if \$libdir does not exist
20368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20369
20370 # Whether we need a single "-rpath" flag with a separated argument.
20371 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20372
20373 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20374 # DIR into the resulting binary.
20375 hardcode_direct=$hardcode_direct
20376
20377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20378 # DIR into the resulting binary and the resulting library dependency is
20379 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20380 # library is relocated.
20381 hardcode_direct_absolute=$hardcode_direct_absolute
20382
20383 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20384 # into the resulting binary.
20385 hardcode_minus_L=$hardcode_minus_L
20386
20387 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20388 # into the resulting binary.
20389 hardcode_shlibpath_var=$hardcode_shlibpath_var
20390
20391 # Set to "yes" if building a shared library automatically hardcodes DIR
20392 # into the library and all subsequent libraries and executables linked
20393 # against it.
20394 hardcode_automatic=$hardcode_automatic
20395
20396 # Set to yes if linker adds runtime paths of dependent libraries
20397 # to runtime path list.
20398 inherit_rpath=$inherit_rpath
20399
20400 # Whether libtool must link a program against all its dependency libraries.
20401 link_all_deplibs=$link_all_deplibs
20402
20403 # Set to "yes" if exported symbols are required.
20404 always_export_symbols=$always_export_symbols
20405
20406 # The commands to list exported symbols.
20407 export_symbols_cmds=$lt_export_symbols_cmds
20408
20409 # Symbols that should not be listed in the preloaded symbols.
20410 exclude_expsyms=$lt_exclude_expsyms
20411
20412 # Symbols that must always be exported.
20413 include_expsyms=$lt_include_expsyms
20414
20415 # Commands necessary for linking programs (against libraries) with templates.
20416 prelink_cmds=$lt_prelink_cmds
20417
20418 # Commands necessary for finishing linking programs.
20419 postlink_cmds=$lt_postlink_cmds
20420
20421 # Specify filename containing input files.
20422 file_list_spec=$lt_file_list_spec
20423
20424 # How to hardcode a shared library path into an executable.
20425 hardcode_action=$hardcode_action
20426
20427 # ### END LIBTOOL CONFIG
20428
20429 _LT_EOF
20430
20431     cat <<'_LT_EOF' >> "$cfgfile"
20432
20433 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20434
20435 # func_munge_path_list VARIABLE PATH
20436 # -----------------------------------
20437 # VARIABLE is name of variable containing _space_ separated list of
20438 # directories to be munged by the contents of PATH, which is string
20439 # having a format:
20440 # "DIR[:DIR]:"
20441 #       string "DIR[ DIR]" will be prepended to VARIABLE
20442 # ":DIR[:DIR]"
20443 #       string "DIR[ DIR]" will be appended to VARIABLE
20444 # "DIRP[:DIRP]::[DIRA:]DIRA"
20445 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20446 #       "DIRA[ DIRA]" will be appended to VARIABLE
20447 # "DIR[:DIR]"
20448 #       VARIABLE will be replaced by "DIR[ DIR]"
20449 func_munge_path_list ()
20450 {
20451     case x$2 in
20452     x)
20453         ;;
20454     *:)
20455         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20456         ;;
20457     x:*)
20458         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20459         ;;
20460     *::*)
20461         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20462         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20463         ;;
20464     *)
20465         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20466         ;;
20467     esac
20468 }
20469
20470
20471 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20472 func_cc_basename ()
20473 {
20474     for cc_temp in $*""; do
20475       case $cc_temp in
20476         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20477         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20478         \-*) ;;
20479         *) break;;
20480       esac
20481     done
20482     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20483 }
20484
20485
20486 # ### END FUNCTIONS SHARED WITH CONFIGURE
20487
20488 _LT_EOF
20489
20490   case $host_os in
20491   aix3*)
20492     cat <<\_LT_EOF >> "$cfgfile"
20493 # AIX sometimes has problems with the GCC collect2 program.  For some
20494 # reason, if we set the COLLECT_NAMES environment variable, the problems
20495 # vanish in a puff of smoke.
20496 if test set != "${COLLECT_NAMES+set}"; then
20497   COLLECT_NAMES=
20498   export COLLECT_NAMES
20499 fi
20500 _LT_EOF
20501     ;;
20502   esac
20503
20504
20505 ltmain=$ac_aux_dir/ltmain.sh
20506
20507
20508   # We use sed instead of cat because bash on DJGPP gets confused if
20509   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20510   # text mode, it properly converts lines to CR/LF.  This bash problem
20511   # is reportedly fixed, but why not run on old versions too?
20512   sed '$q' "$ltmain" >> "$cfgfile" \
20513      || (rm -f "$cfgfile"; exit 1)
20514
20515    mv -f "$cfgfile" "$ofile" ||
20516     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20517   chmod +x "$ofile"
20518
20519  ;;
20520     "$ac_stdint_h":C)
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20522 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20523 ac_stdint=$tmp/_stdint.h
20524
20525 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20526 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20527 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20528 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20529 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20530 if test "_$ac_cv_header_stdint_t" != "_" ; then
20531 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20532 echo "#include <stdint.h>" >>$ac_stdint
20533 echo "#endif" >>$ac_stdint
20534 echo "#endif" >>$ac_stdint
20535 else
20536
20537 cat >>$ac_stdint <<STDINT_EOF
20538
20539 /* ................... shortcircuit part ........................... */
20540
20541 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20542 #include <stdint.h>
20543 #else
20544 #include <stddef.h>
20545
20546 /* .................... configured part ............................ */
20547
20548 STDINT_EOF
20549
20550 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20551 if test "_$ac_cv_header_stdint_x" != "_" ; then
20552   ac_header="$ac_cv_header_stdint_x"
20553   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20554 else
20555   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20556 fi
20557
20558 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20559 if  test "_$ac_cv_header_stdint_o" != "_" ; then
20560   ac_header="$ac_cv_header_stdint_o"
20561   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20562 else
20563   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20564 fi
20565
20566 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20567 if  test "_$ac_cv_header_stdint_u" != "_" ; then
20568   ac_header="$ac_cv_header_stdint_u"
20569   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20570 else
20571   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20572 fi
20573
20574 echo "" >>$ac_stdint
20575
20576 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20577   echo "#include <$ac_header>" >>$ac_stdint
20578   echo "" >>$ac_stdint
20579 fi fi
20580
20581 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20582 if test "$ac_cv_type_uint64_t" = "yes" ; then
20583 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
20584 else
20585 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20586 fi
20587 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20588 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
20589 else
20590 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20591 fi
20592 echo "" >>$ac_stdint
20593
20594 echo "/* which type model has been detected */" >>$ac_stdint
20595 if test "_$ac_cv_char_data_model" != "_" ; then
20596 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20597 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20598 else
20599 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20600 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20601 fi
20602 echo "" >>$ac_stdint
20603
20604 echo "/* whether int_least types were detected */" >>$ac_stdint
20605 if test "$ac_cv_type_int_least32_t" = "yes"; then
20606 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
20607 else
20608 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20609 fi
20610 echo "/* whether int_fast types were detected */" >>$ac_stdint
20611 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20612 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20613 else
20614 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20615 fi
20616 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20617 if test "$ac_cv_type_intmax_t" = "yes"; then
20618 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20619 else
20620 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20621 fi
20622 echo "" >>$ac_stdint
20623
20624   cat >>$ac_stdint <<STDINT_EOF
20625 /* .................... detections part ............................ */
20626
20627 /* whether we need to define bitspecific types from compiler base types */
20628 #ifndef _STDINT_HEADER_INTPTR
20629 #ifndef _STDINT_HEADER_UINT32
20630 #ifndef _STDINT_HEADER_U_INT32
20631 #define _STDINT_NEED_INT_MODEL_T
20632 #else
20633 #define _STDINT_HAVE_U_INT_TYPES
20634 #endif
20635 #endif
20636 #endif
20637
20638 #ifdef _STDINT_HAVE_U_INT_TYPES
20639 #undef _STDINT_NEED_INT_MODEL_T
20640 #endif
20641
20642 #ifdef  _STDINT_CHAR_MODEL
20643 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20644 #ifndef _STDINT_BYTE_MODEL
20645 #define _STDINT_BYTE_MODEL 12
20646 #endif
20647 #endif
20648 #endif
20649
20650 #ifndef _STDINT_HAVE_INT_LEAST32_T
20651 #define _STDINT_NEED_INT_LEAST_T
20652 #endif
20653
20654 #ifndef _STDINT_HAVE_INT_FAST32_T
20655 #define _STDINT_NEED_INT_FAST_T
20656 #endif
20657
20658 #ifndef _STDINT_HEADER_INTPTR
20659 #define _STDINT_NEED_INTPTR_T
20660 #ifndef _STDINT_HAVE_INTMAX_T
20661 #define _STDINT_NEED_INTMAX_T
20662 #endif
20663 #endif
20664
20665
20666 /* .................... definition part ............................ */
20667
20668 /* some system headers have good uint64_t */
20669 #ifndef _HAVE_UINT64_T
20670 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
20671 #define _HAVE_UINT64_T
20672 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20673 #define _HAVE_UINT64_T
20674 typedef u_int64_t uint64_t;
20675 #endif
20676 #endif
20677
20678 #ifndef _HAVE_UINT64_T
20679 /* .. here are some common heuristics using compiler runtime specifics */
20680 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20681 #define _HAVE_UINT64_T
20682 #define _HAVE_LONGLONG_UINT64_T
20683 typedef long long int64_t;
20684 typedef unsigned long long uint64_t;
20685
20686 #elif !defined __STRICT_ANSI__
20687 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20688 #define _HAVE_UINT64_T
20689 typedef __int64 int64_t;
20690 typedef unsigned __int64 uint64_t;
20691
20692 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20693 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20694 #if !defined _NO_LONGLONG
20695 #define _HAVE_UINT64_T
20696 #define _HAVE_LONGLONG_UINT64_T
20697 typedef long long int64_t;
20698 typedef unsigned long long uint64_t;
20699 #endif
20700
20701 #elif defined __alpha || (defined __mips && defined _ABIN32)
20702 #if !defined _NO_LONGLONG
20703 typedef long int64_t;
20704 typedef unsigned long uint64_t;
20705 #endif
20706   /* compiler/cpu type to define int64_t */
20707 #endif
20708 #endif
20709 #endif
20710
20711 #if defined _STDINT_HAVE_U_INT_TYPES
20712 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20713 typedef u_int8_t uint8_t;
20714 typedef u_int16_t uint16_t;
20715 typedef u_int32_t uint32_t;
20716
20717 /* glibc compatibility */
20718 #ifndef __int8_t_defined
20719 #define __int8_t_defined
20720 #endif
20721 #endif
20722
20723 #ifdef _STDINT_NEED_INT_MODEL_T
20724 /* we must guess all the basic types. Apart from byte-adressable system, */
20725 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20726 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20727
20728
20729 #if defined _STDINT_BYTE_MODEL
20730 #if _STDINT_LONG_MODEL+0 == 242
20731 /* 2:4:2 =  IP16 = a normal 16-bit system                */
20732 typedef unsigned char   uint8_t;
20733 typedef unsigned short  uint16_t;
20734 typedef unsigned long   uint32_t;
20735 #ifndef __int8_t_defined
20736 #define __int8_t_defined
20737 typedef          char    int8_t;
20738 typedef          short   int16_t;
20739 typedef          long    int32_t;
20740 #endif
20741 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20742 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
20743 /* 4:4:4 = ILP32 = a normal 32-bit system                */
20744 typedef unsigned char   uint8_t;
20745 typedef unsigned short  uint16_t;
20746 typedef unsigned int    uint32_t;
20747 #ifndef __int8_t_defined
20748 #define __int8_t_defined
20749 typedef          char    int8_t;
20750 typedef          short   int16_t;
20751 typedef          int     int32_t;
20752 #endif
20753 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20754 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
20755 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
20756 typedef unsigned char   uint8_t;
20757 typedef unsigned short  uint16_t;
20758 typedef unsigned int    uint32_t;
20759 #ifndef __int8_t_defined
20760 #define __int8_t_defined
20761 typedef          char    int8_t;
20762 typedef          short   int16_t;
20763 typedef          int     int32_t;
20764 #endif
20765 /* this system has a "long" of 64bit */
20766 #ifndef _HAVE_UINT64_T
20767 #define _HAVE_UINT64_T
20768 typedef unsigned long   uint64_t;
20769 typedef          long    int64_t;
20770 #endif
20771 #elif _STDINT_LONG_MODEL+0 == 448
20772 /*      LLP64   a 64-bit system derived from a 32-bit system */
20773 typedef unsigned char   uint8_t;
20774 typedef unsigned short  uint16_t;
20775 typedef unsigned int    uint32_t;
20776 #ifndef __int8_t_defined
20777 #define __int8_t_defined
20778 typedef          char    int8_t;
20779 typedef          short   int16_t;
20780 typedef          int     int32_t;
20781 #endif
20782 /* assuming the system has a "long long" */
20783 #ifndef _HAVE_UINT64_T
20784 #define _HAVE_UINT64_T
20785 #define _HAVE_LONGLONG_UINT64_T
20786 typedef unsigned long long uint64_t;
20787 typedef          long long  int64_t;
20788 #endif
20789 #else
20790 #define _STDINT_NO_INT32_T
20791 #endif
20792 #else
20793 #define _STDINT_NO_INT8_T
20794 #define _STDINT_NO_INT32_T
20795 #endif
20796 #endif
20797
20798 /*
20799  * quote from SunOS-5.8 sys/inttypes.h:
20800  * Use at your own risk.  As of February 1996, the committee is squarely
20801  * behind the fixed sized types; the "least" and "fast" types are still being
20802  * discussed.  The probability that the "fast" types may be removed before
20803  * the standard is finalized is high enough that they are not currently
20804  * implemented.
20805  */
20806
20807 #if defined _STDINT_NEED_INT_LEAST_T
20808 typedef  int8_t    int_least8_t;
20809 typedef  int16_t   int_least16_t;
20810 typedef  int32_t   int_least32_t;
20811 #ifdef _HAVE_UINT64_T
20812 typedef  int64_t   int_least64_t;
20813 #endif
20814
20815 typedef uint8_t   uint_least8_t;
20816 typedef uint16_t  uint_least16_t;
20817 typedef uint32_t  uint_least32_t;
20818 #ifdef _HAVE_UINT64_T
20819 typedef uint64_t  uint_least64_t;
20820 #endif
20821   /* least types */
20822 #endif
20823
20824 #if defined _STDINT_NEED_INT_FAST_T
20825 typedef  int8_t    int_fast8_t;
20826 typedef  int       int_fast16_t;
20827 typedef  int32_t   int_fast32_t;
20828 #ifdef _HAVE_UINT64_T
20829 typedef  int64_t   int_fast64_t;
20830 #endif
20831
20832 typedef uint8_t   uint_fast8_t;
20833 typedef unsigned  uint_fast16_t;
20834 typedef uint32_t  uint_fast32_t;
20835 #ifdef _HAVE_UINT64_T
20836 typedef uint64_t  uint_fast64_t;
20837 #endif
20838   /* fast types */
20839 #endif
20840
20841 #ifdef _STDINT_NEED_INTMAX_T
20842 #ifdef _HAVE_UINT64_T
20843 typedef  int64_t       intmax_t;
20844 typedef uint64_t      uintmax_t;
20845 #else
20846 typedef          long  intmax_t;
20847 typedef unsigned long uintmax_t;
20848 #endif
20849 #endif
20850
20851 #ifdef _STDINT_NEED_INTPTR_T
20852 #ifndef __intptr_t_defined
20853 #define __intptr_t_defined
20854 /* we encourage using "long" to store pointer values, never use "int" ! */
20855 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20856 typedef  unsigned int   uintptr_t;
20857 typedef           int    intptr_t;
20858 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20859 typedef  unsigned long  uintptr_t;
20860 typedef           long   intptr_t;
20861 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20862 typedef        uint64_t uintptr_t;
20863 typedef         int64_t  intptr_t;
20864 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20865 typedef  unsigned long  uintptr_t;
20866 typedef           long   intptr_t;
20867 #endif
20868 #endif
20869 #endif
20870
20871 /* The ISO C99 standard specifies that in C++ implementations these
20872    should only be defined if explicitly requested.  */
20873 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20874 #ifndef UINT32_C
20875
20876 /* Signed.  */
20877 # define INT8_C(c)      c
20878 # define INT16_C(c)     c
20879 # define INT32_C(c)     c
20880 # ifdef _HAVE_LONGLONG_UINT64_T
20881 #  define INT64_C(c)    c ## L
20882 # else
20883 #  define INT64_C(c)    c ## LL
20884 # endif
20885
20886 /* Unsigned.  */
20887 # define UINT8_C(c)     c ## U
20888 # define UINT16_C(c)    c ## U
20889 # define UINT32_C(c)    c ## U
20890 # ifdef _HAVE_LONGLONG_UINT64_T
20891 #  define UINT64_C(c)   c ## UL
20892 # else
20893 #  define UINT64_C(c)   c ## ULL
20894 # endif
20895
20896 /* Maximal type.  */
20897 # ifdef _HAVE_LONGLONG_UINT64_T
20898 #  define INTMAX_C(c)   c ## L
20899 #  define UINTMAX_C(c)  c ## UL
20900 # else
20901 #  define INTMAX_C(c)   c ## LL
20902 #  define UINTMAX_C(c)  c ## ULL
20903 # endif
20904
20905   /* literalnumbers */
20906 #endif
20907 #endif
20908
20909 /* These limits are merily those of a two complement byte-oriented system */
20910
20911 /* Minimum of signed integral types.  */
20912 # define INT8_MIN               (-128)
20913 # define INT16_MIN              (-32767-1)
20914 # define INT32_MIN              (-2147483647-1)
20915 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
20916 /* Maximum of signed integral types.  */
20917 # define INT8_MAX               (127)
20918 # define INT16_MAX              (32767)
20919 # define INT32_MAX              (2147483647)
20920 # define INT64_MAX              (__INT64_C(9223372036854775807))
20921
20922 /* Maximum of unsigned integral types.  */
20923 # define UINT8_MAX              (255)
20924 # define UINT16_MAX             (65535)
20925 # define UINT32_MAX             (4294967295U)
20926 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
20927
20928 /* Minimum of signed integral types having a minimum size.  */
20929 # define INT_LEAST8_MIN         INT8_MIN
20930 # define INT_LEAST16_MIN        INT16_MIN
20931 # define INT_LEAST32_MIN        INT32_MIN
20932 # define INT_LEAST64_MIN        INT64_MIN
20933 /* Maximum of signed integral types having a minimum size.  */
20934 # define INT_LEAST8_MAX         INT8_MAX
20935 # define INT_LEAST16_MAX        INT16_MAX
20936 # define INT_LEAST32_MAX        INT32_MAX
20937 # define INT_LEAST64_MAX        INT64_MAX
20938
20939 /* Maximum of unsigned integral types having a minimum size.  */
20940 # define UINT_LEAST8_MAX        UINT8_MAX
20941 # define UINT_LEAST16_MAX       UINT16_MAX
20942 # define UINT_LEAST32_MAX       UINT32_MAX
20943 # define UINT_LEAST64_MAX       UINT64_MAX
20944
20945   /* shortcircuit*/
20946 #endif
20947   /* once */
20948 #endif
20949 #endif
20950 STDINT_EOF
20951 fi
20952     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20953       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
20954 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20955     else
20956       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
20957 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20958          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20959          X"$ac_stdint_h" : 'X\(//\)$' \| \
20960          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
20961 $as_echo X"$ac_stdint_h" |
20962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20963             s//\1/
20964             q
20965           }
20966           /^X\(\/\/\)[^/].*/{
20967             s//\1/
20968             q
20969           }
20970           /^X\(\/\/\)$/{
20971             s//\1/
20972             q
20973           }
20974           /^X\(\/\).*/{
20975             s//\1/
20976             q
20977           }
20978           s/.*/./; q'`
20979       as_dir="$ac_dir"; as_fn_mkdir_p
20980       rm -f $ac_stdint_h
20981       mv $ac_stdint $ac_stdint_h
20982     fi
20983  ;;
20984     "checkmk-x":C) chmod +x checkmk/checkmk ;;
20985
20986   esac
20987 done # for ac_tag
20988
20989
20990 as_fn_exit 0
20991 _ACEOF
20992 ac_clean_files=$ac_clean_files_save
20993
20994 test $ac_write_fail = 0 ||
20995   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20996
20997
20998 # configure is writing to config.log, and then calls config.status.
20999 # config.status does its own redirection, appending to config.log.
21000 # Unfortunately, on DOS this fails, as config.log is still kept open
21001 # by configure, so config.status won't be able to write to it; its
21002 # output is simply discarded.  So we exec the FD to /dev/null,
21003 # effectively closing config.log, so it can be properly (re)opened and
21004 # appended to by config.status.  When coming back to configure, we
21005 # need to make the FD available again.
21006 if test "$no_create" != yes; then
21007   ac_cs_success=:
21008   ac_config_status_args=
21009   test "$silent" = yes &&
21010     ac_config_status_args="$ac_config_status_args --quiet"
21011   exec 5>/dev/null
21012   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21013   exec 5>>config.log
21014   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21015   # would make configure fail if this is the last instruction.
21016   $ac_cs_success || as_fn_exit 1
21017 fi
21018 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21020 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21021 fi
21022
21023
21024 # Finally, print a summary of the Check's compile options
21025
21026 echo
21027 echo "=========================================="
21028 echo "Summary of Check $CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION options:"
21029 echo
21030
21031 if test "x0" = x"$HAVE_FORK"; then
21032     result="no"
21033 else
21034     result="yes"
21035 fi
21036 echo "fork mode ............................ $result"
21037
21038 case "$hw_cv_librt_timers_posix" in
21039     "yes")
21040         result="no"
21041         ;;
21042     "no")
21043         result="yes"
21044         ;;
21045     *)
21046         # The AC_REPLACE_FUNCS macro was invoked,
21047         # meaning we are cross compiling.
21048         if test "xno" = x"$ac_cv_func_timer_create"; then
21049             result="yes"
21050         else
21051             result="no"
21052         fi
21053         ;;
21054 esac
21055 echo "high resolution timer replacement .... $result"
21056
21057 if test "xno" = x"$hw_cv_func_snprintf_c99"; then
21058     result="yes"
21059 else
21060     result="no"
21061 fi
21062 echo "snprintf replacement ................. $result"
21063
21064 if test "xfalse" = x"$enable_subunit"; then
21065     result="no"
21066 else
21067     result="yes"
21068 fi
21069 echo "subunit support....................... $result"
21070
21071 if test "xtrue" = x"$enable_timeout_tests"; then
21072     result="yes"
21073 else
21074     result="no"
21075 fi
21076 echo "timeout unit tests ................... $result"
21077
21078 if test "x0" = x"$ENABLE_REGEX"; then
21079     result="no"
21080 else
21081     result="yes"
21082 fi
21083 echo "POSIX regular expressions ............ $result"
21084
21085 if test "xtrue" = x"$enable_build_docs"; then
21086     result="yes"
21087 else
21088     result="no"
21089 fi
21090 echo "build docs ........................... $result"
21091
21092 echo "=========================================="