Update spec file
[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.12.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.12.0'
594 PACKAGE_STRING='Check 0.12.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_FILTERDIFF_FALSE
662 USE_FILTERDIFF_TRUE
663 FILTERDIFF
664 TEX
665 GENHTML
666 LCOV
667 GCOV
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 DLLTOOL
677 OBJDUMP
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 ac_ct_AR
693 AR
694 LN_S
695 SED
696 NO_TIMEOUT_TESTS_FALSE
697 NO_TIMEOUT_TESTS_TRUE
698 ENABLE_GCOV_FALSE
699 ENABLE_GCOV_TRUE
700 GCOV_LIBS
701 GCOV_CFLAGS
702 CHECK_VERSION
703 CHECK_MICRO_VERSION
704 CHECK_MINOR_VERSION
705 CHECK_MAJOR_VERSION
706 EGREP
707 GREP
708 CPP
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
725 CC
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_dependency_tracking
797 enable_gcov
798 enable_timeout_tests
799 enable_subunit
800 enable_fork
801 enable_snprintf_replacement
802 enable_timer_replacement
803 enable_shared
804 enable_static
805 with_pic
806 enable_fast_install
807 with_aix_soname
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 '
812       ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 LT_SYS_LIBRARY_PATH
822 PKG_CONFIG
823 PKG_CONFIG_PATH
824 PKG_CONFIG_LIBDIR
825 LIBSUBUNIT_CFLAGS
826 LIBSUBUNIT_LIBS
827 AWK_PATH'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *=)   ac_optarg= ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949
950   -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954
955   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959
960   -enable-* | --enable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error $? "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975
976   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978   | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982   | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984
985   -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988
989   -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995
996   -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998   -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000
1001   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004   | --ht=*)
1005     htmldir=$ac_optarg ;;
1006
1007   -includedir | --includedir | --includedi | --included | --include \
1008   | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011   | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013
1014   -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018
1019   -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023
1024   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025   | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028   | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030
1031   -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035
1036   -localstatedir | --localstatedir | --localstatedi | --localstated \
1037   | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042
1043   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047
1048   -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051
1052   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053   | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055
1056   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059
1060   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062   | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068
1069   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073
1074   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075   | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080
1081   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082   | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087
1088   -program-transform-name | --program-transform-name \
1089   | --program-transform-nam | --program-transform-na \
1090   | --program-transform-n | --program-transform- \
1091   | --program-transform | --program-transfor \
1092   | --program-transfo | --program-transf \
1093   | --program-trans | --program-tran \
1094   | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096   -program-transform-name=* | --program-transform-name=* \
1097   | --program-transform-nam=* | --program-transform-na=* \
1098   | --program-transform-n=* | --program-transform-=* \
1099   | --program-transform=* | --program-transfor=* \
1100   | --program-transfo=* | --program-transf=* \
1101   | --program-trans=* | --program-tran=* \
1102   | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104
1105   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109
1110   -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114
1115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116   | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118
1119   -runstatedir | --runstatedir | --runstatedi | --runstated \
1120   | --runstate | --runstat | --runsta | --runst | --runs \
1121   | --run | --ru | --r)
1122     ac_prev=runstatedir ;;
1123   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125   | --run=* | --ru=* | --r=*)
1126     runstatedir=$ac_optarg ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir runstatedir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures Check 0.12.0 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking ...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/check]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of Check 0.12.0:";;
1450    esac
1451   cat <<\_ACEOF
1452
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --enable-silent-rules   less verbose build output (undo: "make V=1")
1458   --disable-silent-rules  verbose build output (undo: "make V=0")
1459   --enable-dependency-tracking
1460                           do not reject slow dependency extractors
1461   --disable-dependency-tracking
1462                           speeds up one-time build
1463   --enable-gcov           turn on test coverage [default=no]
1464   --enable-timeout-tests  turn on timeout tests [default=yes]
1465   --enable-subunit        enable support for the subunit test protocol
1466                           [default=autodetect]
1467   --enable-fork           enable support for fork [default=autodetect]
1468   --enable-snprintf-replacement
1469                           enable check snprintf replacement, (even if the
1470                           system provides a C99 compliant version)
1471                           [default=autodetect]
1472   --enable-timer-replacement
1473                           enable check timer replacement, (even if the system
1474                           provides timer_create, timer_settime, and
1475                           timer_delete) [default=autodetect]
1476   --enable-shared[=PKGS]  build shared libraries [default=yes]
1477   --enable-static[=PKGS]  build static libraries [default=yes]
1478   --enable-fast-install[=PKGS]
1479                           optimize for fast installation [default=yes]
1480   --disable-libtool-lock  avoid locking (might break parallel builds)
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1486                           both]
1487   --with-aix-soname=aix|svr4|both
1488                           shared library versioning (aka "SONAME") variant to
1489                           provide on AIX, [default=aix].
1490   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1492                           compiler's sysroot if not specified).
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CPP         C preprocessor
1503   LT_SYS_LIBRARY_PATH
1504               User-defined run-time library search path.
1505   PKG_CONFIG  path to pkg-config utility
1506   PKG_CONFIG_PATH
1507               directories to add to pkg-config's search path
1508   PKG_CONFIG_LIBDIR
1509               path overriding pkg-config's built-in search path
1510   LIBSUBUNIT_CFLAGS
1511               C compiler flags for LIBSUBUNIT, overriding pkg-config
1512   LIBSUBUNIT_LIBS
1513               linker flags for LIBSUBUNIT, overriding pkg-config
1514   AWK_PATH    Awk interpreter command
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <check-devel at lists dot sourceforge dot net>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" ||
1528       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529       continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 Check configure 0.12.0
1583 generated by GNU Autoconf 2.69
1584
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext
1603   if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_compile") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest.$ac_objext; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627         ac_retval=1
1628 fi
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_c_try_cpp LINENO
1635 # ----------------------
1636 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_cpp ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648   ac_status=$?
1649   if test -s conftest.err; then
1650     grep -v '^ *+' conftest.err >conftest.er1
1651     cat conftest.er1 >&5
1652     mv -f conftest.er1 conftest.err
1653   fi
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; } > conftest.i && {
1656          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657          test ! -s conftest.err
1658        }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664     ac_retval=1
1665 fi
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_cpp
1670
1671 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1674 # the include files in INCLUDES and setting the cache variable VAR
1675 # accordingly.
1676 ac_fn_c_check_header_mongrel ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   if eval \${$3+:} false; then :
1680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683   $as_echo_n "(cached) " >&6
1684 fi
1685 eval ac_res=\$$3
1686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 else
1689   # Is the header compilable?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1691 $as_echo_n "checking $2 usability... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698   ac_header_compiler=yes
1699 else
1700   ac_header_compiler=no
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1704 $as_echo "$ac_header_compiler" >&6; }
1705
1706 # Is the header present?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1708 $as_echo_n "checking $2 presence... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 #include <$2>
1712 _ACEOF
1713 if ac_fn_c_try_cpp "$LINENO"; then :
1714   ac_header_preproc=yes
1715 else
1716   ac_header_preproc=no
1717 fi
1718 rm -f conftest.err conftest.i conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1720 $as_echo "$ac_header_preproc" >&6; }
1721
1722 # So?  What about this header?
1723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1724   yes:no: )
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1726 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729     ;;
1730   no:yes:* )
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1732 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1734 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1736 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1738 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1740 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 ( $as_echo "## ----------------------------------------------------------- ##
1742 ## Report this to check-devel at lists dot sourceforge dot net ##
1743 ## ----------------------------------------------------------- ##"
1744      ) | sed "s/^/$as_me: WARNING:     /" >&2
1745     ;;
1746 esac
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750   $as_echo_n "(cached) " >&6
1751 else
1752   eval "$3=\$ac_header_compiler"
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_header_mongrel
1761
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1766 ac_fn_c_try_run ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_link") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780   { { case "(($ac_try" in
1781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782   *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786   (eval "$ac_try") 2>&5
1787   ac_status=$?
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; }; }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: program exited with status $ac_status" >&5
1793        $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796        ac_retval=$ac_status
1797 fi
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_run
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_header_compile
1834
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   rm -f conftest.$ac_objext conftest$ac_exeext
1842   if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845   *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849   (eval "$ac_link") 2>conftest.err
1850   ac_status=$?
1851   if test -s conftest.err; then
1852     grep -v '^ *+' conftest.err >conftest.er1
1853     cat conftest.er1 >&5
1854     mv -f conftest.er1 conftest.err
1855   fi
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } && {
1858          test -z "$ac_c_werror_flag" ||
1859          test ! -s conftest.err
1860        } && test -s conftest$ac_exeext && {
1861          test "$cross_compiling" = yes ||
1862          test -x conftest$ac_exeext
1863        }; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869         ac_retval=1
1870 fi
1871   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873   # interfere with the next link command; also delete a directory that is
1874   # left behind by Apple's compiler.  We do this before executing the actions.
1875   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_link
1880
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890   $as_echo_n "(cached) " >&6
1891 else
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1896 #define $2 innocuous_$2
1897
1898 /* System header to define __stub macros and hopefully few prototypes,
1899     which can conflict with char $2 (); below.
1900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901     <limits.h> exists even on freestanding compilers.  */
1902
1903 #ifdef __STDC__
1904 # include <limits.h>
1905 #else
1906 # include <assert.h>
1907 #endif
1908
1909 #undef $2
1910
1911 /* Override any GCC internal prototype to avoid an error.
1912    Use char because int might match the return type of a GCC
1913    builtin and then its argument prototype would still apply.  */
1914 #ifdef __cplusplus
1915 extern "C"
1916 #endif
1917 char $2 ();
1918 /* The GNU C library defines this for functions which it implements
1919     to always fail with ENOSYS.  Some functions are actually named
1920     something starting with __ and the normal name is an alias.  */
1921 #if defined __stub_$2 || defined __stub___$2
1922 choke me
1923 #endif
1924
1925 int
1926 main ()
1927 {
1928 return $2 ();
1929   ;
1930   return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_link "$LINENO"; then :
1934   eval "$3=yes"
1935 else
1936   eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext \
1939     conftest$ac_exeext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_func
1947
1948 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949 # ----------------------------------------------------
1950 # Tries to find if the field MEMBER exists in type AGGR, after including
1951 # INCLUDES, setting cache variable VAR accordingly.
1952 ac_fn_c_check_member ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956 $as_echo_n "checking for $2.$3... " >&6; }
1957 if eval \${$4+:} false; then :
1958   $as_echo_n "(cached) " >&6
1959 else
1960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h.  */
1962 $5
1963 int
1964 main ()
1965 {
1966 static $2 ac_aggr;
1967 if (ac_aggr.$3)
1968 return 0;
1969   ;
1970   return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974   eval "$4=yes"
1975 else
1976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 $5
1979 int
1980 main ()
1981 {
1982 static $2 ac_aggr;
1983 if (sizeof ac_aggr.$3)
1984 return 0;
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   eval "$4=yes"
1991 else
1992   eval "$4=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$4
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_member
2004
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   eval "$3=no"
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 int
2022 main ()
2023 {
2024 if (sizeof ($2))
2025          return 0;
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof (($2)))
2038             return 0;
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044
2045 else
2046   eval "$3=yes"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$3
2053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_type
2058
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2063 # computed
2064 ac_fn_c_compute_int ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   if test "$cross_compiling" = yes; then
2068     # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2076 test_array [0] = 0;
2077 return test_array [0];
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   ac_lo=0 ac_mid=0
2085   while :; do
2086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0;
2094 return test_array [0];
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_hi=$ac_mid; break
2102 else
2103   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104                         if test $ac_lo -le $ac_mid; then
2105                           ac_lo= ac_hi=
2106                           break
2107                         fi
2108                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111   done
2112 else
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 int
2117 main ()
2118 {
2119 static int test_array [1 - 2 * !(($2) < 0)];
2120 test_array [0] = 0;
2121 return test_array [0];
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128   ac_hi=-1 ac_mid=-1
2129   while :; do
2130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $4
2133 int
2134 main ()
2135 {
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 test_array [0] = 0;
2138 return test_array [0];
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145   ac_lo=$ac_mid; break
2146 else
2147   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148                         if test $ac_mid -le $ac_hi; then
2149                           ac_lo= ac_hi=
2150                           break
2151                         fi
2152                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155   done
2156 else
2157   ac_lo= ac_hi=
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0;
2173 return test_array [0];
2174
2175   ;
2176   return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180   ac_hi=$ac_mid
2181 else
2182   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186 case $ac_lo in #((
2187 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2188 '') ac_retval=1 ;;
2189 esac
2190   else
2191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 static long int longval () { return $2; }
2195 static unsigned long int ulongval () { return $2; }
2196 #include <stdio.h>
2197 #include <stdlib.h>
2198 int
2199 main ()
2200 {
2201
2202   FILE *f = fopen ("conftest.val", "w");
2203   if (! f)
2204     return 1;
2205   if (($2) < 0)
2206     {
2207       long int i = longval ();
2208       if (i != ($2))
2209         return 1;
2210       fprintf (f, "%ld", i);
2211     }
2212   else
2213     {
2214       unsigned long int i = ulongval ();
2215       if (i != ($2))
2216         return 1;
2217       fprintf (f, "%lu", i);
2218     }
2219   /* Do not output a trailing newline, as this causes \r\n confusion
2220      on some platforms.  */
2221   return ferror (f) || fclose (f) != 0;
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_c_try_run "$LINENO"; then :
2228   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2229 else
2230   ac_retval=1
2231 fi
2232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233   conftest.$ac_objext conftest.beam conftest.$ac_ext
2234 rm -f conftest.val
2235
2236   fi
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238   as_fn_set_status $ac_retval
2239
2240 } # ac_fn_c_compute_int
2241
2242 # ac_fn_c_find_uintX_t LINENO BITS VAR
2243 # ------------------------------------
2244 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2245 # accordingly.
2246 ac_fn_c_find_uintX_t ()
2247 {
2248   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2250 $as_echo_n "checking for uint$2_t... " >&6; }
2251 if eval \${$3+:} false; then :
2252   $as_echo_n "(cached) " >&6
2253 else
2254   eval "$3=no"
2255      # Order is important - never check a type that is potentially smaller
2256      # than half of the expected target width.
2257      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2258          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2259        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $ac_includes_default
2262 int
2263 main ()
2264 {
2265 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2266 test_array [0] = 0;
2267 return test_array [0];
2268
2269   ;
2270   return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274   case $ac_type in #(
2275   uint$2_t) :
2276     eval "$3=yes" ;; #(
2277   *) :
2278     eval "$3=\$ac_type" ;;
2279 esac
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282        if eval test \"x\$"$3"\" = x"no"; then :
2283
2284 else
2285   break
2286 fi
2287      done
2288 fi
2289 eval ac_res=\$$3
2290                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293
2294 } # ac_fn_c_find_uintX_t
2295
2296 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2297 # ---------------------------------------------
2298 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2299 # accordingly.
2300 ac_fn_c_check_decl ()
2301 {
2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303   as_decl_name=`echo $2|sed 's/ *(.*//'`
2304   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2306 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2307 if eval \${$3+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $4
2313 int
2314 main ()
2315 {
2316 #ifndef $as_decl_name
2317 #ifdef __cplusplus
2318   (void) $as_decl_use;
2319 #else
2320   (void) $as_decl_name;
2321 #endif
2322 #endif
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329   eval "$3=yes"
2330 else
2331   eval "$3=no"
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339
2340 } # ac_fn_c_check_decl
2341 cat >config.log <<_ACEOF
2342 This file contains any messages produced by compilers while
2343 running configure, to aid debugging if configure makes a mistake.
2344
2345 It was created by Check $as_me 0.12.0, which was
2346 generated by GNU Autoconf 2.69.  Invocation command line was
2347
2348   $ $0 $@
2349
2350 _ACEOF
2351 exec 5>>config.log
2352 {
2353 cat <<_ASUNAME
2354 ## --------- ##
2355 ## Platform. ##
2356 ## --------- ##
2357
2358 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2359 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2360 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2361 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2362 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363
2364 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2365 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2366
2367 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2368 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2369 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2370 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2371 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2372 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2373 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2374
2375 _ASUNAME
2376
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382     $as_echo "PATH: $as_dir"
2383   done
2384 IFS=$as_save_IFS
2385
2386 } >&5
2387
2388 cat >&5 <<_ACEOF
2389
2390
2391 ## ----------- ##
2392 ## Core tests. ##
2393 ## ----------- ##
2394
2395 _ACEOF
2396
2397
2398 # Keep a trace of the command line.
2399 # Strip out --no-create and --no-recursion so they do not pile up.
2400 # Strip out --silent because we don't want to record it for future runs.
2401 # Also quote any args containing shell meta-characters.
2402 # Make two passes to allow for proper duplicate-argument suppression.
2403 ac_configure_args=
2404 ac_configure_args0=
2405 ac_configure_args1=
2406 ac_must_keep_next=false
2407 for ac_pass in 1 2
2408 do
2409   for ac_arg
2410   do
2411     case $ac_arg in
2412     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2413     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2414     | -silent | --silent | --silen | --sile | --sil)
2415       continue ;;
2416     *\'*)
2417       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2418     esac
2419     case $ac_pass in
2420     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421     2)
2422       as_fn_append ac_configure_args1 " '$ac_arg'"
2423       if test $ac_must_keep_next = true; then
2424         ac_must_keep_next=false # Got value, back to normal.
2425       else
2426         case $ac_arg in
2427           *=* | --config-cache | -C | -disable-* | --disable-* \
2428           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2429           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2430           | -with-* | --with-* | -without-* | --without-* | --x)
2431             case "$ac_configure_args0 " in
2432               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2433             esac
2434             ;;
2435           -* ) ac_must_keep_next=true ;;
2436         esac
2437       fi
2438       as_fn_append ac_configure_args " '$ac_arg'"
2439       ;;
2440     esac
2441   done
2442 done
2443 { ac_configure_args0=; unset ac_configure_args0;}
2444 { ac_configure_args1=; unset ac_configure_args1;}
2445
2446 # When interrupted or exit'd, cleanup temporary files, and complete
2447 # config.log.  We remove comments because anyway the quotes in there
2448 # would cause problems or look ugly.
2449 # WARNING: Use '\'' to represent an apostrophe within the trap.
2450 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2451 trap 'exit_status=$?
2452   # Save into config.log some information that might help in debugging.
2453   {
2454     echo
2455
2456     $as_echo "## ---------------- ##
2457 ## Cache variables. ##
2458 ## ---------------- ##"
2459     echo
2460     # The following way of writing the cache mishandles newlines in values,
2461 (
2462   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2463     eval ac_val=\$$ac_var
2464     case $ac_val in #(
2465     *${as_nl}*)
2466       case $ac_var in #(
2467       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2469       esac
2470       case $ac_var in #(
2471       _ | IFS | as_nl) ;; #(
2472       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2473       *) { eval $ac_var=; unset $ac_var;} ;;
2474       esac ;;
2475     esac
2476   done
2477   (set) 2>&1 |
2478     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2479     *${as_nl}ac_space=\ *)
2480       sed -n \
2481         "s/'\''/'\''\\\\'\'''\''/g;
2482           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2483       ;; #(
2484     *)
2485       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486       ;;
2487     esac |
2488     sort
2489 )
2490     echo
2491
2492     $as_echo "## ----------------- ##
2493 ## Output variables. ##
2494 ## ----------------- ##"
2495     echo
2496     for ac_var in $ac_subst_vars
2497     do
2498       eval ac_val=\$$ac_var
2499       case $ac_val in
2500       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501       esac
2502       $as_echo "$ac_var='\''$ac_val'\''"
2503     done | sort
2504     echo
2505
2506     if test -n "$ac_subst_files"; then
2507       $as_echo "## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##"
2510       echo
2511       for ac_var in $ac_subst_files
2512       do
2513         eval ac_val=\$$ac_var
2514         case $ac_val in
2515         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516         esac
2517         $as_echo "$ac_var='\''$ac_val'\''"
2518       done | sort
2519       echo
2520     fi
2521
2522     if test -s confdefs.h; then
2523       $as_echo "## ----------- ##
2524 ## confdefs.h. ##
2525 ## ----------- ##"
2526       echo
2527       cat confdefs.h
2528       echo
2529     fi
2530     test "$ac_signal" != 0 &&
2531       $as_echo "$as_me: caught signal $ac_signal"
2532     $as_echo "$as_me: exit $exit_status"
2533   } >&5
2534   rm -f core *.core core.conftest.* &&
2535     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2536     exit $exit_status
2537 ' 0
2538 for ac_signal in 1 2 13 15; do
2539   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 done
2541 ac_signal=0
2542
2543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2544 rm -f -r conftest* confdefs.h
2545
2546 $as_echo "/* confdefs.h */" > confdefs.h
2547
2548 # Predefined preprocessor variables.
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_NAME "$PACKAGE_NAME"
2552 _ACEOF
2553
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2556 _ACEOF
2557
2558 cat >>confdefs.h <<_ACEOF
2559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2560 _ACEOF
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PACKAGE_STRING "$PACKAGE_STRING"
2564 _ACEOF
2565
2566 cat >>confdefs.h <<_ACEOF
2567 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2568 _ACEOF
2569
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_URL "$PACKAGE_URL"
2572 _ACEOF
2573
2574
2575 # Let the site file select an alternate cache file if it wants to.
2576 # Prefer an explicitly selected file to automatically selected ones.
2577 ac_site_file1=NONE
2578 ac_site_file2=NONE
2579 if test -n "$CONFIG_SITE"; then
2580   # We do not want a PATH search for config.site.
2581   case $CONFIG_SITE in #((
2582     -*)  ac_site_file1=./$CONFIG_SITE;;
2583     */*) ac_site_file1=$CONFIG_SITE;;
2584     *)   ac_site_file1=./$CONFIG_SITE;;
2585   esac
2586 elif test "x$prefix" != xNONE; then
2587   ac_site_file1=$prefix/share/config.site
2588   ac_site_file2=$prefix/etc/config.site
2589 else
2590   ac_site_file1=$ac_default_prefix/share/config.site
2591   ac_site_file2=$ac_default_prefix/etc/config.site
2592 fi
2593 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 do
2595   test "x$ac_site_file" = xNONE && continue
2596   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2597     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2598 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2599     sed 's/^/| /' "$ac_site_file" >&5
2600     . "$ac_site_file" \
2601       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error $? "failed to load site script $ac_site_file
2604 See \`config.log' for more details" "$LINENO" 5; }
2605   fi
2606 done
2607
2608 if test -r "$cache_file"; then
2609   # Some versions of bash will fail to source /dev/null (special files
2610   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2611   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2612     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2613 $as_echo "$as_me: loading cache $cache_file" >&6;}
2614     case $cache_file in
2615       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2616       *)                      . "./$cache_file";;
2617     esac
2618   fi
2619 else
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2621 $as_echo "$as_me: creating cache $cache_file" >&6;}
2622   >$cache_file
2623 fi
2624
2625 as_fn_append ac_header_list " time.h"
2626 as_fn_append ac_header_list " stdarg.h"
2627 # Check that the precious variables saved in the cache have kept the same
2628 # value.
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632   eval ac_new_set=\$ac_env_${ac_var}_set
2633   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634   eval ac_new_val=\$ac_env_${ac_var}_value
2635   case $ac_old_set,$ac_new_set in
2636     set,)
2637       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639       ac_cache_corrupted=: ;;
2640     ,set)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,);;
2645     *)
2646       if test "x$ac_old_val" != "x$ac_new_val"; then
2647         # differences in whitespace do not lead to failure.
2648         ac_old_val_w=`echo x $ac_old_val`
2649         ac_new_val_w=`echo x $ac_new_val`
2650         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653           ac_cache_corrupted=:
2654         else
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657           eval $ac_var=\$ac_old_val
2658         fi
2659         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2660 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2661         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2663       fi;;
2664   esac
2665   # Pass precious variables to config.status.
2666   if test "$ac_new_set" = set; then
2667     case $ac_new_val in
2668     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669     *) ac_arg=$ac_var=$ac_new_val ;;
2670     esac
2671     case " $ac_configure_args " in
2672       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2673       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674     esac
2675   fi
2676 done
2677 if $ac_cache_corrupted; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2683 fi
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2687
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694
2695 CHECK_MAJOR_VERSION=0
2696 CHECK_MINOR_VERSION=12
2697 CHECK_MICRO_VERSION=0
2698 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2699
2700 # unique source file --- primitive safety check
2701
2702
2703 # place where extra autoconf macros are kept
2704
2705
2706 # place where portability library functions are kept
2707
2708
2709 # really severe build strictness
2710 am__api_version='1.15'
2711
2712 ac_aux_dir=
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714   if test -f "$ac_dir/install-sh"; then
2715     ac_aux_dir=$ac_dir
2716     ac_install_sh="$ac_aux_dir/install-sh -c"
2717     break
2718   elif test -f "$ac_dir/install.sh"; then
2719     ac_aux_dir=$ac_dir
2720     ac_install_sh="$ac_aux_dir/install.sh -c"
2721     break
2722   elif test -f "$ac_dir/shtool"; then
2723     ac_aux_dir=$ac_dir
2724     ac_install_sh="$ac_aux_dir/shtool install -c"
2725     break
2726   fi
2727 done
2728 if test -z "$ac_aux_dir"; then
2729   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 fi
2731
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2739
2740
2741 # Find a good install program.  We prefer a C program (faster),
2742 # so one script is as good as another.  But avoid the broken or
2743 # incompatible versions:
2744 # SysV /etc/install, /usr/sbin/install
2745 # SunOS /usr/etc/install
2746 # IRIX /sbin/install
2747 # AIX /bin/install
2748 # AmigaOS /C/install, which installs bootblocks on floppy discs
2749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752 # OS/2's system install, which has a completely different semantic
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 # Reject install programs that cannot install multiple files.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2757 if test -z "$INSTALL"; then
2758 if ${ac_cv_path_install+:} false; then :
2759   $as_echo_n "(cached) " >&6
2760 else
2761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764   IFS=$as_save_IFS
2765   test -z "$as_dir" && as_dir=.
2766     # Account for people who put trailing slashes in PATH elements.
2767 case $as_dir/ in #((
2768   ./ | .// | /[cC]/* | \
2769   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2771   /usr/ucb/* ) ;;
2772   *)
2773     # OSF1 and SCO ODT 3.0 have their own names for install.
2774     # Don't use installbsd from OSF since it installs stuff as root
2775     # by default.
2776     for ac_prog in ginstall scoinst install; do
2777       for ac_exec_ext in '' $ac_executable_extensions; do
2778         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2779           if test $ac_prog = install &&
2780             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781             # AIX install.  It has an incompatible calling convention.
2782             :
2783           elif test $ac_prog = install &&
2784             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785             # program-specific install script used by HP pwplus--don't use.
2786             :
2787           else
2788             rm -rf conftest.one conftest.two conftest.dir
2789             echo one > conftest.one
2790             echo two > conftest.two
2791             mkdir conftest.dir
2792             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793               test -s conftest.one && test -s conftest.two &&
2794               test -s conftest.dir/conftest.one &&
2795               test -s conftest.dir/conftest.two
2796             then
2797               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2798               break 3
2799             fi
2800           fi
2801         fi
2802       done
2803     done
2804     ;;
2805 esac
2806
2807   done
2808 IFS=$as_save_IFS
2809
2810 rm -rf conftest.one conftest.two conftest.dir
2811
2812 fi
2813   if test "${ac_cv_path_install+set}" = set; then
2814     INSTALL=$ac_cv_path_install
2815   else
2816     # As a last resort, use the slow shell script.  Don't cache a
2817     # value for INSTALL within a source directory, because that will
2818     # break other packages using the cache if that directory is
2819     # removed, or if the value is a relative name.
2820     INSTALL=$ac_install_sh
2821   fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824 $as_echo "$INSTALL" >&6; }
2825
2826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827 # It thinks the first close brace ends the variable substitution.
2828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2829
2830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2831
2832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835 $as_echo_n "checking whether build environment is sane... " >&6; }
2836 # Reject unsafe characters in $srcdir or the absolute working directory
2837 # name.  Accept space and tab only in the latter.
2838 am_lf='
2839 '
2840 case `pwd` in
2841   *[\\\"\#\$\&\'\`$am_lf]*)
2842     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2843 esac
2844 case $srcdir in
2845   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2846     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2847 esac
2848
2849 # Do 'set' in a subshell so we don't clobber the current shell's
2850 # arguments.  Must try -L first in case configure is actually a
2851 # symlink; some systems play weird games with the mod time of symlinks
2852 # (eg FreeBSD returns the mod time of the symlink's containing
2853 # directory).
2854 if (
2855    am_has_slept=no
2856    for am_try in 1 2; do
2857      echo "timestamp, slept: $am_has_slept" > conftest.file
2858      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859      if test "$*" = "X"; then
2860         # -L didn't work.
2861         set X `ls -t "$srcdir/configure" conftest.file`
2862      fi
2863      if test "$*" != "X $srcdir/configure conftest.file" \
2864         && test "$*" != "X conftest.file $srcdir/configure"; then
2865
2866         # If neither matched, then we have a broken ls.  This can happen
2867         # if, for instance, CONFIG_SHELL is bash and it inherits a
2868         # broken ls alias from the environment.  This has actually
2869         # happened.  Such a system could not be considered "sane".
2870         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2871   alias in your environment" "$LINENO" 5
2872      fi
2873      if test "$2" = conftest.file || test $am_try -eq 2; then
2874        break
2875      fi
2876      # Just in case.
2877      sleep 1
2878      am_has_slept=yes
2879    done
2880    test "$2" = conftest.file
2881    )
2882 then
2883    # Ok.
2884    :
2885 else
2886    as_fn_error $? "newly created file is older than distributed files!
2887 Check your system clock" "$LINENO" 5
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 # If we didn't sleep, we still need to ensure time stamps of config.status and
2892 # generated files are strictly newer.
2893 am_sleep_pid=
2894 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2895   ( sleep 1 ) &
2896   am_sleep_pid=$!
2897 fi
2898
2899 rm -f conftest.file
2900
2901 test "$program_prefix" != NONE &&
2902   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2903 # Use a double $ so make ignores it.
2904 test "$program_suffix" != NONE &&
2905   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2906 # Double any \ or $.
2907 # By default was `s,x,x', remove it if useless.
2908 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2909 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2910
2911 # Expand $ac_aux_dir to an absolute path.
2912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2913
2914 if test x"${MISSING+set}" != xset; then
2915   case $am_aux_dir in
2916   *\ * | *\     *)
2917     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2918   *)
2919     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2920   esac
2921 fi
2922 # Use eval to expand $SHELL
2923 if eval "$MISSING --is-lightweight"; then
2924   am_missing_run="$MISSING "
2925 else
2926   am_missing_run=
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2928 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2929 fi
2930
2931 if test x"${install_sh+set}" != xset; then
2932   case $am_aux_dir in
2933   *\ * | *\     *)
2934     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2935   *)
2936     install_sh="\${SHELL} $am_aux_dir/install-sh"
2937   esac
2938 fi
2939
2940 # Installed binaries are usually stripped using 'strip' when the user
2941 # run "make install-strip".  However 'strip' might not be the right
2942 # tool to use in cross-compilation environments, therefore Automake
2943 # will honor the 'STRIP' environment variable to overrule this program.
2944 if test "$cross_compiling" != no; then
2945   if test -n "$ac_tool_prefix"; then
2946   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}strip; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_STRIP+:} false; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   if test -n "$STRIP"; then
2954   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961     for ac_exec_ext in '' $ac_executable_extensions; do
2962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968   done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 STRIP=$ac_cv_prog_STRIP
2974 if test -n "$STRIP"; then
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2976 $as_echo "$STRIP" >&6; }
2977 else
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$ac_cv_prog_STRIP"; then
2985   ac_ct_STRIP=$STRIP
2986   # Extract the first word of "strip", so it can be a program name with args.
2987 set dummy strip; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$ac_ct_STRIP"; then
2994   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003     ac_cv_prog_ac_ct_STRIP="strip"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3014 if test -n "$ac_ct_STRIP"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3016 $as_echo "$ac_ct_STRIP" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022   if test "x$ac_ct_STRIP" = x; then
3023     STRIP=":"
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031     STRIP=$ac_ct_STRIP
3032   fi
3033 else
3034   STRIP="$ac_cv_prog_STRIP"
3035 fi
3036
3037 fi
3038 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3041 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3042 if test -z "$MKDIR_P"; then
3043   if ${ac_cv_path_mkdir+:} false; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_prog in mkdir gmkdir; do
3052          for ac_exec_ext in '' $ac_executable_extensions; do
3053            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3054            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3055              'mkdir (GNU coreutils) '* | \
3056              'mkdir (coreutils) '* | \
3057              'mkdir (fileutils) '4.1*)
3058                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3059                break 3;;
3060            esac
3061          done
3062        done
3063   done
3064 IFS=$as_save_IFS
3065
3066 fi
3067
3068   test -d ./--version && rmdir ./--version
3069   if test "${ac_cv_path_mkdir+set}" = set; then
3070     MKDIR_P="$ac_cv_path_mkdir -p"
3071   else
3072     # As a last resort, use the slow shell script.  Don't cache a
3073     # value for MKDIR_P within a source directory, because that will
3074     # break other packages using the cache if that directory is
3075     # removed, or if the value is a relative name.
3076     MKDIR_P="$ac_install_sh -d"
3077   fi
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3080 $as_echo "$MKDIR_P" >&6; }
3081
3082 for ac_prog in gawk mawk nawk awk
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_AWK+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$AWK"; then
3092   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101     ac_cv_prog_AWK="$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 AWK=$ac_cv_prog_AWK
3112 if test -n "$AWK"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3114 $as_echo "$AWK" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   test -n "$AWK" && break
3122 done
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3125 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3126 set x ${MAKE-make}
3127 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3128 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   cat >conftest.make <<\_ACEOF
3132 SHELL = /bin/sh
3133 all:
3134         @echo '@@@%%%=$(MAKE)=@@@%%%'
3135 _ACEOF
3136 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3137 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3138   *@@@%%%=?*=@@@%%%*)
3139     eval ac_cv_prog_make_${ac_make}_set=yes;;
3140   *)
3141     eval ac_cv_prog_make_${ac_make}_set=no;;
3142 esac
3143 rm -f conftest.make
3144 fi
3145 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3148   SET_MAKE=
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152   SET_MAKE="MAKE=${MAKE-make}"
3153 fi
3154
3155 rm -rf .tst 2>/dev/null
3156 mkdir .tst 2>/dev/null
3157 if test -d .tst; then
3158   am__leading_dot=.
3159 else
3160   am__leading_dot=_
3161 fi
3162 rmdir .tst 2>/dev/null
3163
3164 # Check whether --enable-silent-rules was given.
3165 if test "${enable_silent_rules+set}" = set; then :
3166   enableval=$enable_silent_rules;
3167 fi
3168
3169 case $enable_silent_rules in # (((
3170   yes) AM_DEFAULT_VERBOSITY=0;;
3171    no) AM_DEFAULT_VERBOSITY=1;;
3172     *) AM_DEFAULT_VERBOSITY=1;;
3173 esac
3174 am_make=${MAKE-make}
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3176 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3177 if ${am_cv_make_support_nested_variables+:} false; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if $as_echo 'TRUE=$(BAR$(V))
3181 BAR0=false
3182 BAR1=true
3183 V=1
3184 am__doit:
3185         @$(TRUE)
3186 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3187   am_cv_make_support_nested_variables=yes
3188 else
3189   am_cv_make_support_nested_variables=no
3190 fi
3191 fi
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3193 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3194 if test $am_cv_make_support_nested_variables = yes; then
3195     AM_V='$(V)'
3196   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3197 else
3198   AM_V=$AM_DEFAULT_VERBOSITY
3199   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3200 fi
3201 AM_BACKSLASH='\'
3202
3203 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3204   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3205   # is not polluted with repeated "-I."
3206   am__isrc=' -I$(srcdir)'
3207   # test to see if srcdir already configured
3208   if test -f $srcdir/config.status; then
3209     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3210   fi
3211 fi
3212
3213 # test whether we have cygpath
3214 if test -z "$CYGPATH_W"; then
3215   if (cygpath --version) >/dev/null 2>/dev/null; then
3216     CYGPATH_W='cygpath -w'
3217   else
3218     CYGPATH_W=echo
3219   fi
3220 fi
3221
3222
3223 # Define the identity of the package.
3224  PACKAGE='check'
3225  VERSION='0.12.0'
3226
3227
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE "$PACKAGE"
3230 _ACEOF
3231
3232
3233 cat >>confdefs.h <<_ACEOF
3234 #define VERSION "$VERSION"
3235 _ACEOF
3236
3237 # Some tools Automake needs.
3238
3239 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3240
3241
3242 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3243
3244
3245 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3246
3247
3248 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3249
3250
3251 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3252
3253 # For better backward compatibility.  To be removed once Automake 1.9.x
3254 # dies out for good.  For more background, see:
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3256 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3257 mkdir_p='$(MKDIR_P)'
3258
3259 # We need awk for the "check" target (and possibly the TAP driver).  The
3260 # system "awk" is bad on some platforms.
3261 # Always define AMTAR for backward compatibility.  Yes, it's still used
3262 # in the wild :-(  We should find a proper way to deprecate it ...
3263 AMTAR='$${TAR-tar}'
3264
3265
3266 # We'll loop over all known methods to create a tar archive until one works.
3267 _am_tools='gnutar  pax cpio none'
3268
3269 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3270
3271
3272
3273
3274
3275
3276 # POSIX will say in a future version that running "rm -f" with no argument
3277 # is OK; and we want to be able to make that assumption in our Makefile
3278 # recipes.  So use an aggressive probe to check that the usage we want is
3279 # actually supported "in the wild" to an acceptable degree.
3280 # See automake bug#10828.
3281 # To make any issue more visible, cause the running configure to be aborted
3282 # by default if the 'rm' program in use doesn't match our expectations; the
3283 # user can still override this though.
3284 if rm -f && rm -fr && rm -rf; then : OK; else
3285   cat >&2 <<'END'
3286 Oops!
3287
3288 Your 'rm' program seems unable to run without file operands specified
3289 on the command line, even when the '-f' option is present.  This is contrary
3290 to the behaviour of most rm programs out there, and not conforming with
3291 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3292
3293 Please tell bug-automake@gnu.org about your system, including the value
3294 of your $PATH and any error possibly output before this message.  This
3295 can help us improve future automake versions.
3296
3297 END
3298   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3299     echo 'Configuration will proceed anyway, since you have set the' >&2
3300     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3301     echo >&2
3302   else
3303     cat >&2 <<'END'
3304 Aborting the configuration process, to ensure you take notice of the issue.
3305
3306 You can download and install GNU coreutils to get an 'rm' implementation
3307 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3308
3309 If you want to complete the configuration process using your problematic
3310 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3311 to "yes", and re-run configure.
3312
3313 END
3314     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3315   fi
3316 fi
3317
3318 # Change to using into-in-builddir in the future:
3319 #AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14])
3320
3321 # define things like _GNU_SOURCE appropriately
3322 # From patch 2803433, request system extensions to generate 64-bit safe code
3323 DEPDIR="${am__leading_dot}deps"
3324
3325 ac_config_commands="$ac_config_commands depfiles"
3326
3327
3328 am_make=${MAKE-make}
3329 cat > confinc << 'END'
3330 am__doit:
3331         @echo this is the am__doit target
3332 .PHONY: am__doit
3333 END
3334 # If we don't find an include directive, just comment out the code.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3336 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3337 am__include="#"
3338 am__quote=
3339 _am_result=none
3340 # First try GNU make style include.
3341 echo "include confinc" > confmf
3342 # Ignore all kinds of additional output from 'make'.
3343 case `$am_make -s -f confmf 2> /dev/null` in #(
3344 *the\ am__doit\ target*)
3345   am__include=include
3346   am__quote=
3347   _am_result=GNU
3348   ;;
3349 esac
3350 # Now try BSD make style include.
3351 if test "$am__include" = "#"; then
3352    echo '.include "confinc"' > confmf
3353    case `$am_make -s -f confmf 2> /dev/null` in #(
3354    *the\ am__doit\ target*)
3355      am__include=.include
3356      am__quote="\""
3357      _am_result=BSD
3358      ;;
3359    esac
3360 fi
3361
3362
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3364 $as_echo "$_am_result" >&6; }
3365 rm -f confinc confmf
3366
3367 # Check whether --enable-dependency-tracking was given.
3368 if test "${enable_dependency_tracking+set}" = set; then :
3369   enableval=$enable_dependency_tracking;
3370 fi
3371
3372 if test "x$enable_dependency_tracking" != xno; then
3373   am_depcomp="$ac_aux_dir/depcomp"
3374   AMDEPBACKSLASH='\'
3375   am__nodep='_no'
3376 fi
3377  if test "x$enable_dependency_tracking" != xno; then
3378   AMDEP_TRUE=
3379   AMDEP_FALSE='#'
3380 else
3381   AMDEP_TRUE='#'
3382   AMDEP_FALSE=
3383 fi
3384
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 if test -n "$ac_tool_prefix"; then
3392   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429 fi
3430 if test -z "$ac_cv_prog_CC"; then
3431   ac_ct_CC=$CC
3432   # Extract the first word of "gcc", so it can be a program name with args.
3433 set dummy gcc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -n "$ac_ct_CC"; then
3440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447     for ac_exec_ext in '' $ac_executable_extensions; do
3448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_prog_ac_ct_CC="gcc"
3450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454   done
3455 IFS=$as_save_IFS
3456
3457 fi
3458 fi
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3463 else
3464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468   if test "x$ac_ct_CC" = x; then
3469     CC=""
3470   else
3471     case $cross_compiling:$ac_tool_warned in
3472 yes:)
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3475 ac_tool_warned=yes ;;
3476 esac
3477     CC=$ac_ct_CC
3478   fi
3479 else
3480   CC="$ac_cv_prog_CC"
3481 fi
3482
3483 if test -z "$CC"; then
3484           if test -n "$ac_tool_prefix"; then
3485     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3486 set dummy ${ac_tool_prefix}cc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if ${ac_cv_prog_CC+:} false; then :
3490   $as_echo_n "(cached) " >&6
3491 else
3492   if test -n "$CC"; then
3493   ac_cv_prog_CC="$CC" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498   IFS=$as_save_IFS
3499   test -z "$as_dir" && as_dir=.
3500     for ac_exec_ext in '' $ac_executable_extensions; do
3501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502     ac_cv_prog_CC="${ac_tool_prefix}cc"
3503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504     break 2
3505   fi
3506 done
3507   done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3516 else
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 fi
3520
3521
3522   fi
3523 fi
3524 if test -z "$CC"; then
3525   # Extract the first word of "cc", so it can be a program name with args.
3526 set dummy cc; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   if test -n "$CC"; then
3533   ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535   ac_prog_rejected=no
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3544        ac_prog_rejected=yes
3545        continue
3546      fi
3547     ac_cv_prog_CC="cc"
3548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552   done
3553 IFS=$as_save_IFS
3554
3555 if test $ac_prog_rejected = yes; then
3556   # We found a bogon in the path, so make sure we never use it.
3557   set dummy $ac_cv_prog_CC
3558   shift
3559   if test $# != 0; then
3560     # We chose a different compiler from the bogus one.
3561     # However, it has the same basename, so the bogon will be chosen
3562     # first if we set CC to just the basename; use the full file name.
3563     shift
3564     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3565   fi
3566 fi
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578
3579 fi
3580 if test -z "$CC"; then
3581   if test -n "$ac_tool_prefix"; then
3582   for ac_prog in cl.exe
3583   do
3584     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_CC+:} false; then :
3589   $as_echo_n "(cached) " >&6
3590 else
3591   if test -n "$CC"; then
3592   ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599     for ac_exec_ext in '' $ac_executable_extensions; do
3600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606   done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621     test -n "$CC" && break
3622   done
3623 fi
3624 if test -z "$CC"; then
3625   ac_ct_CC=$CC
3626   for ac_prog in cl.exe
3627 do
3628   # Extract the first word of "$ac_prog", so it can be a program name with args.
3629 set dummy $ac_prog; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if test -n "$ac_ct_CC"; then
3636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     for ac_exec_ext in '' $ac_executable_extensions; do
3644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645     ac_cv_prog_ac_ct_CC="$ac_prog"
3646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647     break 2
3648   fi
3649 done
3650   done
3651 IFS=$as_save_IFS
3652
3653 fi
3654 fi
3655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3656 if test -n "$ac_ct_CC"; then
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658 $as_echo "$ac_ct_CC" >&6; }
3659 else
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 fi
3663
3664
3665   test -n "$ac_ct_CC" && break
3666 done
3667
3668   if test "x$ac_ct_CC" = x; then
3669     CC=""
3670   else
3671     case $cross_compiling:$ac_tool_warned in
3672 yes:)
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3675 ac_tool_warned=yes ;;
3676 esac
3677     CC=$ac_ct_CC
3678   fi
3679 fi
3680
3681 fi
3682
3683
3684 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details" "$LINENO" 5; }
3688
3689 # Provide some information about the compiler.
3690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3691 set X $ac_compile
3692 ac_compiler=$2
3693 for ac_option in --version -v -V -qversion; do
3694   { { ac_try="$ac_compiler $ac_option >&5"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3702   ac_status=$?
3703   if test -s conftest.err; then
3704     sed '10a\
3705 ... rest of stderr output deleted ...
3706          10q' conftest.err >conftest.er1
3707     cat conftest.er1 >&5
3708   fi
3709   rm -f conftest.er1 conftest.err
3710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711   test $ac_status = 0; }
3712 done
3713
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716
3717 int
3718 main ()
3719 {
3720
3721   ;
3722   return 0;
3723 }
3724 _ACEOF
3725 ac_clean_files_save=$ac_clean_files
3726 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3727 # Try to create an executable without -o first, disregard a.out.
3728 # It will help us diagnose broken compilers, and finding out an intuition
3729 # of exeext.
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3731 $as_echo_n "checking whether the C compiler works... " >&6; }
3732 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3733
3734 # The possible output files:
3735 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3736
3737 ac_rmfiles=
3738 for ac_file in $ac_files
3739 do
3740   case $ac_file in
3741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3743   esac
3744 done
3745 rm -f $ac_rmfiles
3746
3747 if { { ac_try="$ac_link_default"
3748 case "(($ac_try" in
3749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750   *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754   (eval "$ac_link_default") 2>&5
3755   ac_status=$?
3756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757   test $ac_status = 0; }; then :
3758   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3760 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3761 # so that the user can short-circuit this test for compilers unknown to
3762 # Autoconf.
3763 for ac_file in $ac_files ''
3764 do
3765   test -f "$ac_file" || continue
3766   case $ac_file in
3767     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3768         ;;
3769     [ab].out )
3770         # We found the default executable, but exeext='' is most
3771         # certainly right.
3772         break;;
3773     *.* )
3774         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3775         then :; else
3776            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777         fi
3778         # We set ac_cv_exeext here because the later test for it is not
3779         # safe: cross compilers may not add the suffix if given an `-o'
3780         # argument, so we may need to know it at that point already.
3781         # Even if this section looks crufty: it has the advantage of
3782         # actually working.
3783         break;;
3784     * )
3785         break;;
3786   esac
3787 done
3788 test "$ac_cv_exeext" = no && ac_cv_exeext=
3789
3790 else
3791   ac_file=''
3792 fi
3793 if test -z "$ac_file"; then :
3794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error 77 "C compiler cannot create executables
3802 See \`config.log' for more details" "$LINENO" 5; }
3803 else
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3805 $as_echo "yes" >&6; }
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3808 $as_echo_n "checking for C compiler default output file name... " >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 $as_echo "$ac_file" >&6; }
3811 ac_exeext=$ac_cv_exeext
3812
3813 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3814 ac_clean_files=$ac_clean_files_save
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816 $as_echo_n "checking for suffix of executables... " >&6; }
3817 if { { ac_try="$ac_link"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824   (eval "$ac_link") 2>&5
3825   ac_status=$?
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }; then :
3828   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3829 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3830 # work properly (i.e., refer to `conftest.exe'), while it won't with
3831 # `rm'.
3832 for ac_file in conftest.exe conftest conftest.*; do
3833   test -f "$ac_file" || continue
3834   case $ac_file in
3835     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3837           break;;
3838     * ) break;;
3839   esac
3840 done
3841 else
3842   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3845 See \`config.log' for more details" "$LINENO" 5; }
3846 fi
3847 rm -f conftest conftest$ac_cv_exeext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849 $as_echo "$ac_cv_exeext" >&6; }
3850
3851 rm -f conftest.$ac_ext
3852 EXEEXT=$ac_cv_exeext
3853 ac_exeext=$EXEEXT
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h.  */
3856 #include <stdio.h>
3857 int
3858 main ()
3859 {
3860 FILE *f = fopen ("conftest.out", "w");
3861  return ferror (f) || fclose (f) != 0;
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 ac_clean_files="$ac_clean_files conftest.out"
3868 # Check that the compiler produces executables we can run.  If not, either
3869 # the compiler is broken, or we cross compile.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3871 $as_echo_n "checking whether we are cross compiling... " >&6; }
3872 if test "$cross_compiling" != yes; then
3873   { { ac_try="$ac_link"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880   (eval "$ac_link") 2>&5
3881   ac_status=$?
3882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883   test $ac_status = 0; }
3884   if { ac_try='./conftest$ac_cv_exeext'
3885   { { case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891   (eval "$ac_try") 2>&5
3892   ac_status=$?
3893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894   test $ac_status = 0; }; }; then
3895     cross_compiling=no
3896   else
3897     if test "$cross_compiling" = maybe; then
3898         cross_compiling=yes
3899     else
3900         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error $? "cannot run C compiled programs.
3903 If you meant to cross compile, use \`--host'.
3904 See \`config.log' for more details" "$LINENO" 5; }
3905     fi
3906   fi
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3910
3911 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3912 ac_clean_files=$ac_clean_files_save
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914 $as_echo_n "checking for suffix of object files... " >&6; }
3915 if ${ac_cv_objext+:} false; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.o conftest.obj
3930 if { { ac_try="$ac_compile"
3931 case "(($ac_try" in
3932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933   *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937   (eval "$ac_compile") 2>&5
3938   ac_status=$?
3939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940   test $ac_status = 0; }; then :
3941   for ac_file in conftest.o conftest.obj conftest.*; do
3942   test -f "$ac_file" || continue;
3943   case $ac_file in
3944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3945     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3946        break;;
3947   esac
3948 done
3949 else
3950   $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3955 as_fn_error $? "cannot compute suffix of object files: cannot compile
3956 See \`config.log' for more details" "$LINENO" 5; }
3957 fi
3958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3961 $as_echo "$ac_cv_objext" >&6; }
3962 OBJEXT=$ac_cv_objext
3963 ac_objext=$OBJEXT
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3965 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3966 if ${ac_cv_c_compiler_gnu+:} false; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975 #ifndef __GNUC__
3976        choke me
3977 #endif
3978
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984   ac_compiler_gnu=yes
3985 else
3986   ac_compiler_gnu=no
3987 fi
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3990
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3993 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3994 if test $ac_compiler_gnu = yes; then
3995   GCC=yes
3996 else
3997   GCC=
3998 fi
3999 ac_test_CFLAGS=${CFLAGS+set}
4000 ac_save_CFLAGS=$CFLAGS
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4002 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4003 if ${ac_cv_prog_cc_g+:} false; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   ac_save_c_werror_flag=$ac_c_werror_flag
4007    ac_c_werror_flag=yes
4008    ac_cv_prog_cc_g=no
4009    CFLAGS="-g"
4010    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022   ac_cv_prog_cc_g=yes
4023 else
4024   CFLAGS=""
4025       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037
4038 else
4039   ac_c_werror_flag=$ac_save_c_werror_flag
4040          CFLAGS="-g"
4041          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053   ac_cv_prog_cc_g=yes
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060    ac_c_werror_flag=$ac_save_c_werror_flag
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4063 $as_echo "$ac_cv_prog_cc_g" >&6; }
4064 if test "$ac_test_CFLAGS" = set; then
4065   CFLAGS=$ac_save_CFLAGS
4066 elif test $ac_cv_prog_cc_g = yes; then
4067   if test "$GCC" = yes; then
4068     CFLAGS="-g -O2"
4069   else
4070     CFLAGS="-g"
4071   fi
4072 else
4073   if test "$GCC" = yes; then
4074     CFLAGS="-O2"
4075   else
4076     CFLAGS=
4077   fi
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4080 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4081 if ${ac_cv_prog_cc_c89+:} false; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_cv_prog_cc_c89=no
4085 ac_save_CC=$CC
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088 #include <stdarg.h>
4089 #include <stdio.h>
4090 struct stat;
4091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4092 struct buf { int x; };
4093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4094 static char *e (p, i)
4095      char **p;
4096      int i;
4097 {
4098   return p[i];
4099 }
4100 static char *f (char * (*g) (char **, int), char **p, ...)
4101 {
4102   char *s;
4103   va_list v;
4104   va_start (v,p);
4105   s = g (p, va_arg (v,int));
4106   va_end (v);
4107   return s;
4108 }
4109
4110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4111    function prototypes and stuff, but not '\xHH' hex character constants.
4112    These don't provoke an error unfortunately, instead are silently treated
4113    as 'x'.  The following induces an error, until -std is added to get
4114    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4115    array size at least.  It's necessary to write '\x00'==0 to get something
4116    that's true only with -std.  */
4117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118
4119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4120    inside strings and character constants.  */
4121 #define FOO(x) 'x'
4122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123
4124 int test (int i, double x);
4125 struct s1 {int (*f) (int a);};
4126 struct s2 {int (*f) (double a);};
4127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4128 int argc;
4129 char **argv;
4130 int
4131 main ()
4132 {
4133 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4139         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 do
4141   CC="$ac_save_CC $ac_arg"
4142   if ac_fn_c_try_compile "$LINENO"; then :
4143   ac_cv_prog_cc_c89=$ac_arg
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext
4146   test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 done
4148 rm -f conftest.$ac_ext
4149 CC=$ac_save_CC
4150
4151 fi
4152 # AC_CACHE_VAL
4153 case "x$ac_cv_prog_cc_c89" in
4154   x)
4155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 $as_echo "none needed" >&6; } ;;
4157   xno)
4158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159 $as_echo "unsupported" >&6; } ;;
4160   *)
4161     CC="$CC $ac_cv_prog_cc_c89"
4162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 esac
4165 if test "x$ac_cv_prog_cc_c89" != xno; then :
4166
4167 fi
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
4175 ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4181 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4182 if ${am_cv_prog_cc_c_o+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187
4188 int
4189 main ()
4190 {
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196   # Make sure it works both with $CC and with simple cc.
4197   # Following AC_PROG_CC_C_O, we do the test twice because some
4198   # compilers refuse to overwrite an existing .o file with -o,
4199   # though they will create one.
4200   am_cv_prog_cc_c_o=yes
4201   for am_i in 1 2; do
4202     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4203    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4204    ac_status=$?
4205    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206    (exit $ac_status); } \
4207          && test -f conftest2.$ac_objext; then
4208       : OK
4209     else
4210       am_cv_prog_cc_c_o=no
4211       break
4212     fi
4213   done
4214   rm -f core conftest*
4215   unset am_i
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4218 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4219 if test "$am_cv_prog_cc_c_o" != yes; then
4220    # Losing compiler, so override with the script.
4221    # FIXME: It is wrong to rewrite CC.
4222    # But if we don't then we get into trouble of one sort or another.
4223    # A longer-term fix would be to have automake use am__CC in this case,
4224    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4225    CC="$am_aux_dir/compile $CC"
4226 fi
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233
4234 depcc="$CC"   am_compiler_list=
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4237 $as_echo_n "checking dependency style of $depcc... " >&6; }
4238 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4242   # We make a subdir and do the tests there.  Otherwise we can end up
4243   # making bogus files that we don't know about and never remove.  For
4244   # instance it was reported that on HP-UX the gcc test will end up
4245   # making a dummy file named 'D' -- because '-MD' means "put the output
4246   # in D".
4247   rm -rf conftest.dir
4248   mkdir conftest.dir
4249   # Copy depcomp to subdir because otherwise we won't find it if we're
4250   # using a relative directory.
4251   cp "$am_depcomp" conftest.dir
4252   cd conftest.dir
4253   # We will build objects and dependencies in a subdirectory because
4254   # it helps to detect inapplicable dependency modes.  For instance
4255   # both Tru64's cc and ICC support -MD to output dependencies as a
4256   # side effect of compilation, but ICC will put the dependencies in
4257   # the current directory while Tru64 will put them in the object
4258   # directory.
4259   mkdir sub
4260
4261   am_cv_CC_dependencies_compiler_type=none
4262   if test "$am_compiler_list" = ""; then
4263      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4264   fi
4265   am__universal=false
4266   case " $depcc " in #(
4267      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4268      esac
4269
4270   for depmode in $am_compiler_list; do
4271     # Setup a source with many dependencies, because some compilers
4272     # like to wrap large dependency lists on column 80 (with \), and
4273     # we should not choose a depcomp mode which is confused by this.
4274     #
4275     # We need to recreate these files for each test, as the compiler may
4276     # overwrite some of them when testing with obscure command lines.
4277     # This happens at least with the AIX C compiler.
4278     : > sub/conftest.c
4279     for i in 1 2 3 4 5 6; do
4280       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4281       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4282       # Solaris 10 /bin/sh.
4283       echo '/* dummy */' > sub/conftst$i.h
4284     done
4285     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4286
4287     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4288     # mode.  It turns out that the SunPro C++ compiler does not properly
4289     # handle '-M -o', and we need to detect this.  Also, some Intel
4290     # versions had trouble with output in subdirs.
4291     am__obj=sub/conftest.${OBJEXT-o}
4292     am__minus_obj="-o $am__obj"
4293     case $depmode in
4294     gcc)
4295       # This depmode causes a compiler race in universal mode.
4296       test "$am__universal" = false || continue
4297       ;;
4298     nosideeffect)
4299       # After this tag, mechanisms are not by side-effect, so they'll
4300       # only be used when explicitly requested.
4301       if test "x$enable_dependency_tracking" = xyes; then
4302         continue
4303       else
4304         break
4305       fi
4306       ;;
4307     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4308       # This compiler won't grok '-c -o', but also, the minuso test has
4309       # not run yet.  These depmodes are late enough in the game, and
4310       # so weak that their functioning should not be impacted.
4311       am__obj=conftest.${OBJEXT-o}
4312       am__minus_obj=
4313       ;;
4314     none) break ;;
4315     esac
4316     if depmode=$depmode \
4317        source=sub/conftest.c object=$am__obj \
4318        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4319        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4320          >/dev/null 2>conftest.err &&
4321        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4322        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4323        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4324        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4325       # icc doesn't choke on unknown options, it will just issue warnings
4326       # or remarks (even with -Werror).  So we grep stderr for any message
4327       # that says an option was ignored or not supported.
4328       # When given -MP, icc 7.0 and 7.1 complain thusly:
4329       #   icc: Command line warning: ignoring option '-M'; no argument required
4330       # The diagnosis changed in icc 8.0:
4331       #   icc: Command line remark: option '-MP' not supported
4332       if (grep 'ignoring option' conftest.err ||
4333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4334         am_cv_CC_dependencies_compiler_type=$depmode
4335         break
4336       fi
4337     fi
4338   done
4339
4340   cd ..
4341   rm -rf conftest.dir
4342 else
4343   am_cv_CC_dependencies_compiler_type=none
4344 fi
4345
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4348 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4349 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4350
4351  if
4352   test "x$enable_dependency_tracking" != xno \
4353   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4354   am__fastdepCC_TRUE=
4355   am__fastdepCC_FALSE='#'
4356 else
4357   am__fastdepCC_TRUE='#'
4358   am__fastdepCC_FALSE=
4359 fi
4360
4361
4362
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4370 # On Suns, sometimes $CPP names a directory.
4371 if test -n "$CPP" && test -d "$CPP"; then
4372   CPP=
4373 fi
4374 if test -z "$CPP"; then
4375   if ${ac_cv_prog_CPP+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378       # Double quotes because CPP needs to be expanded
4379     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4380     do
4381       ac_preproc_ok=false
4382 for ac_c_preproc_warn_flag in '' yes
4383 do
4384   # Use a header file that comes with gcc, so configuring glibc
4385   # with a fresh cross-compiler works.
4386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387   # <limits.h> exists even on freestanding compilers.
4388   # On the NeXT, cc -E runs the code through the compiler's parser,
4389   # not just through cpp. "Syntax error" is here to catch this case.
4390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #ifdef __STDC__
4393 # include <limits.h>
4394 #else
4395 # include <assert.h>
4396 #endif
4397                      Syntax error
4398 _ACEOF
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4400
4401 else
4402   # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4406
4407   # OK, works on sane cases.  Now check whether nonexistent headers
4408   # can be detected and how.
4409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414   # Broken: success on invalid input.
4415 continue
4416 else
4417   # Passes both tests.
4418 ac_preproc_ok=:
4419 break
4420 fi
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4422
4423 done
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4427   break
4428 fi
4429
4430     done
4431     ac_cv_prog_CPP=$CPP
4432
4433 fi
4434   CPP=$ac_cv_prog_CPP
4435 else
4436   ac_cv_prog_CPP=$CPP
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4439 $as_echo "$CPP" >&6; }
4440 ac_preproc_ok=false
4441 for ac_c_preproc_warn_flag in '' yes
4442 do
4443   # Use a header file that comes with gcc, so configuring glibc
4444   # with a fresh cross-compiler works.
4445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446   # <limits.h> exists even on freestanding compilers.
4447   # On the NeXT, cc -E runs the code through the compiler's parser,
4448   # not just through cpp. "Syntax error" is here to catch this case.
4449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h.  */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456                      Syntax error
4457 _ACEOF
4458 if ac_fn_c_try_cpp "$LINENO"; then :
4459
4460 else
4461   # Broken: fails on valid input.
4462 continue
4463 fi
4464 rm -f conftest.err conftest.i conftest.$ac_ext
4465
4466   # OK, works on sane cases.  Now check whether nonexistent headers
4467   # can be detected and how.
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470 #include <ac_nonexistent.h>
4471 _ACEOF
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473   # Broken: success on invalid input.
4474 continue
4475 else
4476   # Passes both tests.
4477 ac_preproc_ok=:
4478 break
4479 fi
4480 rm -f conftest.err conftest.i conftest.$ac_ext
4481
4482 done
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.i conftest.err conftest.$ac_ext
4485 if $ac_preproc_ok; then :
4486
4487 else
4488   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4491 See \`config.log' for more details" "$LINENO" 5; }
4492 fi
4493
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4503 if ${ac_cv_path_GREP+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   if test -z "$GREP"; then
4507   ac_path_GREP_found=false
4508   # Loop through the user's path and test for each of PROGNAME-LIST
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514     for ac_prog in grep ggrep; do
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517       as_fn_executable_p "$ac_path_GREP" || continue
4518 # Check for GNU ac_path_GREP and select it if it is found.
4519   # Check for GNU $ac_path_GREP
4520 case `"$ac_path_GREP" --version 2>&1` in
4521 *GNU*)
4522   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523 *)
4524   ac_count=0
4525   $as_echo_n 0123456789 >"conftest.in"
4526   while :
4527   do
4528     cat "conftest.in" "conftest.in" >"conftest.tmp"
4529     mv "conftest.tmp" "conftest.in"
4530     cp "conftest.in" "conftest.nl"
4531     $as_echo 'GREP' >> "conftest.nl"
4532     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534     as_fn_arith $ac_count + 1 && ac_count=$as_val
4535     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536       # Best one so far, save it but keep looking for a better one
4537       ac_cv_path_GREP="$ac_path_GREP"
4538       ac_path_GREP_max=$ac_count
4539     fi
4540     # 10*(2^10) chars as input seems more than enough
4541     test $ac_count -gt 10 && break
4542   done
4543   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546       $ac_path_GREP_found && break 3
4547     done
4548   done
4549   done
4550 IFS=$as_save_IFS
4551   if test -z "$ac_cv_path_GREP"; then
4552     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553   fi
4554 else
4555   ac_cv_path_GREP=$GREP
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4560 $as_echo "$ac_cv_path_GREP" >&6; }
4561  GREP="$ac_cv_path_GREP"
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4565 $as_echo_n "checking for egrep... " >&6; }
4566 if ${ac_cv_path_EGREP+:} false; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4570    then ac_cv_path_EGREP="$GREP -E"
4571    else
4572      if test -z "$EGREP"; then
4573   ac_path_EGREP_found=false
4574   # Loop through the user's path and test for each of PROGNAME-LIST
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580     for ac_prog in egrep; do
4581     for ac_exec_ext in '' $ac_executable_extensions; do
4582       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4583       as_fn_executable_p "$ac_path_EGREP" || continue
4584 # Check for GNU ac_path_EGREP and select it if it is found.
4585   # Check for GNU $ac_path_EGREP
4586 case `"$ac_path_EGREP" --version 2>&1` in
4587 *GNU*)
4588   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589 *)
4590   ac_count=0
4591   $as_echo_n 0123456789 >"conftest.in"
4592   while :
4593   do
4594     cat "conftest.in" "conftest.in" >"conftest.tmp"
4595     mv "conftest.tmp" "conftest.in"
4596     cp "conftest.in" "conftest.nl"
4597     $as_echo 'EGREP' >> "conftest.nl"
4598     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600     as_fn_arith $ac_count + 1 && ac_count=$as_val
4601     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4602       # Best one so far, save it but keep looking for a better one
4603       ac_cv_path_EGREP="$ac_path_EGREP"
4604       ac_path_EGREP_max=$ac_count
4605     fi
4606     # 10*(2^10) chars as input seems more than enough
4607     test $ac_count -gt 10 && break
4608   done
4609   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612       $ac_path_EGREP_found && break 3
4613     done
4614   done
4615   done
4616 IFS=$as_save_IFS
4617   if test -z "$ac_cv_path_EGREP"; then
4618     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619   fi
4620 else
4621   ac_cv_path_EGREP=$EGREP
4622 fi
4623
4624    fi
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4627 $as_echo "$ac_cv_path_EGREP" >&6; }
4628  EGREP="$ac_cv_path_EGREP"
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4632 $as_echo_n "checking for ANSI C header files... " >&6; }
4633 if ${ac_cv_header_stdc+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #include <stdlib.h>
4639 #include <stdarg.h>
4640 #include <string.h>
4641 #include <float.h>
4642
4643 int
4644 main ()
4645 {
4646
4647   ;
4648   return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652   ac_cv_header_stdc=yes
4653 else
4654   ac_cv_header_stdc=no
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657
4658 if test $ac_cv_header_stdc = yes; then
4659   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662 #include <string.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "memchr" >/dev/null 2>&1; then :
4667
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679 #include <stdlib.h>
4680
4681 _ACEOF
4682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4683   $EGREP "free" >/dev/null 2>&1; then :
4684
4685 else
4686   ac_cv_header_stdc=no
4687 fi
4688 rm -f conftest*
4689
4690 fi
4691
4692 if test $ac_cv_header_stdc = yes; then
4693   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4694   if test "$cross_compiling" = yes; then :
4695   :
4696 else
4697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 #include <ctype.h>
4700 #include <stdlib.h>
4701 #if ((' ' & 0x0FF) == 0x020)
4702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4704 #else
4705 # define ISLOWER(c) \
4706                    (('a' <= (c) && (c) <= 'i') \
4707                      || ('j' <= (c) && (c) <= 'r') \
4708                      || ('s' <= (c) && (c) <= 'z'))
4709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4710 #endif
4711
4712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4713 int
4714 main ()
4715 {
4716   int i;
4717   for (i = 0; i < 256; i++)
4718     if (XOR (islower (i), ISLOWER (i))
4719         || toupper (i) != TOUPPER (i))
4720       return 2;
4721   return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_run "$LINENO"; then :
4725
4726 else
4727   ac_cv_header_stdc=no
4728 fi
4729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4730   conftest.$ac_objext conftest.beam conftest.$ac_ext
4731 fi
4732
4733 fi
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4736 $as_echo "$ac_cv_header_stdc" >&6; }
4737 if test $ac_cv_header_stdc = yes; then
4738
4739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4740
4741 fi
4742
4743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745                   inttypes.h stdint.h unistd.h
4746 do :
4747   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4749 "
4750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4751   cat >>confdefs.h <<_ACEOF
4752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 _ACEOF
4754
4755 fi
4756
4757 done
4758
4759
4760
4761   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4762 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4763   MINIX=yes
4764 else
4765   MINIX=
4766 fi
4767
4768
4769   if test "$MINIX" = yes; then
4770
4771 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4772
4773
4774 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4775
4776
4777 $as_echo "#define _MINIX 1" >>confdefs.h
4778
4779   fi
4780
4781
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4783 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4784 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h.  */
4789
4790 #         define __EXTENSIONS__ 1
4791           $ac_includes_default
4792 int
4793 main ()
4794 {
4795
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801   ac_cv_safe_to_define___extensions__=yes
4802 else
4803   ac_cv_safe_to_define___extensions__=no
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4808 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4809   test $ac_cv_safe_to_define___extensions__ = yes &&
4810     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4811
4812   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4813
4814   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4815
4816   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4817
4818   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4819
4820
4821
4822
4823
4824
4825
4826
4827 # Configure options.
4828 # allow `./configure --enable-silent-rules' and `make V=0'
4829 # Check whether --enable-silent-rules was given.
4830 if test "${enable_silent_rules+set}" = set; then :
4831   enableval=$enable_silent_rules;
4832 fi
4833
4834 case $enable_silent_rules in # (((
4835   yes) AM_DEFAULT_VERBOSITY=0;;
4836    no) AM_DEFAULT_VERBOSITY=1;;
4837     *) AM_DEFAULT_VERBOSITY=1;;
4838 esac
4839 am_make=${MAKE-make}
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4841 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4842 if ${am_cv_make_support_nested_variables+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   if $as_echo 'TRUE=$(BAR$(V))
4846 BAR0=false
4847 BAR1=true
4848 V=1
4849 am__doit:
4850         @$(TRUE)
4851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4852   am_cv_make_support_nested_variables=yes
4853 else
4854   am_cv_make_support_nested_variables=no
4855 fi
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4858 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4859 if test $am_cv_make_support_nested_variables = yes; then
4860     AM_V='$(V)'
4861   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4862 else
4863   AM_V=$AM_DEFAULT_VERBOSITY
4864   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4865 fi
4866 AM_BACKSLASH='\'
4867
4868
4869 # Check whether --enable-gcov was given.
4870 if test "${enable_gcov+set}" = set; then :
4871   enableval=$enable_gcov; case "${enableval}" in
4872   yes) enable_gcov=true ;;
4873   no)  enable_gcov=false ;;
4874   *)   as_fn_error $? "bad value ${enableval} for --enable-gcov" "$LINENO" 5 ;;
4875 esac
4876 else
4877   enable_gcov=false
4878 fi
4879
4880
4881 if test x$enable_gcov = xtrue ; then
4882   if test x"$GCC" != xyes; then
4883     as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
4884   fi
4885
4886   GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4887
4888
4889         GCOV_LIBS=-lgcov
4890
4891 fi
4892
4893  if test x"$enable_gcov" = "xtrue"; then
4894   ENABLE_GCOV_TRUE=
4895   ENABLE_GCOV_FALSE='#'
4896 else
4897   ENABLE_GCOV_TRUE='#'
4898   ENABLE_GCOV_FALSE=
4899 fi
4900
4901
4902 # Check whether --enable-timeout-tests was given.
4903 if test "${enable_timeout_tests+set}" = set; then :
4904   enableval=$enable_timeout_tests; case "${enableval}" in
4905   yes) enable_timeout_tests=true ;;
4906   no)  enable_timeout_tests=false ;;
4907   *)   as_fn_error $? "bad value ${enableval} for --enable-timeout-tests" "$LINENO" 5 ;;
4908 esac
4909 else
4910   enable_timeout_tests=true
4911 fi
4912
4913
4914  if test x"$enable_timeout_tests" = "xfalse"; then
4915   NO_TIMEOUT_TESTS_TRUE=
4916   NO_TIMEOUT_TESTS_FALSE='#'
4917 else
4918   NO_TIMEOUT_TESTS_TRUE='#'
4919   NO_TIMEOUT_TESTS_FALSE=
4920 fi
4921
4922
4923 # Check whether --enable-subunit was given.
4924 if test "${enable_subunit+set}" = set; then :
4925   enableval=$enable_subunit; case "${enableval}" in
4926   yes)
4927     enable_subunit=true
4928     echo "Enabled subunit support"
4929     ;;
4930   no)
4931     enable_subunit=false
4932     echo "Disabled subunit support"
4933     ;;
4934   autodetect)
4935     echo "Subunit support will enable automatically."
4936     ;;
4937   *)   as_fn_error $? "bad value ${enableval} for --enable-subunit" "$LINENO" 5 ;;
4938 esac
4939 else
4940   echo "Subunit support will enable automatically."
4941  enable_subunit=autodetect
4942 fi
4943
4944
4945 # Check whether --enable-fork was given.
4946 if test "${enable_fork+set}" = set; then :
4947   enableval=$enable_fork; case "${enableval}" in
4948   yes) enable_fork=true ;;
4949   no)  enable_fork=false ;;
4950   *)   as_fn_error $? "bad value ${enableval} for --enable-fork" "$LINENO" 5 ;;
4951 esac
4952 else
4953   enable_fork=true
4954 fi
4955
4956
4957 # Check whether --enable-snprintf-replacement was given.
4958 if test "${enable_snprintf_replacement+set}" = set; then :
4959   enableval=$enable_snprintf_replacement; case "${enableval}" in
4960   yes) enable_snprintf_replacement=true ;;
4961   *)   as_fn_error $? "bad value ${enableval} for --enable-snprintf-replacement" "$LINENO" 5 ;;
4962 esac
4963 else
4964   enable_snprintf_replacement=autodetect
4965 fi
4966
4967
4968 # Check whether --enable-timer-replacement was given.
4969 if test "${enable_timer_replacement+set}" = set; then :
4970   enableval=$enable_timer_replacement; case "${enableval}" in
4971   yes) enable_timer_replacement=true ;;
4972   *)   as_fn_error $? "bad value ${enableval} for --enable-timer-replacement" "$LINENO" 5 ;;
4973 esac
4974 else
4975   enable_timer_replacement=autodetect
4976 fi
4977
4978
4979
4980 # Checks for programs.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4982 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4983 if ${ac_cv_path_SED+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4987      for ac_i in 1 2 3 4 5 6 7; do
4988        ac_script="$ac_script$as_nl$ac_script"
4989      done
4990      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4991      { ac_script=; unset ac_script;}
4992      if test -z "$SED"; then
4993   ac_path_SED_found=false
4994   # Loop through the user's path and test for each of PROGNAME-LIST
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_prog in sed gsed; do
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5003       as_fn_executable_p "$ac_path_SED" || continue
5004 # Check for GNU ac_path_SED and select it if it is found.
5005   # Check for GNU $ac_path_SED
5006 case `"$ac_path_SED" --version 2>&1` in
5007 *GNU*)
5008   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5009 *)
5010   ac_count=0
5011   $as_echo_n 0123456789 >"conftest.in"
5012   while :
5013   do
5014     cat "conftest.in" "conftest.in" >"conftest.tmp"
5015     mv "conftest.tmp" "conftest.in"
5016     cp "conftest.in" "conftest.nl"
5017     $as_echo '' >> "conftest.nl"
5018     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020     as_fn_arith $ac_count + 1 && ac_count=$as_val
5021     if test $ac_count -gt ${ac_path_SED_max-0}; then
5022       # Best one so far, save it but keep looking for a better one
5023       ac_cv_path_SED="$ac_path_SED"
5024       ac_path_SED_max=$ac_count
5025     fi
5026     # 10*(2^10) chars as input seems more than enough
5027     test $ac_count -gt 10 && break
5028   done
5029   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030 esac
5031
5032       $ac_path_SED_found && break 3
5033     done
5034   done
5035   done
5036 IFS=$as_save_IFS
5037   if test -z "$ac_cv_path_SED"; then
5038     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5039   fi
5040 else
5041   ac_cv_path_SED=$SED
5042 fi
5043
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5046 $as_echo "$ac_cv_path_SED" >&6; }
5047  SED="$ac_cv_path_SED"
5048   rm -f conftest.sed
5049
5050 for ac_prog in gawk mawk nawk awk
5051 do
5052   # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if ${ac_cv_prog_AWK+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if test -n "$AWK"; then
5060   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065   IFS=$as_save_IFS
5066   test -z "$as_dir" && as_dir=.
5067     for ac_exec_ext in '' $ac_executable_extensions; do
5068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069     ac_cv_prog_AWK="$ac_prog"
5070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071     break 2
5072   fi
5073 done
5074   done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 AWK=$ac_cv_prog_AWK
5080 if test -n "$AWK"; then
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5082 $as_echo "$AWK" >&6; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089   test -n "$AWK" && break
5090 done
5091
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097 if test -n "$ac_tool_prefix"; then
5098   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_CC+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$CC"; then
5106   ac_cv_prog_CC="$CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 CC=$ac_cv_prog_CC
5126 if test -n "$CC"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5128 $as_echo "$CC" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135 fi
5136 if test -z "$ac_cv_prog_CC"; then
5137   ac_ct_CC=$CC
5138   # Extract the first word of "gcc", so it can be a program name with args.
5139 set dummy gcc; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   if test -n "$ac_ct_CC"; then
5146   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153     for ac_exec_ext in '' $ac_executable_extensions; do
5154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_prog_ac_ct_CC="gcc"
5156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160   done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5168 $as_echo "$ac_ct_CC" >&6; }
5169 else
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174   if test "x$ac_ct_CC" = x; then
5175     CC=""
5176   else
5177     case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183     CC=$ac_ct_CC
5184   fi
5185 else
5186   CC="$ac_cv_prog_CC"
5187 fi
5188
5189 if test -z "$CC"; then
5190           if test -n "$ac_tool_prefix"; then
5191     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}cc; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_CC+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   if test -n "$CC"; then
5199   ac_cv_prog_CC="$CC" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208     ac_cv_prog_CC="${ac_tool_prefix}cc"
5209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213   done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 CC=$ac_cv_prog_CC
5219 if test -n "$CC"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5221 $as_echo "$CC" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228   fi
5229 fi
5230 if test -z "$CC"; then
5231   # Extract the first word of "cc", so it can be a program name with args.
5232 set dummy cc; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_CC+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   if test -n "$CC"; then
5239   ac_cv_prog_CC="$CC" # Let the user override the test.
5240 else
5241   ac_prog_rejected=no
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5250        ac_prog_rejected=yes
5251        continue
5252      fi
5253     ac_cv_prog_CC="cc"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261 if test $ac_prog_rejected = yes; then
5262   # We found a bogon in the path, so make sure we never use it.
5263   set dummy $ac_cv_prog_CC
5264   shift
5265   if test $# != 0; then
5266     # We chose a different compiler from the bogus one.
5267     # However, it has the same basename, so the bogon will be chosen
5268     # first if we set CC to just the basename; use the full file name.
5269     shift
5270     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5271   fi
5272 fi
5273 fi
5274 fi
5275 CC=$ac_cv_prog_CC
5276 if test -n "$CC"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5278 $as_echo "$CC" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 fi
5286 if test -z "$CC"; then
5287   if test -n "$ac_tool_prefix"; then
5288   for ac_prog in cl.exe
5289   do
5290     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_CC+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$CC"; then
5298   ac_cv_prog_CC="$CC" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 CC=$ac_cv_prog_CC
5318 if test -n "$CC"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5320 $as_echo "$CC" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327     test -n "$CC" && break
5328   done
5329 fi
5330 if test -z "$CC"; then
5331   ac_ct_CC=$CC
5332   for ac_prog in cl.exe
5333 do
5334   # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -n "$ac_ct_CC"; then
5342   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351     ac_cv_prog_ac_ct_CC="$ac_prog"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5362 if test -n "$ac_ct_CC"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5364 $as_echo "$ac_ct_CC" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371   test -n "$ac_ct_CC" && break
5372 done
5373
5374   if test "x$ac_ct_CC" = x; then
5375     CC=""
5376   else
5377     case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383     CC=$ac_ct_CC
5384   fi
5385 fi
5386
5387 fi
5388
5389
5390 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5392 as_fn_error $? "no acceptable C compiler found in \$PATH
5393 See \`config.log' for more details" "$LINENO" 5; }
5394
5395 # Provide some information about the compiler.
5396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5397 set X $ac_compile
5398 ac_compiler=$2
5399 for ac_option in --version -v -V -qversion; do
5400   { { ac_try="$ac_compiler $ac_option >&5"
5401 case "(($ac_try" in
5402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403   *) ac_try_echo=$ac_try;;
5404 esac
5405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5406 $as_echo "$ac_try_echo"; } >&5
5407   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5408   ac_status=$?
5409   if test -s conftest.err; then
5410     sed '10a\
5411 ... rest of stderr output deleted ...
5412          10q' conftest.err >conftest.er1
5413     cat conftest.er1 >&5
5414   fi
5415   rm -f conftest.er1 conftest.err
5416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417   test $ac_status = 0; }
5418 done
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5422 if ${ac_cv_c_compiler_gnu+:} false; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h.  */
5427
5428 int
5429 main ()
5430 {
5431 #ifndef __GNUC__
5432        choke me
5433 #endif
5434
5435   ;
5436   return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440   ac_compiler_gnu=yes
5441 else
5442   ac_compiler_gnu=no
5443 fi
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5446
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5450 if test $ac_compiler_gnu = yes; then
5451   GCC=yes
5452 else
5453   GCC=
5454 fi
5455 ac_test_CFLAGS=${CFLAGS+set}
5456 ac_save_CFLAGS=$CFLAGS
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5459 if ${ac_cv_prog_cc_g+:} false; then :
5460   $as_echo_n "(cached) " >&6
5461 else
5462   ac_save_c_werror_flag=$ac_c_werror_flag
5463    ac_c_werror_flag=yes
5464    ac_cv_prog_cc_g=no
5465    CFLAGS="-g"
5466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h.  */
5468
5469 int
5470 main ()
5471 {
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478   ac_cv_prog_cc_g=yes
5479 else
5480   CFLAGS=""
5481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h.  */
5483
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493
5494 else
5495   ac_c_werror_flag=$ac_save_c_werror_flag
5496          CFLAGS="-g"
5497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h.  */
5499
5500 int
5501 main ()
5502 {
5503
5504   ;
5505   return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"; then :
5509   ac_cv_prog_cc_g=yes
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516    ac_c_werror_flag=$ac_save_c_werror_flag
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5519 $as_echo "$ac_cv_prog_cc_g" >&6; }
5520 if test "$ac_test_CFLAGS" = set; then
5521   CFLAGS=$ac_save_CFLAGS
5522 elif test $ac_cv_prog_cc_g = yes; then
5523   if test "$GCC" = yes; then
5524     CFLAGS="-g -O2"
5525   else
5526     CFLAGS="-g"
5527   fi
5528 else
5529   if test "$GCC" = yes; then
5530     CFLAGS="-O2"
5531   else
5532     CFLAGS=
5533   fi
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5537 if ${ac_cv_prog_cc_c89+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   ac_cv_prog_cc_c89=no
5541 ac_save_CC=$CC
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h.  */
5544 #include <stdarg.h>
5545 #include <stdio.h>
5546 struct stat;
5547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5548 struct buf { int x; };
5549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5550 static char *e (p, i)
5551      char **p;
5552      int i;
5553 {
5554   return p[i];
5555 }
5556 static char *f (char * (*g) (char **, int), char **p, ...)
5557 {
5558   char *s;
5559   va_list v;
5560   va_start (v,p);
5561   s = g (p, va_arg (v,int));
5562   va_end (v);
5563   return s;
5564 }
5565
5566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5567    function prototypes and stuff, but not '\xHH' hex character constants.
5568    These don't provoke an error unfortunately, instead are silently treated
5569    as 'x'.  The following induces an error, until -std is added to get
5570    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5571    array size at least.  It's necessary to write '\x00'==0 to get something
5572    that's true only with -std.  */
5573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5574
5575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5576    inside strings and character constants.  */
5577 #define FOO(x) 'x'
5578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5579
5580 int test (int i, double x);
5581 struct s1 {int (*f) (int a);};
5582 struct s2 {int (*f) (double a);};
5583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5584 int argc;
5585 char **argv;
5586 int
5587 main ()
5588 {
5589 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5590   ;
5591   return 0;
5592 }
5593 _ACEOF
5594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5595         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5596 do
5597   CC="$ac_save_CC $ac_arg"
5598   if ac_fn_c_try_compile "$LINENO"; then :
5599   ac_cv_prog_cc_c89=$ac_arg
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext
5602   test "x$ac_cv_prog_cc_c89" != "xno" && break
5603 done
5604 rm -f conftest.$ac_ext
5605 CC=$ac_save_CC
5606
5607 fi
5608 # AC_CACHE_VAL
5609 case "x$ac_cv_prog_cc_c89" in
5610   x)
5611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5612 $as_echo "none needed" >&6; } ;;
5613   xno)
5614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5615 $as_echo "unsupported" >&6; } ;;
5616   *)
5617     CC="$CC $ac_cv_prog_cc_c89"
5618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5620 esac
5621 if test "x$ac_cv_prog_cc_c89" != xno; then :
5622
5623 fi
5624
5625 ac_ext=c
5626 ac_cpp='$CPP $CPPFLAGS'
5627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5638 if ${am_cv_prog_cc_c_o+:} false; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652   # Make sure it works both with $CC and with simple cc.
5653   # Following AC_PROG_CC_C_O, we do the test twice because some
5654   # compilers refuse to overwrite an existing .o file with -o,
5655   # though they will create one.
5656   am_cv_prog_cc_c_o=yes
5657   for am_i in 1 2; do
5658     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5659    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5660    ac_status=$?
5661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662    (exit $ac_status); } \
5663          && test -f conftest2.$ac_objext; then
5664       : OK
5665     else
5666       am_cv_prog_cc_c_o=no
5667       break
5668     fi
5669   done
5670   rm -f core conftest*
5671   unset am_i
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5675 if test "$am_cv_prog_cc_c_o" != yes; then
5676    # Losing compiler, so override with the script.
5677    # FIXME: It is wrong to rewrite CC.
5678    # But if we don't then we get into trouble of one sort or another.
5679    # A longer-term fix would be to have automake use am__CC in this case,
5680    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5681    CC="$am_aux_dir/compile $CC"
5682 fi
5683 ac_ext=c
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688
5689
5690 depcc="$CC"   am_compiler_list=
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5693 $as_echo_n "checking dependency style of $depcc... " >&6; }
5694 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5698   # We make a subdir and do the tests there.  Otherwise we can end up
5699   # making bogus files that we don't know about and never remove.  For
5700   # instance it was reported that on HP-UX the gcc test will end up
5701   # making a dummy file named 'D' -- because '-MD' means "put the output
5702   # in D".
5703   rm -rf conftest.dir
5704   mkdir conftest.dir
5705   # Copy depcomp to subdir because otherwise we won't find it if we're
5706   # using a relative directory.
5707   cp "$am_depcomp" conftest.dir
5708   cd conftest.dir
5709   # We will build objects and dependencies in a subdirectory because
5710   # it helps to detect inapplicable dependency modes.  For instance
5711   # both Tru64's cc and ICC support -MD to output dependencies as a
5712   # side effect of compilation, but ICC will put the dependencies in
5713   # the current directory while Tru64 will put them in the object
5714   # directory.
5715   mkdir sub
5716
5717   am_cv_CC_dependencies_compiler_type=none
5718   if test "$am_compiler_list" = ""; then
5719      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5720   fi
5721   am__universal=false
5722   case " $depcc " in #(
5723      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5724      esac
5725
5726   for depmode in $am_compiler_list; do
5727     # Setup a source with many dependencies, because some compilers
5728     # like to wrap large dependency lists on column 80 (with \), and
5729     # we should not choose a depcomp mode which is confused by this.
5730     #
5731     # We need to recreate these files for each test, as the compiler may
5732     # overwrite some of them when testing with obscure command lines.
5733     # This happens at least with the AIX C compiler.
5734     : > sub/conftest.c
5735     for i in 1 2 3 4 5 6; do
5736       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5737       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5738       # Solaris 10 /bin/sh.
5739       echo '/* dummy */' > sub/conftst$i.h
5740     done
5741     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5742
5743     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5744     # mode.  It turns out that the SunPro C++ compiler does not properly
5745     # handle '-M -o', and we need to detect this.  Also, some Intel
5746     # versions had trouble with output in subdirs.
5747     am__obj=sub/conftest.${OBJEXT-o}
5748     am__minus_obj="-o $am__obj"
5749     case $depmode in
5750     gcc)
5751       # This depmode causes a compiler race in universal mode.
5752       test "$am__universal" = false || continue
5753       ;;
5754     nosideeffect)
5755       # After this tag, mechanisms are not by side-effect, so they'll
5756       # only be used when explicitly requested.
5757       if test "x$enable_dependency_tracking" = xyes; then
5758         continue
5759       else
5760         break
5761       fi
5762       ;;
5763     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5764       # This compiler won't grok '-c -o', but also, the minuso test has
5765       # not run yet.  These depmodes are late enough in the game, and
5766       # so weak that their functioning should not be impacted.
5767       am__obj=conftest.${OBJEXT-o}
5768       am__minus_obj=
5769       ;;
5770     none) break ;;
5771     esac
5772     if depmode=$depmode \
5773        source=sub/conftest.c object=$am__obj \
5774        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5775        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5776          >/dev/null 2>conftest.err &&
5777        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5778        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5779        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5780        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5781       # icc doesn't choke on unknown options, it will just issue warnings
5782       # or remarks (even with -Werror).  So we grep stderr for any message
5783       # that says an option was ignored or not supported.
5784       # When given -MP, icc 7.0 and 7.1 complain thusly:
5785       #   icc: Command line warning: ignoring option '-M'; no argument required
5786       # The diagnosis changed in icc 8.0:
5787       #   icc: Command line remark: option '-MP' not supported
5788       if (grep 'ignoring option' conftest.err ||
5789           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5790         am_cv_CC_dependencies_compiler_type=$depmode
5791         break
5792       fi
5793     fi
5794   done
5795
5796   cd ..
5797   rm -rf conftest.dir
5798 else
5799   am_cv_CC_dependencies_compiler_type=none
5800 fi
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5806
5807  if
5808   test "x$enable_dependency_tracking" != xno \
5809   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5810   am__fastdepCC_TRUE=
5811   am__fastdepCC_FALSE='#'
5812 else
5813   am__fastdepCC_TRUE='#'
5814   am__fastdepCC_FALSE=
5815 fi
5816
5817
5818 # Automake wants this for per-target CFLAGS
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5822 $as_echo_n "checking whether ln -s works... " >&6; }
5823 LN_S=$as_ln_s
5824 if test "$LN_S" = "ln -s"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5826 $as_echo "yes" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5829 $as_echo "no, using $LN_S" >&6; }
5830 fi
5831
5832 # for non-POSIX archivers like the one on OS X
5833 # use m4_ifdef to work on older automake (1.11)
5834 if test -n "$ac_tool_prefix"; then
5835   for ac_prog in ar lib "link -lib"
5836   do
5837     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_AR+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -n "$AR"; then
5845   ac_cv_prog_AR="$AR" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859   done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 AR=$ac_cv_prog_AR
5865 if test -n "$AR"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5867 $as_echo "$AR" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874     test -n "$AR" && break
5875   done
5876 fi
5877 if test -z "$AR"; then
5878   ac_ct_AR=$AR
5879   for ac_prog in ar lib "link -lib"
5880 do
5881   # Extract the first word of "$ac_prog", so it can be a program name with args.
5882 set dummy $ac_prog; ac_word=$2
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 $as_echo_n "checking for $ac_word... " >&6; }
5885 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   if test -n "$ac_ct_AR"; then
5889   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896     for ac_exec_ext in '' $ac_executable_extensions; do
5897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898     ac_cv_prog_ac_ct_AR="$ac_prog"
5899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903   done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5909 if test -n "$ac_ct_AR"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5911 $as_echo "$ac_ct_AR" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916
5917
5918   test -n "$ac_ct_AR" && break
5919 done
5920
5921   if test "x$ac_ct_AR" = x; then
5922     AR="false"
5923   else
5924     case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930     AR=$ac_ct_AR
5931   fi
5932 fi
5933
5934 : ${AR=ar}
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5937 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5938 if ${am_cv_ar_interface+:} false; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   ac_ext=c
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946
5947    am_cv_ar_interface=ar
5948    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h.  */
5950 int some_variable = 0;
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5954       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5955   (eval $am_ar_try) 2>&5
5956   ac_status=$?
5957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958   test $ac_status = 0; }
5959       if test "$ac_status" -eq 0; then
5960         am_cv_ar_interface=ar
5961       else
5962         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5963         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5964   (eval $am_ar_try) 2>&5
5965   ac_status=$?
5966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5967   test $ac_status = 0; }
5968         if test "$ac_status" -eq 0; then
5969           am_cv_ar_interface=lib
5970         else
5971           am_cv_ar_interface=unknown
5972         fi
5973       fi
5974       rm -f conftest.lib libconftest.a
5975
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978    ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5986 $as_echo "$am_cv_ar_interface" >&6; }
5987
5988 case $am_cv_ar_interface in
5989 ar)
5990   ;;
5991 lib)
5992   # Microsoft lib, so override with the ar-lib wrapper script.
5993   # FIXME: It is wrong to rewrite AR.
5994   # But if we don't then we get into trouble of one sort or another.
5995   # A longer-term fix would be to have automake use am__AR in this case,
5996   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5997   # similar.
5998   AR="$am_aux_dir/ar-lib $AR"
5999   ;;
6000 unknown)
6001   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6002   ;;
6003 esac
6004
6005 case `pwd` in
6006   *\ * | *\     *)
6007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6008 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6009 esac
6010
6011
6012
6013 macro_version='2.4.6'
6014 macro_revision='2.4.6'
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028 ltmain=$ac_aux_dir/ltmain.sh
6029
6030 # Make sure we can run config.sub.
6031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6032   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6035 $as_echo_n "checking build system type... " >&6; }
6036 if ${ac_cv_build+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   ac_build_alias=$build_alias
6040 test "x$ac_build_alias" = x &&
6041   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6042 test "x$ac_build_alias" = x &&
6043   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6045   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6046
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6049 $as_echo "$ac_cv_build" >&6; }
6050 case $ac_cv_build in
6051 *-*-*) ;;
6052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6053 esac
6054 build=$ac_cv_build
6055 ac_save_IFS=$IFS; IFS='-'
6056 set x $ac_cv_build
6057 shift
6058 build_cpu=$1
6059 build_vendor=$2
6060 shift; shift
6061 # Remember, the first character of IFS is used to create $*,
6062 # except with old shells:
6063 build_os=$*
6064 IFS=$ac_save_IFS
6065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6069 $as_echo_n "checking host system type... " >&6; }
6070 if ${ac_cv_host+:} false; then :
6071   $as_echo_n "(cached) " >&6
6072 else
6073   if test "x$host_alias" = x; then
6074   ac_cv_host=$ac_cv_build
6075 else
6076   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6077     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6078 fi
6079
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6082 $as_echo "$ac_cv_host" >&6; }
6083 case $ac_cv_host in
6084 *-*-*) ;;
6085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6086 esac
6087 host=$ac_cv_host
6088 ac_save_IFS=$IFS; IFS='-'
6089 set x $ac_cv_host
6090 shift
6091 host_cpu=$1
6092 host_vendor=$2
6093 shift; shift
6094 # Remember, the first character of IFS is used to create $*,
6095 # except with old shells:
6096 host_os=$*
6097 IFS=$ac_save_IFS
6098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6099
6100
6101 # Backslashify metacharacters that are still active within
6102 # double-quoted strings.
6103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6104
6105 # Same as above, but do not quote variable references.
6106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6107
6108 # Sed substitution to delay expansion of an escaped shell variable in a
6109 # double_quote_subst'ed string.
6110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6111
6112 # Sed substitution to delay expansion of an escaped single quote.
6113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6114
6115 # Sed substitution to avoid accidental globbing in evaled expressions
6116 no_glob_subst='s/\*/\\\*/g'
6117
6118 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6123 $as_echo_n "checking how to print strings... " >&6; }
6124 # Test print first, because it will be a builtin if present.
6125 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6126    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6127   ECHO='print -r --'
6128 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6129   ECHO='printf %s\n'
6130 else
6131   # Use this function as a fallback that always works.
6132   func_fallback_echo ()
6133   {
6134     eval 'cat <<_LTECHO_EOF
6135 $1
6136 _LTECHO_EOF'
6137   }
6138   ECHO='func_fallback_echo'
6139 fi
6140
6141 # func_echo_all arg...
6142 # Invoke $ECHO with all args, space-separated.
6143 func_echo_all ()
6144 {
6145     $ECHO ""
6146 }
6147
6148 case $ECHO in
6149   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6150 $as_echo "printf" >&6; } ;;
6151   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6152 $as_echo "print -r" >&6; } ;;
6153   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6154 $as_echo "cat" >&6; } ;;
6155 esac
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172 if ${ac_cv_path_SED+:} false; then :
6173   $as_echo_n "(cached) " >&6
6174 else
6175             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176      for ac_i in 1 2 3 4 5 6 7; do
6177        ac_script="$ac_script$as_nl$ac_script"
6178      done
6179      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180      { ac_script=; unset ac_script;}
6181      if test -z "$SED"; then
6182   ac_path_SED_found=false
6183   # Loop through the user's path and test for each of PROGNAME-LIST
6184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_prog in sed gsed; do
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192       as_fn_executable_p "$ac_path_SED" || continue
6193 # Check for GNU ac_path_SED and select it if it is found.
6194   # Check for GNU $ac_path_SED
6195 case `"$ac_path_SED" --version 2>&1` in
6196 *GNU*)
6197   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6198 *)
6199   ac_count=0
6200   $as_echo_n 0123456789 >"conftest.in"
6201   while :
6202   do
6203     cat "conftest.in" "conftest.in" >"conftest.tmp"
6204     mv "conftest.tmp" "conftest.in"
6205     cp "conftest.in" "conftest.nl"
6206     $as_echo '' >> "conftest.nl"
6207     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209     as_fn_arith $ac_count + 1 && ac_count=$as_val
6210     if test $ac_count -gt ${ac_path_SED_max-0}; then
6211       # Best one so far, save it but keep looking for a better one
6212       ac_cv_path_SED="$ac_path_SED"
6213       ac_path_SED_max=$ac_count
6214     fi
6215     # 10*(2^10) chars as input seems more than enough
6216     test $ac_count -gt 10 && break
6217   done
6218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6219 esac
6220
6221       $ac_path_SED_found && break 3
6222     done
6223   done
6224   done
6225 IFS=$as_save_IFS
6226   if test -z "$ac_cv_path_SED"; then
6227     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6228   fi
6229 else
6230   ac_cv_path_SED=$SED
6231 fi
6232
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235 $as_echo "$ac_cv_path_SED" >&6; }
6236  SED="$ac_cv_path_SED"
6237   rm -f conftest.sed
6238
6239 test -z "$SED" && SED=sed
6240 Xsed="$SED -e 1s/^X//"
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6253 $as_echo_n "checking for fgrep... " >&6; }
6254 if ${ac_cv_path_FGREP+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6258    then ac_cv_path_FGREP="$GREP -F"
6259    else
6260      if test -z "$FGREP"; then
6261   ac_path_FGREP_found=false
6262   # Loop through the user's path and test for each of PROGNAME-LIST
6263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268     for ac_prog in fgrep; do
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6271       as_fn_executable_p "$ac_path_FGREP" || continue
6272 # Check for GNU ac_path_FGREP and select it if it is found.
6273   # Check for GNU $ac_path_FGREP
6274 case `"$ac_path_FGREP" --version 2>&1` in
6275 *GNU*)
6276   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6277 *)
6278   ac_count=0
6279   $as_echo_n 0123456789 >"conftest.in"
6280   while :
6281   do
6282     cat "conftest.in" "conftest.in" >"conftest.tmp"
6283     mv "conftest.tmp" "conftest.in"
6284     cp "conftest.in" "conftest.nl"
6285     $as_echo 'FGREP' >> "conftest.nl"
6286     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288     as_fn_arith $ac_count + 1 && ac_count=$as_val
6289     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6290       # Best one so far, save it but keep looking for a better one
6291       ac_cv_path_FGREP="$ac_path_FGREP"
6292       ac_path_FGREP_max=$ac_count
6293     fi
6294     # 10*(2^10) chars as input seems more than enough
6295     test $ac_count -gt 10 && break
6296   done
6297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6298 esac
6299
6300       $ac_path_FGREP_found && break 3
6301     done
6302   done
6303   done
6304 IFS=$as_save_IFS
6305   if test -z "$ac_cv_path_FGREP"; then
6306     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6307   fi
6308 else
6309   ac_cv_path_FGREP=$FGREP
6310 fi
6311
6312    fi
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6315 $as_echo "$ac_cv_path_FGREP" >&6; }
6316  FGREP="$ac_cv_path_FGREP"
6317
6318
6319 test -z "$GREP" && GREP=grep
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 # Check whether --with-gnu-ld was given.
6340 if test "${with_gnu_ld+set}" = set; then :
6341   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6342 else
6343   with_gnu_ld=no
6344 fi
6345
6346 ac_prog=ld
6347 if test yes = "$GCC"; then
6348   # Check if gcc -print-prog-name=ld gives a path.
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6350 $as_echo_n "checking for ld used by $CC... " >&6; }
6351   case $host in
6352   *-*-mingw*)
6353     # gcc leaves a trailing carriage return, which upsets mingw
6354     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6355   *)
6356     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6357   esac
6358   case $ac_prog in
6359     # Accept absolute paths.
6360     [\\/]* | ?:[\\/]*)
6361       re_direlt='/[^/][^/]*/\.\./'
6362       # Canonicalize the pathname of ld
6363       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6364       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6365         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6366       done
6367       test -z "$LD" && LD=$ac_prog
6368       ;;
6369   "")
6370     # If it fails, then pretend we aren't using GCC.
6371     ac_prog=ld
6372     ;;
6373   *)
6374     # If it is relative, then search for the first ld in PATH.
6375     with_gnu_ld=unknown
6376     ;;
6377   esac
6378 elif test yes = "$with_gnu_ld"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6380 $as_echo_n "checking for GNU ld... " >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6383 $as_echo_n "checking for non-GNU ld... " >&6; }
6384 fi
6385 if ${lt_cv_path_LD+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -z "$LD"; then
6389   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6390   for ac_dir in $PATH; do
6391     IFS=$lt_save_ifs
6392     test -z "$ac_dir" && ac_dir=.
6393     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6394       lt_cv_path_LD=$ac_dir/$ac_prog
6395       # Check to see if the program is GNU ld.  I'd rather use --version,
6396       # but apparently some variants of GNU ld only accept -v.
6397       # Break only if it was the GNU/non-GNU ld that we prefer.
6398       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6399       *GNU* | *'with BFD'*)
6400         test no != "$with_gnu_ld" && break
6401         ;;
6402       *)
6403         test yes != "$with_gnu_ld" && break
6404         ;;
6405       esac
6406     fi
6407   done
6408   IFS=$lt_save_ifs
6409 else
6410   lt_cv_path_LD=$LD # Let the user override the test with a path.
6411 fi
6412 fi
6413
6414 LD=$lt_cv_path_LD
6415 if test -n "$LD"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6417 $as_echo "$LD" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6424 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6425 if ${lt_cv_prog_gnu_ld+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6429 case `$LD -v 2>&1 </dev/null` in
6430 *GNU* | *'with BFD'*)
6431   lt_cv_prog_gnu_ld=yes
6432   ;;
6433 *)
6434   lt_cv_prog_gnu_ld=no
6435   ;;
6436 esac
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6439 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6440 with_gnu_ld=$lt_cv_prog_gnu_ld
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6451 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6452 if ${lt_cv_path_NM+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$NM"; then
6456   # Let the user override the test.
6457   lt_cv_path_NM=$NM
6458 else
6459   lt_nm_to_check=${ac_tool_prefix}nm
6460   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6461     lt_nm_to_check="$lt_nm_to_check nm"
6462   fi
6463   for lt_tmp_nm in $lt_nm_to_check; do
6464     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6465     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6466       IFS=$lt_save_ifs
6467       test -z "$ac_dir" && ac_dir=.
6468       tmp_nm=$ac_dir/$lt_tmp_nm
6469       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6470         # Check to see if the nm accepts a BSD-compat flag.
6471         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6472         #   nm: unknown option "B" ignored
6473         # Tru64's nm complains that /dev/null is an invalid object file
6474         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6475         case $build_os in
6476         mingw*) lt_bad_file=conftest.nm/nofile ;;
6477         *) lt_bad_file=/dev/null ;;
6478         esac
6479         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6480         *$lt_bad_file* | *'Invalid file or object type'*)
6481           lt_cv_path_NM="$tmp_nm -B"
6482           break 2
6483           ;;
6484         *)
6485           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6486           */dev/null*)
6487             lt_cv_path_NM="$tmp_nm -p"
6488             break 2
6489             ;;
6490           *)
6491             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6492             continue # so that we can try to find one that supports BSD flags
6493             ;;
6494           esac
6495           ;;
6496         esac
6497       fi
6498     done
6499     IFS=$lt_save_ifs
6500   done
6501   : ${lt_cv_path_NM=no}
6502 fi
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6505 $as_echo "$lt_cv_path_NM" >&6; }
6506 if test no != "$lt_cv_path_NM"; then
6507   NM=$lt_cv_path_NM
6508 else
6509   # Didn't find any BSD compatible name lister, look for dumpbin.
6510   if test -n "$DUMPBIN"; then :
6511     # Let the user override the test.
6512   else
6513     if test -n "$ac_tool_prefix"; then
6514   for ac_prog in dumpbin "link -dump"
6515   do
6516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_DUMPBIN+:} false; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523   if test -n "$DUMPBIN"; then
6524   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531     for ac_exec_ext in '' $ac_executable_extensions; do
6532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538   done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 DUMPBIN=$ac_cv_prog_DUMPBIN
6544 if test -n "$DUMPBIN"; then
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6546 $as_echo "$DUMPBIN" >&6; }
6547 else
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552
6553     test -n "$DUMPBIN" && break
6554   done
6555 fi
6556 if test -z "$DUMPBIN"; then
6557   ac_ct_DUMPBIN=$DUMPBIN
6558   for ac_prog in dumpbin "link -dump"
6559 do
6560   # Extract the first word of "$ac_prog", so it can be a program name with args.
6561 set dummy $ac_prog; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567   if test -n "$ac_ct_DUMPBIN"; then
6568   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6569 else
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 for as_dir in $PATH
6572 do
6573   IFS=$as_save_IFS
6574   test -z "$as_dir" && as_dir=.
6575     for ac_exec_ext in '' $ac_executable_extensions; do
6576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579     break 2
6580   fi
6581 done
6582   done
6583 IFS=$as_save_IFS
6584
6585 fi
6586 fi
6587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6588 if test -n "$ac_ct_DUMPBIN"; then
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6590 $as_echo "$ac_ct_DUMPBIN" >&6; }
6591 else
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6594 fi
6595
6596
6597   test -n "$ac_ct_DUMPBIN" && break
6598 done
6599
6600   if test "x$ac_ct_DUMPBIN" = x; then
6601     DUMPBIN=":"
6602   else
6603     case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609     DUMPBIN=$ac_ct_DUMPBIN
6610   fi
6611 fi
6612
6613     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6614     *COFF*)
6615       DUMPBIN="$DUMPBIN -symbols -headers"
6616       ;;
6617     *)
6618       DUMPBIN=:
6619       ;;
6620     esac
6621   fi
6622
6623   if test : != "$DUMPBIN"; then
6624     NM=$DUMPBIN
6625   fi
6626 fi
6627 test -z "$NM" && NM=nm
6628
6629
6630
6631
6632
6633
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6635 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6636 if ${lt_cv_nm_interface+:} false; then :
6637   $as_echo_n "(cached) " >&6
6638 else
6639   lt_cv_nm_interface="BSD nm"
6640   echo "int some_variable = 0;" > conftest.$ac_ext
6641   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6642   (eval "$ac_compile" 2>conftest.err)
6643   cat conftest.err >&5
6644   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6645   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6646   cat conftest.err >&5
6647   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6648   cat conftest.out >&5
6649   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6650     lt_cv_nm_interface="MS dumpbin"
6651   fi
6652   rm -f conftest*
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6655 $as_echo "$lt_cv_nm_interface" >&6; }
6656
6657 # find the maximum length of command line arguments
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6659 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6660 if ${lt_cv_sys_max_cmd_len+:} false; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663     i=0
6664   teststring=ABCD
6665
6666   case $build_os in
6667   msdosdjgpp*)
6668     # On DJGPP, this test can blow up pretty badly due to problems in libc
6669     # (any single argument exceeding 2000 bytes causes a buffer overrun
6670     # during glob expansion).  Even if it were fixed, the result of this
6671     # check would be larger than it should be.
6672     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6673     ;;
6674
6675   gnu*)
6676     # Under GNU Hurd, this test is not required because there is
6677     # no limit to the length of command line arguments.
6678     # Libtool will interpret -1 as no limit whatsoever
6679     lt_cv_sys_max_cmd_len=-1;
6680     ;;
6681
6682   cygwin* | mingw* | cegcc*)
6683     # On Win9x/ME, this test blows up -- it succeeds, but takes
6684     # about 5 minutes as the teststring grows exponentially.
6685     # Worse, since 9x/ME are not pre-emptively multitasking,
6686     # you end up with a "frozen" computer, even though with patience
6687     # the test eventually succeeds (with a max line length of 256k).
6688     # Instead, let's just punt: use the minimum linelength reported by
6689     # all of the supported platforms: 8192 (on NT/2K/XP).
6690     lt_cv_sys_max_cmd_len=8192;
6691     ;;
6692
6693   mint*)
6694     # On MiNT this can take a long time and run out of memory.
6695     lt_cv_sys_max_cmd_len=8192;
6696     ;;
6697
6698   amigaos*)
6699     # On AmigaOS with pdksh, this test takes hours, literally.
6700     # So we just punt and use a minimum line length of 8192.
6701     lt_cv_sys_max_cmd_len=8192;
6702     ;;
6703
6704   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6705     # This has been around since 386BSD, at least.  Likely further.
6706     if test -x /sbin/sysctl; then
6707       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6708     elif test -x /usr/sbin/sysctl; then
6709       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6710     else
6711       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6712     fi
6713     # And add a safety zone
6714     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6715     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6716     ;;
6717
6718   interix*)
6719     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6720     lt_cv_sys_max_cmd_len=196608
6721     ;;
6722
6723   os2*)
6724     # The test takes a long time on OS/2.
6725     lt_cv_sys_max_cmd_len=8192
6726     ;;
6727
6728   osf*)
6729     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6730     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6731     # nice to cause kernel panics so lets avoid the loop below.
6732     # First set a reasonable default.
6733     lt_cv_sys_max_cmd_len=16384
6734     #
6735     if test -x /sbin/sysconfig; then
6736       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6737         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6738       esac
6739     fi
6740     ;;
6741   sco3.2v5*)
6742     lt_cv_sys_max_cmd_len=102400
6743     ;;
6744   sysv5* | sco5v6* | sysv4.2uw2*)
6745     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6746     if test -n "$kargmax"; then
6747       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6748     else
6749       lt_cv_sys_max_cmd_len=32768
6750     fi
6751     ;;
6752   *)
6753     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6754     if test -n "$lt_cv_sys_max_cmd_len" && \
6755        test undefined != "$lt_cv_sys_max_cmd_len"; then
6756       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6757       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6758     else
6759       # Make teststring a little bigger before we do anything with it.
6760       # a 1K string should be a reasonable start.
6761       for i in 1 2 3 4 5 6 7 8; do
6762         teststring=$teststring$teststring
6763       done
6764       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6765       # If test is not a shell built-in, we'll probably end up computing a
6766       # maximum length that is only half of the actual maximum length, but
6767       # we can't tell.
6768       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6769                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6770               test 17 != "$i" # 1/2 MB should be enough
6771       do
6772         i=`expr $i + 1`
6773         teststring=$teststring$teststring
6774       done
6775       # Only check the string length outside the loop.
6776       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6777       teststring=
6778       # Add a significant safety factor because C++ compilers can tack on
6779       # massive amounts of additional arguments before passing them to the
6780       # linker.  It appears as though 1/2 is a usable value.
6781       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6782     fi
6783     ;;
6784   esac
6785
6786 fi
6787
6788 if test -n "$lt_cv_sys_max_cmd_len"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6790 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6793 $as_echo "none" >&6; }
6794 fi
6795 max_cmd_len=$lt_cv_sys_max_cmd_len
6796
6797
6798
6799
6800
6801
6802 : ${CP="cp -f"}
6803 : ${MV="mv -f"}
6804 : ${RM="rm -f"}
6805
6806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6807   lt_unset=unset
6808 else
6809   lt_unset=false
6810 fi
6811
6812
6813
6814
6815
6816 # test EBCDIC or ASCII
6817 case `echo X|tr X '\101'` in
6818  A) # ASCII based system
6819     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6820   lt_SP2NL='tr \040 \012'
6821   lt_NL2SP='tr \015\012 \040\040'
6822   ;;
6823  *) # EBCDIC based system
6824   lt_SP2NL='tr \100 \n'
6825   lt_NL2SP='tr \r\n \100\100'
6826   ;;
6827 esac
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6838 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6839 if ${lt_cv_to_host_file_cmd+:} false; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   case $host in
6843   *-*-mingw* )
6844     case $build in
6845       *-*-mingw* ) # actually msys
6846         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6847         ;;
6848       *-*-cygwin* )
6849         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6850         ;;
6851       * ) # otherwise, assume *nix
6852         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6853         ;;
6854     esac
6855     ;;
6856   *-*-cygwin* )
6857     case $build in
6858       *-*-mingw* ) # actually msys
6859         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6860         ;;
6861       *-*-cygwin* )
6862         lt_cv_to_host_file_cmd=func_convert_file_noop
6863         ;;
6864       * ) # otherwise, assume *nix
6865         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6866         ;;
6867     esac
6868     ;;
6869   * ) # unhandled hosts (and "normal" native builds)
6870     lt_cv_to_host_file_cmd=func_convert_file_noop
6871     ;;
6872 esac
6873
6874 fi
6875
6876 to_host_file_cmd=$lt_cv_to_host_file_cmd
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6878 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6879
6880
6881
6882
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6885 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6886 if ${lt_cv_to_tool_file_cmd+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   #assume ordinary cross tools, or native build.
6890 lt_cv_to_tool_file_cmd=func_convert_file_noop
6891 case $host in
6892   *-*-mingw* )
6893     case $build in
6894       *-*-mingw* ) # actually msys
6895         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6896         ;;
6897     esac
6898     ;;
6899 esac
6900
6901 fi
6902
6903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6905 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6906
6907
6908
6909
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6912 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6913 if ${lt_cv_ld_reload_flag+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   lt_cv_ld_reload_flag='-r'
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6919 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6920 reload_flag=$lt_cv_ld_reload_flag
6921 case $reload_flag in
6922 "" | " "*) ;;
6923 *) reload_flag=" $reload_flag" ;;
6924 esac
6925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6926 case $host_os in
6927   cygwin* | mingw* | pw32* | cegcc*)
6928     if test yes != "$GCC"; then
6929       reload_cmds=false
6930     fi
6931     ;;
6932   darwin*)
6933     if test yes = "$GCC"; then
6934       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6935     else
6936       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6937     fi
6938     ;;
6939 esac
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949 if test -n "$ac_tool_prefix"; then
6950   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_OBJDUMP+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -n "$OBJDUMP"; then
6958   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 OBJDUMP=$ac_cv_prog_OBJDUMP
6978 if test -n "$OBJDUMP"; then
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6980 $as_echo "$OBJDUMP" >&6; }
6981 else
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_OBJDUMP"; then
6989   ac_ct_OBJDUMP=$OBJDUMP
6990   # Extract the first word of "objdump", so it can be a program name with args.
6991 set dummy objdump; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$ac_ct_OBJDUMP"; then
6998   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7018 if test -n "$ac_ct_OBJDUMP"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7020 $as_echo "$ac_ct_OBJDUMP" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026   if test "x$ac_ct_OBJDUMP" = x; then
7027     OBJDUMP="false"
7028   else
7029     case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035     OBJDUMP=$ac_ct_OBJDUMP
7036   fi
7037 else
7038   OBJDUMP="$ac_cv_prog_OBJDUMP"
7039 fi
7040
7041 test -z "$OBJDUMP" && OBJDUMP=objdump
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7052 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7053 if ${lt_cv_deplibs_check_method+:} false; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   lt_cv_file_magic_cmd='$MAGIC_CMD'
7057 lt_cv_file_magic_test_file=
7058 lt_cv_deplibs_check_method='unknown'
7059 # Need to set the preceding variable on all platforms that support
7060 # interlibrary dependencies.
7061 # 'none' -- dependencies not supported.
7062 # 'unknown' -- same as none, but documents that we really don't know.
7063 # 'pass_all' -- all dependencies passed with no checks.
7064 # 'test_compile' -- check by making test program.
7065 # 'file_magic [[regex]]' -- check by looking for files in library path
7066 # that responds to the $file_magic_cmd with a given extended regex.
7067 # If you have 'file' or equivalent on your system and you're not sure
7068 # whether 'pass_all' will *always* work, you probably want this one.
7069
7070 case $host_os in
7071 aix[4-9]*)
7072   lt_cv_deplibs_check_method=pass_all
7073   ;;
7074
7075 beos*)
7076   lt_cv_deplibs_check_method=pass_all
7077   ;;
7078
7079 bsdi[45]*)
7080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7081   lt_cv_file_magic_cmd='/usr/bin/file -L'
7082   lt_cv_file_magic_test_file=/shlib/libc.so
7083   ;;
7084
7085 cygwin*)
7086   # func_win32_libid is a shell function defined in ltmain.sh
7087   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7088   lt_cv_file_magic_cmd='func_win32_libid'
7089   ;;
7090
7091 mingw* | pw32*)
7092   # Base MSYS/MinGW do not provide the 'file' command needed by
7093   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7094   # unless we find 'file', for example because we are cross-compiling.
7095   if ( file / ) >/dev/null 2>&1; then
7096     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7097     lt_cv_file_magic_cmd='func_win32_libid'
7098   else
7099     # Keep this pattern in sync with the one in func_win32_libid.
7100     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7101     lt_cv_file_magic_cmd='$OBJDUMP -f'
7102   fi
7103   ;;
7104
7105 cegcc*)
7106   # use the weaker test based on 'objdump'. See mingw*.
7107   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7108   lt_cv_file_magic_cmd='$OBJDUMP -f'
7109   ;;
7110
7111 darwin* | rhapsody*)
7112   lt_cv_deplibs_check_method=pass_all
7113   ;;
7114
7115 freebsd* | dragonfly*)
7116   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7117     case $host_cpu in
7118     i*86 )
7119       # Not sure whether the presence of OpenBSD here was a mistake.
7120       # Let's accept both of them until this is cleared up.
7121       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7122       lt_cv_file_magic_cmd=/usr/bin/file
7123       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7124       ;;
7125     esac
7126   else
7127     lt_cv_deplibs_check_method=pass_all
7128   fi
7129   ;;
7130
7131 haiku*)
7132   lt_cv_deplibs_check_method=pass_all
7133   ;;
7134
7135 hpux10.20* | hpux11*)
7136   lt_cv_file_magic_cmd=/usr/bin/file
7137   case $host_cpu in
7138   ia64*)
7139     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7140     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7141     ;;
7142   hppa*64*)
7143     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]'
7144     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7145     ;;
7146   *)
7147     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7148     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7149     ;;
7150   esac
7151   ;;
7152
7153 interix[3-9]*)
7154   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7155   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7156   ;;
7157
7158 irix5* | irix6* | nonstopux*)
7159   case $LD in
7160   *-32|*"-32 ") libmagic=32-bit;;
7161   *-n32|*"-n32 ") libmagic=N32;;
7162   *-64|*"-64 ") libmagic=64-bit;;
7163   *) libmagic=never-match;;
7164   esac
7165   lt_cv_deplibs_check_method=pass_all
7166   ;;
7167
7168 # This must be glibc/ELF.
7169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7170   lt_cv_deplibs_check_method=pass_all
7171   ;;
7172
7173 netbsd* | netbsdelf*-gnu)
7174   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7176   else
7177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7178   fi
7179   ;;
7180
7181 newos6*)
7182   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7183   lt_cv_file_magic_cmd=/usr/bin/file
7184   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7185   ;;
7186
7187 *nto* | *qnx*)
7188   lt_cv_deplibs_check_method=pass_all
7189   ;;
7190
7191 openbsd* | bitrig*)
7192   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7194   else
7195     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7196   fi
7197   ;;
7198
7199 osf3* | osf4* | osf5*)
7200   lt_cv_deplibs_check_method=pass_all
7201   ;;
7202
7203 rdos*)
7204   lt_cv_deplibs_check_method=pass_all
7205   ;;
7206
7207 solaris*)
7208   lt_cv_deplibs_check_method=pass_all
7209   ;;
7210
7211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7212   lt_cv_deplibs_check_method=pass_all
7213   ;;
7214
7215 sysv4 | sysv4.3*)
7216   case $host_vendor in
7217   motorola)
7218     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]'
7219     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7220     ;;
7221   ncr)
7222     lt_cv_deplibs_check_method=pass_all
7223     ;;
7224   sequent)
7225     lt_cv_file_magic_cmd='/bin/file'
7226     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7227     ;;
7228   sni)
7229     lt_cv_file_magic_cmd='/bin/file'
7230     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7231     lt_cv_file_magic_test_file=/lib/libc.so
7232     ;;
7233   siemens)
7234     lt_cv_deplibs_check_method=pass_all
7235     ;;
7236   pc)
7237     lt_cv_deplibs_check_method=pass_all
7238     ;;
7239   esac
7240   ;;
7241
7242 tpf*)
7243   lt_cv_deplibs_check_method=pass_all
7244   ;;
7245 os2*)
7246   lt_cv_deplibs_check_method=pass_all
7247   ;;
7248 esac
7249
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7252 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7253
7254 file_magic_glob=
7255 want_nocaseglob=no
7256 if test "$build" = "$host"; then
7257   case $host_os in
7258   mingw* | pw32*)
7259     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7260       want_nocaseglob=yes
7261     else
7262       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7263     fi
7264     ;;
7265   esac
7266 fi
7267
7268 file_magic_cmd=$lt_cv_file_magic_cmd
7269 deplibs_check_method=$lt_cv_deplibs_check_method
7270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_DLLTOOL+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$DLLTOOL"; then
7302   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 DLLTOOL=$ac_cv_prog_DLLTOOL
7322 if test -n "$DLLTOOL"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7324 $as_echo "$DLLTOOL" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_DLLTOOL"; then
7333   ac_ct_DLLTOOL=$DLLTOOL
7334   # Extract the first word of "dlltool", so it can be a program name with args.
7335 set dummy dlltool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_DLLTOOL"; then
7342   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7362 if test -n "$ac_ct_DLLTOOL"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 $as_echo "$ac_ct_DLLTOOL" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_DLLTOOL" = x; then
7371     DLLTOOL="false"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     DLLTOOL=$ac_ct_DLLTOOL
7380   fi
7381 else
7382   DLLTOOL="$ac_cv_prog_DLLTOOL"
7383 fi
7384
7385 test -z "$DLLTOOL" && DLLTOOL=dlltool
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7397 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7398 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   lt_cv_sharedlib_from_linklib_cmd='unknown'
7402
7403 case $host_os in
7404 cygwin* | mingw* | pw32* | cegcc*)
7405   # two different shell functions defined in ltmain.sh;
7406   # decide which one to use based on capabilities of $DLLTOOL
7407   case `$DLLTOOL --help 2>&1` in
7408   *--identify-strict*)
7409     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7410     ;;
7411   *)
7412     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7413     ;;
7414   esac
7415   ;;
7416 *)
7417   # fallback: assume linklib IS sharedlib
7418   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7419   ;;
7420 esac
7421
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7424 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7425 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7426 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7427
7428
7429
7430
7431
7432
7433
7434 if test -n "$ac_tool_prefix"; then
7435   for ac_prog in ar
7436   do
7437     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_AR+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   if test -n "$AR"; then
7445   ac_cv_prog_AR="$AR" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452     for ac_exec_ext in '' $ac_executable_extensions; do
7453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459   done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 AR=$ac_cv_prog_AR
7465 if test -n "$AR"; then
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7467 $as_echo "$AR" >&6; }
7468 else
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474     test -n "$AR" && break
7475   done
7476 fi
7477 if test -z "$AR"; then
7478   ac_ct_AR=$AR
7479   for ac_prog in ar
7480 do
7481   # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488   if test -n "$ac_ct_AR"; then
7489   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496     for ac_exec_ext in '' $ac_executable_extensions; do
7497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_prog_ac_ct_AR="$ac_prog"
7499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503   done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7509 if test -n "$ac_ct_AR"; then
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7511 $as_echo "$ac_ct_AR" >&6; }
7512 else
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518   test -n "$ac_ct_AR" && break
7519 done
7520
7521   if test "x$ac_ct_AR" = x; then
7522     AR="false"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     AR=$ac_ct_AR
7531   fi
7532 fi
7533
7534 : ${AR=ar}
7535 : ${AR_FLAGS=cru}
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7548 $as_echo_n "checking for archiver @FILE support... " >&6; }
7549 if ${lt_cv_ar_at_file+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   lt_cv_ar_at_file=no
7553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 int
7557 main ()
7558 {
7559
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565   echo conftest.$ac_objext > conftest.lst
7566       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7567       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7568   (eval $lt_ar_try) 2>&5
7569   ac_status=$?
7570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571   test $ac_status = 0; }
7572       if test 0 -eq "$ac_status"; then
7573         # Ensure the archiver fails upon bogus file names.
7574         rm -f conftest.$ac_objext libconftest.a
7575         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7576   (eval $lt_ar_try) 2>&5
7577   ac_status=$?
7578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579   test $ac_status = 0; }
7580         if test 0 -ne "$ac_status"; then
7581           lt_cv_ar_at_file=@
7582         fi
7583       fi
7584       rm -f conftest.* libconftest.a
7585
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7591 $as_echo "$lt_cv_ar_at_file" >&6; }
7592
7593 if test no = "$lt_cv_ar_at_file"; then
7594   archiver_list_spec=
7595 else
7596   archiver_list_spec=$lt_cv_ar_at_file
7597 fi
7598
7599
7600
7601
7602
7603
7604
7605 if test -n "$ac_tool_prefix"; then
7606   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}strip; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_STRIP+:} false; then :
7611   $as_echo_n "(cached) " >&6
7612 else
7613   if test -n "$STRIP"; then
7614   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619   IFS=$as_save_IFS
7620   test -z "$as_dir" && as_dir=.
7621     for ac_exec_ext in '' $ac_executable_extensions; do
7622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625     break 2
7626   fi
7627 done
7628   done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 STRIP=$ac_cv_prog_STRIP
7634 if test -n "$STRIP"; then
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7636 $as_echo "$STRIP" >&6; }
7637 else
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 fi
7644 if test -z "$ac_cv_prog_STRIP"; then
7645   ac_ct_STRIP=$STRIP
7646   # Extract the first word of "strip", so it can be a program name with args.
7647 set dummy strip; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7651   $as_echo_n "(cached) " >&6
7652 else
7653   if test -n "$ac_ct_STRIP"; then
7654   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661     for ac_exec_ext in '' $ac_executable_extensions; do
7662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663     ac_cv_prog_ac_ct_STRIP="strip"
7664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665     break 2
7666   fi
7667 done
7668   done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7674 if test -n "$ac_ct_STRIP"; then
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7676 $as_echo "$ac_ct_STRIP" >&6; }
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682   if test "x$ac_ct_STRIP" = x; then
7683     STRIP=":"
7684   else
7685     case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691     STRIP=$ac_ct_STRIP
7692   fi
7693 else
7694   STRIP="$ac_cv_prog_STRIP"
7695 fi
7696
7697 test -z "$STRIP" && STRIP=:
7698
7699
7700
7701
7702
7703
7704 if test -n "$ac_tool_prefix"; then
7705   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_RANLIB+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$RANLIB"; then
7713   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 RANLIB=$ac_cv_prog_RANLIB
7733 if test -n "$RANLIB"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7735 $as_echo "$RANLIB" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_RANLIB"; then
7744   ac_ct_RANLIB=$RANLIB
7745   # Extract the first word of "ranlib", so it can be a program name with args.
7746 set dummy ranlib; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   if test -n "$ac_ct_RANLIB"; then
7753   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758   IFS=$as_save_IFS
7759   test -z "$as_dir" && as_dir=.
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762     ac_cv_prog_ac_ct_RANLIB="ranlib"
7763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764     break 2
7765   fi
7766 done
7767   done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7773 if test -n "$ac_ct_RANLIB"; then
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7775 $as_echo "$ac_ct_RANLIB" >&6; }
7776 else
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781   if test "x$ac_ct_RANLIB" = x; then
7782     RANLIB=":"
7783   else
7784     case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790     RANLIB=$ac_ct_RANLIB
7791   fi
7792 else
7793   RANLIB="$ac_cv_prog_RANLIB"
7794 fi
7795
7796 test -z "$RANLIB" && RANLIB=:
7797
7798
7799
7800
7801
7802
7803 # Determine commands to create old-style static archives.
7804 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7805 old_postinstall_cmds='chmod 644 $oldlib'
7806 old_postuninstall_cmds=
7807
7808 if test -n "$RANLIB"; then
7809   case $host_os in
7810   bitrig* | openbsd*)
7811     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7812     ;;
7813   *)
7814     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7815     ;;
7816   esac
7817   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7818 fi
7819
7820 case $host_os in
7821   darwin*)
7822     lock_old_archive_extraction=yes ;;
7823   *)
7824     lock_old_archive_extraction=no ;;
7825 esac
7826
7827
7828
7829
7830
7831
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 # If no C compiler was specified, use CC.
7866 LTCC=${LTCC-"$CC"}
7867
7868 # If no C compiler flags were specified, use CFLAGS.
7869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870
7871 # Allow CC to be a program name with arguments.
7872 compiler=$CC
7873
7874
7875 # Check for command to grab the raw symbol name followed by C symbol from nm.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7877 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7878 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881
7882 # These are sane defaults that work on at least a few old systems.
7883 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7884
7885 # Character class describing NM global symbol codes.
7886 symcode='[BCDEGRST]'
7887
7888 # Regexp to match symbols that can be accessed directly from C.
7889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7890
7891 # Define system-specific variables.
7892 case $host_os in
7893 aix*)
7894   symcode='[BCDT]'
7895   ;;
7896 cygwin* | mingw* | pw32* | cegcc*)
7897   symcode='[ABCDGISTW]'
7898   ;;
7899 hpux*)
7900   if test ia64 = "$host_cpu"; then
7901     symcode='[ABCDEGRST]'
7902   fi
7903   ;;
7904 irix* | nonstopux*)
7905   symcode='[BCDEGRST]'
7906   ;;
7907 osf*)
7908   symcode='[BCDEGQRST]'
7909   ;;
7910 solaris*)
7911   symcode='[BDRT]'
7912   ;;
7913 sco3.2v5*)
7914   symcode='[DT]'
7915   ;;
7916 sysv4.2uw2*)
7917   symcode='[DT]'
7918   ;;
7919 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7920   symcode='[ABDT]'
7921   ;;
7922 sysv4)
7923   symcode='[DFNSTU]'
7924   ;;
7925 esac
7926
7927 # If we're using GNU nm, then use its standard symbol codes.
7928 case `$NM -V 2>&1` in
7929 *GNU* | *'with BFD'*)
7930   symcode='[ABCDGIRSTW]' ;;
7931 esac
7932
7933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7934   # Gets list of data symbols to import.
7935   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7936   # Adjust the below global symbol transforms to fixup imported variables.
7937   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7938   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7939   lt_c_name_lib_hook="\
7940   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7941   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7942 else
7943   # Disable hooks by default.
7944   lt_cv_sys_global_symbol_to_import=
7945   lt_cdecl_hook=
7946   lt_c_name_hook=
7947   lt_c_name_lib_hook=
7948 fi
7949
7950 # Transform an extracted symbol line into a proper C declaration.
7951 # Some systems (esp. on ia64) link data and code symbols differently,
7952 # so use this general approach.
7953 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7954 $lt_cdecl_hook\
7955 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7956 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7957
7958 # Transform an extracted symbol line into symbol name and symbol address
7959 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7960 $lt_c_name_hook\
7961 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7962 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7963
7964 # Transform an extracted symbol line into symbol name with lib prefix and
7965 # symbol address.
7966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7967 $lt_c_name_lib_hook\
7968 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7969 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7970 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7971
7972 # Handle CRLF in mingw tool chain
7973 opt_cr=
7974 case $build_os in
7975 mingw*)
7976   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7977   ;;
7978 esac
7979
7980 # Try without a prefix underscore, then with it.
7981 for ac_symprfx in "" "_"; do
7982
7983   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7984   symxfrm="\\1 $ac_symprfx\\2 \\2"
7985
7986   # Write the raw and C identifiers.
7987   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7988     # Fake it for dumpbin and say T for any non-static function,
7989     # D for any global variable and I for any imported variable.
7990     # Also find C++ and __fastcall symbols from MSVC++,
7991     # which start with @ or ?.
7992     lt_cv_sys_global_symbol_pipe="$AWK '"\
7993 "     {last_section=section; section=\$ 3};"\
7994 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7995 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7996 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7997 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7998 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7999 "     \$ 0!~/External *\|/{next};"\
8000 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8001 "     {if(hide[section]) next};"\
8002 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8003 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8004 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8005 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8006 "     ' prfx=^$ac_symprfx"
8007   else
8008     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8009   fi
8010   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8011
8012   # Check to see that the pipe works correctly.
8013   pipe_works=no
8014
8015   rm -f conftest*
8016   cat > conftest.$ac_ext <<_LT_EOF
8017 #ifdef __cplusplus
8018 extern "C" {
8019 #endif
8020 char nm_test_var;
8021 void nm_test_func(void);
8022 void nm_test_func(void){}
8023 #ifdef __cplusplus
8024 }
8025 #endif
8026 int main(){nm_test_var='a';nm_test_func();return(0);}
8027 _LT_EOF
8028
8029   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8030   (eval $ac_compile) 2>&5
8031   ac_status=$?
8032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033   test $ac_status = 0; }; then
8034     # Now try to grab the symbols.
8035     nlist=conftest.nm
8036     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8037   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8038   ac_status=$?
8039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040   test $ac_status = 0; } && test -s "$nlist"; then
8041       # Try sorting and uniquifying the output.
8042       if sort "$nlist" | uniq > "$nlist"T; then
8043         mv -f "$nlist"T "$nlist"
8044       else
8045         rm -f "$nlist"T
8046       fi
8047
8048       # Make sure that we snagged all the symbols we need.
8049       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8050         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8051           cat <<_LT_EOF > conftest.$ac_ext
8052 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8053 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8054 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8055    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8056 # define LT_DLSYM_CONST
8057 #elif defined __osf__
8058 /* This system does not cope well with relocations in const data.  */
8059 # define LT_DLSYM_CONST
8060 #else
8061 # define LT_DLSYM_CONST const
8062 #endif
8063
8064 #ifdef __cplusplus
8065 extern "C" {
8066 #endif
8067
8068 _LT_EOF
8069           # Now generate the symbol file.
8070           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8071
8072           cat <<_LT_EOF >> conftest.$ac_ext
8073
8074 /* The mapping between symbol names and symbols.  */
8075 LT_DLSYM_CONST struct {
8076   const char *name;
8077   void       *address;
8078 }
8079 lt__PROGRAM__LTX_preloaded_symbols[] =
8080 {
8081   { "@PROGRAM@", (void *) 0 },
8082 _LT_EOF
8083           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8084           cat <<\_LT_EOF >> conftest.$ac_ext
8085   {0, (void *) 0}
8086 };
8087
8088 /* This works around a problem in FreeBSD linker */
8089 #ifdef FREEBSD_WORKAROUND
8090 static const void *lt_preloaded_setup() {
8091   return lt__PROGRAM__LTX_preloaded_symbols;
8092 }
8093 #endif
8094
8095 #ifdef __cplusplus
8096 }
8097 #endif
8098 _LT_EOF
8099           # Now try linking the two files.
8100           mv conftest.$ac_objext conftstm.$ac_objext
8101           lt_globsym_save_LIBS=$LIBS
8102           lt_globsym_save_CFLAGS=$CFLAGS
8103           LIBS=conftstm.$ac_objext
8104           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8105           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8106   (eval $ac_link) 2>&5
8107   ac_status=$?
8108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8110             pipe_works=yes
8111           fi
8112           LIBS=$lt_globsym_save_LIBS
8113           CFLAGS=$lt_globsym_save_CFLAGS
8114         else
8115           echo "cannot find nm_test_func in $nlist" >&5
8116         fi
8117       else
8118         echo "cannot find nm_test_var in $nlist" >&5
8119       fi
8120     else
8121       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8122     fi
8123   else
8124     echo "$progname: failed program was:" >&5
8125     cat conftest.$ac_ext >&5
8126   fi
8127   rm -rf conftest* conftst*
8128
8129   # Do not use the global_symbol_pipe unless it works.
8130   if test yes = "$pipe_works"; then
8131     break
8132   else
8133     lt_cv_sys_global_symbol_pipe=
8134   fi
8135 done
8136
8137 fi
8138
8139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8140   lt_cv_sys_global_symbol_to_cdecl=
8141 fi
8142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8144 $as_echo "failed" >&6; }
8145 else
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8147 $as_echo "ok" >&6; }
8148 fi
8149
8150 # Response file support.
8151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8152   nm_file_list_spec='@'
8153 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8154   nm_file_list_spec='@'
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8194 $as_echo_n "checking for sysroot... " >&6; }
8195
8196 # Check whether --with-sysroot was given.
8197 if test "${with_sysroot+set}" = set; then :
8198   withval=$with_sysroot;
8199 else
8200   with_sysroot=no
8201 fi
8202
8203
8204 lt_sysroot=
8205 case $with_sysroot in #(
8206  yes)
8207    if test yes = "$GCC"; then
8208      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8209    fi
8210    ;; #(
8211  /*)
8212    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8213    ;; #(
8214  no|'')
8215    ;; #(
8216  *)
8217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8218 $as_echo "$with_sysroot" >&6; }
8219    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8220    ;;
8221 esac
8222
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8224 $as_echo "${lt_sysroot:-no}" >&6; }
8225
8226
8227
8228
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8231 $as_echo_n "checking for a working dd... " >&6; }
8232 if ${ac_cv_path_lt_DD+:} false; then :
8233   $as_echo_n "(cached) " >&6
8234 else
8235   printf 0123456789abcdef0123456789abcdef >conftest.i
8236 cat conftest.i conftest.i >conftest2.i
8237 : ${lt_DD:=$DD}
8238 if test -z "$lt_DD"; then
8239   ac_path_lt_DD_found=false
8240   # Loop through the user's path and test for each of PROGNAME-LIST
8241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244   IFS=$as_save_IFS
8245   test -z "$as_dir" && as_dir=.
8246     for ac_prog in dd; do
8247     for ac_exec_ext in '' $ac_executable_extensions; do
8248       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8249       as_fn_executable_p "$ac_path_lt_DD" || continue
8250 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8251   cmp -s conftest.i conftest.out \
8252   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8253 fi
8254       $ac_path_lt_DD_found && break 3
8255     done
8256   done
8257   done
8258 IFS=$as_save_IFS
8259   if test -z "$ac_cv_path_lt_DD"; then
8260     :
8261   fi
8262 else
8263   ac_cv_path_lt_DD=$lt_DD
8264 fi
8265
8266 rm -f conftest.i conftest2.i conftest.out
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8269 $as_echo "$ac_cv_path_lt_DD" >&6; }
8270
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8273 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8274 if ${lt_cv_truncate_bin+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   printf 0123456789abcdef0123456789abcdef >conftest.i
8278 cat conftest.i conftest.i >conftest2.i
8279 lt_cv_truncate_bin=
8280 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8281   cmp -s conftest.i conftest.out \
8282   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8283 fi
8284 rm -f conftest.i conftest2.i conftest.out
8285 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8288 $as_echo "$lt_cv_truncate_bin" >&6; }
8289
8290
8291
8292
8293
8294
8295
8296 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8297 func_cc_basename ()
8298 {
8299     for cc_temp in $*""; do
8300       case $cc_temp in
8301         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8302         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8303         \-*) ;;
8304         *) break;;
8305       esac
8306     done
8307     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8308 }
8309
8310 # Check whether --enable-libtool-lock was given.
8311 if test "${enable_libtool_lock+set}" = set; then :
8312   enableval=$enable_libtool_lock;
8313 fi
8314
8315 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8316
8317 # Some flags need to be propagated to the compiler or linker for good
8318 # libtool support.
8319 case $host in
8320 ia64-*-hpux*)
8321   # Find out what ABI is being produced by ac_compile, and set mode
8322   # options accordingly.
8323   echo 'int i;' > conftest.$ac_ext
8324   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8325   (eval $ac_compile) 2>&5
8326   ac_status=$?
8327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328   test $ac_status = 0; }; then
8329     case `/usr/bin/file conftest.$ac_objext` in
8330       *ELF-32*)
8331         HPUX_IA64_MODE=32
8332         ;;
8333       *ELF-64*)
8334         HPUX_IA64_MODE=64
8335         ;;
8336     esac
8337   fi
8338   rm -rf conftest*
8339   ;;
8340 *-*-irix6*)
8341   # Find out what ABI is being produced by ac_compile, and set linker
8342   # options accordingly.
8343   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8344   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8345   (eval $ac_compile) 2>&5
8346   ac_status=$?
8347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348   test $ac_status = 0; }; then
8349     if test yes = "$lt_cv_prog_gnu_ld"; then
8350       case `/usr/bin/file conftest.$ac_objext` in
8351         *32-bit*)
8352           LD="${LD-ld} -melf32bsmip"
8353           ;;
8354         *N32*)
8355           LD="${LD-ld} -melf32bmipn32"
8356           ;;
8357         *64-bit*)
8358           LD="${LD-ld} -melf64bmip"
8359         ;;
8360       esac
8361     else
8362       case `/usr/bin/file conftest.$ac_objext` in
8363         *32-bit*)
8364           LD="${LD-ld} -32"
8365           ;;
8366         *N32*)
8367           LD="${LD-ld} -n32"
8368           ;;
8369         *64-bit*)
8370           LD="${LD-ld} -64"
8371           ;;
8372       esac
8373     fi
8374   fi
8375   rm -rf conftest*
8376   ;;
8377
8378 mips64*-*linux*)
8379   # Find out what ABI is being produced by ac_compile, and set linker
8380   # options accordingly.
8381   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8382   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383   (eval $ac_compile) 2>&5
8384   ac_status=$?
8385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386   test $ac_status = 0; }; then
8387     emul=elf
8388     case `/usr/bin/file conftest.$ac_objext` in
8389       *32-bit*)
8390         emul="${emul}32"
8391         ;;
8392       *64-bit*)
8393         emul="${emul}64"
8394         ;;
8395     esac
8396     case `/usr/bin/file conftest.$ac_objext` in
8397       *MSB*)
8398         emul="${emul}btsmip"
8399         ;;
8400       *LSB*)
8401         emul="${emul}ltsmip"
8402         ;;
8403     esac
8404     case `/usr/bin/file conftest.$ac_objext` in
8405       *N32*)
8406         emul="${emul}n32"
8407         ;;
8408     esac
8409     LD="${LD-ld} -m $emul"
8410   fi
8411   rm -rf conftest*
8412   ;;
8413
8414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8416   # Find out what ABI is being produced by ac_compile, and set linker
8417   # options accordingly.  Note that the listed cases only cover the
8418   # situations where additional linker options are needed (such as when
8419   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8420   # vice versa); the common cases where no linker options are needed do
8421   # not appear in the list.
8422   echo 'int i;' > conftest.$ac_ext
8423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8424   (eval $ac_compile) 2>&5
8425   ac_status=$?
8426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427   test $ac_status = 0; }; then
8428     case `/usr/bin/file conftest.o` in
8429       *32-bit*)
8430         case $host in
8431           x86_64-*kfreebsd*-gnu)
8432             LD="${LD-ld} -m elf_i386_fbsd"
8433             ;;
8434           x86_64-*linux*)
8435             case `/usr/bin/file conftest.o` in
8436               *x86-64*)
8437                 LD="${LD-ld} -m elf32_x86_64"
8438                 ;;
8439               *)
8440                 LD="${LD-ld} -m elf_i386"
8441                 ;;
8442             esac
8443             ;;
8444           powerpc64le-*linux*)
8445             LD="${LD-ld} -m elf32lppclinux"
8446             ;;
8447           powerpc64-*linux*)
8448             LD="${LD-ld} -m elf32ppclinux"
8449             ;;
8450           s390x-*linux*)
8451             LD="${LD-ld} -m elf_s390"
8452             ;;
8453           sparc64-*linux*)
8454             LD="${LD-ld} -m elf32_sparc"
8455             ;;
8456         esac
8457         ;;
8458       *64-bit*)
8459         case $host in
8460           x86_64-*kfreebsd*-gnu)
8461             LD="${LD-ld} -m elf_x86_64_fbsd"
8462             ;;
8463           x86_64-*linux*)
8464             LD="${LD-ld} -m elf_x86_64"
8465             ;;
8466           powerpcle-*linux*)
8467             LD="${LD-ld} -m elf64lppc"
8468             ;;
8469           powerpc-*linux*)
8470             LD="${LD-ld} -m elf64ppc"
8471             ;;
8472           s390*-*linux*|s390*-*tpf*)
8473             LD="${LD-ld} -m elf64_s390"
8474             ;;
8475           sparc*-*linux*)
8476             LD="${LD-ld} -m elf64_sparc"
8477             ;;
8478         esac
8479         ;;
8480     esac
8481   fi
8482   rm -rf conftest*
8483   ;;
8484
8485 *-*-sco3.2v5*)
8486   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8487   SAVE_CFLAGS=$CFLAGS
8488   CFLAGS="$CFLAGS -belf"
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8490 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8491 if ${lt_cv_cc_needs_belf+:} false; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   ac_ext=c
8495 ac_cpp='$CPP $CPPFLAGS'
8496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502
8503 int
8504 main ()
8505 {
8506
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512   lt_cv_cc_needs_belf=yes
8513 else
8514   lt_cv_cc_needs_belf=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517     conftest$ac_exeext conftest.$ac_ext
8518      ac_ext=c
8519 ac_cpp='$CPP $CPPFLAGS'
8520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8526 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8527   if test yes != "$lt_cv_cc_needs_belf"; then
8528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8529     CFLAGS=$SAVE_CFLAGS
8530   fi
8531   ;;
8532 *-*solaris*)
8533   # Find out what ABI is being produced by ac_compile, and set linker
8534   # options accordingly.
8535   echo 'int i;' > conftest.$ac_ext
8536   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8537   (eval $ac_compile) 2>&5
8538   ac_status=$?
8539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8540   test $ac_status = 0; }; then
8541     case `/usr/bin/file conftest.o` in
8542     *64-bit*)
8543       case $lt_cv_prog_gnu_ld in
8544       yes*)
8545         case $host in
8546         i?86-*-solaris*|x86_64-*-solaris*)
8547           LD="${LD-ld} -m elf_x86_64"
8548           ;;
8549         sparc*-*-solaris*)
8550           LD="${LD-ld} -m elf64_sparc"
8551           ;;
8552         esac
8553         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8554         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8555           LD=${LD-ld}_sol2
8556         fi
8557         ;;
8558       *)
8559         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8560           LD="${LD-ld} -64"
8561         fi
8562         ;;
8563       esac
8564       ;;
8565     esac
8566   fi
8567   rm -rf conftest*
8568   ;;
8569 esac
8570
8571 need_locks=$enable_libtool_lock
8572
8573 if test -n "$ac_tool_prefix"; then
8574   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8575 set dummy ${ac_tool_prefix}mt; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   if test -n "$MANIFEST_TOOL"; then
8582   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587   IFS=$as_save_IFS
8588   test -z "$as_dir" && as_dir=.
8589     for ac_exec_ext in '' $ac_executable_extensions; do
8590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593     break 2
8594   fi
8595 done
8596   done
8597 IFS=$as_save_IFS
8598
8599 fi
8600 fi
8601 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8602 if test -n "$MANIFEST_TOOL"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8604 $as_echo "$MANIFEST_TOOL" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611 fi
8612 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8613   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8614   # Extract the first word of "mt", so it can be a program name with args.
8615 set dummy mt; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   if test -n "$ac_ct_MANIFEST_TOOL"; then
8622   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8642 if test -n "$ac_ct_MANIFEST_TOOL"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8644 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8651     MANIFEST_TOOL=":"
8652   else
8653     case $cross_compiling:$ac_tool_warned in
8654 yes:)
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8657 ac_tool_warned=yes ;;
8658 esac
8659     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8660   fi
8661 else
8662   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8663 fi
8664
8665 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8667 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8668 if ${lt_cv_path_mainfest_tool+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   lt_cv_path_mainfest_tool=no
8672   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8673   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8674   cat conftest.err >&5
8675   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8676     lt_cv_path_mainfest_tool=yes
8677   fi
8678   rm -f conftest*
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8681 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8682 if test yes != "$lt_cv_path_mainfest_tool"; then
8683   MANIFEST_TOOL=:
8684 fi
8685
8686
8687
8688
8689
8690
8691   case $host_os in
8692     rhapsody* | darwin*)
8693     if test -n "$ac_tool_prefix"; then
8694   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   if test -n "$DSYMUTIL"; then
8702   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707   IFS=$as_save_IFS
8708   test -z "$as_dir" && as_dir=.
8709     for ac_exec_ext in '' $ac_executable_extensions; do
8710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713     break 2
8714   fi
8715 done
8716   done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8722 if test -n "$DSYMUTIL"; then
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8724 $as_echo "$DSYMUTIL" >&6; }
8725 else
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730
8731 fi
8732 if test -z "$ac_cv_prog_DSYMUTIL"; then
8733   ac_ct_DSYMUTIL=$DSYMUTIL
8734   # Extract the first word of "dsymutil", so it can be a program name with args.
8735 set dummy dsymutil; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   if test -n "$ac_ct_DSYMUTIL"; then
8742   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747   IFS=$as_save_IFS
8748   test -z "$as_dir" && as_dir=.
8749     for ac_exec_ext in '' $ac_executable_extensions; do
8750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756   done
8757 IFS=$as_save_IFS
8758
8759 fi
8760 fi
8761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8762 if test -n "$ac_ct_DSYMUTIL"; then
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8765 else
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769
8770   if test "x$ac_ct_DSYMUTIL" = x; then
8771     DSYMUTIL=":"
8772   else
8773     case $cross_compiling:$ac_tool_warned in
8774 yes:)
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777 ac_tool_warned=yes ;;
8778 esac
8779     DSYMUTIL=$ac_ct_DSYMUTIL
8780   fi
8781 else
8782   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8783 fi
8784
8785     if test -n "$ac_tool_prefix"; then
8786   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_NMEDIT+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   if test -n "$NMEDIT"; then
8794   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799   IFS=$as_save_IFS
8800   test -z "$as_dir" && as_dir=.
8801     for ac_exec_ext in '' $ac_executable_extensions; do
8802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805     break 2
8806   fi
8807 done
8808   done
8809 IFS=$as_save_IFS
8810
8811 fi
8812 fi
8813 NMEDIT=$ac_cv_prog_NMEDIT
8814 if test -n "$NMEDIT"; then
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8816 $as_echo "$NMEDIT" >&6; }
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 fi
8821
8822
8823 fi
8824 if test -z "$ac_cv_prog_NMEDIT"; then
8825   ac_ct_NMEDIT=$NMEDIT
8826   # Extract the first word of "nmedit", so it can be a program name with args.
8827 set dummy nmedit; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8831   $as_echo_n "(cached) " >&6
8832 else
8833   if test -n "$ac_ct_NMEDIT"; then
8834   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839   IFS=$as_save_IFS
8840   test -z "$as_dir" && as_dir=.
8841     for ac_exec_ext in '' $ac_executable_extensions; do
8842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845     break 2
8846   fi
8847 done
8848   done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8854 if test -n "$ac_ct_NMEDIT"; then
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8856 $as_echo "$ac_ct_NMEDIT" >&6; }
8857 else
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862   if test "x$ac_ct_NMEDIT" = x; then
8863     NMEDIT=":"
8864   else
8865     case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8870 esac
8871     NMEDIT=$ac_ct_NMEDIT
8872   fi
8873 else
8874   NMEDIT="$ac_cv_prog_NMEDIT"
8875 fi
8876
8877     if test -n "$ac_tool_prefix"; then
8878   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_LIPO+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   if test -n "$LIPO"; then
8886   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891   IFS=$as_save_IFS
8892   test -z "$as_dir" && as_dir=.
8893     for ac_exec_ext in '' $ac_executable_extensions; do
8894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897     break 2
8898   fi
8899 done
8900   done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 LIPO=$ac_cv_prog_LIPO
8906 if test -n "$LIPO"; then
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8908 $as_echo "$LIPO" >&6; }
8909 else
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915 fi
8916 if test -z "$ac_cv_prog_LIPO"; then
8917   ac_ct_LIPO=$LIPO
8918   # Extract the first word of "lipo", so it can be a program name with args.
8919 set dummy lipo; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8923   $as_echo_n "(cached) " >&6
8924 else
8925   if test -n "$ac_ct_LIPO"; then
8926   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931   IFS=$as_save_IFS
8932   test -z "$as_dir" && as_dir=.
8933     for ac_exec_ext in '' $ac_executable_extensions; do
8934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935     ac_cv_prog_ac_ct_LIPO="lipo"
8936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937     break 2
8938   fi
8939 done
8940   done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8946 if test -n "$ac_ct_LIPO"; then
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8948 $as_echo "$ac_ct_LIPO" >&6; }
8949 else
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954   if test "x$ac_ct_LIPO" = x; then
8955     LIPO=":"
8956   else
8957     case $cross_compiling:$ac_tool_warned in
8958 yes:)
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961 ac_tool_warned=yes ;;
8962 esac
8963     LIPO=$ac_ct_LIPO
8964   fi
8965 else
8966   LIPO="$ac_cv_prog_LIPO"
8967 fi
8968
8969     if test -n "$ac_tool_prefix"; then
8970   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8971 set dummy ${ac_tool_prefix}otool; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_prog_OTOOL+:} false; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   if test -n "$OTOOL"; then
8978   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983   IFS=$as_save_IFS
8984   test -z "$as_dir" && as_dir=.
8985     for ac_exec_ext in '' $ac_executable_extensions; do
8986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989     break 2
8990   fi
8991 done
8992   done
8993 IFS=$as_save_IFS
8994
8995 fi
8996 fi
8997 OTOOL=$ac_cv_prog_OTOOL
8998 if test -n "$OTOOL"; then
8999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9000 $as_echo "$OTOOL" >&6; }
9001 else
9002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007 fi
9008 if test -z "$ac_cv_prog_OTOOL"; then
9009   ac_ct_OTOOL=$OTOOL
9010   # Extract the first word of "otool", so it can be a program name with args.
9011 set dummy otool; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9015   $as_echo_n "(cached) " >&6
9016 else
9017   if test -n "$ac_ct_OTOOL"; then
9018   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023   IFS=$as_save_IFS
9024   test -z "$as_dir" && as_dir=.
9025     for ac_exec_ext in '' $ac_executable_extensions; do
9026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027     ac_cv_prog_ac_ct_OTOOL="otool"
9028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029     break 2
9030   fi
9031 done
9032   done
9033 IFS=$as_save_IFS
9034
9035 fi
9036 fi
9037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9038 if test -n "$ac_ct_OTOOL"; then
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9040 $as_echo "$ac_ct_OTOOL" >&6; }
9041 else
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9044 fi
9045
9046   if test "x$ac_ct_OTOOL" = x; then
9047     OTOOL=":"
9048   else
9049     case $cross_compiling:$ac_tool_warned in
9050 yes:)
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9053 ac_tool_warned=yes ;;
9054 esac
9055     OTOOL=$ac_ct_OTOOL
9056   fi
9057 else
9058   OTOOL="$ac_cv_prog_OTOOL"
9059 fi
9060
9061     if test -n "$ac_tool_prefix"; then
9062   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_prog_OTOOL64+:} false; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   if test -n "$OTOOL64"; then
9070   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075   IFS=$as_save_IFS
9076   test -z "$as_dir" && as_dir=.
9077     for ac_exec_ext in '' $ac_executable_extensions; do
9078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081     break 2
9082   fi
9083 done
9084   done
9085 IFS=$as_save_IFS
9086
9087 fi
9088 fi
9089 OTOOL64=$ac_cv_prog_OTOOL64
9090 if test -n "$OTOOL64"; then
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9092 $as_echo "$OTOOL64" >&6; }
9093 else
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099 fi
9100 if test -z "$ac_cv_prog_OTOOL64"; then
9101   ac_ct_OTOOL64=$OTOOL64
9102   # Extract the first word of "otool64", so it can be a program name with args.
9103 set dummy otool64; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9107   $as_echo_n "(cached) " >&6
9108 else
9109   if test -n "$ac_ct_OTOOL64"; then
9110   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115   IFS=$as_save_IFS
9116   test -z "$as_dir" && as_dir=.
9117     for ac_exec_ext in '' $ac_executable_extensions; do
9118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119     ac_cv_prog_ac_ct_OTOOL64="otool64"
9120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121     break 2
9122   fi
9123 done
9124   done
9125 IFS=$as_save_IFS
9126
9127 fi
9128 fi
9129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9130 if test -n "$ac_ct_OTOOL64"; then
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9132 $as_echo "$ac_ct_OTOOL64" >&6; }
9133 else
9134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9136 fi
9137
9138   if test "x$ac_ct_OTOOL64" = x; then
9139     OTOOL64=":"
9140   else
9141     case $cross_compiling:$ac_tool_warned in
9142 yes:)
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9146 esac
9147     OTOOL64=$ac_ct_OTOOL64
9148   fi
9149 else
9150   OTOOL64="$ac_cv_prog_OTOOL64"
9151 fi
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9180 $as_echo_n "checking for -single_module linker flag... " >&6; }
9181 if ${lt_cv_apple_cc_single_mod+:} false; then :
9182   $as_echo_n "(cached) " >&6
9183 else
9184   lt_cv_apple_cc_single_mod=no
9185       if test -z "$LT_MULTI_MODULE"; then
9186         # By default we will add the -single_module flag. You can override
9187         # by either setting the environment variable LT_MULTI_MODULE
9188         # non-empty at configure time, or by adding -multi_module to the
9189         # link flags.
9190         rm -rf libconftest.dylib*
9191         echo "int foo(void){return 1;}" > conftest.c
9192         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9193 -dynamiclib -Wl,-single_module conftest.c" >&5
9194         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9195           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9196         _lt_result=$?
9197         # If there is a non-empty error log, and "single_module"
9198         # appears in it, assume the flag caused a linker warning
9199         if test -s conftest.err && $GREP single_module conftest.err; then
9200           cat conftest.err >&5
9201         # Otherwise, if the output was created with a 0 exit code from
9202         # the compiler, it worked.
9203         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9204           lt_cv_apple_cc_single_mod=yes
9205         else
9206           cat conftest.err >&5
9207         fi
9208         rm -rf libconftest.dylib*
9209         rm -f conftest.*
9210       fi
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9213 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9214
9215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9216 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9217 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   lt_cv_ld_exported_symbols_list=no
9221       save_LDFLAGS=$LDFLAGS
9222       echo "_main" > conftest.sym
9223       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9224       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h.  */
9226
9227 int
9228 main ()
9229 {
9230
9231   ;
9232   return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236   lt_cv_ld_exported_symbols_list=yes
9237 else
9238   lt_cv_ld_exported_symbols_list=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241     conftest$ac_exeext conftest.$ac_ext
9242         LDFLAGS=$save_LDFLAGS
9243
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9247
9248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9249 $as_echo_n "checking for -force_load linker flag... " >&6; }
9250 if ${lt_cv_ld_force_load+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   lt_cv_ld_force_load=no
9254       cat > conftest.c << _LT_EOF
9255 int forced_loaded() { return 2;}
9256 _LT_EOF
9257       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9258       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9259       echo "$AR cru libconftest.a conftest.o" >&5
9260       $AR cru libconftest.a conftest.o 2>&5
9261       echo "$RANLIB libconftest.a" >&5
9262       $RANLIB libconftest.a 2>&5
9263       cat > conftest.c << _LT_EOF
9264 int main() { return 0;}
9265 _LT_EOF
9266       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9267       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9268       _lt_result=$?
9269       if test -s conftest.err && $GREP force_load conftest.err; then
9270         cat conftest.err >&5
9271       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9272         lt_cv_ld_force_load=yes
9273       else
9274         cat conftest.err >&5
9275       fi
9276         rm -f conftest.err libconftest.a conftest conftest.c
9277         rm -rf conftest.dSYM
9278
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9281 $as_echo "$lt_cv_ld_force_load" >&6; }
9282     case $host_os in
9283     rhapsody* | darwin1.[012])
9284       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9285     darwin1.*)
9286       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9287     darwin*) # darwin 5.x on
9288       # if running on 10.5 or later, the deployment target defaults
9289       # to the OS version, if on x86, and 10.4, the deployment
9290       # target defaults to 10.4. Don't you love it?
9291       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9292         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9293           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9294         10.[012][,.]*)
9295           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9296         10.*)
9297           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9298       esac
9299     ;;
9300   esac
9301     if test yes = "$lt_cv_apple_cc_single_mod"; then
9302       _lt_dar_single_mod='$single_module'
9303     fi
9304     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9305       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9306     else
9307       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9308     fi
9309     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9310       _lt_dsymutil='~$DSYMUTIL $lib || :'
9311     else
9312       _lt_dsymutil=
9313     fi
9314     ;;
9315   esac
9316
9317 # func_munge_path_list VARIABLE PATH
9318 # -----------------------------------
9319 # VARIABLE is name of variable containing _space_ separated list of
9320 # directories to be munged by the contents of PATH, which is string
9321 # having a format:
9322 # "DIR[:DIR]:"
9323 #       string "DIR[ DIR]" will be prepended to VARIABLE
9324 # ":DIR[:DIR]"
9325 #       string "DIR[ DIR]" will be appended to VARIABLE
9326 # "DIRP[:DIRP]::[DIRA:]DIRA"
9327 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9328 #       "DIRA[ DIRA]" will be appended to VARIABLE
9329 # "DIR[:DIR]"
9330 #       VARIABLE will be replaced by "DIR[ DIR]"
9331 func_munge_path_list ()
9332 {
9333     case x$2 in
9334     x)
9335         ;;
9336     *:)
9337         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9338         ;;
9339     x:*)
9340         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9341         ;;
9342     *::*)
9343         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9344         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9345         ;;
9346     *)
9347         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9348         ;;
9349     esac
9350 }
9351
9352 for ac_header in dlfcn.h
9353 do :
9354   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9355 "
9356 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9357   cat >>confdefs.h <<_ACEOF
9358 #define HAVE_DLFCN_H 1
9359 _ACEOF
9360
9361 fi
9362
9363 done
9364
9365
9366
9367
9368
9369 # Set options
9370
9371
9372
9373         enable_dlopen=no
9374
9375
9376   enable_win32_dll=no
9377
9378
9379             # Check whether --enable-shared was given.
9380 if test "${enable_shared+set}" = set; then :
9381   enableval=$enable_shared; p=${PACKAGE-default}
9382     case $enableval in
9383     yes) enable_shared=yes ;;
9384     no) enable_shared=no ;;
9385     *)
9386       enable_shared=no
9387       # Look at the argument we got.  We use all the common list separators.
9388       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9389       for pkg in $enableval; do
9390         IFS=$lt_save_ifs
9391         if test "X$pkg" = "X$p"; then
9392           enable_shared=yes
9393         fi
9394       done
9395       IFS=$lt_save_ifs
9396       ;;
9397     esac
9398 else
9399   enable_shared=yes
9400 fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410   # Check whether --enable-static was given.
9411 if test "${enable_static+set}" = set; then :
9412   enableval=$enable_static; p=${PACKAGE-default}
9413     case $enableval in
9414     yes) enable_static=yes ;;
9415     no) enable_static=no ;;
9416     *)
9417      enable_static=no
9418       # Look at the argument we got.  We use all the common list separators.
9419       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9420       for pkg in $enableval; do
9421         IFS=$lt_save_ifs
9422         if test "X$pkg" = "X$p"; then
9423           enable_static=yes
9424         fi
9425       done
9426       IFS=$lt_save_ifs
9427       ;;
9428     esac
9429 else
9430   enable_static=yes
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 # Check whether --with-pic was given.
9443 if test "${with_pic+set}" = set; then :
9444   withval=$with_pic; lt_p=${PACKAGE-default}
9445     case $withval in
9446     yes|no) pic_mode=$withval ;;
9447     *)
9448       pic_mode=default
9449       # Look at the argument we got.  We use all the common list separators.
9450       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9451       for lt_pkg in $withval; do
9452         IFS=$lt_save_ifs
9453         if test "X$lt_pkg" = "X$lt_p"; then
9454           pic_mode=yes
9455         fi
9456       done
9457       IFS=$lt_save_ifs
9458       ;;
9459     esac
9460 else
9461   pic_mode=default
9462 fi
9463
9464
9465
9466
9467
9468
9469
9470
9471   # Check whether --enable-fast-install was given.
9472 if test "${enable_fast_install+set}" = set; then :
9473   enableval=$enable_fast_install; p=${PACKAGE-default}
9474     case $enableval in
9475     yes) enable_fast_install=yes ;;
9476     no) enable_fast_install=no ;;
9477     *)
9478       enable_fast_install=no
9479       # Look at the argument we got.  We use all the common list separators.
9480       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9481       for pkg in $enableval; do
9482         IFS=$lt_save_ifs
9483         if test "X$pkg" = "X$p"; then
9484           enable_fast_install=yes
9485         fi
9486       done
9487       IFS=$lt_save_ifs
9488       ;;
9489     esac
9490 else
9491   enable_fast_install=yes
9492 fi
9493
9494
9495
9496
9497
9498
9499
9500
9501   shared_archive_member_spec=
9502 case $host,$enable_shared in
9503 power*-*-aix[5-9]*,yes)
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9505 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9506
9507 # Check whether --with-aix-soname was given.
9508 if test "${with_aix_soname+set}" = set; then :
9509   withval=$with_aix_soname; case $withval in
9510     aix|svr4|both)
9511       ;;
9512     *)
9513       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9514       ;;
9515     esac
9516     lt_cv_with_aix_soname=$with_aix_soname
9517 else
9518   if ${lt_cv_with_aix_soname+:} false; then :
9519   $as_echo_n "(cached) " >&6
9520 else
9521   lt_cv_with_aix_soname=aix
9522 fi
9523
9524     with_aix_soname=$lt_cv_with_aix_soname
9525 fi
9526
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9528 $as_echo "$with_aix_soname" >&6; }
9529   if test aix != "$with_aix_soname"; then
9530     # For the AIX way of multilib, we name the shared archive member
9531     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9532     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9533     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9534     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9535     if test 64 = "${OBJECT_MODE-32}"; then
9536       shared_archive_member_spec=shr_64
9537     else
9538       shared_archive_member_spec=shr
9539     fi
9540   fi
9541   ;;
9542 *)
9543   with_aix_soname=aix
9544   ;;
9545 esac
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 # This can be used to rebuild libtool when needed
9557 LIBTOOL_DEPS=$ltmain
9558
9559 # Always use our own libtool.
9560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9561
9562
9563
9564
9565
9566
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 test -z "$LN_S" && LN_S="ln -s"
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 if test -n "${ZSH_VERSION+set}"; then
9607    setopt NO_GLOB_SUBST
9608 fi
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9611 $as_echo_n "checking for objdir... " >&6; }
9612 if ${lt_cv_objdir+:} false; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   rm -f .libs 2>/dev/null
9616 mkdir .libs 2>/dev/null
9617 if test -d .libs; then
9618   lt_cv_objdir=.libs
9619 else
9620   # MS-DOS does not allow filenames that begin with a dot.
9621   lt_cv_objdir=_libs
9622 fi
9623 rmdir .libs 2>/dev/null
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9626 $as_echo "$lt_cv_objdir" >&6; }
9627 objdir=$lt_cv_objdir
9628
9629
9630
9631
9632
9633 cat >>confdefs.h <<_ACEOF
9634 #define LT_OBJDIR "$lt_cv_objdir/"
9635 _ACEOF
9636
9637
9638
9639
9640 case $host_os in
9641 aix3*)
9642   # AIX sometimes has problems with the GCC collect2 program.  For some
9643   # reason, if we set the COLLECT_NAMES environment variable, the problems
9644   # vanish in a puff of smoke.
9645   if test set != "${COLLECT_NAMES+set}"; then
9646     COLLECT_NAMES=
9647     export COLLECT_NAMES
9648   fi
9649   ;;
9650 esac
9651
9652 # Global variables:
9653 ofile=libtool
9654 can_build_shared=yes
9655
9656 # All known linkers require a '.a' archive for static linking (except MSVC,
9657 # which needs '.lib').
9658 libext=a
9659
9660 with_gnu_ld=$lt_cv_prog_gnu_ld
9661
9662 old_CC=$CC
9663 old_CFLAGS=$CFLAGS
9664
9665 # Set sane defaults for various variables
9666 test -z "$CC" && CC=cc
9667 test -z "$LTCC" && LTCC=$CC
9668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9669 test -z "$LD" && LD=ld
9670 test -z "$ac_objext" && ac_objext=o
9671
9672 func_cc_basename $compiler
9673 cc_basename=$func_cc_basename_result
9674
9675
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9679 file_magic*)
9680   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   case $MAGIC_CMD in
9687 [\\/*] |  ?:[\\/]*)
9688   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9689   ;;
9690 *)
9691   lt_save_MAGIC_CMD=$MAGIC_CMD
9692   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9693   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9694   for ac_dir in $ac_dummy; do
9695     IFS=$lt_save_ifs
9696     test -z "$ac_dir" && ac_dir=.
9697     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9698       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9699       if test -n "$file_magic_test_file"; then
9700         case $deplibs_check_method in
9701         "file_magic "*)
9702           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9703           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9704           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9705             $EGREP "$file_magic_regex" > /dev/null; then
9706             :
9707           else
9708             cat <<_LT_EOF 1>&2
9709
9710 *** Warning: the command libtool uses to detect shared libraries,
9711 *** $file_magic_cmd, produces output that libtool cannot recognize.
9712 *** The result is that libtool may fail to recognize shared libraries
9713 *** as such.  This will affect the creation of libtool libraries that
9714 *** depend on shared libraries, but programs linked with such libtool
9715 *** libraries will work regardless of this problem.  Nevertheless, you
9716 *** may want to report the problem to your system manager and/or to
9717 *** bug-libtool@gnu.org
9718
9719 _LT_EOF
9720           fi ;;
9721         esac
9722       fi
9723       break
9724     fi
9725   done
9726   IFS=$lt_save_ifs
9727   MAGIC_CMD=$lt_save_MAGIC_CMD
9728   ;;
9729 esac
9730 fi
9731
9732 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9733 if test -n "$MAGIC_CMD"; then
9734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9735 $as_echo "$MAGIC_CMD" >&6; }
9736 else
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740
9741
9742
9743
9744
9745 if test -z "$lt_cv_path_MAGIC_CMD"; then
9746   if test -n "$ac_tool_prefix"; then
9747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9748 $as_echo_n "checking for file... " >&6; }
9749 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9750   $as_echo_n "(cached) " >&6
9751 else
9752   case $MAGIC_CMD in
9753 [\\/*] |  ?:[\\/]*)
9754   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9755   ;;
9756 *)
9757   lt_save_MAGIC_CMD=$MAGIC_CMD
9758   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9759   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9760   for ac_dir in $ac_dummy; do
9761     IFS=$lt_save_ifs
9762     test -z "$ac_dir" && ac_dir=.
9763     if test -f "$ac_dir/file"; then
9764       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9765       if test -n "$file_magic_test_file"; then
9766         case $deplibs_check_method in
9767         "file_magic "*)
9768           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9769           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9770           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9771             $EGREP "$file_magic_regex" > /dev/null; then
9772             :
9773           else
9774             cat <<_LT_EOF 1>&2
9775
9776 *** Warning: the command libtool uses to detect shared libraries,
9777 *** $file_magic_cmd, produces output that libtool cannot recognize.
9778 *** The result is that libtool may fail to recognize shared libraries
9779 *** as such.  This will affect the creation of libtool libraries that
9780 *** depend on shared libraries, but programs linked with such libtool
9781 *** libraries will work regardless of this problem.  Nevertheless, you
9782 *** may want to report the problem to your system manager and/or to
9783 *** bug-libtool@gnu.org
9784
9785 _LT_EOF
9786           fi ;;
9787         esac
9788       fi
9789       break
9790     fi
9791   done
9792   IFS=$lt_save_ifs
9793   MAGIC_CMD=$lt_save_MAGIC_CMD
9794   ;;
9795 esac
9796 fi
9797
9798 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9799 if test -n "$MAGIC_CMD"; then
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9801 $as_echo "$MAGIC_CMD" >&6; }
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808   else
9809     MAGIC_CMD=:
9810   fi
9811 fi
9812
9813   fi
9814   ;;
9815 esac
9816
9817 # Use C for the default configuration in the libtool script
9818
9819 lt_save_CC=$CC
9820 ac_ext=c
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
9826
9827 # Source file extension for C test sources.
9828 ac_ext=c
9829
9830 # Object file extension for compiled C test sources.
9831 objext=o
9832 objext=$objext
9833
9834 # Code to be used in simple compile tests
9835 lt_simple_compile_test_code="int some_variable = 0;"
9836
9837 # Code to be used in simple link tests
9838 lt_simple_link_test_code='int main(){return(0);}'
9839
9840
9841
9842
9843
9844
9845
9846 # If no C compiler was specified, use CC.
9847 LTCC=${LTCC-"$CC"}
9848
9849 # If no C compiler flags were specified, use CFLAGS.
9850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9851
9852 # Allow CC to be a program name with arguments.
9853 compiler=$CC
9854
9855 # Save the default compiler, since it gets overwritten when the other
9856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9857 compiler_DEFAULT=$CC
9858
9859 # save warnings/boilerplate of simple test code
9860 ac_outfile=conftest.$ac_objext
9861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9863 _lt_compiler_boilerplate=`cat conftest.err`
9864 $RM conftest*
9865
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_linker_boilerplate=`cat conftest.err`
9870 $RM -r conftest*
9871
9872
9873 ## CAVEAT EMPTOR:
9874 ## There is no encapsulation within the following macros, do not change
9875 ## the running order or otherwise move them around unless you know exactly
9876 ## what you are doing...
9877 if test -n "$compiler"; then
9878
9879 lt_prog_compiler_no_builtin_flag=
9880
9881 if test yes = "$GCC"; then
9882   case $cc_basename in
9883   nvcc*)
9884     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9885   *)
9886     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9887   esac
9888
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   lt_cv_prog_compiler_rtti_exceptions=no
9895    ac_outfile=conftest.$ac_objext
9896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9898    # Insert the option either (1) after the last *FLAGS variable, or
9899    # (2) before a word containing "conftest.", or (3) at the end.
9900    # Note that $ac_compile itself does not contain backslashes and begins
9901    # with a dollar sign (not a hyphen), so the echo should work correctly.
9902    # The option is referenced via a variable to avoid confusing sed.
9903    lt_compile=`echo "$ac_compile" | $SED \
9904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906    -e 's:$: $lt_compiler_flag:'`
9907    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908    (eval "$lt_compile" 2>conftest.err)
9909    ac_status=$?
9910    cat conftest.err >&5
9911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912    if (exit $ac_status) && test -s "$ac_outfile"; then
9913      # The compiler can only warn and ignore the option if not recognized
9914      # So say no if there are warnings other than the usual output.
9915      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9916      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9918        lt_cv_prog_compiler_rtti_exceptions=yes
9919      fi
9920    fi
9921    $RM conftest*
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9926
9927 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9928     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9929 else
9930     :
9931 fi
9932
9933 fi
9934
9935
9936
9937
9938
9939
9940   lt_prog_compiler_wl=
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_static=
9943
9944
9945   if test yes = "$GCC"; then
9946     lt_prog_compiler_wl='-Wl,'
9947     lt_prog_compiler_static='-static'
9948
9949     case $host_os in
9950       aix*)
9951       # All AIX code is PIC.
9952       if test ia64 = "$host_cpu"; then
9953         # AIX 5 now supports IA64 processor
9954         lt_prog_compiler_static='-Bstatic'
9955       fi
9956       lt_prog_compiler_pic='-fPIC'
9957       ;;
9958
9959     amigaos*)
9960       case $host_cpu in
9961       powerpc)
9962             # see comment about AmigaOS4 .so support
9963             lt_prog_compiler_pic='-fPIC'
9964         ;;
9965       m68k)
9966             # FIXME: we need at least 68020 code to build shared libraries, but
9967             # adding the '-m68020' flag to GCC prevents building anything better,
9968             # like '-m68040'.
9969             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9970         ;;
9971       esac
9972       ;;
9973
9974     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9975       # PIC is the default for these OSes.
9976       ;;
9977
9978     mingw* | cygwin* | pw32* | os2* | cegcc*)
9979       # This hack is so that the source file can tell whether it is being
9980       # built for inclusion in a dll (and should export symbols for example).
9981       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9982       # (--disable-auto-import) libraries
9983       lt_prog_compiler_pic='-DDLL_EXPORT'
9984       case $host_os in
9985       os2*)
9986         lt_prog_compiler_static='$wl-static'
9987         ;;
9988       esac
9989       ;;
9990
9991     darwin* | rhapsody*)
9992       # PIC is the default on this platform
9993       # Common symbols not allowed in MH_DYLIB files
9994       lt_prog_compiler_pic='-fno-common'
9995       ;;
9996
9997     haiku*)
9998       # PIC is the default for Haiku.
9999       # The "-static" flag exists, but is broken.
10000       lt_prog_compiler_static=
10001       ;;
10002
10003     hpux*)
10004       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10005       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10006       # sets the default TLS model and affects inlining.
10007       case $host_cpu in
10008       hppa*64*)
10009         # +Z the default
10010         ;;
10011       *)
10012         lt_prog_compiler_pic='-fPIC'
10013         ;;
10014       esac
10015       ;;
10016
10017     interix[3-9]*)
10018       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10019       # Instead, we relocate shared libraries at runtime.
10020       ;;
10021
10022     msdosdjgpp*)
10023       # Just because we use GCC doesn't mean we suddenly get shared libraries
10024       # on systems that don't support them.
10025       lt_prog_compiler_can_build_shared=no
10026       enable_shared=no
10027       ;;
10028
10029     *nto* | *qnx*)
10030       # QNX uses GNU C++, but need to define -shared option too, otherwise
10031       # it will coredump.
10032       lt_prog_compiler_pic='-fPIC -shared'
10033       ;;
10034
10035     sysv4*MP*)
10036       if test -d /usr/nec; then
10037         lt_prog_compiler_pic=-Kconform_pic
10038       fi
10039       ;;
10040
10041     *)
10042       lt_prog_compiler_pic='-fPIC'
10043       ;;
10044     esac
10045
10046     case $cc_basename in
10047     nvcc*) # Cuda Compiler Driver 2.2
10048       lt_prog_compiler_wl='-Xlinker '
10049       if test -n "$lt_prog_compiler_pic"; then
10050         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10051       fi
10052       ;;
10053     esac
10054   else
10055     # PORTME Check for flag to pass linker flags through the system compiler.
10056     case $host_os in
10057     aix*)
10058       lt_prog_compiler_wl='-Wl,'
10059       if test ia64 = "$host_cpu"; then
10060         # AIX 5 now supports IA64 processor
10061         lt_prog_compiler_static='-Bstatic'
10062       else
10063         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10064       fi
10065       ;;
10066
10067     darwin* | rhapsody*)
10068       # PIC is the default on this platform
10069       # Common symbols not allowed in MH_DYLIB files
10070       lt_prog_compiler_pic='-fno-common'
10071       case $cc_basename in
10072       nagfor*)
10073         # NAG Fortran compiler
10074         lt_prog_compiler_wl='-Wl,-Wl,,'
10075         lt_prog_compiler_pic='-PIC'
10076         lt_prog_compiler_static='-Bstatic'
10077         ;;
10078       esac
10079       ;;
10080
10081     mingw* | cygwin* | pw32* | os2* | cegcc*)
10082       # This hack is so that the source file can tell whether it is being
10083       # built for inclusion in a dll (and should export symbols for example).
10084       lt_prog_compiler_pic='-DDLL_EXPORT'
10085       case $host_os in
10086       os2*)
10087         lt_prog_compiler_static='$wl-static'
10088         ;;
10089       esac
10090       ;;
10091
10092     hpux9* | hpux10* | hpux11*)
10093       lt_prog_compiler_wl='-Wl,'
10094       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10095       # not for PA HP-UX.
10096       case $host_cpu in
10097       hppa*64*|ia64*)
10098         # +Z the default
10099         ;;
10100       *)
10101         lt_prog_compiler_pic='+Z'
10102         ;;
10103       esac
10104       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10105       lt_prog_compiler_static='$wl-a ${wl}archive'
10106       ;;
10107
10108     irix5* | irix6* | nonstopux*)
10109       lt_prog_compiler_wl='-Wl,'
10110       # PIC (with -KPIC) is the default.
10111       lt_prog_compiler_static='-non_shared'
10112       ;;
10113
10114     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10115       case $cc_basename in
10116       # old Intel for x86_64, which still supported -KPIC.
10117       ecc*)
10118         lt_prog_compiler_wl='-Wl,'
10119         lt_prog_compiler_pic='-KPIC'
10120         lt_prog_compiler_static='-static'
10121         ;;
10122       # icc used to be incompatible with GCC.
10123       # ICC 10 doesn't accept -KPIC any more.
10124       icc* | ifort*)
10125         lt_prog_compiler_wl='-Wl,'
10126         lt_prog_compiler_pic='-fPIC'
10127         lt_prog_compiler_static='-static'
10128         ;;
10129       # Lahey Fortran 8.1.
10130       lf95*)
10131         lt_prog_compiler_wl='-Wl,'
10132         lt_prog_compiler_pic='--shared'
10133         lt_prog_compiler_static='--static'
10134         ;;
10135       nagfor*)
10136         # NAG Fortran compiler
10137         lt_prog_compiler_wl='-Wl,-Wl,,'
10138         lt_prog_compiler_pic='-PIC'
10139         lt_prog_compiler_static='-Bstatic'
10140         ;;
10141       tcc*)
10142         # Fabrice Bellard et al's Tiny C Compiler
10143         lt_prog_compiler_wl='-Wl,'
10144         lt_prog_compiler_pic='-fPIC'
10145         lt_prog_compiler_static='-static'
10146         ;;
10147       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10148         # Portland Group compilers (*not* the Pentium gcc compiler,
10149         # which looks to be a dead project)
10150         lt_prog_compiler_wl='-Wl,'
10151         lt_prog_compiler_pic='-fpic'
10152         lt_prog_compiler_static='-Bstatic'
10153         ;;
10154       ccc*)
10155         lt_prog_compiler_wl='-Wl,'
10156         # All Alpha code is PIC.
10157         lt_prog_compiler_static='-non_shared'
10158         ;;
10159       xl* | bgxl* | bgf* | mpixl*)
10160         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10161         lt_prog_compiler_wl='-Wl,'
10162         lt_prog_compiler_pic='-qpic'
10163         lt_prog_compiler_static='-qstaticlink'
10164         ;;
10165       *)
10166         case `$CC -V 2>&1 | sed 5q` in
10167         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10168           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10169           lt_prog_compiler_pic='-KPIC'
10170           lt_prog_compiler_static='-Bstatic'
10171           lt_prog_compiler_wl=''
10172           ;;
10173         *Sun\ F* | *Sun*Fortran*)
10174           lt_prog_compiler_pic='-KPIC'
10175           lt_prog_compiler_static='-Bstatic'
10176           lt_prog_compiler_wl='-Qoption ld '
10177           ;;
10178         *Sun\ C*)
10179           # Sun C 5.9
10180           lt_prog_compiler_pic='-KPIC'
10181           lt_prog_compiler_static='-Bstatic'
10182           lt_prog_compiler_wl='-Wl,'
10183           ;;
10184         *Intel*\ [CF]*Compiler*)
10185           lt_prog_compiler_wl='-Wl,'
10186           lt_prog_compiler_pic='-fPIC'
10187           lt_prog_compiler_static='-static'
10188           ;;
10189         *Portland\ Group*)
10190           lt_prog_compiler_wl='-Wl,'
10191           lt_prog_compiler_pic='-fpic'
10192           lt_prog_compiler_static='-Bstatic'
10193           ;;
10194         esac
10195         ;;
10196       esac
10197       ;;
10198
10199     newsos6)
10200       lt_prog_compiler_pic='-KPIC'
10201       lt_prog_compiler_static='-Bstatic'
10202       ;;
10203
10204     *nto* | *qnx*)
10205       # QNX uses GNU C++, but need to define -shared option too, otherwise
10206       # it will coredump.
10207       lt_prog_compiler_pic='-fPIC -shared'
10208       ;;
10209
10210     osf3* | osf4* | osf5*)
10211       lt_prog_compiler_wl='-Wl,'
10212       # All OSF/1 code is PIC.
10213       lt_prog_compiler_static='-non_shared'
10214       ;;
10215
10216     rdos*)
10217       lt_prog_compiler_static='-non_shared'
10218       ;;
10219
10220     solaris*)
10221       lt_prog_compiler_pic='-KPIC'
10222       lt_prog_compiler_static='-Bstatic'
10223       case $cc_basename in
10224       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10225         lt_prog_compiler_wl='-Qoption ld ';;
10226       *)
10227         lt_prog_compiler_wl='-Wl,';;
10228       esac
10229       ;;
10230
10231     sunos4*)
10232       lt_prog_compiler_wl='-Qoption ld '
10233       lt_prog_compiler_pic='-PIC'
10234       lt_prog_compiler_static='-Bstatic'
10235       ;;
10236
10237     sysv4 | sysv4.2uw2* | sysv4.3*)
10238       lt_prog_compiler_wl='-Wl,'
10239       lt_prog_compiler_pic='-KPIC'
10240       lt_prog_compiler_static='-Bstatic'
10241       ;;
10242
10243     sysv4*MP*)
10244       if test -d /usr/nec; then
10245         lt_prog_compiler_pic='-Kconform_pic'
10246         lt_prog_compiler_static='-Bstatic'
10247       fi
10248       ;;
10249
10250     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10251       lt_prog_compiler_wl='-Wl,'
10252       lt_prog_compiler_pic='-KPIC'
10253       lt_prog_compiler_static='-Bstatic'
10254       ;;
10255
10256     unicos*)
10257       lt_prog_compiler_wl='-Wl,'
10258       lt_prog_compiler_can_build_shared=no
10259       ;;
10260
10261     uts4*)
10262       lt_prog_compiler_pic='-pic'
10263       lt_prog_compiler_static='-Bstatic'
10264       ;;
10265
10266     *)
10267       lt_prog_compiler_can_build_shared=no
10268       ;;
10269     esac
10270   fi
10271
10272 case $host_os in
10273   # For platforms that do not support PIC, -DPIC is meaningless:
10274   *djgpp*)
10275     lt_prog_compiler_pic=
10276     ;;
10277   *)
10278     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10279     ;;
10280 esac
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10284 if ${lt_cv_prog_compiler_pic+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10290 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10291 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10292
10293 #
10294 # Check to make sure the PIC flag actually works.
10295 #
10296 if test -n "$lt_prog_compiler_pic"; then
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10298 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10299 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   lt_cv_prog_compiler_pic_works=no
10303    ac_outfile=conftest.$ac_objext
10304    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10306    # Insert the option either (1) after the last *FLAGS variable, or
10307    # (2) before a word containing "conftest.", or (3) at the end.
10308    # Note that $ac_compile itself does not contain backslashes and begins
10309    # with a dollar sign (not a hyphen), so the echo should work correctly.
10310    # The option is referenced via a variable to avoid confusing sed.
10311    lt_compile=`echo "$ac_compile" | $SED \
10312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314    -e 's:$: $lt_compiler_flag:'`
10315    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316    (eval "$lt_compile" 2>conftest.err)
10317    ac_status=$?
10318    cat conftest.err >&5
10319    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320    if (exit $ac_status) && test -s "$ac_outfile"; then
10321      # The compiler can only warn and ignore the option if not recognized
10322      # So say no if there are warnings other than the usual output.
10323      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10324      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10326        lt_cv_prog_compiler_pic_works=yes
10327      fi
10328    fi
10329    $RM conftest*
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10333 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10334
10335 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10336     case $lt_prog_compiler_pic in
10337      "" | " "*) ;;
10338      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10339      esac
10340 else
10341     lt_prog_compiler_pic=
10342      lt_prog_compiler_can_build_shared=no
10343 fi
10344
10345 fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357 #
10358 # Check to make sure the static flag actually works.
10359 #
10360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10362 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10363 if ${lt_cv_prog_compiler_static_works+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   lt_cv_prog_compiler_static_works=no
10367    save_LDFLAGS=$LDFLAGS
10368    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10369    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371      # The linker can only warn and ignore the option if not recognized
10372      # So say no if there are warnings
10373      if test -s conftest.err; then
10374        # Append any errors to the config.log.
10375        cat conftest.err 1>&5
10376        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378        if diff conftest.exp conftest.er2 >/dev/null; then
10379          lt_cv_prog_compiler_static_works=yes
10380        fi
10381      else
10382        lt_cv_prog_compiler_static_works=yes
10383      fi
10384    fi
10385    $RM -r conftest*
10386    LDFLAGS=$save_LDFLAGS
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10391
10392 if test yes = "$lt_cv_prog_compiler_static_works"; then
10393     :
10394 else
10395     lt_prog_compiler_static=
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406 if ${lt_cv_prog_compiler_c_o+:} false; then :
10407   $as_echo_n "(cached) " >&6
10408 else
10409   lt_cv_prog_compiler_c_o=no
10410    $RM -r conftest 2>/dev/null
10411    mkdir conftest
10412    cd conftest
10413    mkdir out
10414    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415
10416    lt_compiler_flag="-o out/conftest2.$ac_objext"
10417    # Insert the option either (1) after the last *FLAGS variable, or
10418    # (2) before a word containing "conftest.", or (3) at the end.
10419    # Note that $ac_compile itself does not contain backslashes and begins
10420    # with a dollar sign (not a hyphen), so the echo should work correctly.
10421    lt_compile=`echo "$ac_compile" | $SED \
10422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10424    -e 's:$: $lt_compiler_flag:'`
10425    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10426    (eval "$lt_compile" 2>out/conftest.err)
10427    ac_status=$?
10428    cat out/conftest.err >&5
10429    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10431    then
10432      # The compiler can only warn and ignore the option if not recognized
10433      # So say no if there are warnings
10434      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10435      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10436      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10437        lt_cv_prog_compiler_c_o=yes
10438      fi
10439    fi
10440    chmod u+w . 2>&5
10441    $RM conftest*
10442    # SGI C++ compiler will create directory out/ii_files/ for
10443    # template instantiation
10444    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10445    $RM out/* && rmdir out
10446    cd ..
10447    $RM -r conftest
10448    $RM conftest*
10449
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10452 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10453
10454
10455
10456
10457
10458
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461 if ${lt_cv_prog_compiler_c_o+:} false; then :
10462   $as_echo_n "(cached) " >&6
10463 else
10464   lt_cv_prog_compiler_c_o=no
10465    $RM -r conftest 2>/dev/null
10466    mkdir conftest
10467    cd conftest
10468    mkdir out
10469    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10470
10471    lt_compiler_flag="-o out/conftest2.$ac_objext"
10472    # Insert the option either (1) after the last *FLAGS variable, or
10473    # (2) before a word containing "conftest.", or (3) at the end.
10474    # Note that $ac_compile itself does not contain backslashes and begins
10475    # with a dollar sign (not a hyphen), so the echo should work correctly.
10476    lt_compile=`echo "$ac_compile" | $SED \
10477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479    -e 's:$: $lt_compiler_flag:'`
10480    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10481    (eval "$lt_compile" 2>out/conftest.err)
10482    ac_status=$?
10483    cat out/conftest.err >&5
10484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10486    then
10487      # The compiler can only warn and ignore the option if not recognized
10488      # So say no if there are warnings
10489      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10490      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492        lt_cv_prog_compiler_c_o=yes
10493      fi
10494    fi
10495    chmod u+w . 2>&5
10496    $RM conftest*
10497    # SGI C++ compiler will create directory out/ii_files/ for
10498    # template instantiation
10499    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500    $RM out/* && rmdir out
10501    cd ..
10502    $RM -r conftest
10503    $RM conftest*
10504
10505 fi
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10508
10509
10510
10511
10512 hard_links=nottested
10513 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10514   # do not overwrite the value of need_locks provided by the user
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10516 $as_echo_n "checking if we can lock with hard links... " >&6; }
10517   hard_links=yes
10518   $RM conftest*
10519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10520   touch conftest.a
10521   ln conftest.a conftest.b 2>&5 || hard_links=no
10522   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10524 $as_echo "$hard_links" >&6; }
10525   if test no = "$hard_links"; then
10526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10527 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10528     need_locks=warn
10529   fi
10530 else
10531   need_locks=no
10532 fi
10533
10534
10535
10536
10537
10538
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10541
10542   runpath_var=
10543   allow_undefined_flag=
10544   always_export_symbols=no
10545   archive_cmds=
10546   archive_expsym_cmds=
10547   compiler_needs_object=no
10548   enable_shared_with_static_runtimes=no
10549   export_dynamic_flag_spec=
10550   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10551   hardcode_automatic=no
10552   hardcode_direct=no
10553   hardcode_direct_absolute=no
10554   hardcode_libdir_flag_spec=
10555   hardcode_libdir_separator=
10556   hardcode_minus_L=no
10557   hardcode_shlibpath_var=unsupported
10558   inherit_rpath=no
10559   link_all_deplibs=unknown
10560   module_cmds=
10561   module_expsym_cmds=
10562   old_archive_from_new_cmds=
10563   old_archive_from_expsyms_cmds=
10564   thread_safe_flag_spec=
10565   whole_archive_flag_spec=
10566   # include_expsyms should be a list of space-separated symbols to be *always*
10567   # included in the symbol list
10568   include_expsyms=
10569   # exclude_expsyms can be an extended regexp of symbols to exclude
10570   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10571   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10572   # as well as any symbol that contains 'd'.
10573   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10574   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10575   # platforms (ab)use it in PIC code, but their linkers get confused if
10576   # the symbol is explicitly referenced.  Since portable code cannot
10577   # rely on this symbol name, it's probably fine to never include it in
10578   # preloaded symbol tables.
10579   # Exclude shared library initialization/finalization symbols.
10580   extract_expsyms_cmds=
10581
10582   case $host_os in
10583   cygwin* | mingw* | pw32* | cegcc*)
10584     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10585     # When not using gcc, we currently assume that we are using
10586     # Microsoft Visual C++.
10587     if test yes != "$GCC"; then
10588       with_gnu_ld=no
10589     fi
10590     ;;
10591   interix*)
10592     # we just hope/assume this is gcc and not c89 (= MSVC++)
10593     with_gnu_ld=yes
10594     ;;
10595   openbsd* | bitrig*)
10596     with_gnu_ld=no
10597     ;;
10598   linux* | k*bsd*-gnu | gnu*)
10599     link_all_deplibs=no
10600     ;;
10601   esac
10602
10603   ld_shlibs=yes
10604
10605   # On some targets, GNU ld is compatible enough with the native linker
10606   # that we're better off using the native interface for both.
10607   lt_use_gnu_ld_interface=no
10608   if test yes = "$with_gnu_ld"; then
10609     case $host_os in
10610       aix*)
10611         # The AIX port of GNU ld has always aspired to compatibility
10612         # with the native linker.  However, as the warning in the GNU ld
10613         # block says, versions before 2.19.5* couldn't really create working
10614         # shared libraries, regardless of the interface used.
10615         case `$LD -v 2>&1` in
10616           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10617           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10618           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10619           *)
10620             lt_use_gnu_ld_interface=yes
10621             ;;
10622         esac
10623         ;;
10624       *)
10625         lt_use_gnu_ld_interface=yes
10626         ;;
10627     esac
10628   fi
10629
10630   if test yes = "$lt_use_gnu_ld_interface"; then
10631     # If archive_cmds runs LD, not CC, wlarc should be empty
10632     wlarc='$wl'
10633
10634     # Set some defaults for GNU ld with shared library support. These
10635     # are reset later if shared libraries are not supported. Putting them
10636     # here allows them to be overridden if necessary.
10637     runpath_var=LD_RUN_PATH
10638     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639     export_dynamic_flag_spec='$wl--export-dynamic'
10640     # ancient GNU ld didn't support --whole-archive et. al.
10641     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10642       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10643     else
10644       whole_archive_flag_spec=
10645     fi
10646     supports_anon_versioning=no
10647     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10648       *GNU\ gold*) supports_anon_versioning=yes ;;
10649       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10650       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10651       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10652       *\ 2.11.*) ;; # other 2.11 versions
10653       *) supports_anon_versioning=yes ;;
10654     esac
10655
10656     # See if GNU ld supports shared libraries.
10657     case $host_os in
10658     aix[3-9]*)
10659       # On AIX/PPC, the GNU linker is very broken
10660       if test ia64 != "$host_cpu"; then
10661         ld_shlibs=no
10662         cat <<_LT_EOF 1>&2
10663
10664 *** Warning: the GNU linker, at least up to release 2.19, is reported
10665 *** to be unable to reliably create shared libraries on AIX.
10666 *** Therefore, libtool is disabling shared libraries support.  If you
10667 *** really care for shared libraries, you may want to install binutils
10668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10669 *** You will then need to restart the configuration process.
10670
10671 _LT_EOF
10672       fi
10673       ;;
10674
10675     amigaos*)
10676       case $host_cpu in
10677       powerpc)
10678             # see comment about AmigaOS4 .so support
10679             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10680             archive_expsym_cmds=''
10681         ;;
10682       m68k)
10683             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)'
10684             hardcode_libdir_flag_spec='-L$libdir'
10685             hardcode_minus_L=yes
10686         ;;
10687       esac
10688       ;;
10689
10690     beos*)
10691       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692         allow_undefined_flag=unsupported
10693         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10694         # support --undefined.  This deserves some investigation.  FIXME
10695         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10696       else
10697         ld_shlibs=no
10698       fi
10699       ;;
10700
10701     cygwin* | mingw* | pw32* | cegcc*)
10702       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10703       # as there is no search path for DLLs.
10704       hardcode_libdir_flag_spec='-L$libdir'
10705       export_dynamic_flag_spec='$wl--export-all-symbols'
10706       allow_undefined_flag=unsupported
10707       always_export_symbols=no
10708       enable_shared_with_static_runtimes=yes
10709       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'
10710       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10711
10712       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10713         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714         # If the export-symbols file already is a .def file, use it as
10715         # is; otherwise, prepend EXPORTS...
10716         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10717           cp $export_symbols $output_objdir/$soname.def;
10718         else
10719           echo EXPORTS > $output_objdir/$soname.def;
10720           cat $export_symbols >> $output_objdir/$soname.def;
10721         fi~
10722         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10723       else
10724         ld_shlibs=no
10725       fi
10726       ;;
10727
10728     haiku*)
10729       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730       link_all_deplibs=yes
10731       ;;
10732
10733     os2*)
10734       hardcode_libdir_flag_spec='-L$libdir'
10735       hardcode_minus_L=yes
10736       allow_undefined_flag=unsupported
10737       shrext_cmds=.dll
10738       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10739         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10740         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10741         $ECHO EXPORTS >> $output_objdir/$libname.def~
10742         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10743         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744         emximp -o $lib $output_objdir/$libname.def'
10745       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10746         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10747         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10748         $ECHO EXPORTS >> $output_objdir/$libname.def~
10749         prefix_cmds="$SED"~
10750         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10751           prefix_cmds="$prefix_cmds -e 1d";
10752         fi~
10753         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10754         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10755         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10756         emximp -o $lib $output_objdir/$libname.def'
10757       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10758       enable_shared_with_static_runtimes=yes
10759       ;;
10760
10761     interix[3-9]*)
10762       hardcode_direct=no
10763       hardcode_shlibpath_var=no
10764       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10765       export_dynamic_flag_spec='$wl-E'
10766       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10767       # Instead, shared libraries are loaded at an image base (0x10000000 by
10768       # default) and relocated if they conflict, which is a slow very memory
10769       # consuming and fragmenting process.  To avoid this, we pick a random,
10770       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10771       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10772       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10773       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'
10774       ;;
10775
10776     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10777       tmp_diet=no
10778       if test linux-dietlibc = "$host_os"; then
10779         case $cc_basename in
10780           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10781         esac
10782       fi
10783       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10784          && test no = "$tmp_diet"
10785       then
10786         tmp_addflag=' $pic_flag'
10787         tmp_sharedflag='-shared'
10788         case $cc_basename,$host_cpu in
10789         pgcc*)                          # Portland Group C compiler
10790           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'
10791           tmp_addflag=' $pic_flag'
10792           ;;
10793         pgf77* | pgf90* | pgf95* | pgfortran*)
10794                                         # Portland Group f77 and f90 compilers
10795           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'
10796           tmp_addflag=' $pic_flag -Mnomain' ;;
10797         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10798           tmp_addflag=' -i_dynamic' ;;
10799         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10800           tmp_addflag=' -i_dynamic -nofor_main' ;;
10801         ifc* | ifort*)                  # Intel Fortran compiler
10802           tmp_addflag=' -nofor_main' ;;
10803         lf95*)                          # Lahey Fortran 8.1
10804           whole_archive_flag_spec=
10805           tmp_sharedflag='--shared' ;;
10806         nagfor*)                        # NAGFOR 5.3
10807           tmp_sharedflag='-Wl,-shared' ;;
10808         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10809           tmp_sharedflag='-qmkshrobj'
10810           tmp_addflag= ;;
10811         nvcc*)  # Cuda Compiler Driver 2.2
10812           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'
10813           compiler_needs_object=yes
10814           ;;
10815         esac
10816         case `$CC -V 2>&1 | sed 5q` in
10817         *Sun\ C*)                       # Sun C 5.9
10818           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'
10819           compiler_needs_object=yes
10820           tmp_sharedflag='-G' ;;
10821         *Sun\ F*)                       # Sun Fortran 8.3
10822           tmp_sharedflag='-G' ;;
10823         esac
10824         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825
10826         if test yes = "$supports_anon_versioning"; then
10827           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829             echo "local: *; };" >> $output_objdir/$libname.ver~
10830             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10831         fi
10832
10833         case $cc_basename in
10834         tcc*)
10835           export_dynamic_flag_spec='-rdynamic'
10836           ;;
10837         xlf* | bgf* | bgxlf* | mpixlf*)
10838           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10839           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10840           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10842           if test yes = "$supports_anon_versioning"; then
10843             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10844               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10845               echo "local: *; };" >> $output_objdir/$libname.ver~
10846               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10847           fi
10848           ;;
10849         esac
10850       else
10851         ld_shlibs=no
10852       fi
10853       ;;
10854
10855     netbsd* | netbsdelf*-gnu)
10856       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10857         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10858         wlarc=
10859       else
10860         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10861         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10862       fi
10863       ;;
10864
10865     solaris*)
10866       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10867         ld_shlibs=no
10868         cat <<_LT_EOF 1>&2
10869
10870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10871 *** create shared libraries on Solaris systems.  Therefore, libtool
10872 *** is disabling shared libraries support.  We urge you to upgrade GNU
10873 *** binutils to release 2.9.1 or newer.  Another option is to modify
10874 *** your PATH or compiler configuration so that the native linker is
10875 *** used, and then restart.
10876
10877 _LT_EOF
10878       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10879         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10880         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10881       else
10882         ld_shlibs=no
10883       fi
10884       ;;
10885
10886     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10887       case `$LD -v 2>&1` in
10888         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10889         ld_shlibs=no
10890         cat <<_LT_EOF 1>&2
10891
10892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10893 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10894 *** is disabling shared libraries support.  We urge you to upgrade GNU
10895 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10896 *** your PATH or compiler configuration so that the native linker is
10897 *** used, and then restart.
10898
10899 _LT_EOF
10900         ;;
10901         *)
10902           # For security reasons, it is highly recommended that you always
10903           # use absolute paths for naming shared libraries, and exclude the
10904           # DT_RUNPATH tag from executables and libraries.  But doing so
10905           # requires that you compile everything twice, which is a pain.
10906           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10907             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10909             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10910           else
10911             ld_shlibs=no
10912           fi
10913         ;;
10914       esac
10915       ;;
10916
10917     sunos4*)
10918       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10919       wlarc=
10920       hardcode_direct=yes
10921       hardcode_shlibpath_var=no
10922       ;;
10923
10924     *)
10925       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10926         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10927         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10928       else
10929         ld_shlibs=no
10930       fi
10931       ;;
10932     esac
10933
10934     if test no = "$ld_shlibs"; then
10935       runpath_var=
10936       hardcode_libdir_flag_spec=
10937       export_dynamic_flag_spec=
10938       whole_archive_flag_spec=
10939     fi
10940   else
10941     # PORTME fill in a description of your system's linker (not GNU ld)
10942     case $host_os in
10943     aix3*)
10944       allow_undefined_flag=unsupported
10945       always_export_symbols=yes
10946       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'
10947       # Note: this linker hardcodes the directories in LIBPATH if there
10948       # are no directories specified by -L.
10949       hardcode_minus_L=yes
10950       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10951         # Neither direct hardcoding nor static linking is supported with a
10952         # broken collect2.
10953         hardcode_direct=unsupported
10954       fi
10955       ;;
10956
10957     aix[4-9]*)
10958       if test ia64 = "$host_cpu"; then
10959         # On IA64, the linker does run time linking by default, so we don't
10960         # have to do anything special.
10961         aix_use_runtimelinking=no
10962         exp_sym_flag='-Bexport'
10963         no_entry_flag=
10964       else
10965         # If we're using GNU nm, then we don't want the "-C" option.
10966         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10967         # Without the "-l" option, or with the "-B" option, AIX nm treats
10968         # weak defined symbols like other global defined symbols, whereas
10969         # GNU nm marks them as "W".
10970         # While the 'weak' keyword is ignored in the Export File, we need
10971         # it in the Import File for the 'aix-soname' feature, so we have
10972         # to replace the "-B" option with "-P" for AIX nm.
10973         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10974           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'
10975         else
10976           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'
10977         fi
10978         aix_use_runtimelinking=no
10979
10980         # Test if we are trying to use run time linking or normal
10981         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10982         # have runtime linking enabled, and use it for executables.
10983         # For shared libraries, we enable/disable runtime linking
10984         # depending on the kind of the shared library created -
10985         # when "with_aix_soname,aix_use_runtimelinking" is:
10986         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10987         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10988         #            lib.a           static archive
10989         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10990         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10991         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10992         #            lib.a(lib.so.V) shared, rtl:no
10993         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10994         #            lib.a           static archive
10995         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10996           for ld_flag in $LDFLAGS; do
10997           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10998             aix_use_runtimelinking=yes
10999             break
11000           fi
11001           done
11002           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11003             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11004             # so we don't have lib.a shared libs to link our executables.
11005             # We have to force runtime linking in this case.
11006             aix_use_runtimelinking=yes
11007             LDFLAGS="$LDFLAGS -Wl,-brtl"
11008           fi
11009           ;;
11010         esac
11011
11012         exp_sym_flag='-bexport'
11013         no_entry_flag='-bnoentry'
11014       fi
11015
11016       # When large executables or shared objects are built, AIX ld can
11017       # have problems creating the table of contents.  If linking a library
11018       # or program results in "error TOC overflow" add -mminimal-toc to
11019       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11020       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11021
11022       archive_cmds=''
11023       hardcode_direct=yes
11024       hardcode_direct_absolute=yes
11025       hardcode_libdir_separator=':'
11026       link_all_deplibs=yes
11027       file_list_spec='$wl-f,'
11028       case $with_aix_soname,$aix_use_runtimelinking in
11029       aix,*) ;; # traditional, no import file
11030       svr4,* | *,yes) # use import file
11031         # The Import File defines what to hardcode.
11032         hardcode_direct=no
11033         hardcode_direct_absolute=no
11034         ;;
11035       esac
11036
11037       if test yes = "$GCC"; then
11038         case $host_os in aix4.[012]|aix4.[012].*)
11039         # We only want to do this on AIX 4.2 and lower, the check
11040         # below for broken collect2 doesn't work under 4.3+
11041           collect2name=`$CC -print-prog-name=collect2`
11042           if test -f "$collect2name" &&
11043            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11044           then
11045           # We have reworked collect2
11046           :
11047           else
11048           # We have old collect2
11049           hardcode_direct=unsupported
11050           # It fails to find uninstalled libraries when the uninstalled
11051           # path is not listed in the libpath.  Setting hardcode_minus_L
11052           # to unsupported forces relinking
11053           hardcode_minus_L=yes
11054           hardcode_libdir_flag_spec='-L$libdir'
11055           hardcode_libdir_separator=
11056           fi
11057           ;;
11058         esac
11059         shared_flag='-shared'
11060         if test yes = "$aix_use_runtimelinking"; then
11061           shared_flag="$shared_flag "'$wl-G'
11062         fi
11063         # Need to ensure runtime linking is disabled for the traditional
11064         # shared library, or the linker may eventually find shared libraries
11065         # /with/ Import File - we do not want to mix them.
11066         shared_flag_aix='-shared'
11067         shared_flag_svr4='-shared $wl-G'
11068       else
11069         # not using gcc
11070         if test ia64 = "$host_cpu"; then
11071         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11072         # chokes on -Wl,-G. The following line is correct:
11073           shared_flag='-G'
11074         else
11075           if test yes = "$aix_use_runtimelinking"; then
11076             shared_flag='$wl-G'
11077           else
11078             shared_flag='$wl-bM:SRE'
11079           fi
11080           shared_flag_aix='$wl-bM:SRE'
11081           shared_flag_svr4='$wl-G'
11082         fi
11083       fi
11084
11085       export_dynamic_flag_spec='$wl-bexpall'
11086       # It seems that -bexpall does not export symbols beginning with
11087       # underscore (_), so it is better to generate a list of symbols to export.
11088       always_export_symbols=yes
11089       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11090         # Warning - without using the other runtime loading flags (-brtl),
11091         # -berok will link without error, but may produce a broken library.
11092         allow_undefined_flag='-berok'
11093         # Determine the default libpath from the value encoded in an
11094         # empty executable.
11095         if test set = "${lt_cv_aix_libpath+set}"; then
11096   aix_libpath=$lt_cv_aix_libpath
11097 else
11098   if ${lt_cv_aix_libpath_+:} false; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103
11104 int
11105 main ()
11106 {
11107
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 if ac_fn_c_try_link "$LINENO"; then :
11113
11114   lt_aix_libpath_sed='
11115       /Import File Strings/,/^$/ {
11116           /^0/ {
11117               s/^0  *\([^ ]*\) *$/\1/
11118               p
11119           }
11120       }'
11121   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11122   # Check for a 64-bit object if we didn't find anything.
11123   if test -z "$lt_cv_aix_libpath_"; then
11124     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11125   fi
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128     conftest$ac_exeext conftest.$ac_ext
11129   if test -z "$lt_cv_aix_libpath_"; then
11130     lt_cv_aix_libpath_=/usr/lib:/lib
11131   fi
11132
11133 fi
11134
11135   aix_libpath=$lt_cv_aix_libpath_
11136 fi
11137
11138         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11139         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
11140       else
11141         if test ia64 = "$host_cpu"; then
11142           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11143           allow_undefined_flag="-z nodefs"
11144           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"
11145         else
11146          # Determine the default libpath from the value encoded in an
11147          # empty executable.
11148          if test set = "${lt_cv_aix_libpath+set}"; then
11149   aix_libpath=$lt_cv_aix_libpath
11150 else
11151   if ${lt_cv_aix_libpath_+:} false; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h.  */
11156
11157 int
11158 main ()
11159 {
11160
11161   ;
11162   return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166
11167   lt_aix_libpath_sed='
11168       /Import File Strings/,/^$/ {
11169           /^0/ {
11170               s/^0  *\([^ ]*\) *$/\1/
11171               p
11172           }
11173       }'
11174   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11175   # Check for a 64-bit object if we didn't find anything.
11176   if test -z "$lt_cv_aix_libpath_"; then
11177     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178   fi
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181     conftest$ac_exeext conftest.$ac_ext
11182   if test -z "$lt_cv_aix_libpath_"; then
11183     lt_cv_aix_libpath_=/usr/lib:/lib
11184   fi
11185
11186 fi
11187
11188   aix_libpath=$lt_cv_aix_libpath_
11189 fi
11190
11191          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11192           # Warning - without using the other run time loading flags,
11193           # -berok will link without error, but may produce a broken library.
11194           no_undefined_flag=' $wl-bernotok'
11195           allow_undefined_flag=' $wl-berok'
11196           if test yes = "$with_gnu_ld"; then
11197             # We only use this code for GNU lds that support --whole-archive.
11198             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11199           else
11200             # Exported symbols can be pulled into shared objects from archives
11201             whole_archive_flag_spec='$convenience'
11202           fi
11203           archive_cmds_need_lc=yes
11204           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11205           # -brtl affects multiple linker settings, -berok does not and is overridden later
11206           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11207           if test svr4 != "$with_aix_soname"; then
11208             # This is similar to how AIX traditionally builds its shared libraries.
11209             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'
11210           fi
11211           if test aix != "$with_aix_soname"; then
11212             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'
11213           else
11214             # used by -dlpreopen to get the symbols
11215             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11216           fi
11217           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11218         fi
11219       fi
11220       ;;
11221
11222     amigaos*)
11223       case $host_cpu in
11224       powerpc)
11225             # see comment about AmigaOS4 .so support
11226             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11227             archive_expsym_cmds=''
11228         ;;
11229       m68k)
11230             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)'
11231             hardcode_libdir_flag_spec='-L$libdir'
11232             hardcode_minus_L=yes
11233         ;;
11234       esac
11235       ;;
11236
11237     bsdi[45]*)
11238       export_dynamic_flag_spec=-rdynamic
11239       ;;
11240
11241     cygwin* | mingw* | pw32* | cegcc*)
11242       # When not using gcc, we currently assume that we are using
11243       # Microsoft Visual C++.
11244       # hardcode_libdir_flag_spec is actually meaningless, as there is
11245       # no search path for DLLs.
11246       case $cc_basename in
11247       cl*)
11248         # Native MSVC
11249         hardcode_libdir_flag_spec=' '
11250         allow_undefined_flag=unsupported
11251         always_export_symbols=yes
11252         file_list_spec='@'
11253         # Tell ltmain to make .lib files, not .a files.
11254         libext=lib
11255         # Tell ltmain to make .dll files, not .so files.
11256         shrext_cmds=.dll
11257         # FIXME: Setting linknames here is a bad hack.
11258         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11259         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11260             cp "$export_symbols" "$output_objdir/$soname.def";
11261             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11262           else
11263             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11264           fi~
11265           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11266           linknames='
11267         # The linker will not automatically build a static lib if we build a DLL.
11268         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11269         enable_shared_with_static_runtimes=yes
11270         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11271         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11272         # Don't use ranlib
11273         old_postinstall_cmds='chmod 644 $oldlib'
11274         postlink_cmds='lt_outputfile="@OUTPUT@"~
11275           lt_tool_outputfile="@TOOL_OUTPUT@"~
11276           case $lt_outputfile in
11277             *.exe|*.EXE) ;;
11278             *)
11279               lt_outputfile=$lt_outputfile.exe
11280               lt_tool_outputfile=$lt_tool_outputfile.exe
11281               ;;
11282           esac~
11283           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11284             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11285             $RM "$lt_outputfile.manifest";
11286           fi'
11287         ;;
11288       *)
11289         # Assume MSVC wrapper
11290         hardcode_libdir_flag_spec=' '
11291         allow_undefined_flag=unsupported
11292         # Tell ltmain to make .lib files, not .a files.
11293         libext=lib
11294         # Tell ltmain to make .dll files, not .so files.
11295         shrext_cmds=.dll
11296         # FIXME: Setting linknames here is a bad hack.
11297         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11298         # The linker will automatically build a .lib file if we build a DLL.
11299         old_archive_from_new_cmds='true'
11300         # FIXME: Should let the user specify the lib program.
11301         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11302         enable_shared_with_static_runtimes=yes
11303         ;;
11304       esac
11305       ;;
11306
11307     darwin* | rhapsody*)
11308
11309
11310   archive_cmds_need_lc=no
11311   hardcode_direct=no
11312   hardcode_automatic=yes
11313   hardcode_shlibpath_var=unsupported
11314   if test yes = "$lt_cv_ld_force_load"; then
11315     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\"`'
11316
11317   else
11318     whole_archive_flag_spec=''
11319   fi
11320   link_all_deplibs=yes
11321   allow_undefined_flag=$_lt_dar_allow_undefined
11322   case $cc_basename in
11323      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11324      *) _lt_dar_can_shared=$GCC ;;
11325   esac
11326   if test yes = "$_lt_dar_can_shared"; then
11327     output_verbose_link_cmd=func_echo_all
11328     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11329     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11330     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"
11331     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"
11332
11333   else
11334   ld_shlibs=no
11335   fi
11336
11337       ;;
11338
11339     dgux*)
11340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341       hardcode_libdir_flag_spec='-L$libdir'
11342       hardcode_shlibpath_var=no
11343       ;;
11344
11345     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11346     # support.  Future versions do this automatically, but an explicit c++rt0.o
11347     # does not break anything, and helps significantly (at the cost of a little
11348     # extra space).
11349     freebsd2.2*)
11350       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11351       hardcode_libdir_flag_spec='-R$libdir'
11352       hardcode_direct=yes
11353       hardcode_shlibpath_var=no
11354       ;;
11355
11356     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11357     freebsd2.*)
11358       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11359       hardcode_direct=yes
11360       hardcode_minus_L=yes
11361       hardcode_shlibpath_var=no
11362       ;;
11363
11364     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11365     freebsd* | dragonfly*)
11366       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11367       hardcode_libdir_flag_spec='-R$libdir'
11368       hardcode_direct=yes
11369       hardcode_shlibpath_var=no
11370       ;;
11371
11372     hpux9*)
11373       if test yes = "$GCC"; then
11374         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'
11375       else
11376         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'
11377       fi
11378       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11379       hardcode_libdir_separator=:
11380       hardcode_direct=yes
11381
11382       # hardcode_minus_L: Not really in the search PATH,
11383       # but as the default location of the library.
11384       hardcode_minus_L=yes
11385       export_dynamic_flag_spec='$wl-E'
11386       ;;
11387
11388     hpux10*)
11389       if test yes,no = "$GCC,$with_gnu_ld"; then
11390         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11391       else
11392         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11393       fi
11394       if test no = "$with_gnu_ld"; then
11395         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11396         hardcode_libdir_separator=:
11397         hardcode_direct=yes
11398         hardcode_direct_absolute=yes
11399         export_dynamic_flag_spec='$wl-E'
11400         # hardcode_minus_L: Not really in the search PATH,
11401         # but as the default location of the library.
11402         hardcode_minus_L=yes
11403       fi
11404       ;;
11405
11406     hpux11*)
11407       if test yes,no = "$GCC,$with_gnu_ld"; then
11408         case $host_cpu in
11409         hppa*64*)
11410           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11411           ;;
11412         ia64*)
11413           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11414           ;;
11415         *)
11416           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11417           ;;
11418         esac
11419       else
11420         case $host_cpu in
11421         hppa*64*)
11422           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11423           ;;
11424         ia64*)
11425           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11426           ;;
11427         *)
11428
11429           # Older versions of the 11.00 compiler do not understand -b yet
11430           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11431           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11432 $as_echo_n "checking if $CC understands -b... " >&6; }
11433 if ${lt_cv_prog_compiler__b+:} false; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   lt_cv_prog_compiler__b=no
11437    save_LDFLAGS=$LDFLAGS
11438    LDFLAGS="$LDFLAGS -b"
11439    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11440    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11441      # The linker can only warn and ignore the option if not recognized
11442      # So say no if there are warnings
11443      if test -s conftest.err; then
11444        # Append any errors to the config.log.
11445        cat conftest.err 1>&5
11446        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11447        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11448        if diff conftest.exp conftest.er2 >/dev/null; then
11449          lt_cv_prog_compiler__b=yes
11450        fi
11451      else
11452        lt_cv_prog_compiler__b=yes
11453      fi
11454    fi
11455    $RM -r conftest*
11456    LDFLAGS=$save_LDFLAGS
11457
11458 fi
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11461
11462 if test yes = "$lt_cv_prog_compiler__b"; then
11463     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11464 else
11465     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11466 fi
11467
11468           ;;
11469         esac
11470       fi
11471       if test no = "$with_gnu_ld"; then
11472         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11473         hardcode_libdir_separator=:
11474
11475         case $host_cpu in
11476         hppa*64*|ia64*)
11477           hardcode_direct=no
11478           hardcode_shlibpath_var=no
11479           ;;
11480         *)
11481           hardcode_direct=yes
11482           hardcode_direct_absolute=yes
11483           export_dynamic_flag_spec='$wl-E'
11484
11485           # hardcode_minus_L: Not really in the search PATH,
11486           # but as the default location of the library.
11487           hardcode_minus_L=yes
11488           ;;
11489         esac
11490       fi
11491       ;;
11492
11493     irix5* | irix6* | nonstopux*)
11494       if test yes = "$GCC"; then
11495         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'
11496         # Try to use the -exported_symbol ld option, if it does not
11497         # work, assume that -exports_file does not work either and
11498         # implicitly export all symbols.
11499         # This should be the same for all languages, so no per-tag cache variable.
11500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11501 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11502 if ${lt_cv_irix_exported_symbol+:} false; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   save_LDFLAGS=$LDFLAGS
11506            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11507            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509 int foo (void) { return 0; }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512   lt_cv_irix_exported_symbol=yes
11513 else
11514   lt_cv_irix_exported_symbol=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517     conftest$ac_exeext conftest.$ac_ext
11518            LDFLAGS=$save_LDFLAGS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11521 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11522         if test yes = "$lt_cv_irix_exported_symbol"; then
11523           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'
11524         fi
11525         link_all_deplibs=no
11526       else
11527         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'
11528         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'
11529       fi
11530       archive_cmds_need_lc='no'
11531       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11532       hardcode_libdir_separator=:
11533       inherit_rpath=yes
11534       link_all_deplibs=yes
11535       ;;
11536
11537     linux*)
11538       case $cc_basename in
11539       tcc*)
11540         # Fabrice Bellard et al's Tiny C Compiler
11541         ld_shlibs=yes
11542         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11543         ;;
11544       esac
11545       ;;
11546
11547     netbsd* | netbsdelf*-gnu)
11548       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11549         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11550       else
11551         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11552       fi
11553       hardcode_libdir_flag_spec='-R$libdir'
11554       hardcode_direct=yes
11555       hardcode_shlibpath_var=no
11556       ;;
11557
11558     newsos6)
11559       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11560       hardcode_direct=yes
11561       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11562       hardcode_libdir_separator=:
11563       hardcode_shlibpath_var=no
11564       ;;
11565
11566     *nto* | *qnx*)
11567       ;;
11568
11569     openbsd* | bitrig*)
11570       if test -f /usr/libexec/ld.so; then
11571         hardcode_direct=yes
11572         hardcode_shlibpath_var=no
11573         hardcode_direct_absolute=yes
11574         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11575           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11577           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11578           export_dynamic_flag_spec='$wl-E'
11579         else
11580           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11581           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11582         fi
11583       else
11584         ld_shlibs=no
11585       fi
11586       ;;
11587
11588     os2*)
11589       hardcode_libdir_flag_spec='-L$libdir'
11590       hardcode_minus_L=yes
11591       allow_undefined_flag=unsupported
11592       shrext_cmds=.dll
11593       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11594         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11595         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11596         $ECHO EXPORTS >> $output_objdir/$libname.def~
11597         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11598         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11599         emximp -o $lib $output_objdir/$libname.def'
11600       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11601         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11602         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11603         $ECHO EXPORTS >> $output_objdir/$libname.def~
11604         prefix_cmds="$SED"~
11605         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11606           prefix_cmds="$prefix_cmds -e 1d";
11607         fi~
11608         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11609         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11610         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11611         emximp -o $lib $output_objdir/$libname.def'
11612       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11613       enable_shared_with_static_runtimes=yes
11614       ;;
11615
11616     osf3*)
11617       if test yes = "$GCC"; then
11618         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11619         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'
11620       else
11621         allow_undefined_flag=' -expect_unresolved \*'
11622         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'
11623       fi
11624       archive_cmds_need_lc='no'
11625       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11626       hardcode_libdir_separator=:
11627       ;;
11628
11629     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11630       if test yes = "$GCC"; then
11631         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11632         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'
11633         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11634       else
11635         allow_undefined_flag=' -expect_unresolved \*'
11636         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'
11637         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~
11638           $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'
11639
11640         # Both c and cxx compiler support -rpath directly
11641         hardcode_libdir_flag_spec='-rpath $libdir'
11642       fi
11643       archive_cmds_need_lc='no'
11644       hardcode_libdir_separator=:
11645       ;;
11646
11647     solaris*)
11648       no_undefined_flag=' -z defs'
11649       if test yes = "$GCC"; then
11650         wlarc='$wl'
11651         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11652         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11653           $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'
11654       else
11655         case `$CC -V 2>&1` in
11656         *"Compilers 5.0"*)
11657           wlarc=''
11658           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11660             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11661           ;;
11662         *)
11663           wlarc='$wl'
11664           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11665           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11666             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11667           ;;
11668         esac
11669       fi
11670       hardcode_libdir_flag_spec='-R$libdir'
11671       hardcode_shlibpath_var=no
11672       case $host_os in
11673       solaris2.[0-5] | solaris2.[0-5].*) ;;
11674       *)
11675         # The compiler driver will combine and reorder linker options,
11676         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11677         # but is careful enough not to reorder.
11678         # Supported since Solaris 2.6 (maybe 2.5.1?)
11679         if test yes = "$GCC"; then
11680           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11681         else
11682           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11683         fi
11684         ;;
11685       esac
11686       link_all_deplibs=yes
11687       ;;
11688
11689     sunos4*)
11690       if test sequent = "$host_vendor"; then
11691         # Use $CC to link under sequent, because it throws in some extra .o
11692         # files that make .init and .fini sections work.
11693         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11694       else
11695         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11696       fi
11697       hardcode_libdir_flag_spec='-L$libdir'
11698       hardcode_direct=yes
11699       hardcode_minus_L=yes
11700       hardcode_shlibpath_var=no
11701       ;;
11702
11703     sysv4)
11704       case $host_vendor in
11705         sni)
11706           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707           hardcode_direct=yes # is this really true???
11708         ;;
11709         siemens)
11710           ## LD is ld it makes a PLAMLIB
11711           ## CC just makes a GrossModule.
11712           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11713           reload_cmds='$CC -r -o $output$reload_objs'
11714           hardcode_direct=no
11715         ;;
11716         motorola)
11717           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11719         ;;
11720       esac
11721       runpath_var='LD_RUN_PATH'
11722       hardcode_shlibpath_var=no
11723       ;;
11724
11725     sysv4.3*)
11726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11727       hardcode_shlibpath_var=no
11728       export_dynamic_flag_spec='-Bexport'
11729       ;;
11730
11731     sysv4*MP*)
11732       if test -d /usr/nec; then
11733         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734         hardcode_shlibpath_var=no
11735         runpath_var=LD_RUN_PATH
11736         hardcode_runpath_var=yes
11737         ld_shlibs=yes
11738       fi
11739       ;;
11740
11741     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742       no_undefined_flag='$wl-z,text'
11743       archive_cmds_need_lc=no
11744       hardcode_shlibpath_var=no
11745       runpath_var='LD_RUN_PATH'
11746
11747       if test yes = "$GCC"; then
11748         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750       else
11751         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753       fi
11754       ;;
11755
11756     sysv5* | sco3.2v5* | sco5v6*)
11757       # Note: We CANNOT use -z defs as we might desire, because we do not
11758       # link with -lc, and that would cause any symbols used from libc to
11759       # always be unresolved, which means just about no library would
11760       # ever link correctly.  If we're not using GNU ld we use -z text
11761       # though, which does catch some bad symbols but isn't as heavy-handed
11762       # as -z defs.
11763       no_undefined_flag='$wl-z,text'
11764       allow_undefined_flag='$wl-z,nodefs'
11765       archive_cmds_need_lc=no
11766       hardcode_shlibpath_var=no
11767       hardcode_libdir_flag_spec='$wl-R,$libdir'
11768       hardcode_libdir_separator=':'
11769       link_all_deplibs=yes
11770       export_dynamic_flag_spec='$wl-Bexport'
11771       runpath_var='LD_RUN_PATH'
11772
11773       if test yes = "$GCC"; then
11774         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776       else
11777         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779       fi
11780       ;;
11781
11782     uts4*)
11783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784       hardcode_libdir_flag_spec='-L$libdir'
11785       hardcode_shlibpath_var=no
11786       ;;
11787
11788     *)
11789       ld_shlibs=no
11790       ;;
11791     esac
11792
11793     if test sni = "$host_vendor"; then
11794       case $host in
11795       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11796         export_dynamic_flag_spec='$wl-Blargedynsym'
11797         ;;
11798       esac
11799     fi
11800   fi
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11803 $as_echo "$ld_shlibs" >&6; }
11804 test no = "$ld_shlibs" && can_build_shared=no
11805
11806 with_gnu_ld=$with_gnu_ld
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 #
11823 # Do we need to explicitly link libc?
11824 #
11825 case "x$archive_cmds_need_lc" in
11826 x|xyes)
11827   # Assume -lc should be added
11828   archive_cmds_need_lc=yes
11829
11830   if test yes,yes = "$GCC,$enable_shared"; then
11831     case $archive_cmds in
11832     *'~'*)
11833       # FIXME: we may have to deal with multi-command sequences.
11834       ;;
11835     '$CC '*)
11836       # Test whether the compiler implicitly links with -lc since on some
11837       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11838       # to ld, don't add -lc before -lgcc.
11839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11841 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   $RM conftest*
11845         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11846
11847         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11848   (eval $ac_compile) 2>&5
11849   ac_status=$?
11850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851   test $ac_status = 0; } 2>conftest.err; then
11852           soname=conftest
11853           lib=conftest
11854           libobjs=conftest.$ac_objext
11855           deplibs=
11856           wl=$lt_prog_compiler_wl
11857           pic_flag=$lt_prog_compiler_pic
11858           compiler_flags=-v
11859           linker_flags=-v
11860           verstring=
11861           output_objdir=.
11862           libname=conftest
11863           lt_save_allow_undefined_flag=$allow_undefined_flag
11864           allow_undefined_flag=
11865           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11866   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11867   ac_status=$?
11868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869   test $ac_status = 0; }
11870           then
11871             lt_cv_archive_cmds_need_lc=no
11872           else
11873             lt_cv_archive_cmds_need_lc=yes
11874           fi
11875           allow_undefined_flag=$lt_save_allow_undefined_flag
11876         else
11877           cat conftest.err 1>&5
11878         fi
11879         $RM conftest*
11880
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11883 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11884       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11885       ;;
11886     esac
11887   fi
11888   ;;
11889 esac
11890
11891
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12043 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12044
12045 if test yes = "$GCC"; then
12046   case $host_os in
12047     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12048     *) lt_awk_arg='/^libraries:/' ;;
12049   esac
12050   case $host_os in
12051     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12052     *) lt_sed_strip_eq='s|=/|/|g' ;;
12053   esac
12054   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12055   case $lt_search_path_spec in
12056   *\;*)
12057     # if the path contains ";" then we assume it to be the separator
12058     # otherwise default to the standard path separator (i.e. ":") - it is
12059     # assumed that no part of a normal pathname contains ";" but that should
12060     # okay in the real world where ";" in dirpaths is itself problematic.
12061     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12062     ;;
12063   *)
12064     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12065     ;;
12066   esac
12067   # Ok, now we have the path, separated by spaces, we can step through it
12068   # and add multilib dir if necessary...
12069   lt_tmp_lt_search_path_spec=
12070   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12071   # ...but if some path component already ends with the multilib dir we assume
12072   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12073   case "$lt_multi_os_dir; $lt_search_path_spec " in
12074   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12075     lt_multi_os_dir=
12076     ;;
12077   esac
12078   for lt_sys_path in $lt_search_path_spec; do
12079     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12080       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12081     elif test -n "$lt_multi_os_dir"; then
12082       test -d "$lt_sys_path" && \
12083         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12084     fi
12085   done
12086   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12087 BEGIN {RS = " "; FS = "/|\n";} {
12088   lt_foo = "";
12089   lt_count = 0;
12090   for (lt_i = NF; lt_i > 0; lt_i--) {
12091     if ($lt_i != "" && $lt_i != ".") {
12092       if ($lt_i == "..") {
12093         lt_count++;
12094       } else {
12095         if (lt_count == 0) {
12096           lt_foo = "/" $lt_i lt_foo;
12097         } else {
12098           lt_count--;
12099         }
12100       }
12101     }
12102   }
12103   if (lt_foo != "") { lt_freq[lt_foo]++; }
12104   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12105 }'`
12106   # AWK program above erroneously prepends '/' to C:/dos/paths
12107   # for these hosts.
12108   case $host_os in
12109     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12110       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12111   esac
12112   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12113 else
12114   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12115 fi
12116 library_names_spec=
12117 libname_spec='lib$name'
12118 soname_spec=
12119 shrext_cmds=.so
12120 postinstall_cmds=
12121 postuninstall_cmds=
12122 finish_cmds=
12123 finish_eval=
12124 shlibpath_var=
12125 shlibpath_overrides_runpath=unknown
12126 version_type=none
12127 dynamic_linker="$host_os ld.so"
12128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12129 need_lib_prefix=unknown
12130 hardcode_into_libs=no
12131
12132 # when you set need_version to no, make sure it does not cause -set_version
12133 # flags to be left without arguments
12134 need_version=unknown
12135
12136
12137
12138 case $host_os in
12139 aix3*)
12140   version_type=linux # correct to gnu/linux during the next big refactor
12141   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12142   shlibpath_var=LIBPATH
12143
12144   # AIX 3 has no versioning support, so we append a major version to the name.
12145   soname_spec='$libname$release$shared_ext$major'
12146   ;;
12147
12148 aix[4-9]*)
12149   version_type=linux # correct to gnu/linux during the next big refactor
12150   need_lib_prefix=no
12151   need_version=no
12152   hardcode_into_libs=yes
12153   if test ia64 = "$host_cpu"; then
12154     # AIX 5 supports IA64
12155     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12156     shlibpath_var=LD_LIBRARY_PATH
12157   else
12158     # With GCC up to 2.95.x, collect2 would create an import file
12159     # for dependence libraries.  The import file would start with
12160     # the line '#! .'.  This would cause the generated library to
12161     # depend on '.', always an invalid library.  This was fixed in
12162     # development snapshots of GCC prior to 3.0.
12163     case $host_os in
12164       aix4 | aix4.[01] | aix4.[01].*)
12165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12166            echo ' yes '
12167            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12168         :
12169       else
12170         can_build_shared=no
12171       fi
12172       ;;
12173     esac
12174     # Using Import Files as archive members, it is possible to support
12175     # filename-based versioning of shared library archives on AIX. While
12176     # this would work for both with and without runtime linking, it will
12177     # prevent static linking of such archives. So we do filename-based
12178     # shared library versioning with .so extension only, which is used
12179     # when both runtime linking and shared linking is enabled.
12180     # Unfortunately, runtime linking may impact performance, so we do
12181     # not want this to be the default eventually. Also, we use the
12182     # versioned .so libs for executables only if there is the -brtl
12183     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12184     # To allow for filename-based versioning support, we need to create
12185     # libNAME.so.V as an archive file, containing:
12186     # *) an Import File, referring to the versioned filename of the
12187     #    archive as well as the shared archive member, telling the
12188     #    bitwidth (32 or 64) of that shared object, and providing the
12189     #    list of exported symbols of that shared object, eventually
12190     #    decorated with the 'weak' keyword
12191     # *) the shared object with the F_LOADONLY flag set, to really avoid
12192     #    it being seen by the linker.
12193     # At run time we better use the real file rather than another symlink,
12194     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12195
12196     case $with_aix_soname,$aix_use_runtimelinking in
12197     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12198     # soname into executable. Probably we can add versioning support to
12199     # collect2, so additional links can be useful in future.
12200     aix,yes) # traditional libtool
12201       dynamic_linker='AIX unversionable lib.so'
12202       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12203       # instead of lib<name>.a to let people know that these are not
12204       # typical AIX shared libraries.
12205       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206       ;;
12207     aix,no) # traditional AIX only
12208       dynamic_linker='AIX lib.a(lib.so.V)'
12209       # We preserve .a as extension for shared libraries through AIX4.2
12210       # and later when we are not doing run time linking.
12211       library_names_spec='$libname$release.a $libname.a'
12212       soname_spec='$libname$release$shared_ext$major'
12213       ;;
12214     svr4,*) # full svr4 only
12215       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12216       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12217       # We do not specify a path in Import Files, so LIBPATH fires.
12218       shlibpath_overrides_runpath=yes
12219       ;;
12220     *,yes) # both, prefer svr4
12221       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12222       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12223       # unpreferred sharedlib libNAME.a needs extra handling
12224       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"'
12225       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"'
12226       # We do not specify a path in Import Files, so LIBPATH fires.
12227       shlibpath_overrides_runpath=yes
12228       ;;
12229     *,no) # both, prefer aix
12230       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12231       library_names_spec='$libname$release.a $libname.a'
12232       soname_spec='$libname$release$shared_ext$major'
12233       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12234       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)'
12235       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"'
12236       ;;
12237     esac
12238     shlibpath_var=LIBPATH
12239   fi
12240   ;;
12241
12242 amigaos*)
12243   case $host_cpu in
12244   powerpc)
12245     # Since July 2007 AmigaOS4 officially supports .so libraries.
12246     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12247     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248     ;;
12249   m68k)
12250     library_names_spec='$libname.ixlibrary $libname.a'
12251     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12252     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'
12253     ;;
12254   esac
12255   ;;
12256
12257 beos*)
12258   library_names_spec='$libname$shared_ext'
12259   dynamic_linker="$host_os ld.so"
12260   shlibpath_var=LIBRARY_PATH
12261   ;;
12262
12263 bsdi[45]*)
12264   version_type=linux # correct to gnu/linux during the next big refactor
12265   need_version=no
12266   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267   soname_spec='$libname$release$shared_ext$major'
12268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12272   # the default ld.so.conf also contains /usr/contrib/lib and
12273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12274   # libtool to hard-code these into programs
12275   ;;
12276
12277 cygwin* | mingw* | pw32* | cegcc*)
12278   version_type=windows
12279   shrext_cmds=.dll
12280   need_version=no
12281   need_lib_prefix=no
12282
12283   case $GCC,$cc_basename in
12284   yes,*)
12285     # gcc
12286     library_names_spec='$libname.dll.a'
12287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12288     postinstall_cmds='base_file=`basename \$file`~
12289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12290       dldir=$destdir/`dirname \$dlpath`~
12291       test -d \$dldir || mkdir -p \$dldir~
12292       $install_prog $dir/$dlname \$dldir/$dlname~
12293       chmod a+x \$dldir/$dlname~
12294       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12295         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12296       fi'
12297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12298       dlpath=$dir/\$dldll~
12299        $RM \$dlpath'
12300     shlibpath_overrides_runpath=yes
12301
12302     case $host_os in
12303     cygwin*)
12304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12305       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12306
12307       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12308       ;;
12309     mingw* | cegcc*)
12310       # MinGW DLLs use traditional 'lib' prefix
12311       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12312       ;;
12313     pw32*)
12314       # pw32 DLLs use 'pw' prefix rather than 'lib'
12315       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12316       ;;
12317     esac
12318     dynamic_linker='Win32 ld.exe'
12319     ;;
12320
12321   *,cl*)
12322     # Native MSVC
12323     libname_spec='$name'
12324     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12325     library_names_spec='$libname.dll.lib'
12326
12327     case $build_os in
12328     mingw*)
12329       sys_lib_search_path_spec=
12330       lt_save_ifs=$IFS
12331       IFS=';'
12332       for lt_path in $LIB
12333       do
12334         IFS=$lt_save_ifs
12335         # Let DOS variable expansion print the short 8.3 style file name.
12336         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12337         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12338       done
12339       IFS=$lt_save_ifs
12340       # Convert to MSYS style.
12341       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12342       ;;
12343     cygwin*)
12344       # Convert to unix form, then to dos form, then back to unix form
12345       # but this time dos style (no spaces!) so that the unix form looks
12346       # like /cygdrive/c/PROGRA~1:/cygdr...
12347       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12348       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12349       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12350       ;;
12351     *)
12352       sys_lib_search_path_spec=$LIB
12353       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12354         # It is most probably a Windows format PATH.
12355         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12356       else
12357         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12358       fi
12359       # FIXME: find the short name or the path components, as spaces are
12360       # common. (e.g. "Program Files" -> "PROGRA~1")
12361       ;;
12362     esac
12363
12364     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12365     postinstall_cmds='base_file=`basename \$file`~
12366       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12367       dldir=$destdir/`dirname \$dlpath`~
12368       test -d \$dldir || mkdir -p \$dldir~
12369       $install_prog $dir/$dlname \$dldir/$dlname'
12370     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12371       dlpath=$dir/\$dldll~
12372        $RM \$dlpath'
12373     shlibpath_overrides_runpath=yes
12374     dynamic_linker='Win32 link.exe'
12375     ;;
12376
12377   *)
12378     # Assume MSVC wrapper
12379     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12380     dynamic_linker='Win32 ld.exe'
12381     ;;
12382   esac
12383   # FIXME: first we should search . and the directory the executable is in
12384   shlibpath_var=PATH
12385   ;;
12386
12387 darwin* | rhapsody*)
12388   dynamic_linker="$host_os dyld"
12389   version_type=darwin
12390   need_lib_prefix=no
12391   need_version=no
12392   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12393   soname_spec='$libname$release$major$shared_ext'
12394   shlibpath_overrides_runpath=yes
12395   shlibpath_var=DYLD_LIBRARY_PATH
12396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12397
12398   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12399   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12400   ;;
12401
12402 dgux*)
12403   version_type=linux # correct to gnu/linux during the next big refactor
12404   need_lib_prefix=no
12405   need_version=no
12406   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407   soname_spec='$libname$release$shared_ext$major'
12408   shlibpath_var=LD_LIBRARY_PATH
12409   ;;
12410
12411 freebsd* | dragonfly*)
12412   # DragonFly does not have aout.  When/if they implement a new
12413   # versioning mechanism, adjust this.
12414   if test -x /usr/bin/objformat; then
12415     objformat=`/usr/bin/objformat`
12416   else
12417     case $host_os in
12418     freebsd[23].*) objformat=aout ;;
12419     *) objformat=elf ;;
12420     esac
12421   fi
12422   version_type=freebsd-$objformat
12423   case $version_type in
12424     freebsd-elf*)
12425       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426       soname_spec='$libname$release$shared_ext$major'
12427       need_version=no
12428       need_lib_prefix=no
12429       ;;
12430     freebsd-*)
12431       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12432       need_version=yes
12433       ;;
12434   esac
12435   shlibpath_var=LD_LIBRARY_PATH
12436   case $host_os in
12437   freebsd2.*)
12438     shlibpath_overrides_runpath=yes
12439     ;;
12440   freebsd3.[01]* | freebsdelf3.[01]*)
12441     shlibpath_overrides_runpath=yes
12442     hardcode_into_libs=yes
12443     ;;
12444   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12445   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12446     shlibpath_overrides_runpath=no
12447     hardcode_into_libs=yes
12448     ;;
12449   *) # from 4.6 on, and DragonFly
12450     shlibpath_overrides_runpath=yes
12451     hardcode_into_libs=yes
12452     ;;
12453   esac
12454   ;;
12455
12456 haiku*)
12457   version_type=linux # correct to gnu/linux during the next big refactor
12458   need_lib_prefix=no
12459   need_version=no
12460   dynamic_linker="$host_os runtime_loader"
12461   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12462   soname_spec='$libname$release$shared_ext$major'
12463   shlibpath_var=LIBRARY_PATH
12464   shlibpath_overrides_runpath=no
12465   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12466   hardcode_into_libs=yes
12467   ;;
12468
12469 hpux9* | hpux10* | hpux11*)
12470   # Give a soname corresponding to the major version so that dld.sl refuses to
12471   # link against other versions.
12472   version_type=sunos
12473   need_lib_prefix=no
12474   need_version=no
12475   case $host_cpu in
12476   ia64*)
12477     shrext_cmds='.so'
12478     hardcode_into_libs=yes
12479     dynamic_linker="$host_os dld.so"
12480     shlibpath_var=LD_LIBRARY_PATH
12481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12482     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483     soname_spec='$libname$release$shared_ext$major'
12484     if test 32 = "$HPUX_IA64_MODE"; then
12485       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12486       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12487     else
12488       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12489       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12490     fi
12491     ;;
12492   hppa*64*)
12493     shrext_cmds='.sl'
12494     hardcode_into_libs=yes
12495     dynamic_linker="$host_os dld.sl"
12496     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12498     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12499     soname_spec='$libname$release$shared_ext$major'
12500     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12501     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12502     ;;
12503   *)
12504     shrext_cmds='.sl'
12505     dynamic_linker="$host_os dld.sl"
12506     shlibpath_var=SHLIB_PATH
12507     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12508     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12509     soname_spec='$libname$release$shared_ext$major'
12510     ;;
12511   esac
12512   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12513   postinstall_cmds='chmod 555 $lib'
12514   # or fails outright, so override atomically:
12515   install_override_mode=555
12516   ;;
12517
12518 interix[3-9]*)
12519   version_type=linux # correct to gnu/linux during the next big refactor
12520   need_lib_prefix=no
12521   need_version=no
12522   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523   soname_spec='$libname$release$shared_ext$major'
12524   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   shlibpath_overrides_runpath=no
12527   hardcode_into_libs=yes
12528   ;;
12529
12530 irix5* | irix6* | nonstopux*)
12531   case $host_os in
12532     nonstopux*) version_type=nonstopux ;;
12533     *)
12534         if test yes = "$lt_cv_prog_gnu_ld"; then
12535                 version_type=linux # correct to gnu/linux during the next big refactor
12536         else
12537                 version_type=irix
12538         fi ;;
12539   esac
12540   need_lib_prefix=no
12541   need_version=no
12542   soname_spec='$libname$release$shared_ext$major'
12543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12544   case $host_os in
12545   irix5* | nonstopux*)
12546     libsuff= shlibsuff=
12547     ;;
12548   *)
12549     case $LD in # libtool.m4 will add one of these switches to LD
12550     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12551       libsuff= shlibsuff= libmagic=32-bit;;
12552     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12553       libsuff=32 shlibsuff=N32 libmagic=N32;;
12554     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12555       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12556     *) libsuff= shlibsuff= libmagic=never-match;;
12557     esac
12558     ;;
12559   esac
12560   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12561   shlibpath_overrides_runpath=no
12562   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12563   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12564   hardcode_into_libs=yes
12565   ;;
12566
12567 # No shared lib support for Linux oldld, aout, or coff.
12568 linux*oldld* | linux*aout* | linux*coff*)
12569   dynamic_linker=no
12570   ;;
12571
12572 linux*android*)
12573   version_type=none # Android doesn't support versioned libraries.
12574   need_lib_prefix=no
12575   need_version=no
12576   library_names_spec='$libname$release$shared_ext'
12577   soname_spec='$libname$release$shared_ext'
12578   finish_cmds=
12579   shlibpath_var=LD_LIBRARY_PATH
12580   shlibpath_overrides_runpath=yes
12581
12582   # This implies no fast_install, which is unacceptable.
12583   # Some rework will be needed to allow for fast_install
12584   # before this can be enabled.
12585   hardcode_into_libs=yes
12586
12587   dynamic_linker='Android linker'
12588   # Don't embed -rpath directories since the linker doesn't support them.
12589   hardcode_libdir_flag_spec='-L$libdir'
12590   ;;
12591
12592 # This must be glibc/ELF.
12593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12594   version_type=linux # correct to gnu/linux during the next big refactor
12595   need_lib_prefix=no
12596   need_version=no
12597   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12598   soname_spec='$libname$release$shared_ext$major'
12599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12600   shlibpath_var=LD_LIBRARY_PATH
12601   shlibpath_overrides_runpath=no
12602
12603   # Some binutils ld are patched to set DT_RUNPATH
12604   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   lt_cv_shlibpath_overrides_runpath=no
12608     save_LDFLAGS=$LDFLAGS
12609     save_libdir=$libdir
12610     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12611          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h.  */
12614
12615 int
12616 main ()
12617 {
12618
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_c_try_link "$LINENO"; then :
12624   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12625   lt_cv_shlibpath_overrides_runpath=yes
12626 fi
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext \
12629     conftest$ac_exeext conftest.$ac_ext
12630     LDFLAGS=$save_LDFLAGS
12631     libdir=$save_libdir
12632
12633 fi
12634
12635   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12636
12637   # This implies no fast_install, which is unacceptable.
12638   # Some rework will be needed to allow for fast_install
12639   # before this can be enabled.
12640   hardcode_into_libs=yes
12641
12642   # Ideally, we could use ldconfig to report *all* directores which are
12643   # searched for libraries, however this is still not possible.  Aside from not
12644   # being certain /sbin/ldconfig is available, command
12645   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12646   # even though it is searched at run-time.  Try to do the best guess by
12647   # appending ld.so.conf contents (and includes) to the search path.
12648   if test -f /etc/ld.so.conf; then
12649     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' ' '`
12650     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12651   fi
12652
12653   # We used to test for /lib/ld.so.1 and disable shared libraries on
12654   # powerpc, because MkLinux only supported shared libraries with the
12655   # GNU dynamic linker.  Since this was broken with cross compilers,
12656   # most powerpc-linux boxes support dynamic linking these days and
12657   # people can always --disable-shared, the test was removed, and we
12658   # assume the GNU/Linux dynamic linker is in use.
12659   dynamic_linker='GNU/Linux ld.so'
12660   ;;
12661
12662 netbsdelf*-gnu)
12663   version_type=linux
12664   need_lib_prefix=no
12665   need_version=no
12666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12667   soname_spec='${libname}${release}${shared_ext}$major'
12668   shlibpath_var=LD_LIBRARY_PATH
12669   shlibpath_overrides_runpath=no
12670   hardcode_into_libs=yes
12671   dynamic_linker='NetBSD ld.elf_so'
12672   ;;
12673
12674 netbsd*)
12675   version_type=sunos
12676   need_lib_prefix=no
12677   need_version=no
12678   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12679     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12680     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12681     dynamic_linker='NetBSD (a.out) ld.so'
12682   else
12683     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12684     soname_spec='$libname$release$shared_ext$major'
12685     dynamic_linker='NetBSD ld.elf_so'
12686   fi
12687   shlibpath_var=LD_LIBRARY_PATH
12688   shlibpath_overrides_runpath=yes
12689   hardcode_into_libs=yes
12690   ;;
12691
12692 newsos6)
12693   version_type=linux # correct to gnu/linux during the next big refactor
12694   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695   shlibpath_var=LD_LIBRARY_PATH
12696   shlibpath_overrides_runpath=yes
12697   ;;
12698
12699 *nto* | *qnx*)
12700   version_type=qnx
12701   need_lib_prefix=no
12702   need_version=no
12703   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12704   soname_spec='$libname$release$shared_ext$major'
12705   shlibpath_var=LD_LIBRARY_PATH
12706   shlibpath_overrides_runpath=no
12707   hardcode_into_libs=yes
12708   dynamic_linker='ldqnx.so'
12709   ;;
12710
12711 openbsd* | bitrig*)
12712   version_type=sunos
12713   sys_lib_dlsearch_path_spec=/usr/lib
12714   need_lib_prefix=no
12715   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12716     need_version=no
12717   else
12718     need_version=yes
12719   fi
12720   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12722   shlibpath_var=LD_LIBRARY_PATH
12723   shlibpath_overrides_runpath=yes
12724   ;;
12725
12726 os2*)
12727   libname_spec='$name'
12728   version_type=windows
12729   shrext_cmds=.dll
12730   need_version=no
12731   need_lib_prefix=no
12732   # OS/2 can only load a DLL with a base name of 8 characters or less.
12733   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12734     v=$($ECHO $release$versuffix | tr -d .-);
12735     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12736     $ECHO $n$v`$shared_ext'
12737   library_names_spec='${libname}_dll.$libext'
12738   dynamic_linker='OS/2 ld.exe'
12739   shlibpath_var=BEGINLIBPATH
12740   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12741   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12742   postinstall_cmds='base_file=`basename \$file`~
12743     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12744     dldir=$destdir/`dirname \$dlpath`~
12745     test -d \$dldir || mkdir -p \$dldir~
12746     $install_prog $dir/$dlname \$dldir/$dlname~
12747     chmod a+x \$dldir/$dlname~
12748     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12749       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12750     fi'
12751   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12752     dlpath=$dir/\$dldll~
12753     $RM \$dlpath'
12754   ;;
12755
12756 osf3* | osf4* | osf5*)
12757   version_type=osf
12758   need_lib_prefix=no
12759   need_version=no
12760   soname_spec='$libname$release$shared_ext$major'
12761   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12762   shlibpath_var=LD_LIBRARY_PATH
12763   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12764   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765   ;;
12766
12767 rdos*)
12768   dynamic_linker=no
12769   ;;
12770
12771 solaris*)
12772   version_type=linux # correct to gnu/linux during the next big refactor
12773   need_lib_prefix=no
12774   need_version=no
12775   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12776   soname_spec='$libname$release$shared_ext$major'
12777   shlibpath_var=LD_LIBRARY_PATH
12778   shlibpath_overrides_runpath=yes
12779   hardcode_into_libs=yes
12780   # ldd complains unless libraries are executable
12781   postinstall_cmds='chmod +x $lib'
12782   ;;
12783
12784 sunos4*)
12785   version_type=sunos
12786   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12788   shlibpath_var=LD_LIBRARY_PATH
12789   shlibpath_overrides_runpath=yes
12790   if test yes = "$with_gnu_ld"; then
12791     need_lib_prefix=no
12792   fi
12793   need_version=yes
12794   ;;
12795
12796 sysv4 | sysv4.3*)
12797   version_type=linux # correct to gnu/linux during the next big refactor
12798   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12799   soname_spec='$libname$release$shared_ext$major'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   case $host_vendor in
12802     sni)
12803       shlibpath_overrides_runpath=no
12804       need_lib_prefix=no
12805       runpath_var=LD_RUN_PATH
12806       ;;
12807     siemens)
12808       need_lib_prefix=no
12809       ;;
12810     motorola)
12811       need_lib_prefix=no
12812       need_version=no
12813       shlibpath_overrides_runpath=no
12814       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12815       ;;
12816   esac
12817   ;;
12818
12819 sysv4*MP*)
12820   if test -d /usr/nec; then
12821     version_type=linux # correct to gnu/linux during the next big refactor
12822     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12823     soname_spec='$libname$shared_ext.$major'
12824     shlibpath_var=LD_LIBRARY_PATH
12825   fi
12826   ;;
12827
12828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12829   version_type=sco
12830   need_lib_prefix=no
12831   need_version=no
12832   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12833   soname_spec='$libname$release$shared_ext$major'
12834   shlibpath_var=LD_LIBRARY_PATH
12835   shlibpath_overrides_runpath=yes
12836   hardcode_into_libs=yes
12837   if test yes = "$with_gnu_ld"; then
12838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12839   else
12840     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12841     case $host_os in
12842       sco3.2v5*)
12843         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12844         ;;
12845     esac
12846   fi
12847   sys_lib_dlsearch_path_spec='/usr/lib'
12848   ;;
12849
12850 tpf*)
12851   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12852   version_type=linux # correct to gnu/linux during the next big refactor
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856   shlibpath_var=LD_LIBRARY_PATH
12857   shlibpath_overrides_runpath=no
12858   hardcode_into_libs=yes
12859   ;;
12860
12861 uts4*)
12862   version_type=linux # correct to gnu/linux during the next big refactor
12863   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12864   soname_spec='$libname$release$shared_ext$major'
12865   shlibpath_var=LD_LIBRARY_PATH
12866   ;;
12867
12868 *)
12869   dynamic_linker=no
12870   ;;
12871 esac
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12873 $as_echo "$dynamic_linker" >&6; }
12874 test no = "$dynamic_linker" && can_build_shared=no
12875
12876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12877 if test yes = "$GCC"; then
12878   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12879 fi
12880
12881 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12882   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12883 fi
12884
12885 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12886   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12887 fi
12888
12889 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12890 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12891
12892 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12893 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12894
12895 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12896 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12995 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12996 hardcode_action=
12997 if test -n "$hardcode_libdir_flag_spec" ||
12998    test -n "$runpath_var" ||
12999    test yes = "$hardcode_automatic"; then
13000
13001   # We can hardcode non-existent directories.
13002   if test no != "$hardcode_direct" &&
13003      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13004      # have to relink, otherwise we might link with an installed library
13005      # when we should be linking with a yet-to-be-installed one
13006      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13007      test no != "$hardcode_minus_L"; then
13008     # Linking always hardcodes the temporary library directory.
13009     hardcode_action=relink
13010   else
13011     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13012     hardcode_action=immediate
13013   fi
13014 else
13015   # We cannot hardcode anything, or else we can only hardcode existing
13016   # directories.
13017   hardcode_action=unsupported
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13020 $as_echo "$hardcode_action" >&6; }
13021
13022 if test relink = "$hardcode_action" ||
13023    test yes = "$inherit_rpath"; then
13024   # Fast installation is not supported
13025   enable_fast_install=no
13026 elif test yes = "$shlibpath_overrides_runpath" ||
13027      test no = "$enable_shared"; then
13028   # Fast installation is not necessary
13029   enable_fast_install=needless
13030 fi
13031
13032
13033
13034
13035
13036
13037   if test yes != "$enable_dlopen"; then
13038   enable_dlopen=unknown
13039   enable_dlopen_self=unknown
13040   enable_dlopen_self_static=unknown
13041 else
13042   lt_cv_dlopen=no
13043   lt_cv_dlopen_libs=
13044
13045   case $host_os in
13046   beos*)
13047     lt_cv_dlopen=load_add_on
13048     lt_cv_dlopen_libs=
13049     lt_cv_dlopen_self=yes
13050     ;;
13051
13052   mingw* | pw32* | cegcc*)
13053     lt_cv_dlopen=LoadLibrary
13054     lt_cv_dlopen_libs=
13055     ;;
13056
13057   cygwin*)
13058     lt_cv_dlopen=dlopen
13059     lt_cv_dlopen_libs=
13060     ;;
13061
13062   darwin*)
13063     # if libdl is installed we need to link against it
13064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13066 if ${ac_cv_lib_dl_dlopen+:} false; then :
13067   $as_echo_n "(cached) " >&6
13068 else
13069   ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ldl  $LIBS"
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h.  */
13073
13074 /* Override any GCC internal prototype to avoid an error.
13075    Use char because int might match the return type of a GCC
13076    builtin and then its argument prototype would still apply.  */
13077 #ifdef __cplusplus
13078 extern "C"
13079 #endif
13080 char dlopen ();
13081 int
13082 main ()
13083 {
13084 return dlopen ();
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 if ac_fn_c_try_link "$LINENO"; then :
13090   ac_cv_lib_dl_dlopen=yes
13091 else
13092   ac_cv_lib_dl_dlopen=no
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095     conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13101   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13102 else
13103
13104     lt_cv_dlopen=dyld
13105     lt_cv_dlopen_libs=
13106     lt_cv_dlopen_self=yes
13107
13108 fi
13109
13110     ;;
13111
13112   tpf*)
13113     # Don't try to run any link tests for TPF.  We know it's impossible
13114     # because TPF is a cross-compiler, and we know how we open DSOs.
13115     lt_cv_dlopen=dlopen
13116     lt_cv_dlopen_libs=
13117     lt_cv_dlopen_self=no
13118     ;;
13119
13120   *)
13121     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13122 if test "x$ac_cv_func_shl_load" = xyes; then :
13123   lt_cv_dlopen=shl_load
13124 else
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13127 if ${ac_cv_lib_dld_shl_load+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-ldld  $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h.  */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136    Use char because int might match the return type of a GCC
13137    builtin and then its argument prototype would still apply.  */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char shl_load ();
13142 int
13143 main ()
13144 {
13145 return shl_load ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151   ac_cv_lib_dld_shl_load=yes
13152 else
13153   ac_cv_lib_dld_shl_load=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156     conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13162   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13163 else
13164   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = xyes; then :
13166   lt_cv_dlopen=dlopen
13167 else
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if ${ac_cv_lib_dl_dlopen+:} false; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-ldl  $LIBS"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h.  */
13177
13178 /* Override any GCC internal prototype to avoid an error.
13179    Use char because int might match the return type of a GCC
13180    builtin and then its argument prototype would still apply.  */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char dlopen ();
13185 int
13186 main ()
13187 {
13188 return dlopen ();
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194   ac_cv_lib_dl_dlopen=yes
13195 else
13196   ac_cv_lib_dl_dlopen=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext \
13199     conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13205   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13206 else
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13209 if ${ac_cv_lib_svld_dlopen+:} false; then :
13210   $as_echo_n "(cached) " >&6
13211 else
13212   ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lsvld  $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h.  */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218    Use char because int might match the return type of a GCC
13219    builtin and then its argument prototype would still apply.  */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char dlopen ();
13224 int
13225 main ()
13226 {
13227 return dlopen ();
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233   ac_cv_lib_svld_dlopen=yes
13234 else
13235   ac_cv_lib_svld_dlopen=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext \
13238     conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13242 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13243 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13244   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13245 else
13246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13247 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13248 if ${ac_cv_lib_dld_dld_link+:} false; then :
13249   $as_echo_n "(cached) " >&6
13250 else
13251   ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ldld  $LIBS"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h.  */
13255
13256 /* Override any GCC internal prototype to avoid an error.
13257    Use char because int might match the return type of a GCC
13258    builtin and then its argument prototype would still apply.  */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char dld_link ();
13263 int
13264 main ()
13265 {
13266 return dld_link ();
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272   ac_cv_lib_dld_dld_link=yes
13273 else
13274   ac_cv_lib_dld_dld_link=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext \
13277     conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13281 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13282 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13283   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13284 fi
13285
13286
13287 fi
13288
13289
13290 fi
13291
13292
13293 fi
13294
13295
13296 fi
13297
13298
13299 fi
13300
13301     ;;
13302   esac
13303
13304   if test no = "$lt_cv_dlopen"; then
13305     enable_dlopen=no
13306   else
13307     enable_dlopen=yes
13308   fi
13309
13310   case $lt_cv_dlopen in
13311   dlopen)
13312     save_CPPFLAGS=$CPPFLAGS
13313     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13314
13315     save_LDFLAGS=$LDFLAGS
13316     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13317
13318     save_LIBS=$LIBS
13319     LIBS="$lt_cv_dlopen_libs $LIBS"
13320
13321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13322 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13323 if ${lt_cv_dlopen_self+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326           if test yes = "$cross_compiling"; then :
13327   lt_cv_dlopen_self=cross
13328 else
13329   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13330   lt_status=$lt_dlunknown
13331   cat > conftest.$ac_ext <<_LT_EOF
13332 #line $LINENO "configure"
13333 #include "confdefs.h"
13334
13335 #if HAVE_DLFCN_H
13336 #include <dlfcn.h>
13337 #endif
13338
13339 #include <stdio.h>
13340
13341 #ifdef RTLD_GLOBAL
13342 #  define LT_DLGLOBAL           RTLD_GLOBAL
13343 #else
13344 #  ifdef DL_GLOBAL
13345 #    define LT_DLGLOBAL         DL_GLOBAL
13346 #  else
13347 #    define LT_DLGLOBAL         0
13348 #  endif
13349 #endif
13350
13351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13352    find out it does not work in some platform. */
13353 #ifndef LT_DLLAZY_OR_NOW
13354 #  ifdef RTLD_LAZY
13355 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13356 #  else
13357 #    ifdef DL_LAZY
13358 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13359 #    else
13360 #      ifdef RTLD_NOW
13361 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13362 #      else
13363 #        ifdef DL_NOW
13364 #          define LT_DLLAZY_OR_NOW      DL_NOW
13365 #        else
13366 #          define LT_DLLAZY_OR_NOW      0
13367 #        endif
13368 #      endif
13369 #    endif
13370 #  endif
13371 #endif
13372
13373 /* When -fvisibility=hidden is used, assume the code has been annotated
13374    correspondingly for the symbols needed.  */
13375 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13376 int fnord () __attribute__((visibility("default")));
13377 #endif
13378
13379 int fnord () { return 42; }
13380 int main ()
13381 {
13382   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13383   int status = $lt_dlunknown;
13384
13385   if (self)
13386     {
13387       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13388       else
13389         {
13390           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13391           else puts (dlerror ());
13392         }
13393       /* dlclose (self); */
13394     }
13395   else
13396     puts (dlerror ());
13397
13398   return status;
13399 }
13400 _LT_EOF
13401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13402   (eval $ac_link) 2>&5
13403   ac_status=$?
13404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13406     (./conftest; exit; ) >&5 2>/dev/null
13407     lt_status=$?
13408     case x$lt_status in
13409       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13410       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13411       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13412     esac
13413   else :
13414     # compilation failed
13415     lt_cv_dlopen_self=no
13416   fi
13417 fi
13418 rm -fr conftest*
13419
13420
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13423 $as_echo "$lt_cv_dlopen_self" >&6; }
13424
13425     if test yes = "$lt_cv_dlopen_self"; then
13426       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13428 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13429 if ${lt_cv_dlopen_self_static+:} false; then :
13430   $as_echo_n "(cached) " >&6
13431 else
13432           if test yes = "$cross_compiling"; then :
13433   lt_cv_dlopen_self_static=cross
13434 else
13435   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436   lt_status=$lt_dlunknown
13437   cat > conftest.$ac_ext <<_LT_EOF
13438 #line $LINENO "configure"
13439 #include "confdefs.h"
13440
13441 #if HAVE_DLFCN_H
13442 #include <dlfcn.h>
13443 #endif
13444
13445 #include <stdio.h>
13446
13447 #ifdef RTLD_GLOBAL
13448 #  define LT_DLGLOBAL           RTLD_GLOBAL
13449 #else
13450 #  ifdef DL_GLOBAL
13451 #    define LT_DLGLOBAL         DL_GLOBAL
13452 #  else
13453 #    define LT_DLGLOBAL         0
13454 #  endif
13455 #endif
13456
13457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458    find out it does not work in some platform. */
13459 #ifndef LT_DLLAZY_OR_NOW
13460 #  ifdef RTLD_LAZY
13461 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13462 #  else
13463 #    ifdef DL_LAZY
13464 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13465 #    else
13466 #      ifdef RTLD_NOW
13467 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13468 #      else
13469 #        ifdef DL_NOW
13470 #          define LT_DLLAZY_OR_NOW      DL_NOW
13471 #        else
13472 #          define LT_DLLAZY_OR_NOW      0
13473 #        endif
13474 #      endif
13475 #    endif
13476 #  endif
13477 #endif
13478
13479 /* When -fvisibility=hidden is used, assume the code has been annotated
13480    correspondingly for the symbols needed.  */
13481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13482 int fnord () __attribute__((visibility("default")));
13483 #endif
13484
13485 int fnord () { return 42; }
13486 int main ()
13487 {
13488   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13489   int status = $lt_dlunknown;
13490
13491   if (self)
13492     {
13493       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13494       else
13495         {
13496           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13497           else puts (dlerror ());
13498         }
13499       /* dlclose (self); */
13500     }
13501   else
13502     puts (dlerror ());
13503
13504   return status;
13505 }
13506 _LT_EOF
13507   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13508   (eval $ac_link) 2>&5
13509   ac_status=$?
13510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13512     (./conftest; exit; ) >&5 2>/dev/null
13513     lt_status=$?
13514     case x$lt_status in
13515       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13516       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13517       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13518     esac
13519   else :
13520     # compilation failed
13521     lt_cv_dlopen_self_static=no
13522   fi
13523 fi
13524 rm -fr conftest*
13525
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13529 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13530     fi
13531
13532     CPPFLAGS=$save_CPPFLAGS
13533     LDFLAGS=$save_LDFLAGS
13534     LIBS=$save_LIBS
13535     ;;
13536   esac
13537
13538   case $lt_cv_dlopen_self in
13539   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13540   *) enable_dlopen_self=unknown ;;
13541   esac
13542
13543   case $lt_cv_dlopen_self_static in
13544   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13545   *) enable_dlopen_self_static=unknown ;;
13546   esac
13547 fi
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565 striplib=
13566 old_striplib=
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13568 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13569 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13570   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13571   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574 else
13575 # FIXME - insert some real tests, host_os isn't really good enough
13576   case $host_os in
13577   darwin*)
13578     if test -n "$STRIP"; then
13579       striplib="$STRIP -x"
13580       old_striplib="$STRIP -S"
13581       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583     else
13584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586     fi
13587     ;;
13588   *)
13589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13591     ;;
13592   esac
13593 fi
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606   # Report what library types will actually be built
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13608 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13610 $as_echo "$can_build_shared" >&6; }
13611
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13613 $as_echo_n "checking whether to build shared libraries... " >&6; }
13614   test no = "$can_build_shared" && enable_shared=no
13615
13616   # On AIX, shared libraries and static libraries use the same namespace, and
13617   # are all built from PIC.
13618   case $host_os in
13619   aix3*)
13620     test yes = "$enable_shared" && enable_static=no
13621     if test -n "$RANLIB"; then
13622       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13623       postinstall_cmds='$RANLIB $lib'
13624     fi
13625     ;;
13626
13627   aix[4-9]*)
13628     if test ia64 != "$host_cpu"; then
13629       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13630       yes,aix,yes) ;;                   # shared object as lib.so file only
13631       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13632       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13633       esac
13634     fi
13635     ;;
13636   esac
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13638 $as_echo "$enable_shared" >&6; }
13639
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13641 $as_echo_n "checking whether to build static libraries... " >&6; }
13642   # Make sure either enable_shared or enable_static is yes.
13643   test yes = "$enable_shared" || enable_static=yes
13644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13645 $as_echo "$enable_static" >&6; }
13646
13647
13648
13649
13650 fi
13651 ac_ext=c
13652 ac_cpp='$CPP $CPPFLAGS'
13653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13656
13657 CC=$lt_save_CC
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673         ac_config_commands="$ac_config_commands libtool"
13674
13675
13676
13677
13678 # Only expand once:
13679
13680
13681
13682 # initialize libtool to build .la files
13683
13684
13685 # add these options to CFLAGS if the compiler supports them
13686
13687 # Do not use the -ansi flag, currently there is a bug in MinGW/MinGW-w64
13688 # which prevents Check from compiling. Add after this is resolved:
13689 #    sourceforge.net/p/mingw/bugs/2024
13690 #AX_CFLAGS_WARN_ALL_ANSI
13691 # Do not use the -pedantic flag, as on solaris it has a different
13692 # meaning than on gcc. Using the flag causes the build to fail.
13693
13694
13695
13696
13697
13698   flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13699
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
13701 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
13702 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13703   $as_echo_n "(cached) " >&6
13704 else
13705
13706
13707     ac_ext=c
13708 ac_cpp='$CPP $CPPFLAGS'
13709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13712
13713
13714     save_CFLAGS="$CFLAGS"
13715     CFLAGS="$CFLAGS -Wextra"
13716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h.  */
13718
13719
13720 int
13721 main ()
13722 {
13723
13724   ;
13725   return 0;
13726 }
13727
13728 _ACEOF
13729 if ac_fn_c_try_compile "$LINENO"; then :
13730
13731       eval "ax_cv_c_check_flag_$flag=yes"
13732
13733 else
13734
13735       eval "ax_cv_c_check_flag_$flag=no"
13736
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739
13740     CFLAGS="$save_CFLAGS"
13741
13742     ac_ext=c
13743 ac_cpp='$CPP $CPPFLAGS'
13744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13747
13748
13749
13750 fi
13751 eval ac_res=\$ax_cv_c_check_flag_$flag
13752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13753 $as_echo "$ac_res" >&6; }
13754
13755   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13756
13757     :
13758     CFLAGS="$CFLAGS -Wextra"
13759
13760 else
13761
13762     :
13763
13764
13765 fi
13766
13767
13768
13769
13770
13771
13772   flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13773
13774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13775 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13776 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13777   $as_echo_n "(cached) " >&6
13778 else
13779
13780
13781     ac_ext=c
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13786
13787
13788     save_CFLAGS="$CFLAGS"
13789     CFLAGS="$CFLAGS -Wstrict-prototypes"
13790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h.  */
13792
13793
13794 int
13795 main ()
13796 {
13797
13798   ;
13799   return 0;
13800 }
13801
13802 _ACEOF
13803 if ac_fn_c_try_compile "$LINENO"; then :
13804
13805       eval "ax_cv_c_check_flag_$flag=yes"
13806
13807 else
13808
13809       eval "ax_cv_c_check_flag_$flag=no"
13810
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813
13814     CFLAGS="$save_CFLAGS"
13815
13816     ac_ext=c
13817 ac_cpp='$CPP $CPPFLAGS'
13818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13821
13822
13823
13824 fi
13825 eval ac_res=\$ax_cv_c_check_flag_$flag
13826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13827 $as_echo "$ac_res" >&6; }
13828
13829   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13830
13831     :
13832     CFLAGS="$CFLAGS -Wstrict-prototypes"
13833
13834 else
13835
13836     :
13837
13838
13839 fi
13840
13841
13842
13843
13844
13845
13846   flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13847
13848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13849 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13850 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853
13854
13855     ac_ext=c
13856 ac_cpp='$CPP $CPPFLAGS'
13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13860
13861
13862     save_CFLAGS="$CFLAGS"
13863     CFLAGS="$CFLAGS -Wmissing-prototypes"
13864     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h.  */
13866
13867
13868 int
13869 main ()
13870 {
13871
13872   ;
13873   return 0;
13874 }
13875
13876 _ACEOF
13877 if ac_fn_c_try_compile "$LINENO"; then :
13878
13879       eval "ax_cv_c_check_flag_$flag=yes"
13880
13881 else
13882
13883       eval "ax_cv_c_check_flag_$flag=no"
13884
13885 fi
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887
13888     CFLAGS="$save_CFLAGS"
13889
13890     ac_ext=c
13891 ac_cpp='$CPP $CPPFLAGS'
13892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13895
13896
13897
13898 fi
13899 eval ac_res=\$ax_cv_c_check_flag_$flag
13900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13901 $as_echo "$ac_res" >&6; }
13902
13903   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13904
13905     :
13906     CFLAGS="$CFLAGS -Wmissing-prototypes"
13907
13908 else
13909
13910     :
13911
13912
13913 fi
13914
13915
13916
13917
13918
13919
13920   flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13921
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
13923 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
13924 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13925   $as_echo_n "(cached) " >&6
13926 else
13927
13928
13929     ac_ext=c
13930 ac_cpp='$CPP $CPPFLAGS'
13931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13934
13935
13936     save_CFLAGS="$CFLAGS"
13937     CFLAGS="$CFLAGS -Wwrite-strings"
13938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940
13941
13942 int
13943 main ()
13944 {
13945
13946   ;
13947   return 0;
13948 }
13949
13950 _ACEOF
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952
13953       eval "ax_cv_c_check_flag_$flag=yes"
13954
13955 else
13956
13957       eval "ax_cv_c_check_flag_$flag=no"
13958
13959 fi
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961
13962     CFLAGS="$save_CFLAGS"
13963
13964     ac_ext=c
13965 ac_cpp='$CPP $CPPFLAGS'
13966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13969
13970
13971
13972 fi
13973 eval ac_res=\$ax_cv_c_check_flag_$flag
13974                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13975 $as_echo "$ac_res" >&6; }
13976
13977   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13978
13979     :
13980     CFLAGS="$CFLAGS -Wwrite-strings"
13981
13982 else
13983
13984     :
13985
13986
13987 fi
13988
13989
13990
13991
13992
13993
13994   flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13995
13996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
13997 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
13998 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13999   $as_echo_n "(cached) " >&6
14000 else
14001
14002
14003     ac_ext=c
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14008
14009
14010     save_CFLAGS="$CFLAGS"
14011     CFLAGS="$CFLAGS -Wno-variadic-macros"
14012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h.  */
14014
14015
14016 int
14017 main ()
14018 {
14019
14020   ;
14021   return 0;
14022 }
14023
14024 _ACEOF
14025 if ac_fn_c_try_compile "$LINENO"; then :
14026
14027       eval "ax_cv_c_check_flag_$flag=yes"
14028
14029 else
14030
14031       eval "ax_cv_c_check_flag_$flag=no"
14032
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035
14036     CFLAGS="$save_CFLAGS"
14037
14038     ac_ext=c
14039 ac_cpp='$CPP $CPPFLAGS'
14040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14043
14044
14045
14046 fi
14047 eval ac_res=\$ax_cv_c_check_flag_$flag
14048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14049 $as_echo "$ac_res" >&6; }
14050
14051   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14052
14053     :
14054     CFLAGS="$CFLAGS -Wno-variadic-macros"
14055
14056 else
14057
14058     :
14059
14060
14061 fi
14062
14063
14064
14065
14066
14067
14068   flag=`echo "-Wimport" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14069
14070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wimport flag" >&5
14071 $as_echo_n "checking whether the C compiler accepts the -Wimport flag... " >&6; }
14072 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075
14076
14077     ac_ext=c
14078 ac_cpp='$CPP $CPPFLAGS'
14079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14082
14083
14084     save_CFLAGS="$CFLAGS"
14085     CFLAGS="$CFLAGS -Wimport"
14086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h.  */
14088
14089
14090 int
14091 main ()
14092 {
14093
14094   ;
14095   return 0;
14096 }
14097
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100
14101       eval "ax_cv_c_check_flag_$flag=yes"
14102
14103 else
14104
14105       eval "ax_cv_c_check_flag_$flag=no"
14106
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109
14110     CFLAGS="$save_CFLAGS"
14111
14112     ac_ext=c
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117
14118
14119
14120 fi
14121 eval ac_res=\$ax_cv_c_check_flag_$flag
14122                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14123 $as_echo "$ac_res" >&6; }
14124
14125   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14126
14127     :
14128     CFLAGS="$CFLAGS -Wimport"
14129
14130 else
14131
14132     :
14133
14134
14135 fi
14136
14137
14138
14139
14140
14141
14142   flag=`echo "-Wfatal-errors" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14143
14144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wfatal-errors flag" >&5
14145 $as_echo_n "checking whether the C compiler accepts the -Wfatal-errors flag... " >&6; }
14146 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149
14150
14151     ac_ext=c
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14156
14157
14158     save_CFLAGS="$CFLAGS"
14159     CFLAGS="$CFLAGS -Wfatal-errors"
14160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h.  */
14162
14163
14164 int
14165 main ()
14166 {
14167
14168   ;
14169   return 0;
14170 }
14171
14172 _ACEOF
14173 if ac_fn_c_try_compile "$LINENO"; then :
14174
14175       eval "ax_cv_c_check_flag_$flag=yes"
14176
14177 else
14178
14179       eval "ax_cv_c_check_flag_$flag=no"
14180
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183
14184     CFLAGS="$save_CFLAGS"
14185
14186     ac_ext=c
14187 ac_cpp='$CPP $CPPFLAGS'
14188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14191
14192
14193
14194 fi
14195 eval ac_res=\$ax_cv_c_check_flag_$flag
14196                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14197 $as_echo "$ac_res" >&6; }
14198
14199   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14200
14201     :
14202     CFLAGS="$CFLAGS -Wfatal-errors"
14203
14204 else
14205
14206     :
14207
14208
14209 fi
14210
14211
14212
14213
14214
14215
14216   flag=`echo "-Wformat=2" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14217
14218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wformat=2 flag" >&5
14219 $as_echo_n "checking whether the C compiler accepts the -Wformat=2 flag... " >&6; }
14220 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223
14224
14225     ac_ext=c
14226 ac_cpp='$CPP $CPPFLAGS'
14227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14230
14231
14232     save_CFLAGS="$CFLAGS"
14233     CFLAGS="$CFLAGS -Wformat=2"
14234     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h.  */
14236
14237
14238 int
14239 main ()
14240 {
14241
14242   ;
14243   return 0;
14244 }
14245
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"; then :
14248
14249       eval "ax_cv_c_check_flag_$flag=yes"
14250
14251 else
14252
14253       eval "ax_cv_c_check_flag_$flag=no"
14254
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257
14258     CFLAGS="$save_CFLAGS"
14259
14260     ac_ext=c
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266
14267
14268 fi
14269 eval ac_res=\$ax_cv_c_check_flag_$flag
14270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14271 $as_echo "$ac_res" >&6; }
14272
14273   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14274
14275     :
14276     CFLAGS="$CFLAGS -Wformat=2"
14277
14278 else
14279
14280     :
14281
14282
14283 fi
14284
14285
14286
14287
14288
14289
14290   flag=`echo "-Winit-self" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14291
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Winit-self flag" >&5
14293 $as_echo_n "checking whether the C compiler accepts the -Winit-self flag... " >&6; }
14294 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297
14298
14299     ac_ext=c
14300 ac_cpp='$CPP $CPPFLAGS'
14301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305
14306     save_CFLAGS="$CFLAGS"
14307     CFLAGS="$CFLAGS -Winit-self"
14308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h.  */
14310
14311
14312 int
14313 main ()
14314 {
14315
14316   ;
14317   return 0;
14318 }
14319
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322
14323       eval "ax_cv_c_check_flag_$flag=yes"
14324
14325 else
14326
14327       eval "ax_cv_c_check_flag_$flag=no"
14328
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331
14332     CFLAGS="$save_CFLAGS"
14333
14334     ac_ext=c
14335 ac_cpp='$CPP $CPPFLAGS'
14336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14339
14340
14341
14342 fi
14343 eval ac_res=\$ax_cv_c_check_flag_$flag
14344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14345 $as_echo "$ac_res" >&6; }
14346
14347   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14348
14349     :
14350     CFLAGS="$CFLAGS -Winit-self"
14351
14352 else
14353
14354     :
14355
14356
14357 fi
14358
14359
14360
14361
14362
14363
14364   flag=`echo "-Wmissing-include-dirs" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14365
14366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-include-dirs flag" >&5
14367 $as_echo_n "checking whether the C compiler accepts the -Wmissing-include-dirs flag... " >&6; }
14368 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371
14372
14373     ac_ext=c
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379
14380     save_CFLAGS="$CFLAGS"
14381     CFLAGS="$CFLAGS -Wmissing-include-dirs"
14382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h.  */
14384
14385
14386 int
14387 main ()
14388 {
14389
14390   ;
14391   return 0;
14392 }
14393
14394 _ACEOF
14395 if ac_fn_c_try_compile "$LINENO"; then :
14396
14397       eval "ax_cv_c_check_flag_$flag=yes"
14398
14399 else
14400
14401       eval "ax_cv_c_check_flag_$flag=no"
14402
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405
14406     CFLAGS="$save_CFLAGS"
14407
14408     ac_ext=c
14409 ac_cpp='$CPP $CPPFLAGS'
14410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14413
14414
14415
14416 fi
14417 eval ac_res=\$ax_cv_c_check_flag_$flag
14418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14419 $as_echo "$ac_res" >&6; }
14420
14421   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14422
14423     :
14424     CFLAGS="$CFLAGS -Wmissing-include-dirs"
14425
14426 else
14427
14428     :
14429
14430
14431 fi
14432
14433
14434
14435
14436
14437
14438   flag=`echo "-Wswitch-default" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14439
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wswitch-default flag" >&5
14441 $as_echo_n "checking whether the C compiler accepts the -Wswitch-default flag... " >&6; }
14442 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445
14446
14447     ac_ext=c
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14452
14453
14454     save_CFLAGS="$CFLAGS"
14455     CFLAGS="$CFLAGS -Wswitch-default"
14456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h.  */
14458
14459
14460 int
14461 main ()
14462 {
14463
14464   ;
14465   return 0;
14466 }
14467
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470
14471       eval "ax_cv_c_check_flag_$flag=yes"
14472
14473 else
14474
14475       eval "ax_cv_c_check_flag_$flag=no"
14476
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479
14480     CFLAGS="$save_CFLAGS"
14481
14482     ac_ext=c
14483 ac_cpp='$CPP $CPPFLAGS'
14484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14487
14488
14489
14490 fi
14491 eval ac_res=\$ax_cv_c_check_flag_$flag
14492                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14493 $as_echo "$ac_res" >&6; }
14494
14495   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14496
14497     :
14498     CFLAGS="$CFLAGS -Wswitch-default"
14499
14500 else
14501
14502     :
14503
14504
14505 fi
14506
14507
14508
14509
14510
14511
14512   flag=`echo "-Wunknown-pragmas" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14513
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wunknown-pragmas flag" >&5
14515 $as_echo_n "checking whether the C compiler accepts the -Wunknown-pragmas flag... " >&6; }
14516 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519
14520
14521     ac_ext=c
14522 ac_cpp='$CPP $CPPFLAGS'
14523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14526
14527
14528     save_CFLAGS="$CFLAGS"
14529     CFLAGS="$CFLAGS -Wunknown-pragmas"
14530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h.  */
14532
14533
14534 int
14535 main ()
14536 {
14537
14538   ;
14539   return 0;
14540 }
14541
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544
14545       eval "ax_cv_c_check_flag_$flag=yes"
14546
14547 else
14548
14549       eval "ax_cv_c_check_flag_$flag=no"
14550
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553
14554     CFLAGS="$save_CFLAGS"
14555
14556     ac_ext=c
14557 ac_cpp='$CPP $CPPFLAGS'
14558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14561
14562
14563
14564 fi
14565 eval ac_res=\$ax_cv_c_check_flag_$flag
14566                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14567 $as_echo "$ac_res" >&6; }
14568
14569   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14570
14571     :
14572     CFLAGS="$CFLAGS -Wunknown-pragmas"
14573
14574 else
14575
14576     :
14577
14578
14579 fi
14580
14581 # The following flag is to enable C99 support on AIX, which is
14582 # necessary for variable macros in check.h
14583 case "${host_os}" in
14584     *aix*)
14585     if ! test "$GCC" = "yes"; then
14586
14587
14588
14589
14590
14591   flag=`echo "-qlanglvl=stdc99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
14592
14593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -qlanglvl=stdc99 flag" >&5
14594 $as_echo_n "checking whether the C compiler accepts the -qlanglvl=stdc99 flag... " >&6; }
14595 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
14596   $as_echo_n "(cached) " >&6
14597 else
14598
14599
14600     ac_ext=c
14601 ac_cpp='$CPP $CPPFLAGS'
14602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14605
14606
14607     save_CFLAGS="$CFLAGS"
14608     CFLAGS="$CFLAGS -qlanglvl=stdc99"
14609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h.  */
14611
14612
14613 int
14614 main ()
14615 {
14616
14617   ;
14618   return 0;
14619 }
14620
14621 _ACEOF
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623
14624       eval "ax_cv_c_check_flag_$flag=yes"
14625
14626 else
14627
14628       eval "ax_cv_c_check_flag_$flag=no"
14629
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632
14633     CFLAGS="$save_CFLAGS"
14634
14635     ac_ext=c
14636 ac_cpp='$CPP $CPPFLAGS'
14637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14640
14641
14642
14643 fi
14644 eval ac_res=\$ax_cv_c_check_flag_$flag
14645                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14646 $as_echo "$ac_res" >&6; }
14647
14648   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
14649
14650     :
14651     CFLAGS="$CFLAGS -qlanglvl=stdc99"
14652
14653 else
14654
14655     :
14656
14657
14658 fi
14659
14660     fi
14661     ;;
14662     *)
14663     ;;
14664 esac
14665
14666 for ac_prog in gcov
14667 do
14668   # Extract the first word of "$ac_prog", so it can be a program name with args.
14669 set dummy $ac_prog; ac_word=$2
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14671 $as_echo_n "checking for $ac_word... " >&6; }
14672 if ${ac_cv_prog_GCOV+:} false; then :
14673   $as_echo_n "(cached) " >&6
14674 else
14675   if test -n "$GCOV"; then
14676   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14677 else
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14680 do
14681   IFS=$as_save_IFS
14682   test -z "$as_dir" && as_dir=.
14683     for ac_exec_ext in '' $ac_executable_extensions; do
14684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685     ac_cv_prog_GCOV="$ac_prog"
14686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687     break 2
14688   fi
14689 done
14690   done
14691 IFS=$as_save_IFS
14692
14693 fi
14694 fi
14695 GCOV=$ac_cv_prog_GCOV
14696 if test -n "$GCOV"; then
14697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14698 $as_echo "$GCOV" >&6; }
14699 else
14700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14702 fi
14703
14704
14705   test -n "$GCOV" && break
14706 done
14707 test -n "$GCOV" || GCOV="false"
14708
14709 for ac_prog in lcov
14710 do
14711   # Extract the first word of "$ac_prog", so it can be a program name with args.
14712 set dummy $ac_prog; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if ${ac_cv_prog_LCOV+:} false; then :
14716   $as_echo_n "(cached) " >&6
14717 else
14718   if test -n "$LCOV"; then
14719   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14720 else
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14723 do
14724   IFS=$as_save_IFS
14725   test -z "$as_dir" && as_dir=.
14726     for ac_exec_ext in '' $ac_executable_extensions; do
14727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14728     ac_cv_prog_LCOV="$ac_prog"
14729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14730     break 2
14731   fi
14732 done
14733   done
14734 IFS=$as_save_IFS
14735
14736 fi
14737 fi
14738 LCOV=$ac_cv_prog_LCOV
14739 if test -n "$LCOV"; then
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14741 $as_echo "$LCOV" >&6; }
14742 else
14743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14745 fi
14746
14747
14748   test -n "$LCOV" && break
14749 done
14750 test -n "$LCOV" || LCOV="false"
14751
14752 for ac_prog in genhtml
14753 do
14754   # Extract the first word of "$ac_prog", so it can be a program name with args.
14755 set dummy $ac_prog; ac_word=$2
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14757 $as_echo_n "checking for $ac_word... " >&6; }
14758 if ${ac_cv_prog_GENHTML+:} false; then :
14759   $as_echo_n "(cached) " >&6
14760 else
14761   if test -n "$GENHTML"; then
14762   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14763 else
14764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14766 do
14767   IFS=$as_save_IFS
14768   test -z "$as_dir" && as_dir=.
14769     for ac_exec_ext in '' $ac_executable_extensions; do
14770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14771     ac_cv_prog_GENHTML="$ac_prog"
14772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14773     break 2
14774   fi
14775 done
14776   done
14777 IFS=$as_save_IFS
14778
14779 fi
14780 fi
14781 GENHTML=$ac_cv_prog_GENHTML
14782 if test -n "$GENHTML"; then
14783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14784 $as_echo "$GENHTML" >&6; }
14785 else
14786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14788 fi
14789
14790
14791   test -n "$GENHTML" && break
14792 done
14793 test -n "$GENHTML" || GENHTML="false"
14794
14795 for ac_prog in tex
14796 do
14797   # Extract the first word of "$ac_prog", so it can be a program name with args.
14798 set dummy $ac_prog; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if ${ac_cv_prog_TEX+:} false; then :
14802   $as_echo_n "(cached) " >&6
14803 else
14804   if test -n "$TEX"; then
14805   ac_cv_prog_TEX="$TEX" # Let the user override the test.
14806 else
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14809 do
14810   IFS=$as_save_IFS
14811   test -z "$as_dir" && as_dir=.
14812     for ac_exec_ext in '' $ac_executable_extensions; do
14813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814     ac_cv_prog_TEX="$ac_prog"
14815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14816     break 2
14817   fi
14818 done
14819   done
14820 IFS=$as_save_IFS
14821
14822 fi
14823 fi
14824 TEX=$ac_cv_prog_TEX
14825 if test -n "$TEX"; then
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
14827 $as_echo "$TEX" >&6; }
14828 else
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832
14833
14834   test -n "$TEX" && break
14835 done
14836 test -n "$TEX" || TEX="false"
14837
14838 if test "$TEX" = "false"; then
14839     # Make it [somewhat] clear to maintainers that tex is missing. Not an error
14840     # though because 'make install' (which users need) does not build the docs
14841     # anyway.
14842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tex not installed: cannot rebuild HTML documentation." >&5
14843 $as_echo "$as_me: WARNING: tex not installed: cannot rebuild HTML documentation." >&2;}
14844 fi
14845 for ac_prog in filterdiff
14846 do
14847   # Extract the first word of "$ac_prog", so it can be a program name with args.
14848 set dummy $ac_prog; ac_word=$2
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14850 $as_echo_n "checking for $ac_word... " >&6; }
14851 if ${ac_cv_prog_FILTERDIFF+:} false; then :
14852   $as_echo_n "(cached) " >&6
14853 else
14854   if test -n "$FILTERDIFF"; then
14855   ac_cv_prog_FILTERDIFF="$FILTERDIFF" # Let the user override the test.
14856 else
14857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14858 for as_dir in $PATH
14859 do
14860   IFS=$as_save_IFS
14861   test -z "$as_dir" && as_dir=.
14862     for ac_exec_ext in '' $ac_executable_extensions; do
14863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14864     ac_cv_prog_FILTERDIFF="$ac_prog"
14865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14866     break 2
14867   fi
14868 done
14869   done
14870 IFS=$as_save_IFS
14871
14872 fi
14873 fi
14874 FILTERDIFF=$ac_cv_prog_FILTERDIFF
14875 if test -n "$FILTERDIFF"; then
14876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILTERDIFF" >&5
14877 $as_echo "$FILTERDIFF" >&6; }
14878 else
14879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14880 $as_echo "no" >&6; }
14881 fi
14882
14883
14884   test -n "$FILTERDIFF" && break
14885 done
14886 test -n "$FILTERDIFF" || FILTERDIFF="false"
14887
14888 if test "$FILTERDIFF" = "false"; then
14889     # Make it [somewhat] clear to maintainers that filterdiff is missing.
14890     # This is not an error, but will prevent builds from being
14891     # reproducible.
14892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: filterdiff not installed; build will not be reproducible." >&5
14893 $as_echo "$as_me: WARNING: filterdiff not installed; build will not be reproducible." >&2;}
14894 fi
14895
14896  if test x"$FILTERDIFF" = x"filterdiff"; then
14897   USE_FILTERDIFF_TRUE=
14898   USE_FILTERDIFF_FALSE='#'
14899 else
14900   USE_FILTERDIFF_TRUE='#'
14901   USE_FILTERDIFF_FALSE=
14902 fi
14903
14904
14905 # Checks for pthread implementation.
14906
14907
14908
14909 ac_ext=c
14910 ac_cpp='$CPP $CPPFLAGS'
14911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14914
14915 acx_pthread_ok=no
14916
14917 # We used to check for pthread.h first, but this fails if pthread.h
14918 # requires special compiler flags (e.g. on True64 or Sequent).
14919 # It gets checked for in the link test anyway.
14920
14921 # First of all, check if the user has set any of the PTHREAD_LIBS,
14922 # etcetera environment variables, and if threads linking works using
14923 # them:
14924 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14925         save_CFLAGS="$CFLAGS"
14926         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14927         save_LIBS="$LIBS"
14928         LIBS="$PTHREAD_LIBS $LIBS"
14929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14930 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14931         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h.  */
14933
14934 /* Override any GCC internal prototype to avoid an error.
14935    Use char because int might match the return type of a GCC
14936    builtin and then its argument prototype would still apply.  */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 char pthread_join ();
14941 int
14942 main ()
14943 {
14944 return pthread_join ();
14945   ;
14946   return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950   acx_pthread_ok=yes
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext \
14953     conftest$ac_exeext conftest.$ac_ext
14954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14955 $as_echo "$acx_pthread_ok" >&6; }
14956         if test x"$acx_pthread_ok" = xno; then
14957                 PTHREAD_LIBS=""
14958                 PTHREAD_CFLAGS=""
14959         fi
14960         LIBS="$save_LIBS"
14961         CFLAGS="$save_CFLAGS"
14962 fi
14963
14964 # We must check for the threads library under a number of different
14965 # names; the ordering is very important because some systems
14966 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14967 # libraries is broken (non-POSIX).
14968
14969 # Create a list of thread flags to try.  Items starting with a "-" are
14970 # C compiler flags, and other items are library names, except for "none"
14971 # which indicates that we try without any flags at all, and "pthread-config"
14972 # which is a program returning the flags for the Pth emulation library.
14973
14974 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14975
14976 # The ordering *is* (sometimes) important.  Some notes on the
14977 # individual items follow:
14978
14979 # pthreads: AIX (must check this before -lpthread)
14980 # none: in case threads are in libc; should be tried before -Kthread and
14981 #       other compiler flags to prevent continual compiler warnings
14982 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14983 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14984 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14985 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14986 # -pthreads: Solaris/gcc
14987 # -mthreads: Mingw32/gcc, Lynx/gcc
14988 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14989 #      doesn't hurt to check since this sometimes defines pthreads too;
14990 #      also defines -D_REENTRANT)
14991 #      ... -mt is also the pthreads flag for HP/aCC
14992 # pthread: Linux, etcetera
14993 # --thread-safe: KAI C++
14994 # pthread-config: use pthread-config program (for GNU Pth library)
14995
14996 case "${host_cpu}-${host_os}" in
14997         *solaris*)
14998
14999         # On Solaris (at least, for some versions), libc contains stubbed
15000         # (non-functional) versions of the pthreads routines, so link-based
15001         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15002         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15003         # a function called by this macro, so we could check for that, but
15004         # who knows whether they'll stub that too in a future libc.)  So,
15005         # we'll just look for -pthreads and -lpthread first:
15006
15007         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15008         ;;
15009 esac
15010
15011 if test x"$acx_pthread_ok" = xno; then
15012 for flag in $acx_pthread_flags; do
15013
15014         case $flag in
15015                 none)
15016                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15017 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15018                 ;;
15019
15020                 -*)
15021                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15022 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15023                 PTHREAD_CFLAGS="$flag"
15024                 ;;
15025
15026                 pthread-config)
15027                 # Extract the first word of "pthread-config", so it can be a program name with args.
15028 set dummy pthread-config; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15032   $as_echo_n "(cached) " >&6
15033 else
15034   if test -n "$acx_pthread_config"; then
15035   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15036 else
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15039 do
15040   IFS=$as_save_IFS
15041   test -z "$as_dir" && as_dir=.
15042     for ac_exec_ext in '' $ac_executable_extensions; do
15043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15044     ac_cv_prog_acx_pthread_config="yes"
15045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046     break 2
15047   fi
15048 done
15049   done
15050 IFS=$as_save_IFS
15051
15052   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15053 fi
15054 fi
15055 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15056 if test -n "$acx_pthread_config"; then
15057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15058 $as_echo "$acx_pthread_config" >&6; }
15059 else
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062 fi
15063
15064
15065                 if test x"$acx_pthread_config" = xno; then continue; fi
15066                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15067                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15068                 ;;
15069
15070                 *)
15071                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15072 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15073                 PTHREAD_LIBS="-l$flag"
15074                 ;;
15075         esac
15076
15077         save_LIBS="$LIBS"
15078         save_CFLAGS="$CFLAGS"
15079         LIBS="$PTHREAD_LIBS $LIBS"
15080         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15081
15082         # Check for various functions.  We must include pthread.h,
15083         # since some functions may be macros.  (On the Sequent, we
15084         # need a special flag -Kthread to make this header compile.)
15085         # We check for pthread_join because it is in -lpthread on IRIX
15086         # while pthread_create is in libc.  We check for pthread_attr_init
15087         # due to DEC craziness with -lpthreads.  We check for
15088         # pthread_cleanup_push because it is one of the few pthread
15089         # functions on Solaris that doesn't have a non-functional libc stub.
15090         # We try pthread_create on general principles.
15091         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h.  */
15093 #include <pthread.h>
15094 int
15095 main ()
15096 {
15097 pthread_t th; pthread_join(th, 0);
15098                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15099                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"; then :
15105   acx_pthread_ok=yes
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext \
15108     conftest$ac_exeext conftest.$ac_ext
15109
15110         LIBS="$save_LIBS"
15111         CFLAGS="$save_CFLAGS"
15112
15113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15114 $as_echo "$acx_pthread_ok" >&6; }
15115         if test "x$acx_pthread_ok" = xyes; then
15116                 break;
15117         fi
15118
15119         PTHREAD_LIBS=""
15120         PTHREAD_CFLAGS=""
15121 done
15122 fi
15123
15124 # Various other checks:
15125 if test "x$acx_pthread_ok" = xyes; then
15126         save_LIBS="$LIBS"
15127         LIBS="$PTHREAD_LIBS $LIBS"
15128         save_CFLAGS="$CFLAGS"
15129         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15130
15131         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15133 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15134         attr_name=unknown
15135         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15136             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138 #include <pthread.h>
15139 int
15140 main ()
15141 {
15142 int attr=$attr; return attr;
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_link "$LINENO"; then :
15148   attr_name=$attr; break
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext \
15151     conftest$ac_exeext conftest.$ac_ext
15152         done
15153         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15154 $as_echo "$attr_name" >&6; }
15155         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15156
15157 cat >>confdefs.h <<_ACEOF
15158 #define PTHREAD_CREATE_JOINABLE $attr_name
15159 _ACEOF
15160
15161         fi
15162
15163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15164 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15165         flag=no
15166         case "${host_cpu}-${host_os}" in
15167             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15168             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15169         esac
15170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15171 $as_echo "${flag}" >&6; }
15172         if test "x$flag" != xno; then
15173             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15174         fi
15175
15176         LIBS="$save_LIBS"
15177         CFLAGS="$save_CFLAGS"
15178
15179         # More AIX lossage: must compile with xlc_r or cc_r
15180         if test x"$GCC" != xyes; then
15181           for ac_prog in xlc_r cc_r
15182 do
15183   # Extract the first word of "$ac_prog", so it can be a program name with args.
15184 set dummy $ac_prog; ac_word=$2
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186 $as_echo_n "checking for $ac_word... " >&6; }
15187 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15188   $as_echo_n "(cached) " >&6
15189 else
15190   if test -n "$PTHREAD_CC"; then
15191   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15192 else
15193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15194 for as_dir in $PATH
15195 do
15196   IFS=$as_save_IFS
15197   test -z "$as_dir" && as_dir=.
15198     for ac_exec_ext in '' $ac_executable_extensions; do
15199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15200     ac_cv_prog_PTHREAD_CC="$ac_prog"
15201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15202     break 2
15203   fi
15204 done
15205   done
15206 IFS=$as_save_IFS
15207
15208 fi
15209 fi
15210 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15211 if test -n "$PTHREAD_CC"; then
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15213 $as_echo "$PTHREAD_CC" >&6; }
15214 else
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 $as_echo "no" >&6; }
15217 fi
15218
15219
15220   test -n "$PTHREAD_CC" && break
15221 done
15222 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15223
15224         else
15225           PTHREAD_CC=$CC
15226         fi
15227 else
15228         PTHREAD_CC="$CC"
15229 fi
15230
15231
15232
15233
15234
15235 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15236 if test x"$acx_pthread_ok" = xyes; then
15237
15238 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15239
15240         :
15241 else
15242         acx_pthread_ok=no
15243
15244 fi
15245 ac_ext=c
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15250
15251
15252 CC="$PTHREAD_CC"
15253
15254 # Check if floor is in the math library, and if so add -lm to LIBS
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
15256 $as_echo_n "checking for floor in -lm... " >&6; }
15257 if ${ac_cv_lib_m_floor+:} false; then :
15258   $as_echo_n "(cached) " >&6
15259 else
15260   ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lm  $LIBS"
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h.  */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266    Use char because int might match the return type of a GCC
15267    builtin and then its argument prototype would still apply.  */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char floor ();
15272 int
15273 main ()
15274 {
15275 return floor ();
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"; then :
15281   ac_cv_lib_m_floor=yes
15282 else
15283   ac_cv_lib_m_floor=no
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext \
15286     conftest$ac_exeext conftest.$ac_ext
15287 LIBS=$ac_check_lib_save_LIBS
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
15290 $as_echo "$ac_cv_lib_m_floor" >&6; }
15291 if test "x$ac_cv_lib_m_floor" = xyes; then :
15292   cat >>confdefs.h <<_ACEOF
15293 #define HAVE_LIBM 1
15294 _ACEOF
15295
15296   LIBS="-lm $LIBS"
15297
15298 fi
15299
15300
15301 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
15302 # add -lrt to LIBS
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt" >&5
15304 $as_echo_n "checking for clock_gettime, timer_create, timer_settime, timer_delete in -lrt... " >&6; }
15305 if ${ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete+:} false; then :
15306   $as_echo_n "(cached) " >&6
15307 else
15308   ac_check_lib_save_LIBS=$LIBS
15309 LIBS="-lrt  $LIBS"
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h.  */
15312
15313 /* Override any GCC internal prototype to avoid an error.
15314    Use char because int might match the return type of a GCC
15315    builtin and then its argument prototype would still apply.  */
15316 #ifdef __cplusplus
15317 extern "C"
15318 #endif
15319 char clock_gettime, timer_create, timer_settime, timer_delete ();
15320 int
15321 main ()
15322 {
15323 return clock_gettime, timer_create, timer_settime, timer_delete ();
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_c_try_link "$LINENO"; then :
15329   ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=yes
15330 else
15331   ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext \
15334     conftest$ac_exeext conftest.$ac_ext
15335 LIBS=$ac_check_lib_save_LIBS
15336 fi
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&5
15338 $as_echo "$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" >&6; }
15339 if test "x$ac_cv_lib_rt_clock_gettime__timer_create__timer_settime__timer_delete" = xyes; then :
15340   cat >>confdefs.h <<_ACEOF
15341 #define HAVE_LIBRT 1
15342 _ACEOF
15343
15344   LIBS="-lrt $LIBS"
15345
15346 fi
15347
15348
15349 # check that struct timespec is defined in time.h. If not, we need to
15350 # define it in libcompat.h. Note the optional inclusion of pthread.h.
15351 # On MinGW and MinGW-w64, the pthread.h file contains the timespec
15352 # definition.
15353 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_sec" "ac_cv_member_struct_timespec_tv_sec" "
15354 #include <time.h>
15355 #if defined(HAVE_PTHREAD)
15356 #include <pthread.h>
15357 #endif /* HAVE_PTHREAD */
15358
15359 "
15360 if test "x$ac_cv_member_struct_timespec_tv_sec" = xyes; then :
15361
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_STRUCT_TIMESPEC_TV_SEC 1
15364 _ACEOF
15365
15366
15367 else
15368
15369 cat >>confdefs.h <<_ACEOF
15370 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15371 _ACEOF
15372
15373 fi
15374 ac_fn_c_check_member "$LINENO" "struct timespec" "tv_nsec" "ac_cv_member_struct_timespec_tv_nsec" "
15375 #include <time.h>
15376 #if defined(HAVE_PTHREAD)
15377 #include <pthread.h>
15378 #endif /* HAVE_PTHREAD */
15379
15380 "
15381 if test "x$ac_cv_member_struct_timespec_tv_nsec" = xyes; then :
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_STRUCT_TIMESPEC_TV_NSEC 1
15385 _ACEOF
15386
15387
15388 else
15389
15390 cat >>confdefs.h <<_ACEOF
15391 #define STRUCT_TIMESPEC_DEFINITION_MISSING 1
15392 _ACEOF
15393
15394 fi
15395
15396
15397 # check that struct itimerspec is defined in time.h. If not, we need to
15398 # define it in libcompat.h.  Note the optional inclusion of pthread.h.
15399 # On MinGW and MinGW-w64, the pthread.h file contains the itimerspec
15400 # definition.
15401 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_interval" "ac_cv_member_struct_itimerspec_it_interval" "
15402 #include <time.h>
15403 #if defined(HAVE_PTHREAD)
15404 #include <pthread.h>
15405 #endif /* HAVE_PTHREAD */
15406
15407 "
15408 if test "x$ac_cv_member_struct_itimerspec_it_interval" = xyes; then :
15409
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_STRUCT_ITIMERSPEC_IT_INTERVAL 1
15412 _ACEOF
15413
15414
15415 else
15416
15417 cat >>confdefs.h <<_ACEOF
15418 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15419 _ACEOF
15420
15421 fi
15422 ac_fn_c_check_member "$LINENO" "struct itimerspec" "it_value" "ac_cv_member_struct_itimerspec_it_value" "
15423 #include <time.h>
15424 #if defined(HAVE_PTHREAD)
15425 #include <pthread.h>
15426 #endif /* HAVE_PTHREAD */
15427
15428 "
15429 if test "x$ac_cv_member_struct_itimerspec_it_value" = xyes; then :
15430
15431 cat >>confdefs.h <<_ACEOF
15432 #define HAVE_STRUCT_ITIMERSPEC_IT_VALUE 1
15433 _ACEOF
15434
15435
15436 else
15437
15438 cat >>confdefs.h <<_ACEOF
15439 #define STRUCT_ITIMERSPEC_DEFINITION_MISSING 1
15440 _ACEOF
15441
15442 fi
15443
15444
15445 # Checks for header files.
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15447 $as_echo_n "checking for ANSI C header files... " >&6; }
15448 if ${ac_cv_header_stdc+:} false; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h.  */
15453 #include <stdlib.h>
15454 #include <stdarg.h>
15455 #include <string.h>
15456 #include <float.h>
15457
15458 int
15459 main ()
15460 {
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 if ac_fn_c_try_compile "$LINENO"; then :
15467   ac_cv_header_stdc=yes
15468 else
15469   ac_cv_header_stdc=no
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472
15473 if test $ac_cv_header_stdc = yes; then
15474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h.  */
15477 #include <string.h>
15478
15479 _ACEOF
15480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15481   $EGREP "memchr" >/dev/null 2>&1; then :
15482
15483 else
15484   ac_cv_header_stdc=no
15485 fi
15486 rm -f conftest*
15487
15488 fi
15489
15490 if test $ac_cv_header_stdc = yes; then
15491   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h.  */
15494 #include <stdlib.h>
15495
15496 _ACEOF
15497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15498   $EGREP "free" >/dev/null 2>&1; then :
15499
15500 else
15501   ac_cv_header_stdc=no
15502 fi
15503 rm -f conftest*
15504
15505 fi
15506
15507 if test $ac_cv_header_stdc = yes; then
15508   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15509   if test "$cross_compiling" = yes; then :
15510   :
15511 else
15512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h.  */
15514 #include <ctype.h>
15515 #include <stdlib.h>
15516 #if ((' ' & 0x0FF) == 0x020)
15517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15519 #else
15520 # define ISLOWER(c) \
15521                    (('a' <= (c) && (c) <= 'i') \
15522                      || ('j' <= (c) && (c) <= 'r') \
15523                      || ('s' <= (c) && (c) <= 'z'))
15524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15525 #endif
15526
15527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15528 int
15529 main ()
15530 {
15531   int i;
15532   for (i = 0; i < 256; i++)
15533     if (XOR (islower (i), ISLOWER (i))
15534         || toupper (i) != TOUPPER (i))
15535       return 2;
15536   return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_run "$LINENO"; then :
15540
15541 else
15542   ac_cv_header_stdc=no
15543 fi
15544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15545   conftest.$ac_objext conftest.beam conftest.$ac_ext
15546 fi
15547
15548 fi
15549 fi
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15551 $as_echo "$ac_cv_header_stdc" >&6; }
15552 if test $ac_cv_header_stdc = yes; then
15553
15554 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15555
15556 fi
15557
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15559 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15560 if ${ac_cv_header_sys_wait_h+:} false; then :
15561   $as_echo_n "(cached) " >&6
15562 else
15563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h.  */
15565 #include <sys/types.h>
15566 #include <sys/wait.h>
15567 #ifndef WEXITSTATUS
15568 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15569 #endif
15570 #ifndef WIFEXITED
15571 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15572 #endif
15573
15574 int
15575 main ()
15576 {
15577   int s;
15578   wait (&s);
15579   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 if ac_fn_c_try_compile "$LINENO"; then :
15585   ac_cv_header_sys_wait_h=yes
15586 else
15587   ac_cv_header_sys_wait_h=no
15588 fi
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 fi
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15592 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15593 if test $ac_cv_header_sys_wait_h = yes; then
15594
15595 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15596
15597 fi
15598
15599 for ac_header in fcntl.h stddef.h stdlib.h string.h sys/time.h unistd.h
15600 do :
15601   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15604   cat >>confdefs.h <<_ACEOF
15605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15606 _ACEOF
15607
15608 fi
15609
15610 done
15611
15612 # ------ AX CREATE STDINT H -------------------------------------
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
15614 $as_echo_n "checking for stdint types... " >&6; }
15615 ac_stdint_h=`echo check_stdint.h`
15616 # try to shortcircuit - if the default include path of the compiler
15617 # can find a "stdint.h" header then we assume that all compilers can.
15618 if ${ac_cv_header_stdint_t+:} false; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621
15622 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15623 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15624 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627 #include <stdint.h>
15628 int
15629 main ()
15630 {
15631 int_least32_t v = 0;
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637   ac_cv_stdint_result="(assuming C99 compatible system)"
15638  ac_cv_header_stdint_t="stdint.h";
15639 else
15640   ac_cv_header_stdint_t=""
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
15644 CFLAGS="-std=c99"
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #include <stdint.h>
15648 int
15649 main ()
15650 {
15651 int_least32_t v = 0;
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 if ac_fn_c_try_compile "$LINENO"; then :
15657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
15658 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
15659 fi
15660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 fi
15662 CXXFLAGS="$old_CXXFLAGS"
15663 CPPFLAGS="$old_CPPFLAGS"
15664 CFLAGS="$old_CFLAGS"
15665 fi
15666
15667
15668 v="... $ac_cv_header_stdint_h"
15669 if test "$ac_stdint_h" = "stdint.h" ; then
15670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
15671 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
15672 elif test "$ac_stdint_h" = "inttypes.h" ; then
15673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
15674 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
15675 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
15677 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
15678 else
15679  ac_cv_header_stdint="$ac_cv_header_stdint_t"
15680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
15681 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
15682 fi
15683
15684 if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit..
15685
15686
15687 inttype_headers=`echo  | sed -e 's/,/ /g'`
15688
15689 ac_cv_stdint_result="(no helpful system typedefs seen)"
15690
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15692 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15693 if ${ac_cv_header_stdint_x+:} false; then :
15694   $as_echo_n "(cached) " >&6
15695 else
15696
15697  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15699 $as_echo "(..)" >&6; }
15700   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
15701   do
15702    unset ac_cv_type_uintptr_t
15703    unset ac_cv_type_uint64_t
15704    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
15705 "
15706 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15707   ac_cv_header_stdint_x=$i
15708 else
15709   continue
15710 fi
15711
15712    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15713 "
15714 if test "x$ac_cv_type_uint64_t" = xyes; then :
15715   and64="/uint64_t"
15716 else
15717   and64=""
15718 fi
15719
15720    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
15721  break
15722   done
15723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
15724 $as_echo_n "checking for stdint uintptr_t... " >&6; }
15725
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
15728 $as_echo "$ac_cv_header_stdint_x" >&6; }
15729
15730
15731 if test "_$ac_cv_header_stdint_x" = "_" ; then
15732
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15734 $as_echo_n "checking for stdint uint32_t... " >&6; }
15735 if ${ac_cv_header_stdint_o+:} false; then :
15736   $as_echo_n "(cached) " >&6
15737 else
15738
15739  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15741 $as_echo "(..)" >&6; }
15742   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
15743   do
15744    unset ac_cv_type_uint32_t
15745    unset ac_cv_type_uint64_t
15746    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
15747 "
15748 if test "x$ac_cv_type_uint32_t" = xyes; then :
15749   ac_cv_header_stdint_o=$i
15750 else
15751   continue
15752 fi
15753
15754    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
15755 "
15756 if test "x$ac_cv_type_uint64_t" = xyes; then :
15757   and64="/uint64_t"
15758 else
15759   and64=""
15760 fi
15761
15762    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
15763  break
15764    break;
15765   done
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
15767 $as_echo_n "checking for stdint uint32_t... " >&6; }
15768
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
15771 $as_echo "$ac_cv_header_stdint_o" >&6; }
15772
15773 fi
15774
15775 if test "_$ac_cv_header_stdint_x" = "_" ; then
15776 if test "_$ac_cv_header_stdint_o" = "_" ; then
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15779 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15780 if ${ac_cv_header_stdint_u+:} false; then :
15781   $as_echo_n "(cached) " >&6
15782 else
15783
15784  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15786 $as_echo "(..)" >&6; }
15787   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15788    unset ac_cv_type_u_int32_t
15789    unset ac_cv_type_u_int64_t
15790    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
15791 "
15792 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15793   ac_cv_header_stdint_u=$i
15794 else
15795   continue
15796 fi
15797
15798    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
15799 "
15800 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15801   and64="/u_int64_t"
15802 else
15803   and64=""
15804 fi
15805
15806    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
15807  break
15808    break;
15809   done
15810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
15811 $as_echo_n "checking for stdint u_int32_t... " >&6; }
15812
15813 fi
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
15815 $as_echo "$ac_cv_header_stdint_u" >&6; }
15816
15817 fi fi
15818
15819 if test "_$ac_cv_header_stdint_x" = "_" ; then
15820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
15821 $as_echo_n "checking for stdint datatype model... " >&6; }
15822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
15823 $as_echo "(..)" >&6; }
15824
15825    # The cast to long int works around a bug in the HP C Compiler
15826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15828 # This bug is HP SR number 8606223364.
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15830 $as_echo_n "checking size of char... " >&6; }
15831 if ${ac_cv_sizeof_char+:} false; then :
15832   $as_echo_n "(cached) " >&6
15833 else
15834   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
15835
15836 else
15837   if test "$ac_cv_type_char" = yes; then
15838      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15840 as_fn_error 77 "cannot compute sizeof (char)
15841 See \`config.log' for more details" "$LINENO" 5; }
15842    else
15843      ac_cv_sizeof_char=0
15844    fi
15845 fi
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15849 $as_echo "$ac_cv_sizeof_char" >&6; }
15850
15851
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define SIZEOF_CHAR $ac_cv_sizeof_char
15855 _ACEOF
15856
15857
15858    # The cast to long int works around a bug in the HP C Compiler
15859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15861 # This bug is HP SR number 8606223364.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15863 $as_echo_n "checking size of short... " >&6; }
15864 if ${ac_cv_sizeof_short+:} false; then :
15865   $as_echo_n "(cached) " >&6
15866 else
15867   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
15868
15869 else
15870   if test "$ac_cv_type_short" = yes; then
15871      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15873 as_fn_error 77 "cannot compute sizeof (short)
15874 See \`config.log' for more details" "$LINENO" 5; }
15875    else
15876      ac_cv_sizeof_short=0
15877    fi
15878 fi
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15882 $as_echo "$ac_cv_sizeof_short" >&6; }
15883
15884
15885
15886 cat >>confdefs.h <<_ACEOF
15887 #define SIZEOF_SHORT $ac_cv_sizeof_short
15888 _ACEOF
15889
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 int" >&5
15896 $as_echo_n "checking size of int... " >&6; }
15897 if ${ac_cv_sizeof_int+:} false; then :
15898   $as_echo_n "(cached) " >&6
15899 else
15900   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
15901
15902 else
15903   if test "$ac_cv_type_int" = 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 (int)
15907 See \`config.log' for more details" "$LINENO" 5; }
15908    else
15909      ac_cv_sizeof_int=0
15910    fi
15911 fi
15912
15913 fi
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15915 $as_echo "$ac_cv_sizeof_int" >&6; }
15916
15917
15918
15919 cat >>confdefs.h <<_ACEOF
15920 #define SIZEOF_INT $ac_cv_sizeof_int
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 long" >&5
15929 $as_echo_n "checking size of long... " >&6; }
15930 if ${ac_cv_sizeof_long+:} false; then :
15931   $as_echo_n "(cached) " >&6
15932 else
15933   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
15934
15935 else
15936   if test "$ac_cv_type_long" = 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 (long)
15940 See \`config.log' for more details" "$LINENO" 5; }
15941    else
15942      ac_cv_sizeof_long=0
15943    fi
15944 fi
15945
15946 fi
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15948 $as_echo "$ac_cv_sizeof_long" >&6; }
15949
15950
15951
15952 cat >>confdefs.h <<_ACEOF
15953 #define SIZEOF_LONG $ac_cv_sizeof_long
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 void*" >&5
15962 $as_echo_n "checking size of void*... " >&6; }
15963 if ${ac_cv_sizeof_voidp+:} false; then :
15964   $as_echo_n "(cached) " >&6
15965 else
15966   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
15967
15968 else
15969   if test "$ac_cv_type_voidp" = 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 (void*)
15973 See \`config.log' for more details" "$LINENO" 5; }
15974    else
15975      ac_cv_sizeof_voidp=0
15976    fi
15977 fi
15978
15979 fi
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15981 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15982
15983
15984
15985 cat >>confdefs.h <<_ACEOF
15986 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15987 _ACEOF
15988
15989
15990    ac_cv_char_data_model=""
15991    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
15992    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
15993    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
15994    ac_cv_long_data_model=""
15995    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
15996    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
15997    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
15998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
15999 $as_echo_n "checking data model... " >&6; }
16000    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
16001     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
16002     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
16003     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
16004     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
16005     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
16006     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
16007     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
16008     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
16009     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
16010     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
16011     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
16012     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
16013     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
16014     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
16015     222/*|333/*|444/*|666/*|888/*) :
16016                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
16017      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
16018    esac
16019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
16020 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
16021
16022 fi
16023
16024 if test "_$ac_cv_header_stdint_x" != "_" ; then
16025    ac_cv_header_stdint="$ac_cv_header_stdint_x"
16026 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
16027    ac_cv_header_stdint="$ac_cv_header_stdint_o"
16028 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
16029    ac_cv_header_stdint="$ac_cv_header_stdint_u"
16030 else
16031    ac_cv_header_stdint="stddef.h"
16032 fi
16033
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
16035 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
16037 $as_echo "($ac_cv_header_stdint)" >&6; }
16038 unset ac_cv_type_int_least32_t
16039 unset ac_cv_type_int_fast32_t
16040 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
16041 "
16042 if test "x$ac_cv_type_int_least32_t" = xyes; then :
16043
16044 fi
16045
16046 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
16047 "
16048 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
16049
16050 fi
16051
16052 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
16053 "
16054 if test "x$ac_cv_type_intmax_t" = xyes; then :
16055
16056 fi
16057
16058
16059 fi # shortcircut to system "stdint.h"
16060 # ------------------ PREPARE VARIABLES ------------------------------
16061 if test "$GCC" = "yes" ; then
16062 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
16063 else
16064 ac_cv_stdint_message="using $CC"
16065 fi
16066
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
16068 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
16069
16070 # ----------------- DONE inttypes.h checks START header -------------
16071 ac_config_commands="$ac_config_commands $ac_stdint_h"
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16083         if test -n "$ac_tool_prefix"; then
16084   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16085 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16087 $as_echo_n "checking for $ac_word... " >&6; }
16088 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16089   $as_echo_n "(cached) " >&6
16090 else
16091   case $PKG_CONFIG in
16092   [\\/]* | ?:[\\/]*)
16093   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16094   ;;
16095   *)
16096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16097 for as_dir in $PATH
16098 do
16099   IFS=$as_save_IFS
16100   test -z "$as_dir" && as_dir=.
16101     for ac_exec_ext in '' $ac_executable_extensions; do
16102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16103     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16105     break 2
16106   fi
16107 done
16108   done
16109 IFS=$as_save_IFS
16110
16111   ;;
16112 esac
16113 fi
16114 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16115 if test -n "$PKG_CONFIG"; then
16116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16117 $as_echo "$PKG_CONFIG" >&6; }
16118 else
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16121 fi
16122
16123
16124 fi
16125 if test -z "$ac_cv_path_PKG_CONFIG"; then
16126   ac_pt_PKG_CONFIG=$PKG_CONFIG
16127   # Extract the first word of "pkg-config", so it can be a program name with args.
16128 set dummy pkg-config; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16130 $as_echo_n "checking for $ac_word... " >&6; }
16131 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16132   $as_echo_n "(cached) " >&6
16133 else
16134   case $ac_pt_PKG_CONFIG in
16135   [\\/]* | ?:[\\/]*)
16136   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16137   ;;
16138   *)
16139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16141 do
16142   IFS=$as_save_IFS
16143   test -z "$as_dir" && as_dir=.
16144     for ac_exec_ext in '' $ac_executable_extensions; do
16145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16148     break 2
16149   fi
16150 done
16151   done
16152 IFS=$as_save_IFS
16153
16154   ;;
16155 esac
16156 fi
16157 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16158 if test -n "$ac_pt_PKG_CONFIG"; then
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16160 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16161 else
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 fi
16165
16166   if test "x$ac_pt_PKG_CONFIG" = x; then
16167     PKG_CONFIG=""
16168   else
16169     case $cross_compiling:$ac_tool_warned in
16170 yes:)
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16173 ac_tool_warned=yes ;;
16174 esac
16175     PKG_CONFIG=$ac_pt_PKG_CONFIG
16176   fi
16177 else
16178   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16179 fi
16180
16181 fi
16182 if test -n "$PKG_CONFIG"; then
16183         _pkg_min_version=0.9.0
16184         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16185 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16186         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16187                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188 $as_echo "yes" >&6; }
16189         else
16190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192                 PKG_CONFIG=""
16193         fi
16194 fi
16195 if test x"$enable_subunit" != "xfalse" && test x"$enable_subunit" != "xtrue"; then :
16196
16197         if test -n "$PKG_CONFIG" && \
16198     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16199   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16200   ac_status=$?
16201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202   test $ac_status = 0; }; then
16203   :
16204 else
16205   enable_subunit=false
16206 fi
16207
16208 fi
16209 if test x"$enable_subunit" != "xfalse"; then :
16210
16211
16212 pkg_failed=no
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSUBUNIT" >&5
16214 $as_echo_n "checking for LIBSUBUNIT... " >&6; }
16215
16216 if test -n "$LIBSUBUNIT_CFLAGS"; then
16217     pkg_cv_LIBSUBUNIT_CFLAGS="$LIBSUBUNIT_CFLAGS"
16218  elif test -n "$PKG_CONFIG"; then
16219     if test -n "$PKG_CONFIG" && \
16220     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16221   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16222   ac_status=$?
16223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16224   test $ac_status = 0; }; then
16225   pkg_cv_LIBSUBUNIT_CFLAGS=`$PKG_CONFIG --cflags "libsubunit" 2>/dev/null`
16226                       test "x$?" != "x0" && pkg_failed=yes
16227 else
16228   pkg_failed=yes
16229 fi
16230  else
16231     pkg_failed=untried
16232 fi
16233 if test -n "$LIBSUBUNIT_LIBS"; then
16234     pkg_cv_LIBSUBUNIT_LIBS="$LIBSUBUNIT_LIBS"
16235  elif test -n "$PKG_CONFIG"; then
16236     if test -n "$PKG_CONFIG" && \
16237     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsubunit\""; } >&5
16238   ($PKG_CONFIG --exists --print-errors "libsubunit") 2>&5
16239   ac_status=$?
16240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241   test $ac_status = 0; }; then
16242   pkg_cv_LIBSUBUNIT_LIBS=`$PKG_CONFIG --libs "libsubunit" 2>/dev/null`
16243                       test "x$?" != "x0" && pkg_failed=yes
16244 else
16245   pkg_failed=yes
16246 fi
16247  else
16248     pkg_failed=untried
16249 fi
16250
16251
16252
16253 if test $pkg_failed = yes; then
16254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16256
16257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16258         _pkg_short_errors_supported=yes
16259 else
16260         _pkg_short_errors_supported=no
16261 fi
16262         if test $_pkg_short_errors_supported = yes; then
16263                 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsubunit" 2>&1`
16264         else
16265                 LIBSUBUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsubunit" 2>&1`
16266         fi
16267         # Put the nasty error message in config.log where it belongs
16268         echo "$LIBSUBUNIT_PKG_ERRORS" >&5
16269
16270         as_fn_error $? "Package requirements (libsubunit) were not met:
16271
16272 $LIBSUBUNIT_PKG_ERRORS
16273
16274 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16275 installed software in a non-standard prefix.
16276
16277 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16278 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16279 See the pkg-config man page for more details." "$LINENO" 5
16280 elif test $pkg_failed = untried; then
16281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16283         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16285 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16286 is in your PATH or set the PKG_CONFIG environment variable to the full
16287 path to pkg-config.
16288
16289 Alternatively, you may set the environment variables LIBSUBUNIT_CFLAGS
16290 and LIBSUBUNIT_LIBS to avoid the need to call pkg-config.
16291 See the pkg-config man page for more details.
16292
16293 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16294 See \`config.log' for more details" "$LINENO" 5; }
16295 else
16296         LIBSUBUNIT_CFLAGS=$pkg_cv_LIBSUBUNIT_CFLAGS
16297         LIBSUBUNIT_LIBS=$pkg_cv_LIBSUBUNIT_LIBS
16298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299 $as_echo "yes" >&6; }
16300
16301 fi
16302
16303 fi
16304 if test "xfalse" = x"$enable_subunit"; then
16305 ENABLE_SUBUNIT="0"
16306 LIBSUBUNIT_PC=""
16307 else
16308 ENABLE_SUBUNIT="1"
16309 LIBSUBUNIT_PC="libsubunit"
16310 fi
16311
16312
16313
16314 cat >>confdefs.h <<_ACEOF
16315 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
16316 _ACEOF
16317
16318
16319  if test x"$enable_subunit" != "xfalse"; then
16320   SUBUNIT_TRUE=
16321   SUBUNIT_FALSE='#'
16322 else
16323   SUBUNIT_TRUE='#'
16324   SUBUNIT_FALSE=
16325 fi
16326
16327
16328 # Check for POSIX regular expressions support.
16329 for ac_header in regex.h
16330 do :
16331   ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16332 if test "x$ac_cv_header_regex_h" = xyes; then :
16333   cat >>confdefs.h <<_ACEOF
16334 #define HAVE_REGEX_H 1
16335 _ACEOF
16336  HAVE_REGEX_H=1
16337 else
16338   HAVE_REGEX_H=0
16339 fi
16340
16341 done
16342
16343
16344 if test "x$HAVE_REGEX_H" = "x1"; then
16345     for ac_func in regcomp regexec
16346 do :
16347   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16350   cat >>confdefs.h <<_ACEOF
16351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352 _ACEOF
16353  HAVE_REGEX=1
16354 else
16355   HAVE_REGEX=0
16356 fi
16357 done
16358
16359 else
16360     HAVE_REGEX=0
16361 fi
16362
16363
16364 cat >>confdefs.h <<_ACEOF
16365 #define HAVE_REGEX $HAVE_REGEX
16366 _ACEOF
16367
16368
16369 if test "x$HAVE_REGEX" = "x1"; then
16370     ENABLE_REGEX="1"
16371 else
16372     ENABLE_REGEX="0"
16373 fi
16374
16375
16376 cat >>confdefs.h <<_ACEOF
16377 #define ENABLE_REGEX $ENABLE_REGEX
16378 _ACEOF
16379
16380
16381 # Checks for typedefs, structures, and compiler characteristics.
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16383 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16384 if ${ac_cv_c_const+:} false; then :
16385   $as_echo_n "(cached) " >&6
16386 else
16387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389
16390 int
16391 main ()
16392 {
16393
16394 #ifndef __cplusplus
16395   /* Ultrix mips cc rejects this sort of thing.  */
16396   typedef int charset[2];
16397   const charset cs = { 0, 0 };
16398   /* SunOS 4.1.1 cc rejects this.  */
16399   char const *const *pcpcc;
16400   char **ppc;
16401   /* NEC SVR4.0.2 mips cc rejects this.  */
16402   struct point {int x, y;};
16403   static struct point const zero = {0,0};
16404   /* AIX XL C 1.02.0.0 rejects this.
16405      It does not let you subtract one const X* pointer from another in
16406      an arm of an if-expression whose if-part is not a constant
16407      expression */
16408   const char *g = "string";
16409   pcpcc = &g + (g ? g-g : 0);
16410   /* HPUX 7.0 cc rejects these. */
16411   ++pcpcc;
16412   ppc = (char**) pcpcc;
16413   pcpcc = (char const *const *) ppc;
16414   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16415     char tx;
16416     char *t = &tx;
16417     char const *s = 0 ? (char *) 0 : (char const *) 0;
16418
16419     *t++ = 0;
16420     if (s) return 0;
16421   }
16422   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16423     int x[] = {25, 17};
16424     const int *foo = &x[0];
16425     ++foo;
16426   }
16427   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16428     typedef const int *iptr;
16429     iptr p = 0;
16430     ++p;
16431   }
16432   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16433        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16434     struct s { int j; const int *ap[3]; } bx;
16435     struct s *b = &bx; b->j = 5;
16436   }
16437   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16438     const int foo = 10;
16439     if (!foo) return 0;
16440   }
16441   return !cs[0] && !zero.x;
16442 #endif
16443
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_compile "$LINENO"; then :
16449   ac_cv_c_const=yes
16450 else
16451   ac_cv_c_const=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16456 $as_echo "$ac_cv_c_const" >&6; }
16457 if test $ac_cv_c_const = no; then
16458
16459 $as_echo "#define const /**/" >>confdefs.h
16460
16461 fi
16462
16463 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16464 if test "x$ac_cv_type_pid_t" = xyes; then :
16465
16466 else
16467
16468 cat >>confdefs.h <<_ACEOF
16469 #define pid_t int
16470 _ACEOF
16471
16472 fi
16473
16474 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16475 if test "x$ac_cv_type_size_t" = xyes; then :
16476
16477 else
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define size_t unsigned int
16481 _ACEOF
16482
16483 fi
16484
16485
16486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16487 $as_echo_n "checking for unsigned long long int... " >&6; }
16488 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16489   $as_echo_n "(cached) " >&6
16490 else
16491   ac_cv_type_unsigned_long_long_int=yes
16492      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16493        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h.  */
16495
16496   /* For now, do not test the preprocessor; as of 2007 there are too many
16497          implementations with broken preprocessors.  Perhaps this can
16498          be revisited in 2012.  In the meantime, code should not expect
16499          #if to work with literals wider than 32 bits.  */
16500       /* Test literals.  */
16501       long long int ll = 9223372036854775807ll;
16502       long long int nll = -9223372036854775807LL;
16503       unsigned long long int ull = 18446744073709551615ULL;
16504       /* Test constant expressions.   */
16505       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16506                      ? 1 : -1)];
16507       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16508                      ? 1 : -1)];
16509       int i = 63;
16510 int
16511 main ()
16512 {
16513 /* Test availability of runtime routines for shift and division.  */
16514       long long int llmax = 9223372036854775807ll;
16515       unsigned long long int ullmax = 18446744073709551615ull;
16516       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16517               | (llmax / ll) | (llmax % ll)
16518               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16519               | (ullmax / ull) | (ullmax % ull));
16520   ;
16521   return 0;
16522 }
16523
16524 _ACEOF
16525 if ac_fn_c_try_link "$LINENO"; then :
16526
16527 else
16528   ac_cv_type_unsigned_long_long_int=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531     conftest$ac_exeext conftest.$ac_ext
16532      fi
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16535 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16536   if test $ac_cv_type_unsigned_long_long_int = yes; then
16537
16538 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16539
16540   fi
16541
16542
16543
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16545 $as_echo_n "checking for long long int... " >&6; }
16546 if ${ac_cv_type_long_long_int+:} false; then :
16547   $as_echo_n "(cached) " >&6
16548 else
16549   ac_cv_type_long_long_int=yes
16550       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16551         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16552         if test $ac_cv_type_long_long_int = yes; then
16553                                         if test "$cross_compiling" = yes; then :
16554   :
16555 else
16556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h.  */
16558 #include <limits.h>
16559                  #ifndef LLONG_MAX
16560                  # define HALF \
16561                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16562                  # define LLONG_MAX (HALF - 1 + HALF)
16563                  #endif
16564 int
16565 main ()
16566 {
16567 long long int n = 1;
16568                  int i;
16569                  for (i = 0; ; i++)
16570                    {
16571                      long long int m = n << i;
16572                      if (m >> i != n)
16573                        return 1;
16574                      if (LLONG_MAX / 2 < m)
16575                        break;
16576                    }
16577                  return 0;
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 if ac_fn_c_try_run "$LINENO"; then :
16583
16584 else
16585   ac_cv_type_long_long_int=no
16586 fi
16587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16588   conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 fi
16590
16591         fi
16592       fi
16593 fi
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16595 $as_echo "$ac_cv_type_long_long_int" >&6; }
16596   if test $ac_cv_type_long_long_int = yes; then
16597
16598 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16599
16600   fi
16601
16602
16603
16604   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16605 if test "x$ac_cv_type_intmax_t" = xyes; then :
16606
16607 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16608
16609 else
16610   test $ac_cv_type_long_long_int = yes \
16611        && ac_type='long long int' \
16612        || ac_type='long int'
16613
16614 cat >>confdefs.h <<_ACEOF
16615 #define intmax_t $ac_type
16616 _ACEOF
16617
16618 fi
16619
16620
16621
16622
16623   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16624 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16625
16626 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16627
16628 else
16629   test $ac_cv_type_unsigned_long_long_int = yes \
16630        && ac_type='unsigned long long int' \
16631        || ac_type='unsigned long int'
16632
16633 cat >>confdefs.h <<_ACEOF
16634 #define uintmax_t $ac_type
16635 _ACEOF
16636
16637 fi
16638
16639
16640 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16641 case $ac_cv_c_uint32_t in #(
16642   no|yes) ;; #(
16643   *)
16644
16645 $as_echo "#define _UINT32_T 1" >>confdefs.h
16646
16647
16648 cat >>confdefs.h <<_ACEOF
16649 #define uint32_t $ac_cv_c_uint32_t
16650 _ACEOF
16651 ;;
16652   esac
16653
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16655 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16656 if ${ac_cv_header_time+:} false; then :
16657   $as_echo_n "(cached) " >&6
16658 else
16659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h.  */
16661 #include <sys/types.h>
16662 #include <sys/time.h>
16663 #include <time.h>
16664
16665 int
16666 main ()
16667 {
16668 if ((struct tm *) 0)
16669 return 0;
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675   ac_cv_header_time=yes
16676 else
16677   ac_cv_header_time=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16682 $as_echo "$ac_cv_header_time" >&6; }
16683 if test $ac_cv_header_time = yes; then
16684
16685 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16686
16687 fi
16688
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16690 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16691 if ${ac_cv_struct_tm+:} false; then :
16692   $as_echo_n "(cached) " >&6
16693 else
16694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695 /* end confdefs.h.  */
16696 #include <sys/types.h>
16697 #include <time.h>
16698
16699 int
16700 main ()
16701 {
16702 struct tm tm;
16703                                      int *p = &tm.tm_sec;
16704                                      return !p;
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710   ac_cv_struct_tm=time.h
16711 else
16712   ac_cv_struct_tm=sys/time.h
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16717 $as_echo "$ac_cv_struct_tm" >&6; }
16718 if test $ac_cv_struct_tm = sys/time.h; then
16719
16720 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16721
16722 fi
16723
16724
16725 # The cast to long int works around a bug in the HP C Compiler
16726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16728 # This bug is HP SR number 8606223364.
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16730 $as_echo_n "checking size of int... " >&6; }
16731 if ${ac_cv_sizeof_int+:} false; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16735
16736 else
16737   if test "$ac_cv_type_int" = yes; then
16738      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16740 as_fn_error 77 "cannot compute sizeof (int)
16741 See \`config.log' for more details" "$LINENO" 5; }
16742    else
16743      ac_cv_sizeof_int=0
16744    fi
16745 fi
16746
16747 fi
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16749 $as_echo "$ac_cv_sizeof_int" >&6; }
16750
16751
16752
16753 cat >>confdefs.h <<_ACEOF
16754 #define SIZEOF_INT $ac_cv_sizeof_int
16755 _ACEOF
16756
16757
16758 # The cast to long int works around a bug in the HP C Compiler
16759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16761 # This bug is HP SR number 8606223364.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16763 $as_echo_n "checking size of short... " >&6; }
16764 if ${ac_cv_sizeof_short+:} false; then :
16765   $as_echo_n "(cached) " >&6
16766 else
16767   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16768
16769 else
16770   if test "$ac_cv_type_short" = yes; then
16771      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16773 as_fn_error 77 "cannot compute sizeof (short)
16774 See \`config.log' for more details" "$LINENO" 5; }
16775    else
16776      ac_cv_sizeof_short=0
16777    fi
16778 fi
16779
16780 fi
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16782 $as_echo "$ac_cv_sizeof_short" >&6; }
16783
16784
16785
16786 cat >>confdefs.h <<_ACEOF
16787 #define SIZEOF_SHORT $ac_cv_sizeof_short
16788 _ACEOF
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 long" >&5
16796 $as_echo_n "checking size of long... " >&6; }
16797 if ${ac_cv_sizeof_long+:} false; then :
16798   $as_echo_n "(cached) " >&6
16799 else
16800   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16801
16802 else
16803   if test "$ac_cv_type_long" = 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 (long)
16807 See \`config.log' for more details" "$LINENO" 5; }
16808    else
16809      ac_cv_sizeof_long=0
16810    fi
16811 fi
16812
16813 fi
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16815 $as_echo "$ac_cv_sizeof_long" >&6; }
16816
16817
16818
16819 cat >>confdefs.h <<_ACEOF
16820 #define SIZEOF_LONG $ac_cv_sizeof_long
16821 _ACEOF
16822
16823
16824
16825 # The following two checks will attempt to include pthread.h. The
16826 # reason is MinGW and MinGW-w64 have been known to put the time
16827 # related definitions in the pthread headers. Without include
16828 # pthread.h, these checks may mistakenly fail to find the
16829 # definitions.
16830 ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "
16831 $ac_includes_default
16832 #if defined(HAVE_PTHREAD)
16833 #include <pthread.h>
16834 #endif /* HAVE_PTHREAD */
16835
16836 "
16837 if test "x$ac_cv_type_clockid_t" = xyes; then :
16838
16839 else
16840
16841 $as_echo "#define clockid_t int" >>confdefs.h
16842
16843 fi
16844
16845 ac_fn_c_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "
16846 $ac_includes_default
16847 #if defined(HAVE_PTHREAD)
16848 #include <pthread.h>
16849 #endif /* HAVE_PTHREAD */
16850
16851 "
16852 if test "x$ac_cv_type_timer_t" = xyes; then :
16853
16854 else
16855
16856 $as_echo "#define timer_t int" >>confdefs.h
16857
16858 fi
16859
16860
16861 # Checks for library functions.
16862 for ac_header in stdlib.h
16863 do :
16864   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16865 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16866   cat >>confdefs.h <<_ACEOF
16867 #define HAVE_STDLIB_H 1
16868 _ACEOF
16869
16870 fi
16871
16872 done
16873
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16875 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16876 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16877   $as_echo_n "(cached) " >&6
16878 else
16879   if test "$cross_compiling" = yes; then :
16880   ac_cv_func_malloc_0_nonnull=no
16881 else
16882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h.  */
16884 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16885 # include <stdlib.h>
16886 #else
16887 char *malloc ();
16888 #endif
16889
16890 int
16891 main ()
16892 {
16893 return ! malloc (0);
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 if ac_fn_c_try_run "$LINENO"; then :
16899   ac_cv_func_malloc_0_nonnull=yes
16900 else
16901   ac_cv_func_malloc_0_nonnull=no
16902 fi
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16904   conftest.$ac_objext conftest.beam conftest.$ac_ext
16905 fi
16906
16907 fi
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16909 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16910 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16911
16912 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16913
16914 else
16915   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16916
16917    case " $LIBOBJS " in
16918   *" malloc.$ac_objext "* ) ;;
16919   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16920  ;;
16921 esac
16922
16923
16924 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16925
16926 fi
16927
16928
16929 for ac_header in stdlib.h
16930 do :
16931   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16932 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16933   cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STDLIB_H 1
16935 _ACEOF
16936
16937 fi
16938
16939 done
16940
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16942 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16943 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16944   $as_echo_n "(cached) " >&6
16945 else
16946   if test "$cross_compiling" = yes; then :
16947   ac_cv_func_realloc_0_nonnull=no
16948 else
16949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h.  */
16951 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16952 # include <stdlib.h>
16953 #else
16954 char *realloc ();
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 return ! realloc (0, 0);
16961   ;
16962   return 0;
16963 }
16964 _ACEOF
16965 if ac_fn_c_try_run "$LINENO"; then :
16966   ac_cv_func_realloc_0_nonnull=yes
16967 else
16968   ac_cv_func_realloc_0_nonnull=no
16969 fi
16970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16971   conftest.$ac_objext conftest.beam conftest.$ac_ext
16972 fi
16973
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16976 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16977 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16978
16979 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16980
16981 else
16982   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16983
16984    case " $LIBOBJS " in
16985   *" realloc.$ac_objext "* ) ;;
16986   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16987  ;;
16988 esac
16989
16990
16991 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16992
16993 fi
16994
16995
16996
16997 # Check if the timer_create(), timer_settime(), and timer_delete()
16998 # functions on the system are available and suitable, or need to be
16999 # replaced with Check's replacement of these functions.
17000
17001
17002
17003   for ac_header in $ac_header_list
17004 do :
17005   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17007 "
17008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17009   cat >>confdefs.h <<_ACEOF
17010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17011 _ACEOF
17012
17013 fi
17014
17015 done
17016
17017
17018
17019
17020
17021
17022
17023
17024   if test "xtrue" != x"$enable_timer_replacement"; then
17025           ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17026 if test "x$ac_cv_func_timer_create" = xyes; then :
17027   hw_cv_librt_timers=yes
17028 else
17029   hw_cv_librt_timers=no
17030 fi
17031
17032           if test "$hw_cv_librt_timers" = yes; then :
17033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if timer_create is supported on the system" >&5
17034 $as_echo_n "checking if timer_create is supported on the system... " >&6; }
17035 if ${hw_cv_librt_timers_posix+:} false; then :
17036   $as_echo_n "(cached) " >&6
17037 else
17038   if test "$cross_compiling" = yes; then :
17039   hw_cv_librt_timers_posix=autodetect
17040 else
17041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h.  */
17043 #if HAVE_TIME_H
17044                           #include <time.h>
17045                           #endif
17046               #include <errno.h>
17047                           static int test_timer_create()
17048                           {
17049                 timer_t timerid;
17050                 if(timer_create(CLOCK_REALTIME, NULL, &timerid) != 0)
17051                 {
17052                     /*
17053                       On this system, although the function is available,
17054                       no meaningful implementation is provided.
17055                     */
17056                     if(errno == ENOSYS)
17057                     {
17058                         return 1;
17059                     }
17060                 }
17061                 return 0;
17062                           }
17063 int
17064 main ()
17065 {
17066 return test_timer_create();
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 if ac_fn_c_try_run "$LINENO"; then :
17072   hw_cv_librt_timers_posix=yes
17073 else
17074   hw_cv_librt_timers_posix=no
17075 fi
17076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17077   conftest.$ac_objext conftest.beam conftest.$ac_ext
17078 fi
17079
17080 fi
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_librt_timers_posix" >&5
17082 $as_echo "$hw_cv_librt_timers_posix" >&6; }
17083 else
17084   hw_cv_librt_timers_posix=no
17085 fi
17086   else
17087       hw_cv_librt_timers_posix=no
17088   fi
17089
17090   # If the system does not have a POSIX timer_create(), then use
17091   # Check's reimplementation of the timer_* calls
17092   if test "$hw_cv_librt_timers_posix" = no; then :
17093
17094   if test "x$_hw_cv_librt_timers_replace_done" != xyes; then :
17095   case " $LIBOBJS " in
17096   *" timer_create.$ac_objext "* ) ;;
17097   *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17098  ;;
17099 esac
17100
17101      case " $LIBOBJS " in
17102   *" timer_settime.$ac_objext "* ) ;;
17103   *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17104  ;;
17105 esac
17106
17107      case " $LIBOBJS " in
17108   *" timer_delete.$ac_objext "* ) ;;
17109   *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17110  ;;
17111 esac
17112
17113     _hw_cv_librt_timers_replace_done=yes
17114 fi
17115
17116 fi
17117
17118   # If we are cross compiling, do the normal check for the
17119   # timer_* calls.
17120   if test "$hw_cv_librt_timers_posix" = autodetect; then :
17121   ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
17122 if test "x$ac_cv_func_timer_create" = xyes; then :
17123   $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
17124
17125 else
17126   case " $LIBOBJS " in
17127   *" timer_create.$ac_objext "* ) ;;
17128   *) LIBOBJS="$LIBOBJS timer_create.$ac_objext"
17129  ;;
17130 esac
17131
17132 fi
17133
17134 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
17135 if test "x$ac_cv_func_timer_settime" = xyes; then :
17136   $as_echo "#define HAVE_TIMER_SETTIME 1" >>confdefs.h
17137
17138 else
17139   case " $LIBOBJS " in
17140   *" timer_settime.$ac_objext "* ) ;;
17141   *) LIBOBJS="$LIBOBJS timer_settime.$ac_objext"
17142  ;;
17143 esac
17144
17145 fi
17146
17147 ac_fn_c_check_func "$LINENO" "timer_delete" "ac_cv_func_timer_delete"
17148 if test "x$ac_cv_func_timer_delete" = xyes; then :
17149   $as_echo "#define HAVE_TIMER_DELETE 1" >>confdefs.h
17150
17151 else
17152   case " $LIBOBJS " in
17153   *" timer_delete.$ac_objext "* ) ;;
17154   *) LIBOBJS="$LIBOBJS timer_delete.$ac_objext"
17155  ;;
17156 esac
17157
17158 fi
17159
17160
17161      ac_fn_c_check_decl "$LINENO" "timer_create" "ac_cv_have_decl_timer_create" "$ac_includes_default"
17162 if test "x$ac_cv_have_decl_timer_create" = xyes; then :
17163   ac_have_decl=1
17164 else
17165   ac_have_decl=0
17166 fi
17167
17168 cat >>confdefs.h <<_ACEOF
17169 #define HAVE_DECL_TIMER_CREATE $ac_have_decl
17170 _ACEOF
17171 ac_fn_c_check_decl "$LINENO" "timer_settime" "ac_cv_have_decl_timer_settime" "$ac_includes_default"
17172 if test "x$ac_cv_have_decl_timer_settime" = xyes; then :
17173   ac_have_decl=1
17174 else
17175   ac_have_decl=0
17176 fi
17177
17178 cat >>confdefs.h <<_ACEOF
17179 #define HAVE_DECL_TIMER_SETTIME $ac_have_decl
17180 _ACEOF
17181 ac_fn_c_check_decl "$LINENO" "timer_delete" "ac_cv_have_decl_timer_delete" "$ac_includes_default"
17182 if test "x$ac_cv_have_decl_timer_delete" = xyes; then :
17183   ac_have_decl=1
17184 else
17185   ac_have_decl=0
17186 fi
17187
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_TIMER_DELETE $ac_have_decl
17190 _ACEOF
17191
17192 fi
17193
17194
17195 # The following checks will replace missing functions from libcompat
17196 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
17197 if test "x$ac_cv_func_alarm" = xyes; then :
17198   $as_echo "#define HAVE_ALARM 1" >>confdefs.h
17199
17200 else
17201   case " $LIBOBJS " in
17202   *" alarm.$ac_objext "* ) ;;
17203   *) LIBOBJS="$LIBOBJS alarm.$ac_objext"
17204  ;;
17205 esac
17206
17207 fi
17208
17209 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17210 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17211   $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17212
17213 else
17214   case " $LIBOBJS " in
17215   *" clock_gettime.$ac_objext "* ) ;;
17216   *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext"
17217  ;;
17218 esac
17219
17220 fi
17221
17222 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
17223 if test "x$ac_cv_func_getline" = xyes; then :
17224   $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
17225
17226 else
17227   case " $LIBOBJS " in
17228   *" getline.$ac_objext "* ) ;;
17229   *) LIBOBJS="$LIBOBJS getline.$ac_objext"
17230  ;;
17231 esac
17232
17233 fi
17234
17235 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17236 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17237   $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
17238
17239 else
17240   case " $LIBOBJS " in
17241   *" gettimeofday.$ac_objext "* ) ;;
17242   *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17243  ;;
17244 esac
17245
17246 fi
17247
17248 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17249 if test "x$ac_cv_func_localtime_r" = xyes; then :
17250   $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17251
17252 else
17253   case " $LIBOBJS " in
17254   *" localtime_r.$ac_objext "* ) ;;
17255   *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17256  ;;
17257 esac
17258
17259 fi
17260
17261 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17262 if test "x$ac_cv_func_strdup" = xyes; then :
17263   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
17264
17265 else
17266   case " $LIBOBJS " in
17267   *" strdup.$ac_objext "* ) ;;
17268   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
17269  ;;
17270 esac
17271
17272 fi
17273
17274 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
17275 if test "x$ac_cv_func_strsignal" = xyes; then :
17276   $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
17277
17278 else
17279   case " $LIBOBJS " in
17280   *" strsignal.$ac_objext "* ) ;;
17281   *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
17282  ;;
17283 esac
17284
17285 fi
17286
17287
17288 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
17289 if test "x$ac_cv_have_decl_alarm" = xyes; then :
17290   ac_have_decl=1
17291 else
17292   ac_have_decl=0
17293 fi
17294
17295 cat >>confdefs.h <<_ACEOF
17296 #define HAVE_DECL_ALARM $ac_have_decl
17297 _ACEOF
17298 ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$ac_includes_default"
17299 if test "x$ac_cv_have_decl_clock_gettime" = xyes; then :
17300   ac_have_decl=1
17301 else
17302   ac_have_decl=0
17303 fi
17304
17305 cat >>confdefs.h <<_ACEOF
17306 #define HAVE_DECL_CLOCK_GETTIME $ac_have_decl
17307 _ACEOF
17308 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17309 if test "x$ac_cv_have_decl_getline" = xyes; then :
17310   ac_have_decl=1
17311 else
17312   ac_have_decl=0
17313 fi
17314
17315 cat >>confdefs.h <<_ACEOF
17316 #define HAVE_DECL_GETLINE $ac_have_decl
17317 _ACEOF
17318 ac_fn_c_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$ac_includes_default"
17319 if test "x$ac_cv_have_decl_gettimeofday" = xyes; then :
17320   ac_have_decl=1
17321 else
17322   ac_have_decl=0
17323 fi
17324
17325 cat >>confdefs.h <<_ACEOF
17326 #define HAVE_DECL_GETTIMEOFDAY $ac_have_decl
17327 _ACEOF
17328 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
17329 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
17330   ac_have_decl=1
17331 else
17332   ac_have_decl=0
17333 fi
17334
17335 cat >>confdefs.h <<_ACEOF
17336 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
17337 _ACEOF
17338 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17339 if test "x$ac_cv_have_decl_strdup" = xyes; then :
17340   ac_have_decl=1
17341 else
17342   ac_have_decl=0
17343 fi
17344
17345 cat >>confdefs.h <<_ACEOF
17346 #define HAVE_DECL_STRDUP $ac_have_decl
17347 _ACEOF
17348 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
17349 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
17350   ac_have_decl=1
17351 else
17352   ac_have_decl=0
17353 fi
17354
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_DECL_STRSIGNAL $ac_have_decl
17357 _ACEOF
17358
17359
17360 # The following checks are to only detect if the functions exist, but
17361 # not replace them
17362 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
17363 if test "x$ac_cv_have_decl_setenv" = xyes; then :
17364   ac_have_decl=1
17365 else
17366   ac_have_decl=0
17367 fi
17368
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_DECL_SETENV $ac_have_decl
17371 _ACEOF
17372
17373
17374 for ac_func in setitimer
17375 do :
17376   ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17377 if test "x$ac_cv_func_setitimer" = xyes; then :
17378   cat >>confdefs.h <<_ACEOF
17379 #define HAVE_SETITIMER 1
17380 _ACEOF
17381
17382 fi
17383 done
17384
17385
17386 # Checks for functions not available in Windows
17387 if test "xtrue" = x"$enable_fork"; then
17388         for ac_func in fork
17389 do :
17390   ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
17391 if test "x$ac_cv_func_fork" = xyes; then :
17392   cat >>confdefs.h <<_ACEOF
17393 #define HAVE_FORK 1
17394 _ACEOF
17395  HAVE_FORK=1
17396 else
17397   HAVE_FORK=0
17398 fi
17399 done
17400
17401 else
17402         HAVE_FORK=0
17403 fi
17404
17405 for ac_func in sigaction
17406 do :
17407   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17408 if test "x$ac_cv_func_sigaction" = xyes; then :
17409   cat >>confdefs.h <<_ACEOF
17410 #define HAVE_SIGACTION 1
17411 _ACEOF
17412
17413 fi
17414 done
17415
17416 for ac_func in mkstemp
17417 do :
17418   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
17419 if test "x$ac_cv_func_mkstemp" = xyes; then :
17420   cat >>confdefs.h <<_ACEOF
17421 #define HAVE_MKSTEMP 1
17422 _ACEOF
17423
17424 fi
17425 done
17426
17427
17428 # Check if the system's snprintf (and its variations) are C99 compliant.
17429 # If they are not, use the version in libcompat.
17430
17431
17432
17433
17434
17435
17436
17437   if test "xtrue" != x"$enable_snprintf_replacement"; then
17438           ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17439 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17440   hw_cv_func_vsnprintf=yes
17441 else
17442   hw_cv_func_vsnprintf=no
17443 fi
17444
17445           if test "$hw_cv_func_vsnprintf" = yes; then :
17446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
17447 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
17448 if ${hw_cv_func_vsnprintf_c99+:} false; then :
17449   $as_echo_n "(cached) " >&6
17450 else
17451   if test "$cross_compiling" = yes; then :
17452   hw_cv_func_vsnprintf_c99=no
17453 else
17454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h.  */
17456 #if HAVE_STDARG_H
17457                           #include <stdarg.h>
17458                           #endif
17459                           #include <stdio.h>
17460                           static int testprintf(char *buf, size_t size, const char *format, ...)
17461                           {
17462                                 int result;
17463                                 va_list ap;
17464                                 va_start(ap, format);
17465                                 result = vsnprintf(buf, size, format, ap);
17466                                 va_end(ap);
17467                                 return result;
17468                           }
17469 int
17470 main ()
17471 {
17472 char buf[43];
17473                           if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17474                                   testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17475                                   buf[0] != 'T' || buf[3] != '\0')
17476                                 return 1;
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 if ac_fn_c_try_run "$LINENO"; then :
17482   hw_cv_func_vsnprintf_c99=yes
17483 else
17484   hw_cv_func_vsnprintf_c99=no
17485 fi
17486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17487   conftest.$ac_objext conftest.beam conftest.$ac_ext
17488 fi
17489
17490 fi
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
17492 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
17493 else
17494   hw_cv_func_snprintf_c99=no
17495 fi
17496           if test "$hw_cv_func_vsnprintf_c99" = yes; then :
17497
17498 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
17499
17500 fi
17501   else
17502       hw_cv_func_vsnprintf_c99=no
17503   fi
17504
17505   if test "$hw_cv_func_vsnprintf_c99" = no; then :
17506
17507 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
17508
17509     for ac_header in inttypes.h locale.h stddef.h stdint.h
17510 do :
17511   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17514   cat >>confdefs.h <<_ACEOF
17515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17516 _ACEOF
17517
17518 fi
17519
17520 done
17521
17522     ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
17523 "
17524 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
17525
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
17528 _ACEOF
17529
17530
17531 fi
17532 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
17533 "
17534 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
17535
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
17538 _ACEOF
17539
17540
17541 fi
17542
17543
17544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
17545 $as_echo_n "checking for long double... " >&6; }
17546 if ${ac_cv_type_long_double+:} false; then :
17547   $as_echo_n "(cached) " >&6
17548 else
17549   if test "$GCC" = yes; then
17550        ac_cv_type_long_double=yes
17551      else
17552        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h.  */
17554 /* The Stardent Vistra knows sizeof (long double), but does
17555                  not support it.  */
17556               long double foo = 0.0L;
17557 int
17558 main ()
17559 {
17560 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
17561               sizeof (double) <= sizeof (long double))];
17562 test_array [0] = 0;
17563 return test_array [0];
17564
17565   ;
17566   return 0;
17567 }
17568 _ACEOF
17569 if ac_fn_c_try_compile "$LINENO"; then :
17570   ac_cv_type_long_double=yes
17571 else
17572   ac_cv_type_long_double=no
17573 fi
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575      fi
17576 fi
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
17578 $as_echo "$ac_cv_type_long_double" >&6; }
17579   if test $ac_cv_type_long_double = yes; then
17580
17581 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
17582
17583   fi
17584
17585
17586
17587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17588 $as_echo_n "checking for long long int... " >&6; }
17589 if ${ac_cv_type_long_long_int+:} false; then :
17590   $as_echo_n "(cached) " >&6
17591 else
17592   ac_cv_type_long_long_int=yes
17593       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17594         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17595         if test $ac_cv_type_long_long_int = yes; then
17596                                         if test "$cross_compiling" = yes; then :
17597   :
17598 else
17599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h.  */
17601 #include <limits.h>
17602                  #ifndef LLONG_MAX
17603                  # define HALF \
17604                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17605                  # define LLONG_MAX (HALF - 1 + HALF)
17606                  #endif
17607 int
17608 main ()
17609 {
17610 long long int n = 1;
17611                  int i;
17612                  for (i = 0; ; i++)
17613                    {
17614                      long long int m = n << i;
17615                      if (m >> i != n)
17616                        return 1;
17617                      if (LLONG_MAX / 2 < m)
17618                        break;
17619                    }
17620                  return 0;
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 if ac_fn_c_try_run "$LINENO"; then :
17626
17627 else
17628   ac_cv_type_long_long_int=no
17629 fi
17630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17631   conftest.$ac_objext conftest.beam conftest.$ac_ext
17632 fi
17633
17634         fi
17635       fi
17636 fi
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17638 $as_echo "$ac_cv_type_long_long_int" >&6; }
17639   if test $ac_cv_type_long_long_int = yes; then
17640
17641 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17642
17643   fi
17644
17645
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17647 $as_echo_n "checking for unsigned long long int... " >&6; }
17648 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17649   $as_echo_n "(cached) " >&6
17650 else
17651   ac_cv_type_unsigned_long_long_int=yes
17652      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17653        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h.  */
17655
17656   /* For now, do not test the preprocessor; as of 2007 there are too many
17657          implementations with broken preprocessors.  Perhaps this can
17658          be revisited in 2012.  In the meantime, code should not expect
17659          #if to work with literals wider than 32 bits.  */
17660       /* Test literals.  */
17661       long long int ll = 9223372036854775807ll;
17662       long long int nll = -9223372036854775807LL;
17663       unsigned long long int ull = 18446744073709551615ULL;
17664       /* Test constant expressions.   */
17665       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17666                      ? 1 : -1)];
17667       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17668                      ? 1 : -1)];
17669       int i = 63;
17670 int
17671 main ()
17672 {
17673 /* Test availability of runtime routines for shift and division.  */
17674       long long int llmax = 9223372036854775807ll;
17675       unsigned long long int ullmax = 18446744073709551615ull;
17676       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17677               | (llmax / ll) | (llmax % ll)
17678               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17679               | (ullmax / ull) | (ullmax % ull));
17680   ;
17681   return 0;
17682 }
17683
17684 _ACEOF
17685 if ac_fn_c_try_link "$LINENO"; then :
17686
17687 else
17688   ac_cv_type_unsigned_long_long_int=no
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext \
17691     conftest$ac_exeext conftest.$ac_ext
17692      fi
17693 fi
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17695 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17696   if test $ac_cv_type_unsigned_long_long_int = yes; then
17697
17698 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17699
17700   fi
17701
17702     ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17703 if test "x$ac_cv_type_size_t" = xyes; then :
17704
17705 else
17706
17707 cat >>confdefs.h <<_ACEOF
17708 #define size_t unsigned int
17709 _ACEOF
17710
17711 fi
17712
17713
17714
17715   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17716 if test "x$ac_cv_type_intmax_t" = xyes; then :
17717
17718 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
17719
17720 else
17721   test $ac_cv_type_long_long_int = yes \
17722        && ac_type='long long int' \
17723        || ac_type='long int'
17724
17725 cat >>confdefs.h <<_ACEOF
17726 #define intmax_t $ac_type
17727 _ACEOF
17728
17729 fi
17730
17731
17732
17733
17734   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17735 if test "x$ac_cv_type_uintmax_t" = xyes; then :
17736
17737 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
17738
17739 else
17740   test $ac_cv_type_unsigned_long_long_int = yes \
17741        && ac_type='unsigned long long int' \
17742        || ac_type='unsigned long int'
17743
17744 cat >>confdefs.h <<_ACEOF
17745 #define uintmax_t $ac_type
17746 _ACEOF
17747
17748 fi
17749
17750
17751
17752   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17753 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17754
17755 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17756
17757 else
17758   for ac_type in 'unsigned int' 'unsigned long int' \
17759         'unsigned long long int'; do
17760        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h.  */
17762 $ac_includes_default
17763 int
17764 main ()
17765 {
17766 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17767 test_array [0] = 0;
17768 return test_array [0];
17769
17770   ;
17771   return 0;
17772 }
17773 _ACEOF
17774 if ac_fn_c_try_compile "$LINENO"; then :
17775
17776 cat >>confdefs.h <<_ACEOF
17777 #define uintptr_t $ac_type
17778 _ACEOF
17779
17780           ac_type=
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783        test -z "$ac_type" && break
17784      done
17785 fi
17786
17787
17788     ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17789 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17790
17791 cat >>confdefs.h <<_ACEOF
17792 #define HAVE_PTRDIFF_T 1
17793 _ACEOF
17794
17795
17796 fi
17797
17798     for ac_func in localeconv
17799 do :
17800   ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17801 if test "x$ac_cv_func_localeconv" = xyes; then :
17802   cat >>confdefs.h <<_ACEOF
17803 #define HAVE_LOCALECONV 1
17804 _ACEOF
17805
17806 fi
17807 done
17808
17809
17810   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17812 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17813 if ${ac_cv_c_const+:} false; then :
17814   $as_echo_n "(cached) " >&6
17815 else
17816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h.  */
17818
17819 int
17820 main ()
17821 {
17822
17823 #ifndef __cplusplus
17824   /* Ultrix mips cc rejects this sort of thing.  */
17825   typedef int charset[2];
17826   const charset cs = { 0, 0 };
17827   /* SunOS 4.1.1 cc rejects this.  */
17828   char const *const *pcpcc;
17829   char **ppc;
17830   /* NEC SVR4.0.2 mips cc rejects this.  */
17831   struct point {int x, y;};
17832   static struct point const zero = {0,0};
17833   /* AIX XL C 1.02.0.0 rejects this.
17834      It does not let you subtract one const X* pointer from another in
17835      an arm of an if-expression whose if-part is not a constant
17836      expression */
17837   const char *g = "string";
17838   pcpcc = &g + (g ? g-g : 0);
17839   /* HPUX 7.0 cc rejects these. */
17840   ++pcpcc;
17841   ppc = (char**) pcpcc;
17842   pcpcc = (char const *const *) ppc;
17843   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17844     char tx;
17845     char *t = &tx;
17846     char const *s = 0 ? (char *) 0 : (char const *) 0;
17847
17848     *t++ = 0;
17849     if (s) return 0;
17850   }
17851   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17852     int x[] = {25, 17};
17853     const int *foo = &x[0];
17854     ++foo;
17855   }
17856   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17857     typedef const int *iptr;
17858     iptr p = 0;
17859     ++p;
17860   }
17861   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17862        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17863     struct s { int j; const int *ap[3]; } bx;
17864     struct s *b = &bx; b->j = 5;
17865   }
17866   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17867     const int foo = 10;
17868     if (!foo) return 0;
17869   }
17870   return !cs[0] && !zero.x;
17871 #endif
17872
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"; then :
17878   ac_cv_c_const=yes
17879 else
17880   ac_cv_c_const=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 fi
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17885 $as_echo "$ac_cv_c_const" >&6; }
17886 if test $ac_cv_c_const = no; then
17887
17888 $as_echo "#define const /**/" >>confdefs.h
17889
17890 fi
17891
17892
17893
17894
17895     case " $LIBOBJS " in
17896   *" snprintf.$ac_objext "* ) ;;
17897   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17898  ;;
17899 esac
17900
17901     _hw_cv_func_xprintf_replace_done=yes
17902 fi
17903
17904 fi
17905
17906
17907
17908   if test "xtrue" != x"$enable_snprintf_replacement"; then
17909           ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17910 if test "x$ac_cv_func_snprintf" = xyes; then :
17911   hw_cv_func_snprintf=yes
17912 else
17913   hw_cv_func_snprintf=no
17914 fi
17915
17916           if test "$hw_cv_func_snprintf" = yes; then :
17917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
17918 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
17919 if ${hw_cv_func_snprintf_c99+:} false; then :
17920   $as_echo_n "(cached) " >&6
17921 else
17922   if test "$cross_compiling" = yes; then :
17923   hw_cv_func_snprintf_c99=no
17924 else
17925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #include <stdio.h>
17928 int
17929 main ()
17930 {
17931 char buf[43];
17932                           if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17933                                   snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17934                                   buf[0] != 'T' || buf[3] != '\0')
17935                                 return 1;
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 if ac_fn_c_try_run "$LINENO"; then :
17941   hw_cv_func_snprintf_c99=yes
17942 else
17943   hw_cv_func_snprintf_c99=no
17944 fi
17945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17946   conftest.$ac_objext conftest.beam conftest.$ac_ext
17947 fi
17948
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
17951 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
17952 else
17953   hw_cv_func_snprintf_c99=no
17954 fi
17955   else
17956       hw_cv_func_snprintf_c99=no
17957   fi
17958
17959   if test "$hw_cv_func_snprintf_c99" = yes; then :
17960
17961 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17962
17963 else
17964
17965 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
17966
17967
17968   if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
17969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17970 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17971 if ${ac_cv_c_const+:} false; then :
17972   $as_echo_n "(cached) " >&6
17973 else
17974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h.  */
17976
17977 int
17978 main ()
17979 {
17980
17981 #ifndef __cplusplus
17982   /* Ultrix mips cc rejects this sort of thing.  */
17983   typedef int charset[2];
17984   const charset cs = { 0, 0 };
17985   /* SunOS 4.1.1 cc rejects this.  */
17986   char const *const *pcpcc;
17987   char **ppc;
17988   /* NEC SVR4.0.2 mips cc rejects this.  */
17989   struct point {int x, y;};
17990   static struct point const zero = {0,0};
17991   /* AIX XL C 1.02.0.0 rejects this.
17992      It does not let you subtract one const X* pointer from another in
17993      an arm of an if-expression whose if-part is not a constant
17994      expression */
17995   const char *g = "string";
17996   pcpcc = &g + (g ? g-g : 0);
17997   /* HPUX 7.0 cc rejects these. */
17998   ++pcpcc;
17999   ppc = (char**) pcpcc;
18000   pcpcc = (char const *const *) ppc;
18001   { /* SCO 3.2v4 cc rejects this sort of thing.  */
18002     char tx;
18003     char *t = &tx;
18004     char const *s = 0 ? (char *) 0 : (char const *) 0;
18005
18006     *t++ = 0;
18007     if (s) return 0;
18008   }
18009   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18010     int x[] = {25, 17};
18011     const int *foo = &x[0];
18012     ++foo;
18013   }
18014   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18015     typedef const int *iptr;
18016     iptr p = 0;
18017     ++p;
18018   }
18019   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18020        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18021     struct s { int j; const int *ap[3]; } bx;
18022     struct s *b = &bx; b->j = 5;
18023   }
18024   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18025     const int foo = 10;
18026     if (!foo) return 0;
18027   }
18028   return !cs[0] && !zero.x;
18029 #endif
18030
18031   ;
18032   return 0;
18033 }
18034 _ACEOF
18035 if ac_fn_c_try_compile "$LINENO"; then :
18036   ac_cv_c_const=yes
18037 else
18038   ac_cv_c_const=no
18039 fi
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 fi
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18043 $as_echo "$ac_cv_c_const" >&6; }
18044 if test $ac_cv_c_const = no; then
18045
18046 $as_echo "#define const /**/" >>confdefs.h
18047
18048 fi
18049
18050
18051
18052
18053     case " $LIBOBJS " in
18054   *" snprintf.$ac_objext "* ) ;;
18055   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18056  ;;
18057 esac
18058
18059     _hw_cv_func_xprintf_replace_done=yes
18060 fi
18061
18062 fi
18063
18064
18065 # Check for whether we can install checkmk (we have a usable awk)
18066
18067 # Extract the first word of "$AWK", so it can be a program name with args.
18068 set dummy $AWK; ac_word=$2
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18070 $as_echo_n "checking for $ac_word... " >&6; }
18071 if ${ac_cv_path_AWK_PATH+:} false; then :
18072   $as_echo_n "(cached) " >&6
18073 else
18074   case $AWK_PATH in
18075   [\\/]* | ?:[\\/]*)
18076   ac_cv_path_AWK_PATH="$AWK_PATH" # Let the user override the test with a path.
18077   ;;
18078   *)
18079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18081 do
18082   IFS=$as_save_IFS
18083   test -z "$as_dir" && as_dir=.
18084     for ac_exec_ext in '' $ac_executable_extensions; do
18085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18086     ac_cv_path_AWK_PATH="$as_dir/$ac_word$ac_exec_ext"
18087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18088     break 2
18089   fi
18090 done
18091   done
18092 IFS=$as_save_IFS
18093
18094   test -z "$ac_cv_path_AWK_PATH" && ac_cv_path_AWK_PATH="*NO AWK*"
18095   ;;
18096 esac
18097 fi
18098 AWK_PATH=$ac_cv_path_AWK_PATH
18099 if test -n "$AWK_PATH"; then
18100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK_PATH" >&5
18101 $as_echo "$AWK_PATH" >&6; }
18102 else
18103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18104 $as_echo "no" >&6; }
18105 fi
18106
18107
18108  if test "x$AWK_PATH" != 'x*NO AWK*'; then
18109   INSTALL_CHECKMK_TRUE=
18110   INSTALL_CHECKMK_FALSE='#'
18111 else
18112   INSTALL_CHECKMK_TRUE='#'
18113   INSTALL_CHECKMK_FALSE=
18114 fi
18115
18116
18117 # Certain awk implementations disagree with each other on how to
18118 # substitute doubled backslashes in gsub()
18119 AWK_GSUB_DBL_BSLASH='\\\\'
18120
18121
18122 if test "x$AWK_PATH" = 'x*NO AWK*'; then :
18123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find a usable awk; won't install checkmk." >&5
18124 $as_echo "$as_me: WARNING: Couldn't find a usable awk; won't install checkmk." >&2;}
18125 else
18126   # Determine correct number of backslashes for gsub's replacement
18127       # value.
18128       if echo '\' |
18129               "$AWK_PATH" '{ gsub("\\\\", "\\\\", $0); print }' |
18130               grep '^\\$' >/dev/null 2>&1; then :
18131   AWK_GSUB_DBL_BSLASH='\\\\\\\\'
18132 fi
18133        ac_config_files="$ac_config_files checkmk/checkmk"
18134
18135        ac_config_commands="$ac_config_commands checkmk-x"
18136
18137 fi
18138
18139 # Output files
18140 ac_config_headers="$ac_config_headers config.h"
18141
18142
18143 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"
18144
18145
18146 cat >confcache <<\_ACEOF
18147 # This file is a shell script that caches the results of configure
18148 # tests run on this system so they can be shared between configure
18149 # scripts and configure runs, see configure's option --config-cache.
18150 # It is not useful on other systems.  If it contains results you don't
18151 # want to keep, you may remove or edit it.
18152 #
18153 # config.status only pays attention to the cache file if you give it
18154 # the --recheck option to rerun configure.
18155 #
18156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18158 # following values.
18159
18160 _ACEOF
18161
18162 # The following way of writing the cache mishandles newlines in values,
18163 # but we know of no workaround that is simple, portable, and efficient.
18164 # So, we kill variables containing newlines.
18165 # Ultrix sh set writes to stderr and can't be redirected directly,
18166 # and sets the high bit in the cache file unless we assign to the vars.
18167 (
18168   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18169     eval ac_val=\$$ac_var
18170     case $ac_val in #(
18171     *${as_nl}*)
18172       case $ac_var in #(
18173       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18175       esac
18176       case $ac_var in #(
18177       _ | IFS | as_nl) ;; #(
18178       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18179       *) { eval $ac_var=; unset $ac_var;} ;;
18180       esac ;;
18181     esac
18182   done
18183
18184   (set) 2>&1 |
18185     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18186     *${as_nl}ac_space=\ *)
18187       # `set' does not quote correctly, so add quotes: double-quote
18188       # substitution turns \\\\ into \\, and sed turns \\ into \.
18189       sed -n \
18190         "s/'/'\\\\''/g;
18191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18192       ;; #(
18193     *)
18194       # `set' quotes correctly as required by POSIX, so do not add quotes.
18195       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18196       ;;
18197     esac |
18198     sort
18199 ) |
18200   sed '
18201      /^ac_cv_env_/b end
18202      t clear
18203      :clear
18204      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18205      t end
18206      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18207      :end' >>confcache
18208 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18209   if test -w "$cache_file"; then
18210     if test "x$cache_file" != "x/dev/null"; then
18211       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18212 $as_echo "$as_me: updating cache $cache_file" >&6;}
18213       if test ! -f "$cache_file" || test -h "$cache_file"; then
18214         cat confcache >"$cache_file"
18215       else
18216         case $cache_file in #(
18217         */* | ?:*)
18218           mv -f confcache "$cache_file"$$ &&
18219           mv -f "$cache_file"$$ "$cache_file" ;; #(
18220         *)
18221           mv -f confcache "$cache_file" ;;
18222         esac
18223       fi
18224     fi
18225   else
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18227 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18228   fi
18229 fi
18230 rm -f confcache
18231
18232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18233 # Let make expand exec_prefix.
18234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18235
18236 DEFS=-DHAVE_CONFIG_H
18237
18238 ac_libobjs=
18239 ac_ltlibobjs=
18240 U=
18241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18242   # 1. Remove the extension, and $U if already installed.
18243   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18244   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18245   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18246   #    will be set to the directory where LIBOBJS objects are built.
18247   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18248   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18249 done
18250 LIBOBJS=$ac_libobjs
18251
18252 LTLIBOBJS=$ac_ltlibobjs
18253
18254
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18256 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18257    if test -n "$am_sleep_pid"; then
18258      # Hide warnings about reused PIDs.
18259      wait $am_sleep_pid 2>/dev/null
18260    fi
18261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18262 $as_echo "done" >&6; }
18263  if test -n "$EXEEXT"; then
18264   am__EXEEXT_TRUE=
18265   am__EXEEXT_FALSE='#'
18266 else
18267   am__EXEEXT_TRUE='#'
18268   am__EXEEXT_FALSE=
18269 fi
18270
18271 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18272   as_fn_error $? "conditional \"AMDEP\" was never defined.
18273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18274 fi
18275 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18276   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18278 fi
18279 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
18280   as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
18281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18282 fi
18283 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
18284   as_fn_error $? "conditional \"NO_TIMEOUT_TESTS\" was never defined.
18285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18286 fi
18287 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18288   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18290 fi
18291 if test -z "${USE_FILTERDIFF_TRUE}" && test -z "${USE_FILTERDIFF_FALSE}"; then
18292   as_fn_error $? "conditional \"USE_FILTERDIFF\" was never defined.
18293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18294 fi
18295 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
18296   as_fn_error $? "conditional \"SUBUNIT\" was never defined.
18297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18298 fi
18299 if test -z "${INSTALL_CHECKMK_TRUE}" && test -z "${INSTALL_CHECKMK_FALSE}"; then
18300   as_fn_error $? "conditional \"INSTALL_CHECKMK\" was never defined.
18301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18302 fi
18303
18304 : "${CONFIG_STATUS=./config.status}"
18305 ac_write_fail=0
18306 ac_clean_files_save=$ac_clean_files
18307 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18309 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18310 as_write_fail=0
18311 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18312 #! $SHELL
18313 # Generated by $as_me.
18314 # Run this file to recreate the current configuration.
18315 # Compiler output produced by configure, useful for debugging
18316 # configure, is in config.log if it exists.
18317
18318 debug=false
18319 ac_cs_recheck=false
18320 ac_cs_silent=false
18321
18322 SHELL=\${CONFIG_SHELL-$SHELL}
18323 export SHELL
18324 _ASEOF
18325 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18326 ## -------------------- ##
18327 ## M4sh Initialization. ##
18328 ## -------------------- ##
18329
18330 # Be more Bourne compatible
18331 DUALCASE=1; export DUALCASE # for MKS sh
18332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18333   emulate sh
18334   NULLCMD=:
18335   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18336   # is contrary to our usage.  Disable this feature.
18337   alias -g '${1+"$@"}'='"$@"'
18338   setopt NO_GLOB_SUBST
18339 else
18340   case `(set -o) 2>/dev/null` in #(
18341   *posix*) :
18342     set -o posix ;; #(
18343   *) :
18344      ;;
18345 esac
18346 fi
18347
18348
18349 as_nl='
18350 '
18351 export as_nl
18352 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18353 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18356 # Prefer a ksh shell builtin over an external printf program on Solaris,
18357 # but without wasting forks for bash or zsh.
18358 if test -z "$BASH_VERSION$ZSH_VERSION" \
18359     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18360   as_echo='print -r --'
18361   as_echo_n='print -rn --'
18362 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18363   as_echo='printf %s\n'
18364   as_echo_n='printf %s'
18365 else
18366   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18367     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18368     as_echo_n='/usr/ucb/echo -n'
18369   else
18370     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18371     as_echo_n_body='eval
18372       arg=$1;
18373       case $arg in #(
18374       *"$as_nl"*)
18375         expr "X$arg" : "X\\(.*\\)$as_nl";
18376         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18377       esac;
18378       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18379     '
18380     export as_echo_n_body
18381     as_echo_n='sh -c $as_echo_n_body as_echo'
18382   fi
18383   export as_echo_body
18384   as_echo='sh -c $as_echo_body as_echo'
18385 fi
18386
18387 # The user is always right.
18388 if test "${PATH_SEPARATOR+set}" != set; then
18389   PATH_SEPARATOR=:
18390   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18391     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18392       PATH_SEPARATOR=';'
18393   }
18394 fi
18395
18396
18397 # IFS
18398 # We need space, tab and new line, in precisely that order.  Quoting is
18399 # there to prevent editors from complaining about space-tab.
18400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18401 # splitting by setting IFS to empty value.)
18402 IFS=" ""        $as_nl"
18403
18404 # Find who we are.  Look in the path if we contain no directory separator.
18405 as_myself=
18406 case $0 in #((
18407   *[\\/]* ) as_myself=$0 ;;
18408   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18409 for as_dir in $PATH
18410 do
18411   IFS=$as_save_IFS
18412   test -z "$as_dir" && as_dir=.
18413     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18414   done
18415 IFS=$as_save_IFS
18416
18417      ;;
18418 esac
18419 # We did not find ourselves, most probably we were run as `sh COMMAND'
18420 # in which case we are not to be found in the path.
18421 if test "x$as_myself" = x; then
18422   as_myself=$0
18423 fi
18424 if test ! -f "$as_myself"; then
18425   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18426   exit 1
18427 fi
18428
18429 # Unset variables that we do not need and which cause bugs (e.g. in
18430 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18431 # suppresses any "Segmentation fault" message there.  '((' could
18432 # trigger a bug in pdksh 5.2.14.
18433 for as_var in BASH_ENV ENV MAIL MAILPATH
18434 do eval test x\${$as_var+set} = xset \
18435   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18436 done
18437 PS1='$ '
18438 PS2='> '
18439 PS4='+ '
18440
18441 # NLS nuisances.
18442 LC_ALL=C
18443 export LC_ALL
18444 LANGUAGE=C
18445 export LANGUAGE
18446
18447 # CDPATH.
18448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18449
18450
18451 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18452 # ----------------------------------------
18453 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18454 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18455 # script with STATUS, using 1 if that was 0.
18456 as_fn_error ()
18457 {
18458   as_status=$1; test $as_status -eq 0 && as_status=1
18459   if test "$4"; then
18460     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18461     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18462   fi
18463   $as_echo "$as_me: error: $2" >&2
18464   as_fn_exit $as_status
18465 } # as_fn_error
18466
18467
18468 # as_fn_set_status STATUS
18469 # -----------------------
18470 # Set $? to STATUS, without forking.
18471 as_fn_set_status ()
18472 {
18473   return $1
18474 } # as_fn_set_status
18475
18476 # as_fn_exit STATUS
18477 # -----------------
18478 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18479 as_fn_exit ()
18480 {
18481   set +e
18482   as_fn_set_status $1
18483   exit $1
18484 } # as_fn_exit
18485
18486 # as_fn_unset VAR
18487 # ---------------
18488 # Portably unset VAR.
18489 as_fn_unset ()
18490 {
18491   { eval $1=; unset $1;}
18492 }
18493 as_unset=as_fn_unset
18494 # as_fn_append VAR VALUE
18495 # ----------------------
18496 # Append the text in VALUE to the end of the definition contained in VAR. Take
18497 # advantage of any shell optimizations that allow amortized linear growth over
18498 # repeated appends, instead of the typical quadratic growth present in naive
18499 # implementations.
18500 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18501   eval 'as_fn_append ()
18502   {
18503     eval $1+=\$2
18504   }'
18505 else
18506   as_fn_append ()
18507   {
18508     eval $1=\$$1\$2
18509   }
18510 fi # as_fn_append
18511
18512 # as_fn_arith ARG...
18513 # ------------------
18514 # Perform arithmetic evaluation on the ARGs, and store the result in the
18515 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18516 # must be portable across $(()) and expr.
18517 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18518   eval 'as_fn_arith ()
18519   {
18520     as_val=$(( $* ))
18521   }'
18522 else
18523   as_fn_arith ()
18524   {
18525     as_val=`expr "$@" || test $? -eq 1`
18526   }
18527 fi # as_fn_arith
18528
18529
18530 if expr a : '\(a\)' >/dev/null 2>&1 &&
18531    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18532   as_expr=expr
18533 else
18534   as_expr=false
18535 fi
18536
18537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18538   as_basename=basename
18539 else
18540   as_basename=false
18541 fi
18542
18543 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18544   as_dirname=dirname
18545 else
18546   as_dirname=false
18547 fi
18548
18549 as_me=`$as_basename -- "$0" ||
18550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18551          X"$0" : 'X\(//\)$' \| \
18552          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18553 $as_echo X/"$0" |
18554     sed '/^.*\/\([^/][^/]*\)\/*$/{
18555             s//\1/
18556             q
18557           }
18558           /^X\/\(\/\/\)$/{
18559             s//\1/
18560             q
18561           }
18562           /^X\/\(\/\).*/{
18563             s//\1/
18564             q
18565           }
18566           s/.*/./; q'`
18567
18568 # Avoid depending upon Character Ranges.
18569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18572 as_cr_digits='0123456789'
18573 as_cr_alnum=$as_cr_Letters$as_cr_digits
18574
18575 ECHO_C= ECHO_N= ECHO_T=
18576 case `echo -n x` in #(((((
18577 -n*)
18578   case `echo 'xy\c'` in
18579   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18580   xy)  ECHO_C='\c';;
18581   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18582        ECHO_T=' ';;
18583   esac;;
18584 *)
18585   ECHO_N='-n';;
18586 esac
18587
18588 rm -f conf$$ conf$$.exe conf$$.file
18589 if test -d conf$$.dir; then
18590   rm -f conf$$.dir/conf$$.file
18591 else
18592   rm -f conf$$.dir
18593   mkdir conf$$.dir 2>/dev/null
18594 fi
18595 if (echo >conf$$.file) 2>/dev/null; then
18596   if ln -s conf$$.file conf$$ 2>/dev/null; then
18597     as_ln_s='ln -s'
18598     # ... but there are two gotchas:
18599     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18600     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18601     # In both cases, we have to default to `cp -pR'.
18602     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18603       as_ln_s='cp -pR'
18604   elif ln conf$$.file conf$$ 2>/dev/null; then
18605     as_ln_s=ln
18606   else
18607     as_ln_s='cp -pR'
18608   fi
18609 else
18610   as_ln_s='cp -pR'
18611 fi
18612 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18613 rmdir conf$$.dir 2>/dev/null
18614
18615
18616 # as_fn_mkdir_p
18617 # -------------
18618 # Create "$as_dir" as a directory, including parents if necessary.
18619 as_fn_mkdir_p ()
18620 {
18621
18622   case $as_dir in #(
18623   -*) as_dir=./$as_dir;;
18624   esac
18625   test -d "$as_dir" || eval $as_mkdir_p || {
18626     as_dirs=
18627     while :; do
18628       case $as_dir in #(
18629       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18630       *) as_qdir=$as_dir;;
18631       esac
18632       as_dirs="'$as_qdir' $as_dirs"
18633       as_dir=`$as_dirname -- "$as_dir" ||
18634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18635          X"$as_dir" : 'X\(//\)[^/]' \| \
18636          X"$as_dir" : 'X\(//\)$' \| \
18637          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18638 $as_echo X"$as_dir" |
18639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18640             s//\1/
18641             q
18642           }
18643           /^X\(\/\/\)[^/].*/{
18644             s//\1/
18645             q
18646           }
18647           /^X\(\/\/\)$/{
18648             s//\1/
18649             q
18650           }
18651           /^X\(\/\).*/{
18652             s//\1/
18653             q
18654           }
18655           s/.*/./; q'`
18656       test -d "$as_dir" && break
18657     done
18658     test -z "$as_dirs" || eval "mkdir $as_dirs"
18659   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18660
18661
18662 } # as_fn_mkdir_p
18663 if mkdir -p . 2>/dev/null; then
18664   as_mkdir_p='mkdir -p "$as_dir"'
18665 else
18666   test -d ./-p && rmdir ./-p
18667   as_mkdir_p=false
18668 fi
18669
18670
18671 # as_fn_executable_p FILE
18672 # -----------------------
18673 # Test if FILE is an executable regular file.
18674 as_fn_executable_p ()
18675 {
18676   test -f "$1" && test -x "$1"
18677 } # as_fn_executable_p
18678 as_test_x='test -x'
18679 as_executable_p=as_fn_executable_p
18680
18681 # Sed expression to map a string onto a valid CPP name.
18682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18683
18684 # Sed expression to map a string onto a valid variable name.
18685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18686
18687
18688 exec 6>&1
18689 ## ----------------------------------- ##
18690 ## Main body of $CONFIG_STATUS script. ##
18691 ## ----------------------------------- ##
18692 _ASEOF
18693 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18694
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 # Save the log message, to keep $0 and so on meaningful, and to
18697 # report actual input values of CONFIG_FILES etc. instead of their
18698 # values after options handling.
18699 ac_log="
18700 This file was extended by Check $as_me 0.12.0, which was
18701 generated by GNU Autoconf 2.69.  Invocation command line was
18702
18703   CONFIG_FILES    = $CONFIG_FILES
18704   CONFIG_HEADERS  = $CONFIG_HEADERS
18705   CONFIG_LINKS    = $CONFIG_LINKS
18706   CONFIG_COMMANDS = $CONFIG_COMMANDS
18707   $ $0 $@
18708
18709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18710 "
18711
18712 _ACEOF
18713
18714 case $ac_config_files in *"
18715 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18716 esac
18717
18718 case $ac_config_headers in *"
18719 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18720 esac
18721
18722
18723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18724 # Files that config.status was made for.
18725 config_files="$ac_config_files"
18726 config_headers="$ac_config_headers"
18727 config_commands="$ac_config_commands"
18728
18729 _ACEOF
18730
18731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18732 ac_cs_usage="\
18733 \`$as_me' instantiates files and other configuration actions
18734 from templates according to the current configuration.  Unless the files
18735 and actions are specified as TAGs, all are instantiated by default.
18736
18737 Usage: $0 [OPTION]... [TAG]...
18738
18739   -h, --help       print this help, then exit
18740   -V, --version    print version number and configuration settings, then exit
18741       --config     print configuration, then exit
18742   -q, --quiet, --silent
18743                    do not print progress messages
18744   -d, --debug      don't remove temporary files
18745       --recheck    update $as_me by reconfiguring in the same conditions
18746       --file=FILE[:TEMPLATE]
18747                    instantiate the configuration file FILE
18748       --header=FILE[:TEMPLATE]
18749                    instantiate the configuration header FILE
18750
18751 Configuration files:
18752 $config_files
18753
18754 Configuration headers:
18755 $config_headers
18756
18757 Configuration commands:
18758 $config_commands
18759
18760 Report bugs to <check-devel at lists dot sourceforge dot net>."
18761
18762 _ACEOF
18763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18764 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18765 ac_cs_version="\\
18766 Check config.status 0.12.0
18767 configured by $0, generated by GNU Autoconf 2.69,
18768   with options \\"\$ac_cs_config\\"
18769
18770 Copyright (C) 2012 Free Software Foundation, Inc.
18771 This config.status script is free software; the Free Software Foundation
18772 gives unlimited permission to copy, distribute and modify it."
18773
18774 ac_pwd='$ac_pwd'
18775 srcdir='$srcdir'
18776 INSTALL='$INSTALL'
18777 MKDIR_P='$MKDIR_P'
18778 AWK='$AWK'
18779 test -n "\$AWK" || AWK=awk
18780 _ACEOF
18781
18782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18783 # The default lists apply if the user does not specify any file.
18784 ac_need_defaults=:
18785 while test $# != 0
18786 do
18787   case $1 in
18788   --*=?*)
18789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18791     ac_shift=:
18792     ;;
18793   --*=)
18794     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18795     ac_optarg=
18796     ac_shift=:
18797     ;;
18798   *)
18799     ac_option=$1
18800     ac_optarg=$2
18801     ac_shift=shift
18802     ;;
18803   esac
18804
18805   case $ac_option in
18806   # Handling of the options.
18807   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18808     ac_cs_recheck=: ;;
18809   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18810     $as_echo "$ac_cs_version"; exit ;;
18811   --config | --confi | --conf | --con | --co | --c )
18812     $as_echo "$ac_cs_config"; exit ;;
18813   --debug | --debu | --deb | --de | --d | -d )
18814     debug=: ;;
18815   --file | --fil | --fi | --f )
18816     $ac_shift
18817     case $ac_optarg in
18818     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18819     '') as_fn_error $? "missing file argument" ;;
18820     esac
18821     as_fn_append CONFIG_FILES " '$ac_optarg'"
18822     ac_need_defaults=false;;
18823   --header | --heade | --head | --hea )
18824     $ac_shift
18825     case $ac_optarg in
18826     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18827     esac
18828     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18829     ac_need_defaults=false;;
18830   --he | --h)
18831     # Conflict between --help and --header
18832     as_fn_error $? "ambiguous option: \`$1'
18833 Try \`$0 --help' for more information.";;
18834   --help | --hel | -h )
18835     $as_echo "$ac_cs_usage"; exit ;;
18836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18838     ac_cs_silent=: ;;
18839
18840   # This is an error.
18841   -*) as_fn_error $? "unrecognized option: \`$1'
18842 Try \`$0 --help' for more information." ;;
18843
18844   *) as_fn_append ac_config_targets " $1"
18845      ac_need_defaults=false ;;
18846
18847   esac
18848   shift
18849 done
18850
18851 ac_configure_extra_args=
18852
18853 if $ac_cs_silent; then
18854   exec 6>/dev/null
18855   ac_configure_extra_args="$ac_configure_extra_args --silent"
18856 fi
18857
18858 _ACEOF
18859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18860 if \$ac_cs_recheck; then
18861   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18862   shift
18863   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18864   CONFIG_SHELL='$SHELL'
18865   export CONFIG_SHELL
18866   exec "\$@"
18867 fi
18868
18869 _ACEOF
18870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18871 exec 5>>config.log
18872 {
18873   echo
18874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18875 ## Running $as_me. ##
18876 _ASBOX
18877   $as_echo "$ac_log"
18878 } >&5
18879
18880 _ACEOF
18881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18882 #
18883 # INIT-COMMANDS
18884 #
18885 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18886
18887
18888 # The HP-UX ksh and POSIX shell print the target directory to stdout
18889 # if CDPATH is set.
18890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18891
18892 sed_quote_subst='$sed_quote_subst'
18893 double_quote_subst='$double_quote_subst'
18894 delay_variable_subst='$delay_variable_subst'
18895 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18896 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18897 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18898 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18899 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18900 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18901 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18902 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18903 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18904 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18905 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18906 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18907 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18908 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18909 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18910 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18911 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18912 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18913 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18914 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18915 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18916 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18917 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18918 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18919 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18920 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18921 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18922 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18923 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18924 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18925 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18926 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18927 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18928 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18929 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18930 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18931 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18932 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18933 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18934 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18935 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18936 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18937 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18938 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18939 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18940 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18941 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18942 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18943 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18944 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18945 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18946 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18947 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18948 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18949 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18950 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18951 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18952 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18953 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"`'
18954 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18955 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18956 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18957 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18958 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18959 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18960 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18961 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18962 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18963 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18964 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18965 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18966 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18967 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18968 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18969 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18970 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18971 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18972 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18973 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18974 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18975 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18976 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18977 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18978 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18979 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18980 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18981 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18982 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18983 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18984 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18985 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18986 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18987 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18988 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18989 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18990 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18991 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18992 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18993 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18994 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18995 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18996 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18997 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18998 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18999 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19000 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19001 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19002 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19003 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19004 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19005 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19006 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19007 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19008 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19009 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19010 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19011 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19012 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19013 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19014 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19015 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19016 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19017 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19018 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19019 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19020 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19021 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19022 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19023 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19024 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19025 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19026 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19027 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19028 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19029 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19030
19031 LTCC='$LTCC'
19032 LTCFLAGS='$LTCFLAGS'
19033 compiler='$compiler_DEFAULT'
19034
19035 # A function that is used when there is no print builtin or printf.
19036 func_fallback_echo ()
19037 {
19038   eval 'cat <<_LTECHO_EOF
19039 \$1
19040 _LTECHO_EOF'
19041 }
19042
19043 # Quote evaled strings.
19044 for var in SHELL \
19045 ECHO \
19046 PATH_SEPARATOR \
19047 SED \
19048 GREP \
19049 EGREP \
19050 FGREP \
19051 LD \
19052 NM \
19053 LN_S \
19054 lt_SP2NL \
19055 lt_NL2SP \
19056 reload_flag \
19057 OBJDUMP \
19058 deplibs_check_method \
19059 file_magic_cmd \
19060 file_magic_glob \
19061 want_nocaseglob \
19062 DLLTOOL \
19063 sharedlib_from_linklib_cmd \
19064 AR \
19065 AR_FLAGS \
19066 archiver_list_spec \
19067 STRIP \
19068 RANLIB \
19069 CC \
19070 CFLAGS \
19071 compiler \
19072 lt_cv_sys_global_symbol_pipe \
19073 lt_cv_sys_global_symbol_to_cdecl \
19074 lt_cv_sys_global_symbol_to_import \
19075 lt_cv_sys_global_symbol_to_c_name_address \
19076 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19077 lt_cv_nm_interface \
19078 nm_file_list_spec \
19079 lt_cv_truncate_bin \
19080 lt_prog_compiler_no_builtin_flag \
19081 lt_prog_compiler_pic \
19082 lt_prog_compiler_wl \
19083 lt_prog_compiler_static \
19084 lt_cv_prog_compiler_c_o \
19085 need_locks \
19086 MANIFEST_TOOL \
19087 DSYMUTIL \
19088 NMEDIT \
19089 LIPO \
19090 OTOOL \
19091 OTOOL64 \
19092 shrext_cmds \
19093 export_dynamic_flag_spec \
19094 whole_archive_flag_spec \
19095 compiler_needs_object \
19096 with_gnu_ld \
19097 allow_undefined_flag \
19098 no_undefined_flag \
19099 hardcode_libdir_flag_spec \
19100 hardcode_libdir_separator \
19101 exclude_expsyms \
19102 include_expsyms \
19103 file_list_spec \
19104 variables_saved_for_relink \
19105 libname_spec \
19106 library_names_spec \
19107 soname_spec \
19108 install_override_mode \
19109 finish_eval \
19110 old_striplib \
19111 striplib; do
19112     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19113     *[\\\\\\\`\\"\\\$]*)
19114       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19115       ;;
19116     *)
19117       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19118       ;;
19119     esac
19120 done
19121
19122 # Double-quote double-evaled strings.
19123 for var in reload_cmds \
19124 old_postinstall_cmds \
19125 old_postuninstall_cmds \
19126 old_archive_cmds \
19127 extract_expsyms_cmds \
19128 old_archive_from_new_cmds \
19129 old_archive_from_expsyms_cmds \
19130 archive_cmds \
19131 archive_expsym_cmds \
19132 module_cmds \
19133 module_expsym_cmds \
19134 export_symbols_cmds \
19135 prelink_cmds \
19136 postlink_cmds \
19137 postinstall_cmds \
19138 postuninstall_cmds \
19139 finish_cmds \
19140 sys_lib_search_path_spec \
19141 configure_time_dlsearch_path \
19142 configure_time_lt_sys_library_path; do
19143     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19144     *[\\\\\\\`\\"\\\$]*)
19145       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19146       ;;
19147     *)
19148       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19149       ;;
19150     esac
19151 done
19152
19153 ac_aux_dir='$ac_aux_dir'
19154
19155 # See if we are running on zsh, and set the options that allow our
19156 # commands through without removal of \ escapes INIT.
19157 if test -n "\${ZSH_VERSION+set}"; then
19158    setopt NO_GLOB_SUBST
19159 fi
19160
19161
19162     PACKAGE='$PACKAGE'
19163     VERSION='$VERSION'
19164     RM='$RM'
19165     ofile='$ofile'
19166
19167
19168
19169 # variables for create stdint.h replacement
19170 PACKAGE="$PACKAGE"
19171 VERSION="$VERSION"
19172 ac_stdint_h="$ac_stdint_h"
19173 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19174 ac_cv_stdint_message="$ac_cv_stdint_message"
19175 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19176 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19177 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19178 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19179 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19180 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19181 ac_cv_char_data_model="$ac_cv_char_data_model"
19182 ac_cv_long_data_model="$ac_cv_long_data_model"
19183 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19184 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19185 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19186
19187
19188 _ACEOF
19189
19190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19191
19192 # Handling of arguments.
19193 for ac_config_target in $ac_config_targets
19194 do
19195   case $ac_config_target in
19196     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19197     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19198     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19199     "checkmk/checkmk") CONFIG_FILES="$CONFIG_FILES checkmk/checkmk" ;;
19200     "checkmk-x") CONFIG_COMMANDS="$CONFIG_COMMANDS checkmk-x" ;;
19201     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19202     "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
19203     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19204     "checkmk/Makefile") CONFIG_FILES="$CONFIG_FILES checkmk/Makefile" ;;
19205     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19206     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19207     "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
19208     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19209     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19210     "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
19211
19212   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19213   esac
19214 done
19215
19216
19217 # If the user did not use the arguments to specify the items to instantiate,
19218 # then the envvar interface is used.  Set only those that are not.
19219 # We use the long form for the default assignment because of an extremely
19220 # bizarre bug on SunOS 4.1.3.
19221 if $ac_need_defaults; then
19222   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19223   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19224   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19225 fi
19226
19227 # Have a temporary directory for convenience.  Make it in the build tree
19228 # simply because there is no reason against having it here, and in addition,
19229 # creating and moving files from /tmp can sometimes cause problems.
19230 # Hook for its removal unless debugging.
19231 # Note that there is a small window in which the directory will not be cleaned:
19232 # after its creation but before its name has been assigned to `$tmp'.
19233 $debug ||
19234 {
19235   tmp= ac_tmp=
19236   trap 'exit_status=$?
19237   : "${ac_tmp:=$tmp}"
19238   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19239 ' 0
19240   trap 'as_fn_exit 1' 1 2 13 15
19241 }
19242 # Create a (secure) tmp directory for tmp files.
19243
19244 {
19245   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19246   test -d "$tmp"
19247 }  ||
19248 {
19249   tmp=./conf$$-$RANDOM
19250   (umask 077 && mkdir "$tmp")
19251 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19252 ac_tmp=$tmp
19253
19254 # Set up the scripts for CONFIG_FILES section.
19255 # No need to generate them if there are no CONFIG_FILES.
19256 # This happens for instance with `./config.status config.h'.
19257 if test -n "$CONFIG_FILES"; then
19258
19259
19260 ac_cr=`echo X | tr X '\015'`
19261 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19262 # But we know of no other shell where ac_cr would be empty at this
19263 # point, so we can use a bashism as a fallback.
19264 if test "x$ac_cr" = x; then
19265   eval ac_cr=\$\'\\r\'
19266 fi
19267 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19268 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19269   ac_cs_awk_cr='\\r'
19270 else
19271   ac_cs_awk_cr=$ac_cr
19272 fi
19273
19274 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19275 _ACEOF
19276
19277
19278 {
19279   echo "cat >conf$$subs.awk <<_ACEOF" &&
19280   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19281   echo "_ACEOF"
19282 } >conf$$subs.sh ||
19283   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19285 ac_delim='%!_!# '
19286 for ac_last_try in false false false false false :; do
19287   . ./conf$$subs.sh ||
19288     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19289
19290   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19291   if test $ac_delim_n = $ac_delim_num; then
19292     break
19293   elif $ac_last_try; then
19294     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19295   else
19296     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19297   fi
19298 done
19299 rm -f conf$$subs.sh
19300
19301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19302 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19303 _ACEOF
19304 sed -n '
19305 h
19306 s/^/S["/; s/!.*/"]=/
19307 p
19308 g
19309 s/^[^!]*!//
19310 :repl
19311 t repl
19312 s/'"$ac_delim"'$//
19313 t delim
19314 :nl
19315 h
19316 s/\(.\{148\}\)..*/\1/
19317 t more1
19318 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19319 p
19320 n
19321 b repl
19322 :more1
19323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19324 p
19325 g
19326 s/.\{148\}//
19327 t nl
19328 :delim
19329 h
19330 s/\(.\{148\}\)..*/\1/
19331 t more2
19332 s/["\\]/\\&/g; s/^/"/; s/$/"/
19333 p
19334 b
19335 :more2
19336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19337 p
19338 g
19339 s/.\{148\}//
19340 t delim
19341 ' <conf$$subs.awk | sed '
19342 /^[^""]/{
19343   N
19344   s/\n//
19345 }
19346 ' >>$CONFIG_STATUS || ac_write_fail=1
19347 rm -f conf$$subs.awk
19348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19349 _ACAWK
19350 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19351   for (key in S) S_is_set[key] = 1
19352   FS = "\a"
19353
19354 }
19355 {
19356   line = $ 0
19357   nfields = split(line, field, "@")
19358   substed = 0
19359   len = length(field[1])
19360   for (i = 2; i < nfields; i++) {
19361     key = field[i]
19362     keylen = length(key)
19363     if (S_is_set[key]) {
19364       value = S[key]
19365       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19366       len += length(value) + length(field[++i])
19367       substed = 1
19368     } else
19369       len += 1 + keylen
19370   }
19371
19372   print line
19373 }
19374
19375 _ACAWK
19376 _ACEOF
19377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19378 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19379   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19380 else
19381   cat
19382 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19383   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19384 _ACEOF
19385
19386 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19387 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19388 # trailing colons and then remove the whole line if VPATH becomes empty
19389 # (actually we leave an empty line to preserve line numbers).
19390 if test "x$srcdir" = x.; then
19391   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19392 h
19393 s///
19394 s/^/:/
19395 s/[      ]*$/:/
19396 s/:\$(srcdir):/:/g
19397 s/:\${srcdir}:/:/g
19398 s/:@srcdir@:/:/g
19399 s/^:*//
19400 s/:*$//
19401 x
19402 s/\(=[   ]*\).*/\1/
19403 G
19404 s/\n//
19405 s/^[^=]*=[       ]*$//
19406 }'
19407 fi
19408
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 fi # test -n "$CONFIG_FILES"
19411
19412 # Set up the scripts for CONFIG_HEADERS section.
19413 # No need to generate them if there are no CONFIG_HEADERS.
19414 # This happens for instance with `./config.status Makefile'.
19415 if test -n "$CONFIG_HEADERS"; then
19416 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19417 BEGIN {
19418 _ACEOF
19419
19420 # Transform confdefs.h into an awk script `defines.awk', embedded as
19421 # here-document in config.status, that substitutes the proper values into
19422 # config.h.in to produce config.h.
19423
19424 # Create a delimiter string that does not exist in confdefs.h, to ease
19425 # handling of long lines.
19426 ac_delim='%!_!# '
19427 for ac_last_try in false false :; do
19428   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19429   if test -z "$ac_tt"; then
19430     break
19431   elif $ac_last_try; then
19432     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19433   else
19434     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19435   fi
19436 done
19437
19438 # For the awk script, D is an array of macro values keyed by name,
19439 # likewise P contains macro parameters if any.  Preserve backslash
19440 # newline sequences.
19441
19442 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19443 sed -n '
19444 s/.\{148\}/&'"$ac_delim"'/g
19445 t rset
19446 :rset
19447 s/^[     ]*#[    ]*define[       ][      ]*/ /
19448 t def
19449 d
19450 :def
19451 s/\\$//
19452 t bsnl
19453 s/["\\]/\\&/g
19454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19455 D["\1"]=" \3"/p
19456 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19457 d
19458 :bsnl
19459 s/["\\]/\\&/g
19460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19461 D["\1"]=" \3\\\\\\n"\\/p
19462 t cont
19463 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19464 t cont
19465 d
19466 :cont
19467 n
19468 s/.\{148\}/&'"$ac_delim"'/g
19469 t clear
19470 :clear
19471 s/\\$//
19472 t bsnlc
19473 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19474 d
19475 :bsnlc
19476 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19477 b cont
19478 ' <confdefs.h | sed '
19479 s/'"$ac_delim"'/"\\\
19480 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19481
19482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19483   for (key in D) D_is_set[key] = 1
19484   FS = "\a"
19485 }
19486 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19487   line = \$ 0
19488   split(line, arg, " ")
19489   if (arg[1] == "#") {
19490     defundef = arg[2]
19491     mac1 = arg[3]
19492   } else {
19493     defundef = substr(arg[1], 2)
19494     mac1 = arg[2]
19495   }
19496   split(mac1, mac2, "(") #)
19497   macro = mac2[1]
19498   prefix = substr(line, 1, index(line, defundef) - 1)
19499   if (D_is_set[macro]) {
19500     # Preserve the white space surrounding the "#".
19501     print prefix "define", macro P[macro] D[macro]
19502     next
19503   } else {
19504     # Replace #undef with comments.  This is necessary, for example,
19505     # in the case of _POSIX_SOURCE, which is predefined and required
19506     # on some systems where configure will not decide to define it.
19507     if (defundef == "undef") {
19508       print "/*", prefix defundef, macro, "*/"
19509       next
19510     }
19511   }
19512 }
19513 { print }
19514 _ACAWK
19515 _ACEOF
19516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19518 fi # test -n "$CONFIG_HEADERS"
19519
19520
19521 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19522 shift
19523 for ac_tag
19524 do
19525   case $ac_tag in
19526   :[FHLC]) ac_mode=$ac_tag; continue;;
19527   esac
19528   case $ac_mode$ac_tag in
19529   :[FHL]*:*);;
19530   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19531   :[FH]-) ac_tag=-:-;;
19532   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19533   esac
19534   ac_save_IFS=$IFS
19535   IFS=:
19536   set x $ac_tag
19537   IFS=$ac_save_IFS
19538   shift
19539   ac_file=$1
19540   shift
19541
19542   case $ac_mode in
19543   :L) ac_source=$1;;
19544   :[FH])
19545     ac_file_inputs=
19546     for ac_f
19547     do
19548       case $ac_f in
19549       -) ac_f="$ac_tmp/stdin";;
19550       *) # Look for the file first in the build tree, then in the source tree
19551          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19552          # because $ac_f cannot contain `:'.
19553          test -f "$ac_f" ||
19554            case $ac_f in
19555            [\\/$]*) false;;
19556            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19557            esac ||
19558            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19559       esac
19560       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19561       as_fn_append ac_file_inputs " '$ac_f'"
19562     done
19563
19564     # Let's still pretend it is `configure' which instantiates (i.e., don't
19565     # use $as_me), people would be surprised to read:
19566     #    /* config.h.  Generated by config.status.  */
19567     configure_input='Generated from '`
19568           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19569         `' by configure.'
19570     if test x"$ac_file" != x-; then
19571       configure_input="$ac_file.  $configure_input"
19572       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19573 $as_echo "$as_me: creating $ac_file" >&6;}
19574     fi
19575     # Neutralize special characters interpreted by sed in replacement strings.
19576     case $configure_input in #(
19577     *\&* | *\|* | *\\* )
19578        ac_sed_conf_input=`$as_echo "$configure_input" |
19579        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19580     *) ac_sed_conf_input=$configure_input;;
19581     esac
19582
19583     case $ac_tag in
19584     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19585       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19586     esac
19587     ;;
19588   esac
19589
19590   ac_dir=`$as_dirname -- "$ac_file" ||
19591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19592          X"$ac_file" : 'X\(//\)[^/]' \| \
19593          X"$ac_file" : 'X\(//\)$' \| \
19594          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19595 $as_echo X"$ac_file" |
19596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19597             s//\1/
19598             q
19599           }
19600           /^X\(\/\/\)[^/].*/{
19601             s//\1/
19602             q
19603           }
19604           /^X\(\/\/\)$/{
19605             s//\1/
19606             q
19607           }
19608           /^X\(\/\).*/{
19609             s//\1/
19610             q
19611           }
19612           s/.*/./; q'`
19613   as_dir="$ac_dir"; as_fn_mkdir_p
19614   ac_builddir=.
19615
19616 case "$ac_dir" in
19617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19618 *)
19619   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19620   # A ".." for each directory in $ac_dir_suffix.
19621   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19622   case $ac_top_builddir_sub in
19623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19625   esac ;;
19626 esac
19627 ac_abs_top_builddir=$ac_pwd
19628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19629 # for backward compatibility:
19630 ac_top_builddir=$ac_top_build_prefix
19631
19632 case $srcdir in
19633   .)  # We are building in place.
19634     ac_srcdir=.
19635     ac_top_srcdir=$ac_top_builddir_sub
19636     ac_abs_top_srcdir=$ac_pwd ;;
19637   [\\/]* | ?:[\\/]* )  # Absolute name.
19638     ac_srcdir=$srcdir$ac_dir_suffix;
19639     ac_top_srcdir=$srcdir
19640     ac_abs_top_srcdir=$srcdir ;;
19641   *) # Relative name.
19642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19643     ac_top_srcdir=$ac_top_build_prefix$srcdir
19644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19645 esac
19646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19647
19648
19649   case $ac_mode in
19650   :F)
19651   #
19652   # CONFIG_FILE
19653   #
19654
19655   case $INSTALL in
19656   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19657   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19658   esac
19659   ac_MKDIR_P=$MKDIR_P
19660   case $MKDIR_P in
19661   [\\/$]* | ?:[\\/]* ) ;;
19662   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19663   esac
19664 _ACEOF
19665
19666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19667 # If the template does not know about datarootdir, expand it.
19668 # FIXME: This hack should be removed a few years after 2.60.
19669 ac_datarootdir_hack=; ac_datarootdir_seen=
19670 ac_sed_dataroot='
19671 /datarootdir/ {
19672   p
19673   q
19674 }
19675 /@datadir@/p
19676 /@docdir@/p
19677 /@infodir@/p
19678 /@localedir@/p
19679 /@mandir@/p'
19680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19681 *datarootdir*) ac_datarootdir_seen=yes;;
19682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19683   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19685 _ACEOF
19686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19687   ac_datarootdir_hack='
19688   s&@datadir@&$datadir&g
19689   s&@docdir@&$docdir&g
19690   s&@infodir@&$infodir&g
19691   s&@localedir@&$localedir&g
19692   s&@mandir@&$mandir&g
19693   s&\\\${datarootdir}&$datarootdir&g' ;;
19694 esac
19695 _ACEOF
19696
19697 # Neutralize VPATH when `$srcdir' = `.'.
19698 # Shell code in configure.ac might set extrasub.
19699 # FIXME: do we really want to maintain this feature?
19700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19701 ac_sed_extra="$ac_vpsub
19702 $extrasub
19703 _ACEOF
19704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19705 :t
19706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19707 s|@configure_input@|$ac_sed_conf_input|;t t
19708 s&@top_builddir@&$ac_top_builddir_sub&;t t
19709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19710 s&@srcdir@&$ac_srcdir&;t t
19711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19712 s&@top_srcdir@&$ac_top_srcdir&;t t
19713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19714 s&@builddir@&$ac_builddir&;t t
19715 s&@abs_builddir@&$ac_abs_builddir&;t t
19716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19717 s&@INSTALL@&$ac_INSTALL&;t t
19718 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19719 $ac_datarootdir_hack
19720 "
19721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19722   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19723
19724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19725   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19726   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19727       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19728   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19729 which seems to be undefined.  Please make sure it is defined" >&5
19730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19731 which seems to be undefined.  Please make sure it is defined" >&2;}
19732
19733   rm -f "$ac_tmp/stdin"
19734   case $ac_file in
19735   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19736   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19737   esac \
19738   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19739  ;;
19740   :H)
19741   #
19742   # CONFIG_HEADER
19743   #
19744   if test x"$ac_file" != x-; then
19745     {
19746       $as_echo "/* $configure_input  */" \
19747       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19748     } >"$ac_tmp/config.h" \
19749       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19750     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19751       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19753     else
19754       rm -f "$ac_file"
19755       mv "$ac_tmp/config.h" "$ac_file" \
19756         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19757     fi
19758   else
19759     $as_echo "/* $configure_input  */" \
19760       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19761       || as_fn_error $? "could not create -" "$LINENO" 5
19762   fi
19763 # Compute "$ac_file"'s index in $config_headers.
19764 _am_arg="$ac_file"
19765 _am_stamp_count=1
19766 for _am_header in $config_headers :; do
19767   case $_am_header in
19768     $_am_arg | $_am_arg:* )
19769       break ;;
19770     * )
19771       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19772   esac
19773 done
19774 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19775 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776          X"$_am_arg" : 'X\(//\)[^/]' \| \
19777          X"$_am_arg" : 'X\(//\)$' \| \
19778          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19779 $as_echo X"$_am_arg" |
19780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781             s//\1/
19782             q
19783           }
19784           /^X\(\/\/\)[^/].*/{
19785             s//\1/
19786             q
19787           }
19788           /^X\(\/\/\)$/{
19789             s//\1/
19790             q
19791           }
19792           /^X\(\/\).*/{
19793             s//\1/
19794             q
19795           }
19796           s/.*/./; q'`/stamp-h$_am_stamp_count
19797  ;;
19798
19799   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19800 $as_echo "$as_me: executing $ac_file commands" >&6;}
19801  ;;
19802   esac
19803
19804
19805   case $ac_file$ac_mode in
19806     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19807   # Older Autoconf quotes --file arguments for eval, but not when files
19808   # are listed without --file.  Let's play safe and only enable the eval
19809   # if we detect the quoting.
19810   case $CONFIG_FILES in
19811   *\'*) eval set x "$CONFIG_FILES" ;;
19812   *)   set x $CONFIG_FILES ;;
19813   esac
19814   shift
19815   for mf
19816   do
19817     # Strip MF so we end up with the name of the file.
19818     mf=`echo "$mf" | sed -e 's/:.*$//'`
19819     # Check whether this is an Automake generated Makefile or not.
19820     # We used to match only the files named 'Makefile.in', but
19821     # some people rename them; so instead we look at the file content.
19822     # Grep'ing the first line is not enough: some people post-process
19823     # each Makefile.in and add a new line on top of each file to say so.
19824     # Grep'ing the whole file is not good either: AIX grep has a line
19825     # limit of 2048, but all sed's we know have understand at least 4000.
19826     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19827       dirpart=`$as_dirname -- "$mf" ||
19828 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19829          X"$mf" : 'X\(//\)[^/]' \| \
19830          X"$mf" : 'X\(//\)$' \| \
19831          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19832 $as_echo X"$mf" |
19833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19834             s//\1/
19835             q
19836           }
19837           /^X\(\/\/\)[^/].*/{
19838             s//\1/
19839             q
19840           }
19841           /^X\(\/\/\)$/{
19842             s//\1/
19843             q
19844           }
19845           /^X\(\/\).*/{
19846             s//\1/
19847             q
19848           }
19849           s/.*/./; q'`
19850     else
19851       continue
19852     fi
19853     # Extract the definition of DEPDIR, am__include, and am__quote
19854     # from the Makefile without running 'make'.
19855     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19856     test -z "$DEPDIR" && continue
19857     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19858     test -z "$am__include" && continue
19859     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19860     # Find all dependency output files, they are included files with
19861     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19862     # simplest approach to changing $(DEPDIR) to its actual value in the
19863     # expansion.
19864     for file in `sed -n "
19865       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19866          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19867       # Make sure the directory exists.
19868       test -f "$dirpart/$file" && continue
19869       fdir=`$as_dirname -- "$file" ||
19870 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19871          X"$file" : 'X\(//\)[^/]' \| \
19872          X"$file" : 'X\(//\)$' \| \
19873          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19874 $as_echo X"$file" |
19875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19876             s//\1/
19877             q
19878           }
19879           /^X\(\/\/\)[^/].*/{
19880             s//\1/
19881             q
19882           }
19883           /^X\(\/\/\)$/{
19884             s//\1/
19885             q
19886           }
19887           /^X\(\/\).*/{
19888             s//\1/
19889             q
19890           }
19891           s/.*/./; q'`
19892       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19893       # echo "creating $dirpart/$file"
19894       echo '# dummy' > "$dirpart/$file"
19895     done
19896   done
19897 }
19898  ;;
19899     "libtool":C)
19900
19901     # See if we are running on zsh, and set the options that allow our
19902     # commands through without removal of \ escapes.
19903     if test -n "${ZSH_VERSION+set}"; then
19904       setopt NO_GLOB_SUBST
19905     fi
19906
19907     cfgfile=${ofile}T
19908     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19909     $RM "$cfgfile"
19910
19911     cat <<_LT_EOF >> "$cfgfile"
19912 #! $SHELL
19913 # Generated automatically by $as_me ($PACKAGE) $VERSION
19914 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19916
19917 # Provide generalized library-building support services.
19918 # Written by Gordon Matzigkeit, 1996
19919
19920 # Copyright (C) 2014 Free Software Foundation, Inc.
19921 # This is free software; see the source for copying conditions.  There is NO
19922 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19923
19924 # GNU Libtool is free software; you can redistribute it and/or modify
19925 # it under the terms of the GNU General Public License as published by
19926 # the Free Software Foundation; either version 2 of of the License, or
19927 # (at your option) any later version.
19928 #
19929 # As a special exception to the GNU General Public License, if you
19930 # distribute this file as part of a program or library that is built
19931 # using GNU Libtool, you may include this file under the  same
19932 # distribution terms that you use for the rest of that program.
19933 #
19934 # GNU Libtool is distributed in the hope that it will be useful, but
19935 # WITHOUT ANY WARRANTY; without even the implied warranty of
19936 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19937 # GNU General Public License for more details.
19938 #
19939 # You should have received a copy of the GNU General Public License
19940 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19941
19942
19943 # The names of the tagged configurations supported by this script.
19944 available_tags=''
19945
19946 # Configured defaults for sys_lib_dlsearch_path munging.
19947 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19948
19949 # ### BEGIN LIBTOOL CONFIG
19950
19951 # Which release of libtool.m4 was used?
19952 macro_version=$macro_version
19953 macro_revision=$macro_revision
19954
19955 # Whether or not to build shared libraries.
19956 build_libtool_libs=$enable_shared
19957
19958 # Whether or not to build static libraries.
19959 build_old_libs=$enable_static
19960
19961 # What type of objects to build.
19962 pic_mode=$pic_mode
19963
19964 # Whether or not to optimize for fast installation.
19965 fast_install=$enable_fast_install
19966
19967 # Shared archive member basename,for filename based shared library versioning on AIX.
19968 shared_archive_member_spec=$shared_archive_member_spec
19969
19970 # Shell to use when invoking shell scripts.
19971 SHELL=$lt_SHELL
19972
19973 # An echo program that protects backslashes.
19974 ECHO=$lt_ECHO
19975
19976 # The PATH separator for the build system.
19977 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19978
19979 # The host system.
19980 host_alias=$host_alias
19981 host=$host
19982 host_os=$host_os
19983
19984 # The build system.
19985 build_alias=$build_alias
19986 build=$build
19987 build_os=$build_os
19988
19989 # A sed program that does not truncate output.
19990 SED=$lt_SED
19991
19992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19993 Xsed="\$SED -e 1s/^X//"
19994
19995 # A grep program that handles long lines.
19996 GREP=$lt_GREP
19997
19998 # An ERE matcher.
19999 EGREP=$lt_EGREP
20000
20001 # A literal string matcher.
20002 FGREP=$lt_FGREP
20003
20004 # A BSD- or MS-compatible name lister.
20005 NM=$lt_NM
20006
20007 # Whether we need soft or hard links.
20008 LN_S=$lt_LN_S
20009
20010 # What is the maximum length of a command?
20011 max_cmd_len=$max_cmd_len
20012
20013 # Object file suffix (normally "o").
20014 objext=$ac_objext
20015
20016 # Executable file suffix (normally "").
20017 exeext=$exeext
20018
20019 # whether the shell understands "unset".
20020 lt_unset=$lt_unset
20021
20022 # turn spaces into newlines.
20023 SP2NL=$lt_lt_SP2NL
20024
20025 # turn newlines into spaces.
20026 NL2SP=$lt_lt_NL2SP
20027
20028 # convert \$build file names to \$host format.
20029 to_host_file_cmd=$lt_cv_to_host_file_cmd
20030
20031 # convert \$build files to toolchain format.
20032 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20033
20034 # An object symbol dumper.
20035 OBJDUMP=$lt_OBJDUMP
20036
20037 # Method to check whether dependent libraries are shared objects.
20038 deplibs_check_method=$lt_deplibs_check_method
20039
20040 # Command to use when deplibs_check_method = "file_magic".
20041 file_magic_cmd=$lt_file_magic_cmd
20042
20043 # How to find potential files when deplibs_check_method = "file_magic".
20044 file_magic_glob=$lt_file_magic_glob
20045
20046 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20047 want_nocaseglob=$lt_want_nocaseglob
20048
20049 # DLL creation program.
20050 DLLTOOL=$lt_DLLTOOL
20051
20052 # Command to associate shared and link libraries.
20053 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20054
20055 # The archiver.
20056 AR=$lt_AR
20057
20058 # Flags to create an archive.
20059 AR_FLAGS=$lt_AR_FLAGS
20060
20061 # How to feed a file listing to the archiver.
20062 archiver_list_spec=$lt_archiver_list_spec
20063
20064 # A symbol stripping program.
20065 STRIP=$lt_STRIP
20066
20067 # Commands used to install an old-style archive.
20068 RANLIB=$lt_RANLIB
20069 old_postinstall_cmds=$lt_old_postinstall_cmds
20070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20071
20072 # Whether to use a lock for old archive extraction.
20073 lock_old_archive_extraction=$lock_old_archive_extraction
20074
20075 # A C compiler.
20076 LTCC=$lt_CC
20077
20078 # LTCC compiler flags.
20079 LTCFLAGS=$lt_CFLAGS
20080
20081 # Take the output of nm and produce a listing of raw symbols and C names.
20082 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20083
20084 # Transform the output of nm in a proper C declaration.
20085 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20086
20087 # Transform the output of nm into a list of symbols to manually relocate.
20088 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20089
20090 # Transform the output of nm in a C name address pair.
20091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20092
20093 # Transform the output of nm in a C name address pair when lib prefix is needed.
20094 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20095
20096 # The name lister interface.
20097 nm_interface=$lt_lt_cv_nm_interface
20098
20099 # Specify filename containing input files for \$NM.
20100 nm_file_list_spec=$lt_nm_file_list_spec
20101
20102 # The root where to search for dependent libraries,and where our libraries should be installed.
20103 lt_sysroot=$lt_sysroot
20104
20105 # Command to truncate a binary pipe.
20106 lt_truncate_bin=$lt_lt_cv_truncate_bin
20107
20108 # The name of the directory that contains temporary libtool files.
20109 objdir=$objdir
20110
20111 # Used to examine libraries when file_magic_cmd begins with "file".
20112 MAGIC_CMD=$MAGIC_CMD
20113
20114 # Must we lock files when doing compilation?
20115 need_locks=$lt_need_locks
20116
20117 # Manifest tool.
20118 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20119
20120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20121 DSYMUTIL=$lt_DSYMUTIL
20122
20123 # Tool to change global to local symbols on Mac OS X.
20124 NMEDIT=$lt_NMEDIT
20125
20126 # Tool to manipulate fat objects and archives on Mac OS X.
20127 LIPO=$lt_LIPO
20128
20129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20130 OTOOL=$lt_OTOOL
20131
20132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20133 OTOOL64=$lt_OTOOL64
20134
20135 # Old archive suffix (normally "a").
20136 libext=$libext
20137
20138 # Shared library suffix (normally ".so").
20139 shrext_cmds=$lt_shrext_cmds
20140
20141 # The commands to extract the exported symbol list from a shared archive.
20142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20143
20144 # Variables whose values should be saved in libtool wrapper scripts and
20145 # restored at link time.
20146 variables_saved_for_relink=$lt_variables_saved_for_relink
20147
20148 # Do we need the "lib" prefix for modules?
20149 need_lib_prefix=$need_lib_prefix
20150
20151 # Do we need a version for libraries?
20152 need_version=$need_version
20153
20154 # Library versioning type.
20155 version_type=$version_type
20156
20157 # Shared library runtime path variable.
20158 runpath_var=$runpath_var
20159
20160 # Shared library path variable.
20161 shlibpath_var=$shlibpath_var
20162
20163 # Is shlibpath searched before the hard-coded library search path?
20164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20165
20166 # Format of library name prefix.
20167 libname_spec=$lt_libname_spec
20168
20169 # List of archive names.  First name is the real one, the rest are links.
20170 # The last name is the one that the linker finds with -lNAME
20171 library_names_spec=$lt_library_names_spec
20172
20173 # The coded name of the library, if different from the real name.
20174 soname_spec=$lt_soname_spec
20175
20176 # Permission mode override for installation of shared libraries.
20177 install_override_mode=$lt_install_override_mode
20178
20179 # Command to use after installation of a shared archive.
20180 postinstall_cmds=$lt_postinstall_cmds
20181
20182 # Command to use after uninstallation of a shared archive.
20183 postuninstall_cmds=$lt_postuninstall_cmds
20184
20185 # Commands used to finish a libtool library installation in a directory.
20186 finish_cmds=$lt_finish_cmds
20187
20188 # As "finish_cmds", except a single script fragment to be evaled but
20189 # not shown.
20190 finish_eval=$lt_finish_eval
20191
20192 # Whether we should hardcode library paths into libraries.
20193 hardcode_into_libs=$hardcode_into_libs
20194
20195 # Compile-time system search path for libraries.
20196 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20197
20198 # Detected run-time system search path for libraries.
20199 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20200
20201 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20202 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20203
20204 # Whether dlopen is supported.
20205 dlopen_support=$enable_dlopen
20206
20207 # Whether dlopen of programs is supported.
20208 dlopen_self=$enable_dlopen_self
20209
20210 # Whether dlopen of statically linked programs is supported.
20211 dlopen_self_static=$enable_dlopen_self_static
20212
20213 # Commands to strip libraries.
20214 old_striplib=$lt_old_striplib
20215 striplib=$lt_striplib
20216
20217
20218 # The linker used to build libraries.
20219 LD=$lt_LD
20220
20221 # How to create reloadable object files.
20222 reload_flag=$lt_reload_flag
20223 reload_cmds=$lt_reload_cmds
20224
20225 # Commands used to build an old-style archive.
20226 old_archive_cmds=$lt_old_archive_cmds
20227
20228 # A language specific compiler.
20229 CC=$lt_compiler
20230
20231 # Is the compiler the GNU compiler?
20232 with_gcc=$GCC
20233
20234 # Compiler flag to turn off builtin functions.
20235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20236
20237 # Additional compiler flags for building library objects.
20238 pic_flag=$lt_lt_prog_compiler_pic
20239
20240 # How to pass a linker flag through the compiler.
20241 wl=$lt_lt_prog_compiler_wl
20242
20243 # Compiler flag to prevent dynamic linking.
20244 link_static_flag=$lt_lt_prog_compiler_static
20245
20246 # Does compiler simultaneously support -c and -o options?
20247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20248
20249 # Whether or not to add -lc for building shared libraries.
20250 build_libtool_need_lc=$archive_cmds_need_lc
20251
20252 # Whether or not to disallow shared libs when runtime libs are static.
20253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20254
20255 # Compiler flag to allow reflexive dlopens.
20256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20257
20258 # Compiler flag to generate shared objects directly from archives.
20259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20260
20261 # Whether the compiler copes with passing no objects directly.
20262 compiler_needs_object=$lt_compiler_needs_object
20263
20264 # Create an old-style archive from a shared archive.
20265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20266
20267 # Create a temporary old-style archive to link instead of a shared archive.
20268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20269
20270 # Commands used to build a shared archive.
20271 archive_cmds=$lt_archive_cmds
20272 archive_expsym_cmds=$lt_archive_expsym_cmds
20273
20274 # Commands used to build a loadable module if different from building
20275 # a shared archive.
20276 module_cmds=$lt_module_cmds
20277 module_expsym_cmds=$lt_module_expsym_cmds
20278
20279 # Whether we are building with GNU ld or not.
20280 with_gnu_ld=$lt_with_gnu_ld
20281
20282 # Flag that allows shared libraries with undefined symbols to be built.
20283 allow_undefined_flag=$lt_allow_undefined_flag
20284
20285 # Flag that enforces no undefined symbols.
20286 no_undefined_flag=$lt_no_undefined_flag
20287
20288 # Flag to hardcode \$libdir into a binary during linking.
20289 # This must work even if \$libdir does not exist
20290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20291
20292 # Whether we need a single "-rpath" flag with a separated argument.
20293 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20294
20295 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20296 # DIR into the resulting binary.
20297 hardcode_direct=$hardcode_direct
20298
20299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20300 # DIR into the resulting binary and the resulting library dependency is
20301 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20302 # library is relocated.
20303 hardcode_direct_absolute=$hardcode_direct_absolute
20304
20305 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20306 # into the resulting binary.
20307 hardcode_minus_L=$hardcode_minus_L
20308
20309 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20310 # into the resulting binary.
20311 hardcode_shlibpath_var=$hardcode_shlibpath_var
20312
20313 # Set to "yes" if building a shared library automatically hardcodes DIR
20314 # into the library and all subsequent libraries and executables linked
20315 # against it.
20316 hardcode_automatic=$hardcode_automatic
20317
20318 # Set to yes if linker adds runtime paths of dependent libraries
20319 # to runtime path list.
20320 inherit_rpath=$inherit_rpath
20321
20322 # Whether libtool must link a program against all its dependency libraries.
20323 link_all_deplibs=$link_all_deplibs
20324
20325 # Set to "yes" if exported symbols are required.
20326 always_export_symbols=$always_export_symbols
20327
20328 # The commands to list exported symbols.
20329 export_symbols_cmds=$lt_export_symbols_cmds
20330
20331 # Symbols that should not be listed in the preloaded symbols.
20332 exclude_expsyms=$lt_exclude_expsyms
20333
20334 # Symbols that must always be exported.
20335 include_expsyms=$lt_include_expsyms
20336
20337 # Commands necessary for linking programs (against libraries) with templates.
20338 prelink_cmds=$lt_prelink_cmds
20339
20340 # Commands necessary for finishing linking programs.
20341 postlink_cmds=$lt_postlink_cmds
20342
20343 # Specify filename containing input files.
20344 file_list_spec=$lt_file_list_spec
20345
20346 # How to hardcode a shared library path into an executable.
20347 hardcode_action=$hardcode_action
20348
20349 # ### END LIBTOOL CONFIG
20350
20351 _LT_EOF
20352
20353     cat <<'_LT_EOF' >> "$cfgfile"
20354
20355 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20356
20357 # func_munge_path_list VARIABLE PATH
20358 # -----------------------------------
20359 # VARIABLE is name of variable containing _space_ separated list of
20360 # directories to be munged by the contents of PATH, which is string
20361 # having a format:
20362 # "DIR[:DIR]:"
20363 #       string "DIR[ DIR]" will be prepended to VARIABLE
20364 # ":DIR[:DIR]"
20365 #       string "DIR[ DIR]" will be appended to VARIABLE
20366 # "DIRP[:DIRP]::[DIRA:]DIRA"
20367 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20368 #       "DIRA[ DIRA]" will be appended to VARIABLE
20369 # "DIR[:DIR]"
20370 #       VARIABLE will be replaced by "DIR[ DIR]"
20371 func_munge_path_list ()
20372 {
20373     case x$2 in
20374     x)
20375         ;;
20376     *:)
20377         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20378         ;;
20379     x:*)
20380         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20381         ;;
20382     *::*)
20383         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20384         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20385         ;;
20386     *)
20387         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20388         ;;
20389     esac
20390 }
20391
20392
20393 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20394 func_cc_basename ()
20395 {
20396     for cc_temp in $*""; do
20397       case $cc_temp in
20398         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20399         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20400         \-*) ;;
20401         *) break;;
20402       esac
20403     done
20404     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20405 }
20406
20407
20408 # ### END FUNCTIONS SHARED WITH CONFIGURE
20409
20410 _LT_EOF
20411
20412   case $host_os in
20413   aix3*)
20414     cat <<\_LT_EOF >> "$cfgfile"
20415 # AIX sometimes has problems with the GCC collect2 program.  For some
20416 # reason, if we set the COLLECT_NAMES environment variable, the problems
20417 # vanish in a puff of smoke.
20418 if test set != "${COLLECT_NAMES+set}"; then
20419   COLLECT_NAMES=
20420   export COLLECT_NAMES
20421 fi
20422 _LT_EOF
20423     ;;
20424   esac
20425
20426
20427 ltmain=$ac_aux_dir/ltmain.sh
20428
20429
20430   # We use sed instead of cat because bash on DJGPP gets confused if
20431   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20432   # text mode, it properly converts lines to CR/LF.  This bash problem
20433   # is reportedly fixed, but why not run on old versions too?
20434   sed '$q' "$ltmain" >> "$cfgfile" \
20435      || (rm -f "$cfgfile"; exit 1)
20436
20437    mv -f "$cfgfile" "$ofile" ||
20438     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20439   chmod +x "$ofile"
20440
20441  ;;
20442     "$ac_stdint_h":C)
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
20444 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20445 ac_stdint=$tmp/_stdint.h
20446
20447 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20448 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20449 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20450 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20451 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20452 if test "_$ac_cv_header_stdint_t" != "_" ; then
20453 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20454 echo "#include <stdint.h>" >>$ac_stdint
20455 echo "#endif" >>$ac_stdint
20456 echo "#endif" >>$ac_stdint
20457 else
20458
20459 cat >>$ac_stdint <<STDINT_EOF
20460
20461 /* ................... shortcircuit part ........................... */
20462
20463 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20464 #include <stdint.h>
20465 #else
20466 #include <stddef.h>
20467
20468 /* .................... configured part ............................ */
20469
20470 STDINT_EOF
20471
20472 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20473 if test "_$ac_cv_header_stdint_x" != "_" ; then
20474   ac_header="$ac_cv_header_stdint_x"
20475   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20476 else
20477   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20478 fi
20479
20480 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20481 if  test "_$ac_cv_header_stdint_o" != "_" ; then
20482   ac_header="$ac_cv_header_stdint_o"
20483   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20484 else
20485   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20486 fi
20487
20488 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20489 if  test "_$ac_cv_header_stdint_u" != "_" ; then
20490   ac_header="$ac_cv_header_stdint_u"
20491   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20492 else
20493   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20494 fi
20495
20496 echo "" >>$ac_stdint
20497
20498 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20499   echo "#include <$ac_header>" >>$ac_stdint
20500   echo "" >>$ac_stdint
20501 fi fi
20502
20503 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20504 if test "$ac_cv_type_uint64_t" = "yes" ; then
20505 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
20506 else
20507 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20508 fi
20509 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20510 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
20511 else
20512 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20513 fi
20514 echo "" >>$ac_stdint
20515
20516 echo "/* which type model has been detected */" >>$ac_stdint
20517 if test "_$ac_cv_char_data_model" != "_" ; then
20518 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20519 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20520 else
20521 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20522 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20523 fi
20524 echo "" >>$ac_stdint
20525
20526 echo "/* whether int_least types were detected */" >>$ac_stdint
20527 if test "$ac_cv_type_int_least32_t" = "yes"; then
20528 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
20529 else
20530 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20531 fi
20532 echo "/* whether int_fast types were detected */" >>$ac_stdint
20533 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20534 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20535 else
20536 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20537 fi
20538 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20539 if test "$ac_cv_type_intmax_t" = "yes"; then
20540 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20541 else
20542 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20543 fi
20544 echo "" >>$ac_stdint
20545
20546   cat >>$ac_stdint <<STDINT_EOF
20547 /* .................... detections part ............................ */
20548
20549 /* whether we need to define bitspecific types from compiler base types */
20550 #ifndef _STDINT_HEADER_INTPTR
20551 #ifndef _STDINT_HEADER_UINT32
20552 #ifndef _STDINT_HEADER_U_INT32
20553 #define _STDINT_NEED_INT_MODEL_T
20554 #else
20555 #define _STDINT_HAVE_U_INT_TYPES
20556 #endif
20557 #endif
20558 #endif
20559
20560 #ifdef _STDINT_HAVE_U_INT_TYPES
20561 #undef _STDINT_NEED_INT_MODEL_T
20562 #endif
20563
20564 #ifdef  _STDINT_CHAR_MODEL
20565 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20566 #ifndef _STDINT_BYTE_MODEL
20567 #define _STDINT_BYTE_MODEL 12
20568 #endif
20569 #endif
20570 #endif
20571
20572 #ifndef _STDINT_HAVE_INT_LEAST32_T
20573 #define _STDINT_NEED_INT_LEAST_T
20574 #endif
20575
20576 #ifndef _STDINT_HAVE_INT_FAST32_T
20577 #define _STDINT_NEED_INT_FAST_T
20578 #endif
20579
20580 #ifndef _STDINT_HEADER_INTPTR
20581 #define _STDINT_NEED_INTPTR_T
20582 #ifndef _STDINT_HAVE_INTMAX_T
20583 #define _STDINT_NEED_INTMAX_T
20584 #endif
20585 #endif
20586
20587
20588 /* .................... definition part ............................ */
20589
20590 /* some system headers have good uint64_t */
20591 #ifndef _HAVE_UINT64_T
20592 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
20593 #define _HAVE_UINT64_T
20594 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20595 #define _HAVE_UINT64_T
20596 typedef u_int64_t uint64_t;
20597 #endif
20598 #endif
20599
20600 #ifndef _HAVE_UINT64_T
20601 /* .. here are some common heuristics using compiler runtime specifics */
20602 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20603 #define _HAVE_UINT64_T
20604 #define _HAVE_LONGLONG_UINT64_T
20605 typedef long long int64_t;
20606 typedef unsigned long long uint64_t;
20607
20608 #elif !defined __STRICT_ANSI__
20609 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20610 #define _HAVE_UINT64_T
20611 typedef __int64 int64_t;
20612 typedef unsigned __int64 uint64_t;
20613
20614 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20615 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20616 #if !defined _NO_LONGLONG
20617 #define _HAVE_UINT64_T
20618 #define _HAVE_LONGLONG_UINT64_T
20619 typedef long long int64_t;
20620 typedef unsigned long long uint64_t;
20621 #endif
20622
20623 #elif defined __alpha || (defined __mips && defined _ABIN32)
20624 #if !defined _NO_LONGLONG
20625 typedef long int64_t;
20626 typedef unsigned long uint64_t;
20627 #endif
20628   /* compiler/cpu type to define int64_t */
20629 #endif
20630 #endif
20631 #endif
20632
20633 #if defined _STDINT_HAVE_U_INT_TYPES
20634 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20635 typedef u_int8_t uint8_t;
20636 typedef u_int16_t uint16_t;
20637 typedef u_int32_t uint32_t;
20638
20639 /* glibc compatibility */
20640 #ifndef __int8_t_defined
20641 #define __int8_t_defined
20642 #endif
20643 #endif
20644
20645 #ifdef _STDINT_NEED_INT_MODEL_T
20646 /* we must guess all the basic types. Apart from byte-adressable system, */
20647 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20648 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20649
20650
20651 #if defined _STDINT_BYTE_MODEL
20652 #if _STDINT_LONG_MODEL+0 == 242
20653 /* 2:4:2 =  IP16 = a normal 16-bit system                */
20654 typedef unsigned char   uint8_t;
20655 typedef unsigned short  uint16_t;
20656 typedef unsigned long   uint32_t;
20657 #ifndef __int8_t_defined
20658 #define __int8_t_defined
20659 typedef          char    int8_t;
20660 typedef          short   int16_t;
20661 typedef          long    int32_t;
20662 #endif
20663 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20664 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
20665 /* 4:4:4 = ILP32 = a normal 32-bit system                */
20666 typedef unsigned char   uint8_t;
20667 typedef unsigned short  uint16_t;
20668 typedef unsigned int    uint32_t;
20669 #ifndef __int8_t_defined
20670 #define __int8_t_defined
20671 typedef          char    int8_t;
20672 typedef          short   int16_t;
20673 typedef          int     int32_t;
20674 #endif
20675 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20676 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
20677 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
20678 typedef unsigned char   uint8_t;
20679 typedef unsigned short  uint16_t;
20680 typedef unsigned int    uint32_t;
20681 #ifndef __int8_t_defined
20682 #define __int8_t_defined
20683 typedef          char    int8_t;
20684 typedef          short   int16_t;
20685 typedef          int     int32_t;
20686 #endif
20687 /* this system has a "long" of 64bit */
20688 #ifndef _HAVE_UINT64_T
20689 #define _HAVE_UINT64_T
20690 typedef unsigned long   uint64_t;
20691 typedef          long    int64_t;
20692 #endif
20693 #elif _STDINT_LONG_MODEL+0 == 448
20694 /*      LLP64   a 64-bit system derived from a 32-bit system */
20695 typedef unsigned char   uint8_t;
20696 typedef unsigned short  uint16_t;
20697 typedef unsigned int    uint32_t;
20698 #ifndef __int8_t_defined
20699 #define __int8_t_defined
20700 typedef          char    int8_t;
20701 typedef          short   int16_t;
20702 typedef          int     int32_t;
20703 #endif
20704 /* assuming the system has a "long long" */
20705 #ifndef _HAVE_UINT64_T
20706 #define _HAVE_UINT64_T
20707 #define _HAVE_LONGLONG_UINT64_T
20708 typedef unsigned long long uint64_t;
20709 typedef          long long  int64_t;
20710 #endif
20711 #else
20712 #define _STDINT_NO_INT32_T
20713 #endif
20714 #else
20715 #define _STDINT_NO_INT8_T
20716 #define _STDINT_NO_INT32_T
20717 #endif
20718 #endif
20719
20720 /*
20721  * quote from SunOS-5.8 sys/inttypes.h:
20722  * Use at your own risk.  As of February 1996, the committee is squarely
20723  * behind the fixed sized types; the "least" and "fast" types are still being
20724  * discussed.  The probability that the "fast" types may be removed before
20725  * the standard is finalized is high enough that they are not currently
20726  * implemented.
20727  */
20728
20729 #if defined _STDINT_NEED_INT_LEAST_T
20730 typedef  int8_t    int_least8_t;
20731 typedef  int16_t   int_least16_t;
20732 typedef  int32_t   int_least32_t;
20733 #ifdef _HAVE_UINT64_T
20734 typedef  int64_t   int_least64_t;
20735 #endif
20736
20737 typedef uint8_t   uint_least8_t;
20738 typedef uint16_t  uint_least16_t;
20739 typedef uint32_t  uint_least32_t;
20740 #ifdef _HAVE_UINT64_T
20741 typedef uint64_t  uint_least64_t;
20742 #endif
20743   /* least types */
20744 #endif
20745
20746 #if defined _STDINT_NEED_INT_FAST_T
20747 typedef  int8_t    int_fast8_t;
20748 typedef  int       int_fast16_t;
20749 typedef  int32_t   int_fast32_t;
20750 #ifdef _HAVE_UINT64_T
20751 typedef  int64_t   int_fast64_t;
20752 #endif
20753
20754 typedef uint8_t   uint_fast8_t;
20755 typedef unsigned  uint_fast16_t;
20756 typedef uint32_t  uint_fast32_t;
20757 #ifdef _HAVE_UINT64_T
20758 typedef uint64_t  uint_fast64_t;
20759 #endif
20760   /* fast types */
20761 #endif
20762
20763 #ifdef _STDINT_NEED_INTMAX_T
20764 #ifdef _HAVE_UINT64_T
20765 typedef  int64_t       intmax_t;
20766 typedef uint64_t      uintmax_t;
20767 #else
20768 typedef          long  intmax_t;
20769 typedef unsigned long uintmax_t;
20770 #endif
20771 #endif
20772
20773 #ifdef _STDINT_NEED_INTPTR_T
20774 #ifndef __intptr_t_defined
20775 #define __intptr_t_defined
20776 /* we encourage using "long" to store pointer values, never use "int" ! */
20777 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20778 typedef  unsigned int   uintptr_t;
20779 typedef           int    intptr_t;
20780 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20781 typedef  unsigned long  uintptr_t;
20782 typedef           long   intptr_t;
20783 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20784 typedef        uint64_t uintptr_t;
20785 typedef         int64_t  intptr_t;
20786 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20787 typedef  unsigned long  uintptr_t;
20788 typedef           long   intptr_t;
20789 #endif
20790 #endif
20791 #endif
20792
20793 /* The ISO C99 standard specifies that in C++ implementations these
20794    should only be defined if explicitly requested.  */
20795 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20796 #ifndef UINT32_C
20797
20798 /* Signed.  */
20799 # define INT8_C(c)      c
20800 # define INT16_C(c)     c
20801 # define INT32_C(c)     c
20802 # ifdef _HAVE_LONGLONG_UINT64_T
20803 #  define INT64_C(c)    c ## L
20804 # else
20805 #  define INT64_C(c)    c ## LL
20806 # endif
20807
20808 /* Unsigned.  */
20809 # define UINT8_C(c)     c ## U
20810 # define UINT16_C(c)    c ## U
20811 # define UINT32_C(c)    c ## U
20812 # ifdef _HAVE_LONGLONG_UINT64_T
20813 #  define UINT64_C(c)   c ## UL
20814 # else
20815 #  define UINT64_C(c)   c ## ULL
20816 # endif
20817
20818 /* Maximal type.  */
20819 # ifdef _HAVE_LONGLONG_UINT64_T
20820 #  define INTMAX_C(c)   c ## L
20821 #  define UINTMAX_C(c)  c ## UL
20822 # else
20823 #  define INTMAX_C(c)   c ## LL
20824 #  define UINTMAX_C(c)  c ## ULL
20825 # endif
20826
20827   /* literalnumbers */
20828 #endif
20829 #endif
20830
20831 /* These limits are merily those of a two complement byte-oriented system */
20832
20833 /* Minimum of signed integral types.  */
20834 # define INT8_MIN               (-128)
20835 # define INT16_MIN              (-32767-1)
20836 # define INT32_MIN              (-2147483647-1)
20837 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
20838 /* Maximum of signed integral types.  */
20839 # define INT8_MAX               (127)
20840 # define INT16_MAX              (32767)
20841 # define INT32_MAX              (2147483647)
20842 # define INT64_MAX              (__INT64_C(9223372036854775807))
20843
20844 /* Maximum of unsigned integral types.  */
20845 # define UINT8_MAX              (255)
20846 # define UINT16_MAX             (65535)
20847 # define UINT32_MAX             (4294967295U)
20848 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
20849
20850 /* Minimum of signed integral types having a minimum size.  */
20851 # define INT_LEAST8_MIN         INT8_MIN
20852 # define INT_LEAST16_MIN        INT16_MIN
20853 # define INT_LEAST32_MIN        INT32_MIN
20854 # define INT_LEAST64_MIN        INT64_MIN
20855 /* Maximum of signed integral types having a minimum size.  */
20856 # define INT_LEAST8_MAX         INT8_MAX
20857 # define INT_LEAST16_MAX        INT16_MAX
20858 # define INT_LEAST32_MAX        INT32_MAX
20859 # define INT_LEAST64_MAX        INT64_MAX
20860
20861 /* Maximum of unsigned integral types having a minimum size.  */
20862 # define UINT_LEAST8_MAX        UINT8_MAX
20863 # define UINT_LEAST16_MAX       UINT16_MAX
20864 # define UINT_LEAST32_MAX       UINT32_MAX
20865 # define UINT_LEAST64_MAX       UINT64_MAX
20866
20867   /* shortcircuit*/
20868 #endif
20869   /* once */
20870 #endif
20871 #endif
20872 STDINT_EOF
20873 fi
20874     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20875       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
20876 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20877     else
20878       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
20879 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20880          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20881          X"$ac_stdint_h" : 'X\(//\)$' \| \
20882          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
20883 $as_echo X"$ac_stdint_h" |
20884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20885             s//\1/
20886             q
20887           }
20888           /^X\(\/\/\)[^/].*/{
20889             s//\1/
20890             q
20891           }
20892           /^X\(\/\/\)$/{
20893             s//\1/
20894             q
20895           }
20896           /^X\(\/\).*/{
20897             s//\1/
20898             q
20899           }
20900           s/.*/./; q'`
20901       as_dir="$ac_dir"; as_fn_mkdir_p
20902       rm -f $ac_stdint_h
20903       mv $ac_stdint $ac_stdint_h
20904     fi
20905  ;;
20906     "checkmk-x":C) chmod +x checkmk/checkmk ;;
20907
20908   esac
20909 done # for ac_tag
20910
20911
20912 as_fn_exit 0
20913 _ACEOF
20914 ac_clean_files=$ac_clean_files_save
20915
20916 test $ac_write_fail = 0 ||
20917   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20918
20919
20920 # configure is writing to config.log, and then calls config.status.
20921 # config.status does its own redirection, appending to config.log.
20922 # Unfortunately, on DOS this fails, as config.log is still kept open
20923 # by configure, so config.status won't be able to write to it; its
20924 # output is simply discarded.  So we exec the FD to /dev/null,
20925 # effectively closing config.log, so it can be properly (re)opened and
20926 # appended to by config.status.  When coming back to configure, we
20927 # need to make the FD available again.
20928 if test "$no_create" != yes; then
20929   ac_cs_success=:
20930   ac_config_status_args=
20931   test "$silent" = yes &&
20932     ac_config_status_args="$ac_config_status_args --quiet"
20933   exec 5>/dev/null
20934   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20935   exec 5>>config.log
20936   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20937   # would make configure fail if this is the last instruction.
20938   $ac_cs_success || as_fn_exit 1
20939 fi
20940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20943 fi
20944
20945
20946 # Finally, print a summary of the Check's compile options
20947
20948 echo
20949 echo "=========================================="
20950 echo "Summary of Check $CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION options:"
20951 echo
20952
20953 if test "x0" = x"$HAVE_FORK"; then
20954     result="no"
20955 else
20956     result="yes"
20957 fi
20958 echo "fork mode ............................ $result"
20959
20960 case "$hw_cv_librt_timers_posix" in
20961     "yes")
20962         result="no"
20963         ;;
20964     "no")
20965         result="yes"
20966         ;;
20967     *)
20968         # The AC_REPLACE_FUNCS macro was invoked,
20969         # meaning we are cross compiling.
20970         if test "xno" = x"$ac_cv_func_timer_create"; then
20971             result="yes"
20972         else
20973             result="no"
20974         fi
20975         ;;
20976 esac
20977 echo "high resolution timer replacement .... $result"
20978
20979 if test "xno" = x"$hw_cv_func_snprintf_c99"; then
20980     result="yes"
20981 else
20982     result="no"
20983 fi
20984 echo "snprintf replacement ................. $result"
20985
20986 if test "xfalse" = x"$enable_subunit"; then
20987     result="no"
20988 else
20989     result="yes"
20990 fi
20991 echo "subunit support....................... $result"
20992
20993 if test "xtrue" = x"$enable_timeout_tests"; then
20994     result="yes"
20995 else
20996     result="no"
20997 fi
20998 echo "timeout unit tests ................... $result"
20999
21000 if test "x0" = x"$ENABLE_REGEX"; then
21001     result="no"
21002 else
21003     result="yes"
21004 fi
21005 echo "POSIX regular expressions ............ $result"
21006
21007 echo "=========================================="