Install json_object_private.h file
[platform/upstream/json-c.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for json-c 0.13.1.
4 #
5 # Report bugs to <json-c@googlegroups.com>.
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
278 $0: json-c@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: 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='json-c'
592 PACKAGE_TARNAME='json-c'
593 PACKAGE_VERSION='0.13.1'
594 PACKAGE_STRING='json-c 0.13.1'
595 PACKAGE_BUGREPORT='json-c@googlegroups.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 JSON_BSYMBOLIC_LDFLAGS
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 LIBTOOL
657 LIBOBJS
658 EGREP
659 GREP
660 CPP
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 am__nodep
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_silent_rules
755 enable_threading
756 enable_rdrand
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_Bsymbolic
766 '
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *=)   ac_optarg= ;;
840   *)    ac_optarg=yes ;;
841   esac
842
843   # Accept the important Cygnus configure options, so we can diagnose typos.
844
845   case $ac_dashdash$ac_option in
846   --)
847     ac_dashdash=yes ;;
848
849   -bindir | --bindir | --bindi | --bind | --bin | --bi)
850     ac_prev=bindir ;;
851   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852     bindir=$ac_optarg ;;
853
854   -build | --build | --buil | --bui | --bu)
855     ac_prev=build_alias ;;
856   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857     build_alias=$ac_optarg ;;
858
859   -cache-file | --cache-file | --cache-fil | --cache-fi \
860   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861     ac_prev=cache_file ;;
862   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864     cache_file=$ac_optarg ;;
865
866   --config-cache | -C)
867     cache_file=config.cache ;;
868
869   -datadir | --datadir | --datadi | --datad)
870     ac_prev=datadir ;;
871   -datadir=* | --datadir=* | --datadi=* | --datad=*)
872     datadir=$ac_optarg ;;
873
874   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875   | --dataroo | --dataro | --datar)
876     ac_prev=datarootdir ;;
877   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879     datarootdir=$ac_optarg ;;
880
881   -disable-* | --disable-*)
882     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885       as_fn_error $? "invalid feature name: $ac_useropt"
886     ac_useropt_orig=$ac_useropt
887     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888     case $ac_user_opts in
889       *"
890 "enable_$ac_useropt"
891 "*) ;;
892       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893          ac_unrecognized_sep=', ';;
894     esac
895     eval enable_$ac_useropt=no ;;
896
897   -docdir | --docdir | --docdi | --doc | --do)
898     ac_prev=docdir ;;
899   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900     docdir=$ac_optarg ;;
901
902   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903     ac_prev=dvidir ;;
904   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905     dvidir=$ac_optarg ;;
906
907   -enable-* | --enable-*)
908     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909     # Reject names that are not valid shell variable names.
910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911       as_fn_error $? "invalid feature name: $ac_useropt"
912     ac_useropt_orig=$ac_useropt
913     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914     case $ac_user_opts in
915       *"
916 "enable_$ac_useropt"
917 "*) ;;
918       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919          ac_unrecognized_sep=', ';;
920     esac
921     eval enable_$ac_useropt=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       as_fn_error $? "invalid package name: $ac_useropt"
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval with_$ac_useropt=\$ac_optarg ;;
1126
1127   -without-* | --without-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=no ;;
1142
1143   --x)
1144     # Obsolete; use --with-x.
1145     with_x=yes ;;
1146
1147   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148   | --x-incl | --x-inc | --x-in | --x-i)
1149     ac_prev=x_includes ;;
1150   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152     x_includes=$ac_optarg ;;
1153
1154   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156     ac_prev=x_libraries ;;
1157   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159     x_libraries=$ac_optarg ;;
1160
1161   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163     ;;
1164
1165   *=*)
1166     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167     # Reject names that are not valid shell variable names.
1168     case $ac_envvar in #(
1169       '' | [0-9]* | *[!_$as_cr_alnum]* )
1170       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171     esac
1172     eval $ac_envvar=\$ac_optarg
1173     export $ac_envvar ;;
1174
1175   *)
1176     # FIXME: should be removed in autoconf 3.0.
1177     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181     ;;
1182
1183   esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188   as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192   case $enable_option_checking in
1193     no) ;;
1194     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196   esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201                 datadir sysconfdir sharedstatedir localstatedir includedir \
1202                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203                 libdir localedir mandir
1204 do
1205   eval ac_val=\$$ac_var
1206   # Remove trailing slashes.
1207   case $ac_val in
1208     */ )
1209       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210       eval $ac_var=\$ac_val;;
1211   esac
1212   # Be sure to have absolute directory names.
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures json-c 0.13.1 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking ...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/json-c]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 Program names:
1374   --program-prefix=PREFIX            prepend PREFIX to installed program names
1375   --program-suffix=SUFFIX            append SUFFIX to installed program names
1376   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of json-c 0.13.1:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-option-checking  ignore unrecognized --enable/--with options
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-silent-rules   less verbose build output (undo: "make V=1")
1395   --disable-silent-rules  verbose build output (undo: "make V=0")
1396   --enable-threading      Enable code to support partly multi-threaded use
1397   --enable-rdrand         Enable RDRAND Hardware RNG Hash Seed generation on
1398                           supported x86/x64 platforms.
1399   --enable-dependency-tracking
1400                           do not reject slow dependency extractors
1401   --disable-dependency-tracking
1402                           speeds up one-time build
1403   --enable-shared[=PKGS]  build shared libraries [default=yes]
1404   --enable-static[=PKGS]  build static libraries [default=yes]
1405   --enable-fast-install[=PKGS]
1406                           optimize for fast installation [default=yes]
1407   --disable-libtool-lock  avoid locking (might break parallel builds)
1408   --disable-Bsymbolic     Avoid linking with -Bsymbolic-function
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1414                           both]
1415   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1416   --with-sysroot=DIR Search for dependent libraries within DIR
1417                         (or the compiler's sysroot if not specified).
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to <json-c@googlegroups.com>.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438   # If there are subdirs, report their specific --help.
1439   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440     test -d "$ac_dir" ||
1441       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442       continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 json-c configure 0.13.1
1496 generated by GNU Autoconf 2.69
1497
1498 Copyright (C) 2012 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502   exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1513 {
1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515   rm -f conftest.$ac_objext
1516   if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519   *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523   (eval "$ac_compile") 2>conftest.err
1524   ac_status=$?
1525   if test -s conftest.err; then
1526     grep -v '^ *+' conftest.err >conftest.er1
1527     cat conftest.er1 >&5
1528     mv -f conftest.er1 conftest.err
1529   fi
1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531   test $ac_status = 0; } && {
1532          test -z "$ac_c_werror_flag" ||
1533          test ! -s conftest.err
1534        } && test -s conftest.$ac_objext; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540         ac_retval=1
1541 fi
1542   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543   as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_compile
1546
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } > conftest.i && {
1569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        }; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577     ac_retval=1
1578 fi
1579   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580   as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_cpp
1583
1584 # ac_fn_c_try_run LINENO
1585 # ----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587 # that executables *can* be run.
1588 ac_fn_c_try_run ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_link") 2>&5
1599   ac_status=$?
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602   { { case "(($ac_try" in
1603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604   *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608   (eval "$ac_try") 2>&5
1609   ac_status=$?
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; }; }; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: program exited with status $ac_status" >&5
1615        $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618        ac_retval=$ac_status
1619 fi
1620   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622   as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_run
1625
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   if eval \${$3+:} false; then :
1635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638   $as_echo_n "(cached) " >&6
1639 fi
1640 eval ac_res=\$$3
1641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644   # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h.  */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653   ac_header_compiler=yes
1654 else
1655   ac_header_compiler=no
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1660
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h.  */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669   ac_header_preproc=yes
1670 else
1671   ac_header_preproc=no
1672 fi
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1676
1677 # So?  What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679   yes:no: )
1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684     ;;
1685   no:yes:* )
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ( $as_echo "## -------------------------------------- ##
1697 ## Report this to json-c@googlegroups.com ##
1698 ## -------------------------------------- ##"
1699      ) | sed "s/^/$as_me: WARNING:     /" >&2
1700     ;;
1701 esac
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705   $as_echo_n "(cached) " >&6
1706 else
1707   eval "$3=\$ac_header_compiler"
1708 fi
1709 eval ac_res=\$$3
1710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 fi
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_mongrel
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735   eval "$3=yes"
1736 else
1737   eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749 # -------------------------------------------
1750 # Tests whether TYPE exists after having included INCLUDES, setting cache
1751 # variable VAR accordingly.
1752 ac_fn_c_check_type ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758   $as_echo_n "(cached) " >&6
1759 else
1760   eval "$3=no"
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $4
1764 int
1765 main ()
1766 {
1767 if (sizeof ($2))
1768          return 0;
1769   ;
1770   return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 int
1778 main ()
1779 {
1780 if (sizeof (($2)))
1781             return 0;
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787
1788 else
1789   eval "$3=yes"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_type
1801
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_link ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   rm -f conftest.$ac_objext conftest$ac_exeext
1809   if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_link") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } && {
1825          test -z "$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        } && test -s conftest$ac_exeext && {
1828          test "$cross_compiling" = yes ||
1829          test -x conftest$ac_exeext
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836         ac_retval=1
1837 fi
1838   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840   # interfere with the next link command; also delete a directory that is
1841   # left behind by Apple's compiler.  We do this before executing the actions.
1842   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844   as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_link
1847
1848 # ac_fn_c_check_func LINENO FUNC VAR
1849 # ----------------------------------
1850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1851 ac_fn_c_check_func ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1863 #define $2 innocuous_$2
1864
1865 /* System header to define __stub macros and hopefully few prototypes,
1866     which can conflict with char $2 (); below.
1867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868     <limits.h> exists even on freestanding compilers.  */
1869
1870 #ifdef __STDC__
1871 # include <limits.h>
1872 #else
1873 # include <assert.h>
1874 #endif
1875
1876 #undef $2
1877
1878 /* Override any GCC internal prototype to avoid an error.
1879    Use char because int might match the return type of a GCC
1880    builtin and then its argument prototype would still apply.  */
1881 #ifdef __cplusplus
1882 extern "C"
1883 #endif
1884 char $2 ();
1885 /* The GNU C library defines this for functions which it implements
1886     to always fail with ENOSYS.  Some functions are actually named
1887     something starting with __ and the normal name is an alias.  */
1888 #if defined __stub_$2 || defined __stub___$2
1889 choke me
1890 #endif
1891
1892 int
1893 main ()
1894 {
1895 return $2 ();
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_link "$LINENO"; then :
1901   eval "$3=yes"
1902 else
1903   eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext \
1906     conftest$ac_exeext conftest.$ac_ext
1907 fi
1908 eval ac_res=\$$3
1909                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_func
1914
1915 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1916 # ---------------------------------------------
1917 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1918 # accordingly.
1919 ac_fn_c_check_decl ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   as_decl_name=`echo $2|sed 's/ *(.*//'`
1923   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1925 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1926 if eval \${$3+:} false; then :
1927   $as_echo_n "(cached) " >&6
1928 else
1929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 int
1933 main ()
1934 {
1935 #ifndef $as_decl_name
1936 #ifdef __cplusplus
1937   (void) $as_decl_use;
1938 #else
1939   (void) $as_decl_name;
1940 #endif
1941 #endif
1942
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948   eval "$3=yes"
1949 else
1950   eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_decl
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1963
1964 It was created by json-c $as_me 0.13.1, which was
1965 generated by GNU Autoconf 2.69.  Invocation command line was
1966
1967   $ $0 $@
1968
1969 _ACEOF
1970 exec 5>>config.log
1971 {
1972 cat <<_ASUNAME
1973 ## --------- ##
1974 ## Platform. ##
1975 ## --------- ##
1976
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994 _ASUNAME
1995
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001     $as_echo "PATH: $as_dir"
2002   done
2003 IFS=$as_save_IFS
2004
2005 } >&5
2006
2007 cat >&5 <<_ACEOF
2008
2009
2010 ## ----------- ##
2011 ## Core tests. ##
2012 ## ----------- ##
2013
2014 _ACEOF
2015
2016
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2022 ac_configure_args=
2023 ac_configure_args0=
2024 ac_configure_args1=
2025 ac_must_keep_next=false
2026 for ac_pass in 1 2
2027 do
2028   for ac_arg
2029   do
2030     case $ac_arg in
2031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033     | -silent | --silent | --silen | --sile | --sil)
2034       continue ;;
2035     *\'*)
2036       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037     esac
2038     case $ac_pass in
2039     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040     2)
2041       as_fn_append ac_configure_args1 " '$ac_arg'"
2042       if test $ac_must_keep_next = true; then
2043         ac_must_keep_next=false # Got value, back to normal.
2044       else
2045         case $ac_arg in
2046           *=* | --config-cache | -C | -disable-* | --disable-* \
2047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049           | -with-* | --with-* | -without-* | --without-* | --x)
2050             case "$ac_configure_args0 " in
2051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052             esac
2053             ;;
2054           -* ) ac_must_keep_next=true ;;
2055         esac
2056       fi
2057       as_fn_append ac_configure_args " '$ac_arg'"
2058       ;;
2059     esac
2060   done
2061 done
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2064
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log.  We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071   # Save into config.log some information that might help in debugging.
2072   {
2073     echo
2074
2075     $as_echo "## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##"
2078     echo
2079     # The following way of writing the cache mishandles newlines in values,
2080 (
2081   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082     eval ac_val=\$$ac_var
2083     case $ac_val in #(
2084     *${as_nl}*)
2085       case $ac_var in #(
2086       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088       esac
2089       case $ac_var in #(
2090       _ | IFS | as_nl) ;; #(
2091       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092       *) { eval $ac_var=; unset $ac_var;} ;;
2093       esac ;;
2094     esac
2095   done
2096   (set) 2>&1 |
2097     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098     *${as_nl}ac_space=\ *)
2099       sed -n \
2100         "s/'\''/'\''\\\\'\'''\''/g;
2101           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102       ;; #(
2103     *)
2104       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105       ;;
2106     esac |
2107     sort
2108 )
2109     echo
2110
2111     $as_echo "## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##"
2114     echo
2115     for ac_var in $ac_subst_vars
2116     do
2117       eval ac_val=\$$ac_var
2118       case $ac_val in
2119       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120       esac
2121       $as_echo "$ac_var='\''$ac_val'\''"
2122     done | sort
2123     echo
2124
2125     if test -n "$ac_subst_files"; then
2126       $as_echo "## ------------------- ##
2127 ## File substitutions. ##
2128 ## ------------------- ##"
2129       echo
2130       for ac_var in $ac_subst_files
2131       do
2132         eval ac_val=\$$ac_var
2133         case $ac_val in
2134         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135         esac
2136         $as_echo "$ac_var='\''$ac_val'\''"
2137       done | sort
2138       echo
2139     fi
2140
2141     if test -s confdefs.h; then
2142       $as_echo "## ----------- ##
2143 ## confdefs.h. ##
2144 ## ----------- ##"
2145       echo
2146       cat confdefs.h
2147       echo
2148     fi
2149     test "$ac_signal" != 0 &&
2150       $as_echo "$as_me: caught signal $ac_signal"
2151     $as_echo "$as_me: exit $exit_status"
2152   } >&5
2153   rm -f core *.core core.conftest.* &&
2154     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155     exit $exit_status
2156 ' 0
2157 for ac_signal in 1 2 13 15; do
2158   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159 done
2160 ac_signal=0
2161
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2164
2165 $as_echo "/* confdefs.h */" > confdefs.h
2166
2167 # Predefined preprocessor variables.
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2191 _ACEOF
2192
2193
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2196 ac_site_file1=NONE
2197 ac_site_file2=NONE
2198 if test -n "$CONFIG_SITE"; then
2199   # We do not want a PATH search for config.site.
2200   case $CONFIG_SITE in #((
2201     -*)  ac_site_file1=./$CONFIG_SITE;;
2202     */*) ac_site_file1=$CONFIG_SITE;;
2203     *)   ac_site_file1=./$CONFIG_SITE;;
2204   esac
2205 elif test "x$prefix" != xNONE; then
2206   ac_site_file1=$prefix/share/config.site
2207   ac_site_file2=$prefix/etc/config.site
2208 else
2209   ac_site_file1=$ac_default_prefix/share/config.site
2210   ac_site_file2=$ac_default_prefix/etc/config.site
2211 fi
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213 do
2214   test "x$ac_site_file" = xNONE && continue
2215   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218     sed 's/^/| /' "$ac_site_file" >&5
2219     . "$ac_site_file" \
2220       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See \`config.log' for more details" "$LINENO" 5; }
2224   fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228   # Some versions of bash will fail to source /dev/null (special files
2229   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2233     case $cache_file in
2234       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235       *)                      . "./$cache_file";;
2236     esac
2237   fi
2238 else
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2241   >$cache_file
2242 fi
2243
2244 # Check that the precious variables saved in the cache have kept the same
2245 # value.
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249   eval ac_new_set=\$ac_env_${ac_var}_set
2250   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251   eval ac_new_val=\$ac_env_${ac_var}_value
2252   case $ac_old_set,$ac_new_set in
2253     set,)
2254       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256       ac_cache_corrupted=: ;;
2257     ,set)
2258       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260       ac_cache_corrupted=: ;;
2261     ,);;
2262     *)
2263       if test "x$ac_old_val" != "x$ac_new_val"; then
2264         # differences in whitespace do not lead to failure.
2265         ac_old_val_w=`echo x $ac_old_val`
2266         ac_new_val_w=`echo x $ac_new_val`
2267         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270           ac_cache_corrupted=:
2271         else
2272           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274           eval $ac_var=\$ac_old_val
2275         fi
2276         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2277 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2278         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2279 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2280       fi;;
2281   esac
2282   # Pass precious variables to config.status.
2283   if test "$ac_new_set" = set; then
2284     case $ac_new_val in
2285     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286     *) ac_arg=$ac_var=$ac_new_val ;;
2287     esac
2288     case " $ac_configure_args " in
2289       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291     esac
2292   fi
2293 done
2294 if $ac_cache_corrupted; then
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300 fi
2301 ## -------------------- ##
2302 ## Main body of script. ##
2303 ## -------------------- ##
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
2313 am__api_version='1.14'
2314
2315 ac_aux_dir=
2316 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2317   if test -f "$ac_dir/install-sh"; then
2318     ac_aux_dir=$ac_dir
2319     ac_install_sh="$ac_aux_dir/install-sh -c"
2320     break
2321   elif test -f "$ac_dir/install.sh"; then
2322     ac_aux_dir=$ac_dir
2323     ac_install_sh="$ac_aux_dir/install.sh -c"
2324     break
2325   elif test -f "$ac_dir/shtool"; then
2326     ac_aux_dir=$ac_dir
2327     ac_install_sh="$ac_aux_dir/shtool install -c"
2328     break
2329   fi
2330 done
2331 if test -z "$ac_aux_dir"; then
2332   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2333 fi
2334
2335 # These three variables are undocumented and unsupported,
2336 # and are intended to be withdrawn in a future Autoconf release.
2337 # They can cause serious problems if a builder's source tree is in a directory
2338 # whose full name contains unusual characters.
2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2341 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2342
2343
2344 # Find a good install program.  We prefer a C program (faster),
2345 # so one script is as good as another.  But avoid the broken or
2346 # incompatible versions:
2347 # SysV /etc/install, /usr/sbin/install
2348 # SunOS /usr/etc/install
2349 # IRIX /sbin/install
2350 # AIX /bin/install
2351 # AmigaOS /C/install, which installs bootblocks on floppy discs
2352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2355 # OS/2's system install, which has a completely different semantic
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 # Reject install programs that cannot install multiple files.
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2359 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2360 if test -z "$INSTALL"; then
2361 if ${ac_cv_path_install+:} false; then :
2362   $as_echo_n "(cached) " >&6
2363 else
2364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369     # Account for people who put trailing slashes in PATH elements.
2370 case $as_dir/ in #((
2371   ./ | .// | /[cC]/* | \
2372   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2373   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2374   /usr/ucb/* ) ;;
2375   *)
2376     # OSF1 and SCO ODT 3.0 have their own names for install.
2377     # Don't use installbsd from OSF since it installs stuff as root
2378     # by default.
2379     for ac_prog in ginstall scoinst install; do
2380       for ac_exec_ext in '' $ac_executable_extensions; do
2381         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2382           if test $ac_prog = install &&
2383             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2384             # AIX install.  It has an incompatible calling convention.
2385             :
2386           elif test $ac_prog = install &&
2387             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388             # program-specific install script used by HP pwplus--don't use.
2389             :
2390           else
2391             rm -rf conftest.one conftest.two conftest.dir
2392             echo one > conftest.one
2393             echo two > conftest.two
2394             mkdir conftest.dir
2395             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2396               test -s conftest.one && test -s conftest.two &&
2397               test -s conftest.dir/conftest.one &&
2398               test -s conftest.dir/conftest.two
2399             then
2400               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2401               break 3
2402             fi
2403           fi
2404         fi
2405       done
2406     done
2407     ;;
2408 esac
2409
2410   done
2411 IFS=$as_save_IFS
2412
2413 rm -rf conftest.one conftest.two conftest.dir
2414
2415 fi
2416   if test "${ac_cv_path_install+set}" = set; then
2417     INSTALL=$ac_cv_path_install
2418   else
2419     # As a last resort, use the slow shell script.  Don't cache a
2420     # value for INSTALL within a source directory, because that will
2421     # break other packages using the cache if that directory is
2422     # removed, or if the value is a relative name.
2423     INSTALL=$ac_install_sh
2424   fi
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2427 $as_echo "$INSTALL" >&6; }
2428
2429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2430 # It thinks the first close brace ends the variable substitution.
2431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2432
2433 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2434
2435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2436
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2438 $as_echo_n "checking whether build environment is sane... " >&6; }
2439 # Reject unsafe characters in $srcdir or the absolute working directory
2440 # name.  Accept space and tab only in the latter.
2441 am_lf='
2442 '
2443 case `pwd` in
2444   *[\\\"\#\$\&\'\`$am_lf]*)
2445     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2446 esac
2447 case $srcdir in
2448   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2449     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2450 esac
2451
2452 # Do 'set' in a subshell so we don't clobber the current shell's
2453 # arguments.  Must try -L first in case configure is actually a
2454 # symlink; some systems play weird games with the mod time of symlinks
2455 # (eg FreeBSD returns the mod time of the symlink's containing
2456 # directory).
2457 if (
2458    am_has_slept=no
2459    for am_try in 1 2; do
2460      echo "timestamp, slept: $am_has_slept" > conftest.file
2461      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2462      if test "$*" = "X"; then
2463         # -L didn't work.
2464         set X `ls -t "$srcdir/configure" conftest.file`
2465      fi
2466      if test "$*" != "X $srcdir/configure conftest.file" \
2467         && test "$*" != "X conftest.file $srcdir/configure"; then
2468
2469         # If neither matched, then we have a broken ls.  This can happen
2470         # if, for instance, CONFIG_SHELL is bash and it inherits a
2471         # broken ls alias from the environment.  This has actually
2472         # happened.  Such a system could not be considered "sane".
2473         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2474   alias in your environment" "$LINENO" 5
2475      fi
2476      if test "$2" = conftest.file || test $am_try -eq 2; then
2477        break
2478      fi
2479      # Just in case.
2480      sleep 1
2481      am_has_slept=yes
2482    done
2483    test "$2" = conftest.file
2484    )
2485 then
2486    # Ok.
2487    :
2488 else
2489    as_fn_error $? "newly created file is older than distributed files!
2490 Check your system clock" "$LINENO" 5
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2494 # If we didn't sleep, we still need to ensure time stamps of config.status and
2495 # generated files are strictly newer.
2496 am_sleep_pid=
2497 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2498   ( sleep 1 ) &
2499   am_sleep_pid=$!
2500 fi
2501
2502 rm -f conftest.file
2503
2504 test "$program_prefix" != NONE &&
2505   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2506 # Use a double $ so make ignores it.
2507 test "$program_suffix" != NONE &&
2508   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2509 # Double any \ or $.
2510 # By default was `s,x,x', remove it if useless.
2511 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2512 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2513
2514 # Expand $ac_aux_dir to an absolute path.
2515 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2516
2517 if test x"${MISSING+set}" != xset; then
2518   case $am_aux_dir in
2519   *\ * | *\     *)
2520     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2521   *)
2522     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2523   esac
2524 fi
2525 # Use eval to expand $SHELL
2526 if eval "$MISSING --is-lightweight"; then
2527   am_missing_run="$MISSING "
2528 else
2529   am_missing_run=
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2531 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2532 fi
2533
2534 if test x"${install_sh}" != xset; then
2535   case $am_aux_dir in
2536   *\ * | *\     *)
2537     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2538   *)
2539     install_sh="\${SHELL} $am_aux_dir/install-sh"
2540   esac
2541 fi
2542
2543 # Installed binaries are usually stripped using 'strip' when the user
2544 # run "make install-strip".  However 'strip' might not be the right
2545 # tool to use in cross-compilation environments, therefore Automake
2546 # will honor the 'STRIP' environment variable to overrule this program.
2547 if test "$cross_compiling" != no; then
2548   if test -n "$ac_tool_prefix"; then
2549   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2550 set dummy ${ac_tool_prefix}strip; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_STRIP+:} false; then :
2554   $as_echo_n "(cached) " >&6
2555 else
2556   if test -n "$STRIP"; then
2557   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564     for ac_exec_ext in '' $ac_executable_extensions; do
2565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571   done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 STRIP=$ac_cv_prog_STRIP
2577 if test -n "$STRIP"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2579 $as_echo "$STRIP" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$ac_cv_prog_STRIP"; then
2588   ac_ct_STRIP=$STRIP
2589   # Extract the first word of "strip", so it can be a program name with args.
2590 set dummy strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test -n "$ac_ct_STRIP"; then
2597   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604     for ac_exec_ext in '' $ac_executable_extensions; do
2605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606     ac_cv_prog_ac_ct_STRIP="strip"
2607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611   done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2617 if test -n "$ac_ct_STRIP"; then
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2619 $as_echo "$ac_ct_STRIP" >&6; }
2620 else
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 fi
2624
2625   if test "x$ac_ct_STRIP" = x; then
2626     STRIP=":"
2627   else
2628     case $cross_compiling:$ac_tool_warned in
2629 yes:)
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2632 ac_tool_warned=yes ;;
2633 esac
2634     STRIP=$ac_ct_STRIP
2635   fi
2636 else
2637   STRIP="$ac_cv_prog_STRIP"
2638 fi
2639
2640 fi
2641 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2642
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2644 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2645 if test -z "$MKDIR_P"; then
2646   if ${ac_cv_path_mkdir+:} false; then :
2647   $as_echo_n "(cached) " >&6
2648 else
2649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     for ac_prog in mkdir gmkdir; do
2655          for ac_exec_ext in '' $ac_executable_extensions; do
2656            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2657            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2658              'mkdir (GNU coreutils) '* | \
2659              'mkdir (coreutils) '* | \
2660              'mkdir (fileutils) '4.1*)
2661                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2662                break 3;;
2663            esac
2664          done
2665        done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670
2671   test -d ./--version && rmdir ./--version
2672   if test "${ac_cv_path_mkdir+set}" = set; then
2673     MKDIR_P="$ac_cv_path_mkdir -p"
2674   else
2675     # As a last resort, use the slow shell script.  Don't cache a
2676     # value for MKDIR_P within a source directory, because that will
2677     # break other packages using the cache if that directory is
2678     # removed, or if the value is a relative name.
2679     MKDIR_P="$ac_install_sh -d"
2680   fi
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2683 $as_echo "$MKDIR_P" >&6; }
2684
2685 for ac_prog in gawk mawk nawk awk
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_AWK+:} false; then :
2692   $as_echo_n "(cached) " >&6
2693 else
2694   if test -n "$AWK"; then
2695   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     for ac_exec_ext in '' $ac_executable_extensions; do
2703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704     ac_cv_prog_AWK="$ac_prog"
2705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709   done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 AWK=$ac_cv_prog_AWK
2715 if test -n "$AWK"; then
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2717 $as_echo "$AWK" >&6; }
2718 else
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724   test -n "$AWK" && break
2725 done
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2728 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2729 set x ${MAKE-make}
2730 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2731 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   cat >conftest.make <<\_ACEOF
2735 SHELL = /bin/sh
2736 all:
2737         @echo '@@@%%%=$(MAKE)=@@@%%%'
2738 _ACEOF
2739 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2741   *@@@%%%=?*=@@@%%%*)
2742     eval ac_cv_prog_make_${ac_make}_set=yes;;
2743   *)
2744     eval ac_cv_prog_make_${ac_make}_set=no;;
2745 esac
2746 rm -f conftest.make
2747 fi
2748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2750 $as_echo "yes" >&6; }
2751   SET_MAKE=
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755   SET_MAKE="MAKE=${MAKE-make}"
2756 fi
2757
2758 rm -rf .tst 2>/dev/null
2759 mkdir .tst 2>/dev/null
2760 if test -d .tst; then
2761   am__leading_dot=.
2762 else
2763   am__leading_dot=_
2764 fi
2765 rmdir .tst 2>/dev/null
2766
2767 # Check whether --enable-silent-rules was given.
2768 if test "${enable_silent_rules+set}" = set; then :
2769   enableval=$enable_silent_rules;
2770 fi
2771
2772 case $enable_silent_rules in # (((
2773   yes) AM_DEFAULT_VERBOSITY=0;;
2774    no) AM_DEFAULT_VERBOSITY=1;;
2775     *) AM_DEFAULT_VERBOSITY=1;;
2776 esac
2777 am_make=${MAKE-make}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2779 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2780 if ${am_cv_make_support_nested_variables+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if $as_echo 'TRUE=$(BAR$(V))
2784 BAR0=false
2785 BAR1=true
2786 V=1
2787 am__doit:
2788         @$(TRUE)
2789 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2790   am_cv_make_support_nested_variables=yes
2791 else
2792   am_cv_make_support_nested_variables=no
2793 fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2796 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2797 if test $am_cv_make_support_nested_variables = yes; then
2798     AM_V='$(V)'
2799   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2800 else
2801   AM_V=$AM_DEFAULT_VERBOSITY
2802   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2803 fi
2804 AM_BACKSLASH='\'
2805
2806 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2807   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2808   # is not polluted with repeated "-I."
2809   am__isrc=' -I$(srcdir)'
2810   # test to see if srcdir already configured
2811   if test -f $srcdir/config.status; then
2812     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2813   fi
2814 fi
2815
2816 # test whether we have cygpath
2817 if test -z "$CYGPATH_W"; then
2818   if (cygpath --version) >/dev/null 2>/dev/null; then
2819     CYGPATH_W='cygpath -w'
2820   else
2821     CYGPATH_W=echo
2822   fi
2823 fi
2824
2825
2826 # Define the identity of the package.
2827  PACKAGE='json-c'
2828  VERSION='0.13.1'
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE "$PACKAGE"
2833 _ACEOF
2834
2835
2836 cat >>confdefs.h <<_ACEOF
2837 #define VERSION "$VERSION"
2838 _ACEOF
2839
2840 # Some tools Automake needs.
2841
2842 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2843
2844
2845 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2846
2847
2848 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2849
2850
2851 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2852
2853
2854 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855
2856 # For better backward compatibility.  To be removed once Automake 1.9.x
2857 # dies out for good.  For more background, see:
2858 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2859 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2860 mkdir_p='$(MKDIR_P)'
2861
2862 # We need awk for the "check" target.  The system "awk" is bad on
2863 # some platforms.
2864 # Always define AMTAR for backward compatibility.  Yes, it's still used
2865 # in the wild :-(  We should find a proper way to deprecate it ...
2866 AMTAR='$${TAR-tar}'
2867
2868
2869 # We'll loop over all known methods to create a tar archive until one works.
2870 _am_tools='gnutar  pax cpio none'
2871
2872 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2873
2874
2875
2876
2877
2878
2879 # POSIX will say in a future version that running "rm -f" with no argument
2880 # is OK; and we want to be able to make that assumption in our Makefile
2881 # recipes.  So use an aggressive probe to check that the usage we want is
2882 # actually supported "in the wild" to an acceptable degree.
2883 # See automake bug#10828.
2884 # To make any issue more visible, cause the running configure to be aborted
2885 # by default if the 'rm' program in use doesn't match our expectations; the
2886 # user can still override this though.
2887 if rm -f && rm -fr && rm -rf; then : OK; else
2888   cat >&2 <<'END'
2889 Oops!
2890
2891 Your 'rm' program seems unable to run without file operands specified
2892 on the command line, even when the '-f' option is present.  This is contrary
2893 to the behaviour of most rm programs out there, and not conforming with
2894 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2895
2896 Please tell bug-automake@gnu.org about your system, including the value
2897 of your $PATH and any error possibly output before this message.  This
2898 can help us improve future automake versions.
2899
2900 END
2901   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2902     echo 'Configuration will proceed anyway, since you have set the' >&2
2903     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2904     echo >&2
2905   else
2906     cat >&2 <<'END'
2907 Aborting the configuration process, to ensure you take notice of the issue.
2908
2909 You can download and install GNU coreutils to get an 'rm' implementation
2910 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2911
2912 If you want to complete the configuration process using your problematic
2913 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2914 to "yes", and re-run configure.
2915
2916 END
2917     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2918   fi
2919 fi
2920
2921
2922
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2925 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2926 set x ${MAKE-make}
2927 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2928 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   cat >conftest.make <<\_ACEOF
2932 SHELL = /bin/sh
2933 all:
2934         @echo '@@@%%%=$(MAKE)=@@@%%%'
2935 _ACEOF
2936 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2938   *@@@%%%=?*=@@@%%%*)
2939     eval ac_cv_prog_make_${ac_make}_set=yes;;
2940   *)
2941     eval ac_cv_prog_make_${ac_make}_set=no;;
2942 esac
2943 rm -f conftest.make
2944 fi
2945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948   SET_MAKE=
2949 else
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952   SET_MAKE="MAKE=${MAKE-make}"
2953 fi
2954
2955
2956 # Make sure we can run config.sub.
2957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2958   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2961 $as_echo_n "checking build system type... " >&6; }
2962 if ${ac_cv_build+:} false; then :
2963   $as_echo_n "(cached) " >&6
2964 else
2965   ac_build_alias=$build_alias
2966 test "x$ac_build_alias" = x &&
2967   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2968 test "x$ac_build_alias" = x &&
2969   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2971   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2972
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2975 $as_echo "$ac_cv_build" >&6; }
2976 case $ac_cv_build in
2977 *-*-*) ;;
2978 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2979 esac
2980 build=$ac_cv_build
2981 ac_save_IFS=$IFS; IFS='-'
2982 set x $ac_cv_build
2983 shift
2984 build_cpu=$1
2985 build_vendor=$2
2986 shift; shift
2987 # Remember, the first character of IFS is used to create $*,
2988 # except with old shells:
2989 build_os=$*
2990 IFS=$ac_save_IFS
2991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2992
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2995 $as_echo_n "checking host system type... " >&6; }
2996 if ${ac_cv_host+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   if test "x$host_alias" = x; then
3000   ac_cv_host=$ac_cv_build
3001 else
3002   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3003     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3004 fi
3005
3006 fi
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3008 $as_echo "$ac_cv_host" >&6; }
3009 case $ac_cv_host in
3010 *-*-*) ;;
3011 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3012 esac
3013 host=$ac_cv_host
3014 ac_save_IFS=$IFS; IFS='-'
3015 set x $ac_cv_host
3016 shift
3017 host_cpu=$1
3018 host_vendor=$2
3019 shift; shift
3020 # Remember, the first character of IFS is used to create $*,
3021 # except with old shells:
3022 host_os=$*
3023 IFS=$ac_save_IFS
3024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3025
3026
3027
3028 # Check whether --enable-threading was given.
3029 if test "${enable_threading+set}" = set; then :
3030   enableval=$enable_threading; if test x$enableval = xyes; then
3031   enable_threading=yes
3032
3033 $as_echo "#define ENABLE_THREADING 1" >>confdefs.h
3034
3035 fi
3036 fi
3037
3038
3039 if test "x$enable_threading" = "xyes"; then
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Partial multi-threaded support enabled." >&5
3041 $as_echo "Partial multi-threaded support enabled." >&6; }
3042 else
3043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Multi-threaded support disabled. Use --enable-threading to enable." >&5
3044 $as_echo "Multi-threaded support disabled. Use --enable-threading to enable." >&6; }
3045 fi
3046
3047 # Check whether --enable-rdrand was given.
3048 if test "${enable_rdrand+set}" = set; then :
3049   enableval=$enable_rdrand; if test x$enableval = xyes; then
3050   enable_rdrand=yes
3051
3052 $as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
3053
3054 fi
3055 fi
3056
3057
3058 if test "x$enable_rdrand" = "xyes"; then
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
3060 $as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
3063 $as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
3064 fi
3065
3066 # enable silent build by default
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069   enableval=$enable_silent_rules;
3070 fi
3071
3072 case $enable_silent_rules in # (((
3073   yes) AM_DEFAULT_VERBOSITY=0;;
3074    no) AM_DEFAULT_VERBOSITY=1;;
3075     *) AM_DEFAULT_VERBOSITY=0;;
3076 esac
3077 am_make=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if $as_echo 'TRUE=$(BAR$(V))
3084 BAR0=false
3085 BAR1=true
3086 V=1
3087 am__doit:
3088         @$(TRUE)
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090   am_cv_make_support_nested_variables=yes
3091 else
3092   am_cv_make_support_nested_variables=no
3093 fi
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3098     AM_V='$(V)'
3099   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100 else
3101   AM_V=$AM_DEFAULT_VERBOSITY
3102   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103 fi
3104 AM_BACKSLASH='\'
3105
3106
3107 # Checks for programs.
3108
3109 # Checks for libraries.
3110
3111 # Checks for header files.
3112 DEPDIR="${am__leading_dot}deps"
3113
3114 ac_config_commands="$ac_config_commands depfiles"
3115
3116
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3119 am__doit:
3120         @echo this is the am__doit target
3121 .PHONY: am__doit
3122 END
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126 am__include="#"
3127 am__quote=
3128 _am_result=none
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from 'make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134   am__include=include
3135   am__quote=
3136   _am_result=GNU
3137   ;;
3138 esac
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141    echo '.include "confinc"' > confmf
3142    case `$am_make -s -f confmf 2> /dev/null` in #(
3143    *the\ am__doit\ target*)
3144      am__include=.include
3145      am__quote="\""
3146      _am_result=BSD
3147      ;;
3148    esac
3149 fi
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3155
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158   enableval=$enable_dependency_tracking;
3159 fi
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162   am_depcomp="$ac_aux_dir/depcomp"
3163   AMDEPBACKSLASH='\'
3164   am__nodep='_no'
3165 fi
3166  if test "x$enable_dependency_tracking" != xno; then
3167   AMDEP_TRUE=
3168   AMDEP_FALSE='#'
3169 else
3170   AMDEP_TRUE='#'
3171   AMDEP_FALSE=
3172 fi
3173
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$CC"; then
3189   ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196     for ac_exec_ext in '' $ac_executable_extensions; do
3197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 fi
3219 if test -z "$ac_cv_prog_CC"; then
3220   ac_ct_CC=$CC
3221   # Extract the first word of "gcc", so it can be a program name with args.
3222 set dummy gcc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$ac_ct_CC"; then
3229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     ac_cv_prog_ac_ct_CC="gcc"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257   if test "x$ac_ct_CC" = x; then
3258     CC=""
3259   else
3260     case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266     CC=$ac_ct_CC
3267   fi
3268 else
3269   CC="$ac_cv_prog_CC"
3270 fi
3271
3272 if test -z "$CC"; then
3273           if test -n "$ac_tool_prefix"; then
3274     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$CC"; then
3282   ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_prog_CC="${ac_tool_prefix}cc"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311   fi
3312 fi
3313 if test -z "$CC"; then
3314   # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_CC+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$CC"; then
3322   ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324   ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333        ac_prog_rejected=yes
3334        continue
3335      fi
3336     ac_cv_prog_CC="cc"
3337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338     break 2
3339   fi
3340 done
3341   done
3342 IFS=$as_save_IFS
3343
3344 if test $ac_prog_rejected = yes; then
3345   # We found a bogon in the path, so make sure we never use it.
3346   set dummy $ac_cv_prog_CC
3347   shift
3348   if test $# != 0; then
3349     # We chose a different compiler from the bogus one.
3350     # However, it has the same basename, so the bogon will be chosen
3351     # first if we set CC to just the basename; use the full file name.
3352     shift
3353     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354   fi
3355 fi
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$CC"; then
3370   if test -n "$ac_tool_prefix"; then
3371   for ac_prog in cl.exe
3372   do
3373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$CC"; then
3381   ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410     test -n "$CC" && break
3411   done
3412 fi
3413 if test -z "$CC"; then
3414   ac_ct_CC=$CC
3415   for ac_prog in cl.exe
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_ac_ct_CC="$ac_prog"
3435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439   done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453
3454   test -n "$ac_ct_CC" && break
3455 done
3456
3457   if test "x$ac_ct_CC" = x; then
3458     CC=""
3459   else
3460     case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466     CC=$ac_ct_CC
3467   fi
3468 fi
3469
3470 fi
3471
3472
3473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "no acceptable C compiler found in \$PATH
3476 See \`config.log' for more details" "$LINENO" 5; }
3477
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3480 set X $ac_compile
3481 ac_compiler=$2
3482 for ac_option in --version -v -V -qversion; do
3483   { { ac_try="$ac_compiler $ac_option >&5"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491   ac_status=$?
3492   if test -s conftest.err; then
3493     sed '10a\
3494 ... rest of stderr output deleted ...
3495          10q' conftest.err >conftest.er1
3496     cat conftest.er1 >&5
3497   fi
3498   rm -f conftest.er1 conftest.err
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }
3501 done
3502
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3518 # of exeext.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525
3526 ac_rmfiles=
3527 for ac_file in $ac_files
3528 do
3529   case $ac_file in
3530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532   esac
3533 done
3534 rm -f $ac_rmfiles
3535
3536 if { { ac_try="$ac_link_default"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543   (eval "$ac_link_default") 2>&5
3544   ac_status=$?
3545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546   test $ac_status = 0; }; then :
3547   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3551 # Autoconf.
3552 for ac_file in $ac_files ''
3553 do
3554   test -f "$ac_file" || continue
3555   case $ac_file in
3556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557         ;;
3558     [ab].out )
3559         # We found the default executable, but exeext='' is most
3560         # certainly right.
3561         break;;
3562     *.* )
3563         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564         then :; else
3565            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566         fi
3567         # We set ac_cv_exeext here because the later test for it is not
3568         # safe: cross compilers may not add the suffix if given an `-o'
3569         # argument, so we may need to know it at that point already.
3570         # Even if this section looks crufty: it has the advantage of
3571         # actually working.
3572         break;;
3573     * )
3574         break;;
3575   esac
3576 done
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3578
3579 else
3580   ac_file=''
3581 fi
3582 if test -z "$ac_file"; then :
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error 77 "C compiler cannot create executables
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3601
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_link") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; then :
3617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 # `rm'.
3621 for ac_file in conftest.exe conftest conftest.*; do
3622   test -f "$ac_file" || continue
3623   case $ac_file in
3624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626           break;;
3627     * ) break;;
3628   esac
3629 done
3630 else
3631   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 fi
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3639
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3642 ac_exeext=$EXEEXT
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h.  */
3645 #include <stdio.h>
3646 int
3647 main ()
3648 {
3649 FILE *f = fopen ("conftest.out", "w");
3650  return ferror (f) || fclose (f) != 0;
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run.  If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662   { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_link") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }
3673   if { ac_try='./conftest$ac_cv_exeext'
3674   { { case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683   test $ac_status = 0; }; }; then
3684     cross_compiling=no
3685   else
3686     if test "$cross_compiling" = maybe; then
3687         cross_compiling=yes
3688     else
3689         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details" "$LINENO" 5; }
3694     fi
3695   fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3699
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if ${ac_cv_objext+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726   (eval "$ac_compile") 2>&5
3727   ac_status=$?
3728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729   test $ac_status = 0; }; then :
3730   for ac_file in conftest.o conftest.obj conftest.*; do
3731   test -f "$ac_file" || continue;
3732   case $ac_file in
3733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735        break;;
3736   esac
3737 done
3738 else
3739   $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3752 ac_objext=$OBJEXT
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if ${ac_cv_c_compiler_gnu+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764 #ifndef __GNUC__
3765        choke me
3766 #endif
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773   ac_compiler_gnu=yes
3774 else
3775   ac_compiler_gnu=no
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3784   GCC=yes
3785 else
3786   GCC=
3787 fi
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if ${ac_cv_prog_cc_g+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   ac_save_c_werror_flag=$ac_c_werror_flag
3796    ac_c_werror_flag=yes
3797    ac_cv_prog_cc_g=no
3798    CFLAGS="-g"
3799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811   ac_cv_prog_cc_g=yes
3812 else
3813   CFLAGS=""
3814       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826
3827 else
3828   ac_c_werror_flag=$ac_save_c_werror_flag
3829          CFLAGS="-g"
3830          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842   ac_cv_prog_cc_g=yes
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849    ac_c_werror_flag=$ac_save_c_werror_flag
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854   CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856   if test "$GCC" = yes; then
3857     CFLAGS="-g -O2"
3858   else
3859     CFLAGS="-g"
3860   fi
3861 else
3862   if test "$GCC" = yes; then
3863     CFLAGS="-O2"
3864   else
3865     CFLAGS=
3866   fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if ${ac_cv_prog_cc_c89+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_cv_prog_cc_c89=no
3874 ac_save_CC=$CC
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877 #include <stdarg.h>
3878 #include <stdio.h>
3879 struct stat;
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3884      char **p;
3885      int i;
3886 {
3887   return p[i];
3888 }
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3890 {
3891   char *s;
3892   va_list v;
3893   va_start (v,p);
3894   s = g (p, va_arg (v,int));
3895   va_end (v);
3896   return s;
3897 }
3898
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3900    function prototypes and stuff, but not '\xHH' hex character constants.
3901    These don't provoke an error unfortunately, instead are silently treated
3902    as 'x'.  The following induces an error, until -std is added to get
3903    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3904    array size at least.  It's necessary to write '\x00'==0 to get something
3905    that's true only with -std.  */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909    inside strings and character constants.  */
3910 #define FOO(x) 'x'
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 int argc;
3918 char **argv;
3919 int
3920 main ()
3921 {
3922 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930   CC="$ac_save_CC $ac_arg"
3931   if ac_fn_c_try_compile "$LINENO"; then :
3932   ac_cv_prog_cc_c89=$ac_arg
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext
3935   test "x$ac_cv_prog_cc_c89" != "xno" && break
3936 done
3937 rm -f conftest.$ac_ext
3938 CC=$ac_save_CC
3939
3940 fi
3941 # AC_CACHE_VAL
3942 case "x$ac_cv_prog_cc_c89" in
3943   x)
3944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3946   xno)
3947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3949   *)
3950     CC="$CC $ac_cv_prog_cc_c89"
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953 esac
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971 if ${am_cv_prog_cc_c_o+:} false; then :
3972   $as_echo_n "(cached) " >&6
3973 else
3974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976
3977 int
3978 main ()
3979 {
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985   # Make sure it works both with $CC and with simple cc.
3986   # Following AC_PROG_CC_C_O, we do the test twice because some
3987   # compilers refuse to overwrite an existing .o file with -o,
3988   # though they will create one.
3989   am_cv_prog_cc_c_o=yes
3990   for am_i in 1 2; do
3991     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3993    ac_status=$?
3994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995    (exit $ac_status); } \
3996          && test -f conftest2.$ac_objext; then
3997       : OK
3998     else
3999       am_cv_prog_cc_c_o=no
4000       break
4001     fi
4002   done
4003   rm -f core conftest*
4004   unset am_i
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4008 if test "$am_cv_prog_cc_c_o" != yes; then
4009    # Losing compiler, so override with the script.
4010    # FIXME: It is wrong to rewrite CC.
4011    # But if we don't then we get into trouble of one sort or another.
4012    # A longer-term fix would be to have automake use am__CC in this case,
4013    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014    CC="$am_aux_dir/compile $CC"
4015 fi
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022
4023 depcc="$CC"   am_compiler_list=
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031   # We make a subdir and do the tests there.  Otherwise we can end up
4032   # making bogus files that we don't know about and never remove.  For
4033   # instance it was reported that on HP-UX the gcc test will end up
4034   # making a dummy file named 'D' -- because '-MD' means "put the output
4035   # in D".
4036   rm -rf conftest.dir
4037   mkdir conftest.dir
4038   # Copy depcomp to subdir because otherwise we won't find it if we're
4039   # using a relative directory.
4040   cp "$am_depcomp" conftest.dir
4041   cd conftest.dir
4042   # We will build objects and dependencies in a subdirectory because
4043   # it helps to detect inapplicable dependency modes.  For instance
4044   # both Tru64's cc and ICC support -MD to output dependencies as a
4045   # side effect of compilation, but ICC will put the dependencies in
4046   # the current directory while Tru64 will put them in the object
4047   # directory.
4048   mkdir sub
4049
4050   am_cv_CC_dependencies_compiler_type=none
4051   if test "$am_compiler_list" = ""; then
4052      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053   fi
4054   am__universal=false
4055   case " $depcc " in #(
4056      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4057      esac
4058
4059   for depmode in $am_compiler_list; do
4060     # Setup a source with many dependencies, because some compilers
4061     # like to wrap large dependency lists on column 80 (with \), and
4062     # we should not choose a depcomp mode which is confused by this.
4063     #
4064     # We need to recreate these files for each test, as the compiler may
4065     # overwrite some of them when testing with obscure command lines.
4066     # This happens at least with the AIX C compiler.
4067     : > sub/conftest.c
4068     for i in 1 2 3 4 5 6; do
4069       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071       # Solaris 10 /bin/sh.
4072       echo '/* dummy */' > sub/conftst$i.h
4073     done
4074     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4075
4076     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077     # mode.  It turns out that the SunPro C++ compiler does not properly
4078     # handle '-M -o', and we need to detect this.  Also, some Intel
4079     # versions had trouble with output in subdirs.
4080     am__obj=sub/conftest.${OBJEXT-o}
4081     am__minus_obj="-o $am__obj"
4082     case $depmode in
4083     gcc)
4084       # This depmode causes a compiler race in universal mode.
4085       test "$am__universal" = false || continue
4086       ;;
4087     nosideeffect)
4088       # After this tag, mechanisms are not by side-effect, so they'll
4089       # only be used when explicitly requested.
4090       if test "x$enable_dependency_tracking" = xyes; then
4091         continue
4092       else
4093         break
4094       fi
4095       ;;
4096     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097       # This compiler won't grok '-c -o', but also, the minuso test has
4098       # not run yet.  These depmodes are late enough in the game, and
4099       # so weak that their functioning should not be impacted.
4100       am__obj=conftest.${OBJEXT-o}
4101       am__minus_obj=
4102       ;;
4103     none) break ;;
4104     esac
4105     if depmode=$depmode \
4106        source=sub/conftest.c object=$am__obj \
4107        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109          >/dev/null 2>conftest.err &&
4110        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114       # icc doesn't choke on unknown options, it will just issue warnings
4115       # or remarks (even with -Werror).  So we grep stderr for any message
4116       # that says an option was ignored or not supported.
4117       # When given -MP, icc 7.0 and 7.1 complain thusly:
4118       #   icc: Command line warning: ignoring option '-M'; no argument required
4119       # The diagnosis changed in icc 8.0:
4120       #   icc: Command line remark: option '-MP' not supported
4121       if (grep 'ignoring option' conftest.err ||
4122           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123         am_cv_CC_dependencies_compiler_type=$depmode
4124         break
4125       fi
4126     fi
4127   done
4128
4129   cd ..
4130   rm -rf conftest.dir
4131 else
4132   am_cv_CC_dependencies_compiler_type=none
4133 fi
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4139
4140  if
4141   test "x$enable_dependency_tracking" != xno \
4142   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4143   am__fastdepCC_TRUE=
4144   am__fastdepCC_FALSE='#'
4145 else
4146   am__fastdepCC_TRUE='#'
4147   am__fastdepCC_FALSE=
4148 fi
4149
4150
4151
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4153 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4154 if ${ac_cv_prog_cc_c99+:} false; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   ac_cv_prog_cc_c99=no
4158 ac_save_CC=$CC
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h.  */
4161 #include <stdarg.h>
4162 #include <stdbool.h>
4163 #include <stdlib.h>
4164 #include <wchar.h>
4165 #include <stdio.h>
4166
4167 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4168 #define debug(...) fprintf (stderr, __VA_ARGS__)
4169 #define showlist(...) puts (#__VA_ARGS__)
4170 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4171 static void
4172 test_varargs_macros (void)
4173 {
4174   int x = 1234;
4175   int y = 5678;
4176   debug ("Flag");
4177   debug ("X = %d\n", x);
4178   showlist (The first, second, and third items.);
4179   report (x>y, "x is %d but y is %d", x, y);
4180 }
4181
4182 // Check long long types.
4183 #define BIG64 18446744073709551615ull
4184 #define BIG32 4294967295ul
4185 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4186 #if !BIG_OK
4187   your preprocessor is broken;
4188 #endif
4189 #if BIG_OK
4190 #else
4191   your preprocessor is broken;
4192 #endif
4193 static long long int bignum = -9223372036854775807LL;
4194 static unsigned long long int ubignum = BIG64;
4195
4196 struct incomplete_array
4197 {
4198   int datasize;
4199   double data[];
4200 };
4201
4202 struct named_init {
4203   int number;
4204   const wchar_t *name;
4205   double average;
4206 };
4207
4208 typedef const char *ccp;
4209
4210 static inline int
4211 test_restrict (ccp restrict text)
4212 {
4213   // See if C++-style comments work.
4214   // Iterate through items via the restricted pointer.
4215   // Also check for declarations in for loops.
4216   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4217     continue;
4218   return 0;
4219 }
4220
4221 // Check varargs and va_copy.
4222 static void
4223 test_varargs (const char *format, ...)
4224 {
4225   va_list args;
4226   va_start (args, format);
4227   va_list args_copy;
4228   va_copy (args_copy, args);
4229
4230   const char *str;
4231   int number;
4232   float fnumber;
4233
4234   while (*format)
4235     {
4236       switch (*format++)
4237         {
4238         case 's': // string
4239           str = va_arg (args_copy, const char *);
4240           break;
4241         case 'd': // int
4242           number = va_arg (args_copy, int);
4243           break;
4244         case 'f': // float
4245           fnumber = va_arg (args_copy, double);
4246           break;
4247         default:
4248           break;
4249         }
4250     }
4251   va_end (args_copy);
4252   va_end (args);
4253 }
4254
4255 int
4256 main ()
4257 {
4258
4259   // Check bool.
4260   _Bool success = false;
4261
4262   // Check restrict.
4263   if (test_restrict ("String literal") == 0)
4264     success = true;
4265   char *restrict newvar = "Another string";
4266
4267   // Check varargs.
4268   test_varargs ("s, d' f .", "string", 65, 34.234);
4269   test_varargs_macros ();
4270
4271   // Check flexible array members.
4272   struct incomplete_array *ia =
4273     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4274   ia->datasize = 10;
4275   for (int i = 0; i < ia->datasize; ++i)
4276     ia->data[i] = i * 1.234;
4277
4278   // Check named initializers.
4279   struct named_init ni = {
4280     .number = 34,
4281     .name = L"Test wide string",
4282     .average = 543.34343,
4283   };
4284
4285   ni.number = 58;
4286
4287   int dynamic_array[ni.number];
4288   dynamic_array[ni.number - 1] = 543;
4289
4290   // work around unused variable warnings
4291   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4292           || dynamic_array[ni.number - 1] != 543);
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4299 do
4300   CC="$ac_save_CC $ac_arg"
4301   if ac_fn_c_try_compile "$LINENO"; then :
4302   ac_cv_prog_cc_c99=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext
4305   test "x$ac_cv_prog_cc_c99" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309
4310 fi
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c99" in
4313   x)
4314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316   xno)
4317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4319   *)
4320     CC="$CC $ac_cv_prog_cc_c99"
4321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4322 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c99" != xno; then :
4325
4326 fi
4327
4328
4329 ac_config_headers="$ac_config_headers config.h"
4330
4331 ac_config_headers="$ac_config_headers json_config.h"
4332
4333
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4340 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4341 # On Suns, sometimes $CPP names a directory.
4342 if test -n "$CPP" && test -d "$CPP"; then
4343   CPP=
4344 fi
4345 if test -z "$CPP"; then
4346   if ${ac_cv_prog_CPP+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349       # Double quotes because CPP needs to be expanded
4350     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4351     do
4352       ac_preproc_ok=false
4353 for ac_c_preproc_warn_flag in '' yes
4354 do
4355   # Use a header file that comes with gcc, so configuring glibc
4356   # with a fresh cross-compiler works.
4357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4358   # <limits.h> exists even on freestanding compilers.
4359   # On the NeXT, cc -E runs the code through the compiler's parser,
4360   # not just through cpp. "Syntax error" is here to catch this case.
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363 #ifdef __STDC__
4364 # include <limits.h>
4365 #else
4366 # include <assert.h>
4367 #endif
4368                      Syntax error
4369 _ACEOF
4370 if ac_fn_c_try_cpp "$LINENO"; then :
4371
4372 else
4373   # Broken: fails on valid input.
4374 continue
4375 fi
4376 rm -f conftest.err conftest.i conftest.$ac_ext
4377
4378   # OK, works on sane cases.  Now check whether nonexistent headers
4379   # can be detected and how.
4380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382 #include <ac_nonexistent.h>
4383 _ACEOF
4384 if ac_fn_c_try_cpp "$LINENO"; then :
4385   # Broken: success on invalid input.
4386 continue
4387 else
4388   # Passes both tests.
4389 ac_preproc_ok=:
4390 break
4391 fi
4392 rm -f conftest.err conftest.i conftest.$ac_ext
4393
4394 done
4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4396 rm -f conftest.i conftest.err conftest.$ac_ext
4397 if $ac_preproc_ok; then :
4398   break
4399 fi
4400
4401     done
4402     ac_cv_prog_CPP=$CPP
4403
4404 fi
4405   CPP=$ac_cv_prog_CPP
4406 else
4407   ac_cv_prog_CPP=$CPP
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4410 $as_echo "$CPP" >&6; }
4411 ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427                      Syntax error
4428 _ACEOF
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4430
4431 else
4432   # Broken: fails on valid input.
4433 continue
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437   # OK, works on sane cases.  Now check whether nonexistent headers
4438   # can be detected and how.
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <ac_nonexistent.h>
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444   # Broken: success on invalid input.
4445 continue
4446 else
4447   # Passes both tests.
4448 ac_preproc_ok=:
4449 break
4450 fi
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4457
4458 else
4459   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4462 See \`config.log' for more details" "$LINENO" 5; }
4463 fi
4464
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4473 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4474 if ${ac_cv_path_GREP+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -z "$GREP"; then
4478   ac_path_GREP_found=false
4479   # Loop through the user's path and test for each of PROGNAME-LIST
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_prog in grep ggrep; do
4486     for ac_exec_ext in '' $ac_executable_extensions; do
4487       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4488       as_fn_executable_p "$ac_path_GREP" || continue
4489 # Check for GNU ac_path_GREP and select it if it is found.
4490   # Check for GNU $ac_path_GREP
4491 case `"$ac_path_GREP" --version 2>&1` in
4492 *GNU*)
4493   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4494 *)
4495   ac_count=0
4496   $as_echo_n 0123456789 >"conftest.in"
4497   while :
4498   do
4499     cat "conftest.in" "conftest.in" >"conftest.tmp"
4500     mv "conftest.tmp" "conftest.in"
4501     cp "conftest.in" "conftest.nl"
4502     $as_echo 'GREP' >> "conftest.nl"
4503     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505     as_fn_arith $ac_count + 1 && ac_count=$as_val
4506     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4507       # Best one so far, save it but keep looking for a better one
4508       ac_cv_path_GREP="$ac_path_GREP"
4509       ac_path_GREP_max=$ac_count
4510     fi
4511     # 10*(2^10) chars as input seems more than enough
4512     test $ac_count -gt 10 && break
4513   done
4514   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515 esac
4516
4517       $ac_path_GREP_found && break 3
4518     done
4519   done
4520   done
4521 IFS=$as_save_IFS
4522   if test -z "$ac_cv_path_GREP"; then
4523     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524   fi
4525 else
4526   ac_cv_path_GREP=$GREP
4527 fi
4528
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4531 $as_echo "$ac_cv_path_GREP" >&6; }
4532  GREP="$ac_cv_path_GREP"
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4536 $as_echo_n "checking for egrep... " >&6; }
4537 if ${ac_cv_path_EGREP+:} false; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541    then ac_cv_path_EGREP="$GREP -E"
4542    else
4543      if test -z "$EGREP"; then
4544   ac_path_EGREP_found=false
4545   # Loop through the user's path and test for each of PROGNAME-LIST
4546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551     for ac_prog in egrep; do
4552     for ac_exec_ext in '' $ac_executable_extensions; do
4553       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4554       as_fn_executable_p "$ac_path_EGREP" || continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556   # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4558 *GNU*)
4559   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4560 *)
4561   ac_count=0
4562   $as_echo_n 0123456789 >"conftest.in"
4563   while :
4564   do
4565     cat "conftest.in" "conftest.in" >"conftest.tmp"
4566     mv "conftest.tmp" "conftest.in"
4567     cp "conftest.in" "conftest.nl"
4568     $as_echo 'EGREP' >> "conftest.nl"
4569     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571     as_fn_arith $ac_count + 1 && ac_count=$as_val
4572     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573       # Best one so far, save it but keep looking for a better one
4574       ac_cv_path_EGREP="$ac_path_EGREP"
4575       ac_path_EGREP_max=$ac_count
4576     fi
4577     # 10*(2^10) chars as input seems more than enough
4578     test $ac_count -gt 10 && break
4579   done
4580   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 esac
4582
4583       $ac_path_EGREP_found && break 3
4584     done
4585   done
4586   done
4587 IFS=$as_save_IFS
4588   if test -z "$ac_cv_path_EGREP"; then
4589     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590   fi
4591 else
4592   ac_cv_path_EGREP=$EGREP
4593 fi
4594
4595    fi
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4598 $as_echo "$ac_cv_path_EGREP" >&6; }
4599  EGREP="$ac_cv_path_EGREP"
4600
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4603 $as_echo_n "checking for ANSI C header files... " >&6; }
4604 if ${ac_cv_header_stdc+:} false; then :
4605   $as_echo_n "(cached) " >&6
4606 else
4607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #include <stdlib.h>
4610 #include <stdarg.h>
4611 #include <string.h>
4612 #include <float.h>
4613
4614 int
4615 main ()
4616 {
4617
4618   ;
4619   return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623   ac_cv_header_stdc=yes
4624 else
4625   ac_cv_header_stdc=no
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628
4629 if test $ac_cv_header_stdc = yes; then
4630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h.  */
4633 #include <string.h>
4634
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637   $EGREP "memchr" >/dev/null 2>&1; then :
4638
4639 else
4640   ac_cv_header_stdc=no
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645
4646 if test $ac_cv_header_stdc = yes; then
4647   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650 #include <stdlib.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654   $EGREP "free" >/dev/null 2>&1; then :
4655
4656 else
4657   ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4665   if test "$cross_compiling" = yes; then :
4666   :
4667 else
4668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h.  */
4670 #include <ctype.h>
4671 #include <stdlib.h>
4672 #if ((' ' & 0x0FF) == 0x020)
4673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4675 #else
4676 # define ISLOWER(c) \
4677                    (('a' <= (c) && (c) <= 'i') \
4678                      || ('j' <= (c) && (c) <= 'r') \
4679                      || ('s' <= (c) && (c) <= 'z'))
4680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4681 #endif
4682
4683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4684 int
4685 main ()
4686 {
4687   int i;
4688   for (i = 0; i < 256; i++)
4689     if (XOR (islower (i), ISLOWER (i))
4690         || toupper (i) != TOUPPER (i))
4691       return 2;
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_run "$LINENO"; then :
4696
4697 else
4698   ac_cv_header_stdc=no
4699 fi
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4701   conftest.$ac_objext conftest.beam conftest.$ac_ext
4702 fi
4703
4704 fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4707 $as_echo "$ac_cv_header_stdc" >&6; }
4708 if test $ac_cv_header_stdc = yes; then
4709
4710 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4711
4712 fi
4713
4714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4716                   inttypes.h stdint.h unistd.h
4717 do :
4718   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4720 "
4721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4722   cat >>confdefs.h <<_ACEOF
4723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 _ACEOF
4725
4726 fi
4727
4728 done
4729
4730
4731 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h xlocale.h endian.h
4732 do :
4733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4736   cat >>confdefs.h <<_ACEOF
4737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 _ACEOF
4739
4740 fi
4741
4742 done
4743
4744 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4745 if test "x$ac_cv_header_inttypes_h" = xyes; then :
4746
4747 $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
4748
4749 fi
4750
4751
4752
4753 # Checks for typedefs, structures, and compiler characteristics.
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4756 if ${ac_cv_c_const+:} false; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761
4762 int
4763 main ()
4764 {
4765
4766 #ifndef __cplusplus
4767   /* Ultrix mips cc rejects this sort of thing.  */
4768   typedef int charset[2];
4769   const charset cs = { 0, 0 };
4770   /* SunOS 4.1.1 cc rejects this.  */
4771   char const *const *pcpcc;
4772   char **ppc;
4773   /* NEC SVR4.0.2 mips cc rejects this.  */
4774   struct point {int x, y;};
4775   static struct point const zero = {0,0};
4776   /* AIX XL C 1.02.0.0 rejects this.
4777      It does not let you subtract one const X* pointer from another in
4778      an arm of an if-expression whose if-part is not a constant
4779      expression */
4780   const char *g = "string";
4781   pcpcc = &g + (g ? g-g : 0);
4782   /* HPUX 7.0 cc rejects these. */
4783   ++pcpcc;
4784   ppc = (char**) pcpcc;
4785   pcpcc = (char const *const *) ppc;
4786   { /* SCO 3.2v4 cc rejects this sort of thing.  */
4787     char tx;
4788     char *t = &tx;
4789     char const *s = 0 ? (char *) 0 : (char const *) 0;
4790
4791     *t++ = 0;
4792     if (s) return 0;
4793   }
4794   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4795     int x[] = {25, 17};
4796     const int *foo = &x[0];
4797     ++foo;
4798   }
4799   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4800     typedef const int *iptr;
4801     iptr p = 0;
4802     ++p;
4803   }
4804   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4805        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4806     struct s { int j; const int *ap[3]; } bx;
4807     struct s *b = &bx; b->j = 5;
4808   }
4809   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4810     const int foo = 10;
4811     if (!foo) return 0;
4812   }
4813   return !cs[0] && !zero.x;
4814 #endif
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821   ac_cv_c_const=yes
4822 else
4823   ac_cv_c_const=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4828 $as_echo "$ac_cv_c_const" >&6; }
4829 if test $ac_cv_c_const = no; then
4830
4831 $as_echo "#define const /**/" >>confdefs.h
4832
4833 fi
4834
4835 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4836 if test "x$ac_cv_type_size_t" = xyes; then :
4837
4838 else
4839
4840 cat >>confdefs.h <<_ACEOF
4841 #define size_t unsigned int
4842 _ACEOF
4843
4844 fi
4845
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
4848 $as_echo_n "checking for __thread support... " >&6; }
4849 if ${ac_cv___thread+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 #undef __thread
4855 static __thread int a; int foo (int b) { return a + b; }
4856 int
4857 main ()
4858 {
4859 exit (foo (0));
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 if ac_fn_c_try_link "$LINENO"; then :
4865   ac_cv___thread=yes
4866 else
4867   ac_cv___thread=no
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext \
4870     conftest$ac_exeext conftest.$ac_ext
4871
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___thread" >&5
4874 $as_echo "$ac_cv___thread" >&6; }
4875 if test "x$ac_cv___thread" != xno; then :
4876
4877 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
4878
4879
4880 $as_echo "#define SPEC___THREAD __thread" >>confdefs.h
4881
4882
4883 fi
4884
4885 # Checks for library functions.
4886 for ac_func in vprintf
4887 do :
4888   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4889 if test "x$ac_cv_func_vprintf" = xyes; then :
4890   cat >>confdefs.h <<_ACEOF
4891 #define HAVE_VPRINTF 1
4892 _ACEOF
4893
4894 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4895 if test "x$ac_cv_func__doprnt" = xyes; then :
4896
4897 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4898
4899 fi
4900
4901 fi
4902 done
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4906 $as_echo_n "checking for working memcmp... " >&6; }
4907 if ${ac_cv_func_memcmp_working+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test "$cross_compiling" = yes; then :
4911   ac_cv_func_memcmp_working=no
4912 else
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915 $ac_includes_default
4916 int
4917 main ()
4918 {
4919
4920   /* Some versions of memcmp are not 8-bit clean.  */
4921   char c0 = '\100', c1 = '\200', c2 = '\201';
4922   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4923     return 1;
4924
4925   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4926      or more and with at least one buffer not starting on a 4-byte boundary.
4927      William Lewis provided this test program.   */
4928   {
4929     char foo[21];
4930     char bar[21];
4931     int i;
4932     for (i = 0; i < 4; i++)
4933       {
4934         char *a = foo + i;
4935         char *b = bar + i;
4936         strcpy (a, "--------01111111");
4937         strcpy (b, "--------10000000");
4938         if (memcmp (a, b, 16) >= 0)
4939           return 1;
4940       }
4941     return 0;
4942   }
4943
4944   ;
4945   return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_run "$LINENO"; then :
4949   ac_cv_func_memcmp_working=yes
4950 else
4951   ac_cv_func_memcmp_working=no
4952 fi
4953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954   conftest.$ac_objext conftest.beam conftest.$ac_ext
4955 fi
4956
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4959 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4960 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4961   *" memcmp.$ac_objext "* ) ;;
4962   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4963  ;;
4964 esac
4965
4966
4967 for ac_func in realloc
4968 do :
4969   ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
4970 if test "x$ac_cv_func_realloc" = xyes; then :
4971   cat >>confdefs.h <<_ACEOF
4972 #define HAVE_REALLOC 1
4973 _ACEOF
4974
4975 fi
4976 done
4977
4978 for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
4979 do :
4980   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4983   cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4985 _ACEOF
4986
4987 fi
4988 done
4989
4990 ac_fn_c_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
4991 "
4992 if test "x$ac_cv_have_decl_INFINITY" = xyes; then :
4993   ac_have_decl=1
4994 else
4995   ac_have_decl=0
4996 fi
4997
4998 cat >>confdefs.h <<_ACEOF
4999 #define HAVE_DECL_INFINITY $ac_have_decl
5000 _ACEOF
5001
5002 ac_fn_c_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
5003 "
5004 if test "x$ac_cv_have_decl_nan" = xyes; then :
5005   ac_have_decl=1
5006 else
5007   ac_have_decl=0
5008 fi
5009
5010 cat >>confdefs.h <<_ACEOF
5011 #define HAVE_DECL_NAN $ac_have_decl
5012 _ACEOF
5013
5014 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
5015 "
5016 if test "x$ac_cv_have_decl_isnan" = xyes; then :
5017   ac_have_decl=1
5018 else
5019   ac_have_decl=0
5020 fi
5021
5022 cat >>confdefs.h <<_ACEOF
5023 #define HAVE_DECL_ISNAN $ac_have_decl
5024 _ACEOF
5025
5026 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
5027 "
5028 if test "x$ac_cv_have_decl_isinf" = xyes; then :
5029   ac_have_decl=1
5030 else
5031   ac_have_decl=0
5032 fi
5033
5034 cat >>confdefs.h <<_ACEOF
5035 #define HAVE_DECL_ISINF $ac_have_decl
5036 _ACEOF
5037
5038 ac_fn_c_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
5039 "
5040 if test "x$ac_cv_have_decl__isnan" = xyes; then :
5041   ac_have_decl=1
5042 else
5043   ac_have_decl=0
5044 fi
5045
5046 cat >>confdefs.h <<_ACEOF
5047 #define HAVE_DECL__ISNAN $ac_have_decl
5048 _ACEOF
5049
5050 ac_fn_c_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
5051 "
5052 if test "x$ac_cv_have_decl__finite" = xyes; then :
5053   ac_have_decl=1
5054 else
5055   ac_have_decl=0
5056 fi
5057
5058 cat >>confdefs.h <<_ACEOF
5059 #define HAVE_DECL__FINITE $ac_have_decl
5060 _ACEOF
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
5063 $as_echo_n "checking for GCC atomic builtins... " >&6; }
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h.  */
5066
5067
5068    int main() {
5069       volatile unsigned int val = 1;
5070       /* Note: __sync_val_compare_and_swap isn't checked here
5071        * because it's protected by __GCC_HAVE_SYNC_COMPARE_AND_SWAP_<n>,
5072        * which is automatically defined by gcc.
5073        */
5074       __sync_add_and_fetch(&val, 1);
5075       __sync_sub_and_fetch(&val, 1);
5076       return 0;
5077    }
5078
5079
5080 _ACEOF
5081 if ac_fn_c_try_link "$LINENO"; then :
5082
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5084 $as_echo "yes" >&6; }
5085
5086 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
5087
5088
5089 else
5090
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&5
5094 $as_echo "$as_me: WARNING: json-c will be built without atomic refcounts because atomic builtins are missing" >&2;}
5095
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext \
5098     conftest$ac_exeext conftest.$ac_ext
5099
5100 case "${host_os}" in
5101         linux*)
5102                 for ac_func in uselocale
5103 do :
5104   ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
5105 if test "x$ac_cv_func_uselocale" = xyes; then :
5106   cat >>confdefs.h <<_ACEOF
5107 #define HAVE_USELOCALE 1
5108 _ACEOF
5109
5110 fi
5111 done
5112
5113                 ;;
5114         *)      # Nothing
5115                 ;;
5116 esac
5117
5118 if test "$ac_cv_have_decl_isnan" = "yes" ; then
5119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121 #include <math.h>
5122 int
5123 main ()
5124 {
5125 float f = 0.0; return isnan(f)
5126   ;
5127   return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_link "$LINENO"; then :
5131
5132 else
5133   LIBS="$LIBS -lm"
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext \
5136     conftest$ac_exeext conftest.$ac_ext
5137 fi
5138
5139 #check if .section.gnu.warning accepts long strings (for __warn_references)
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
5148 $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151
5152 extern void json_object_get();
5153 __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
5154
5155 int main(int c,char* v) {return 0;}
5156
5157 _ACEOF
5158 if ac_fn_c_try_link "$LINENO"; then :
5159
5160
5161 $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
5162
5163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 $as_echo "yes" >&6; }
5165
5166 else
5167
5168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext \
5173     conftest$ac_exeext conftest.$ac_ext
5174
5175 ac_ext=c
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181
5182 case `pwd` in
5183   *\ * | *\     *)
5184     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5185 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5186 esac
5187
5188
5189
5190 macro_version='2.4.2'
5191 macro_revision='1.3337'
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 ltmain="$ac_aux_dir/ltmain.sh"
5206
5207 # Backslashify metacharacters that are still active within
5208 # double-quoted strings.
5209 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5210
5211 # Same as above, but do not quote variable references.
5212 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5213
5214 # Sed substitution to delay expansion of an escaped shell variable in a
5215 # double_quote_subst'ed string.
5216 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5217
5218 # Sed substitution to delay expansion of an escaped single quote.
5219 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5220
5221 # Sed substitution to avoid accidental globbing in evaled expressions
5222 no_glob_subst='s/\*/\\\*/g'
5223
5224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5227
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5229 $as_echo_n "checking how to print strings... " >&6; }
5230 # Test print first, because it will be a builtin if present.
5231 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5232    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5233   ECHO='print -r --'
5234 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5235   ECHO='printf %s\n'
5236 else
5237   # Use this function as a fallback that always works.
5238   func_fallback_echo ()
5239   {
5240     eval 'cat <<_LTECHO_EOF
5241 $1
5242 _LTECHO_EOF'
5243   }
5244   ECHO='func_fallback_echo'
5245 fi
5246
5247 # func_echo_all arg...
5248 # Invoke $ECHO with all args, space-separated.
5249 func_echo_all ()
5250 {
5251     $ECHO ""
5252 }
5253
5254 case "$ECHO" in
5255   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5256 $as_echo "printf" >&6; } ;;
5257   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5258 $as_echo "print -r" >&6; } ;;
5259   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5260 $as_echo "cat" >&6; } ;;
5261 esac
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278 if ${ac_cv_path_SED+:} false; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282      for ac_i in 1 2 3 4 5 6 7; do
5283        ac_script="$ac_script$as_nl$ac_script"
5284      done
5285      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286      { ac_script=; unset ac_script;}
5287      if test -z "$SED"; then
5288   ac_path_SED_found=false
5289   # Loop through the user's path and test for each of PROGNAME-LIST
5290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_prog in sed gsed; do
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298       as_fn_executable_p "$ac_path_SED" || continue
5299 # Check for GNU ac_path_SED and select it if it is found.
5300   # Check for GNU $ac_path_SED
5301 case `"$ac_path_SED" --version 2>&1` in
5302 *GNU*)
5303   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5304 *)
5305   ac_count=0
5306   $as_echo_n 0123456789 >"conftest.in"
5307   while :
5308   do
5309     cat "conftest.in" "conftest.in" >"conftest.tmp"
5310     mv "conftest.tmp" "conftest.in"
5311     cp "conftest.in" "conftest.nl"
5312     $as_echo '' >> "conftest.nl"
5313     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315     as_fn_arith $ac_count + 1 && ac_count=$as_val
5316     if test $ac_count -gt ${ac_path_SED_max-0}; then
5317       # Best one so far, save it but keep looking for a better one
5318       ac_cv_path_SED="$ac_path_SED"
5319       ac_path_SED_max=$ac_count
5320     fi
5321     # 10*(2^10) chars as input seems more than enough
5322     test $ac_count -gt 10 && break
5323   done
5324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5326
5327       $ac_path_SED_found && break 3
5328     done
5329   done
5330   done
5331 IFS=$as_save_IFS
5332   if test -z "$ac_cv_path_SED"; then
5333     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5334   fi
5335 else
5336   ac_cv_path_SED=$SED
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341 $as_echo "$ac_cv_path_SED" >&6; }
5342  SED="$ac_cv_path_SED"
5343   rm -f conftest.sed
5344
5345 test -z "$SED" && SED=sed
5346 Xsed="$SED -e 1s/^X//"
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359 $as_echo_n "checking for fgrep... " >&6; }
5360 if ${ac_cv_path_FGREP+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364    then ac_cv_path_FGREP="$GREP -F"
5365    else
5366      if test -z "$FGREP"; then
5367   ac_path_FGREP_found=false
5368   # Loop through the user's path and test for each of PROGNAME-LIST
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_prog in fgrep; do
5375     for ac_exec_ext in '' $ac_executable_extensions; do
5376       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377       as_fn_executable_p "$ac_path_FGREP" || continue
5378 # Check for GNU ac_path_FGREP and select it if it is found.
5379   # Check for GNU $ac_path_FGREP
5380 case `"$ac_path_FGREP" --version 2>&1` in
5381 *GNU*)
5382   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5383 *)
5384   ac_count=0
5385   $as_echo_n 0123456789 >"conftest.in"
5386   while :
5387   do
5388     cat "conftest.in" "conftest.in" >"conftest.tmp"
5389     mv "conftest.tmp" "conftest.in"
5390     cp "conftest.in" "conftest.nl"
5391     $as_echo 'FGREP' >> "conftest.nl"
5392     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394     as_fn_arith $ac_count + 1 && ac_count=$as_val
5395     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396       # Best one so far, save it but keep looking for a better one
5397       ac_cv_path_FGREP="$ac_path_FGREP"
5398       ac_path_FGREP_max=$ac_count
5399     fi
5400     # 10*(2^10) chars as input seems more than enough
5401     test $ac_count -gt 10 && break
5402   done
5403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 esac
5405
5406       $ac_path_FGREP_found && break 3
5407     done
5408   done
5409   done
5410 IFS=$as_save_IFS
5411   if test -z "$ac_cv_path_FGREP"; then
5412     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5413   fi
5414 else
5415   ac_cv_path_FGREP=$FGREP
5416 fi
5417
5418    fi
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421 $as_echo "$ac_cv_path_FGREP" >&6; }
5422  FGREP="$ac_cv_path_FGREP"
5423
5424
5425 test -z "$GREP" && GREP=grep
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 # Check whether --with-gnu-ld was given.
5446 if test "${with_gnu_ld+set}" = set; then :
5447   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5448 else
5449   with_gnu_ld=no
5450 fi
5451
5452 ac_prog=ld
5453 if test "$GCC" = yes; then
5454   # Check if gcc -print-prog-name=ld gives a path.
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456 $as_echo_n "checking for ld used by $CC... " >&6; }
5457   case $host in
5458   *-*-mingw*)
5459     # gcc leaves a trailing carriage return which upsets mingw
5460     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5461   *)
5462     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5463   esac
5464   case $ac_prog in
5465     # Accept absolute paths.
5466     [\\/]* | ?:[\\/]*)
5467       re_direlt='/[^/][^/]*/\.\./'
5468       # Canonicalize the pathname of ld
5469       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5472       done
5473       test -z "$LD" && LD="$ac_prog"
5474       ;;
5475   "")
5476     # If it fails, then pretend we aren't using GCC.
5477     ac_prog=ld
5478     ;;
5479   *)
5480     # If it is relative, then search for the first ld in PATH.
5481     with_gnu_ld=unknown
5482     ;;
5483   esac
5484 elif test "$with_gnu_ld" = yes; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486 $as_echo_n "checking for GNU ld... " >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489 $as_echo_n "checking for non-GNU ld... " >&6; }
5490 fi
5491 if ${lt_cv_path_LD+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if test -z "$LD"; then
5495   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5496   for ac_dir in $PATH; do
5497     IFS="$lt_save_ifs"
5498     test -z "$ac_dir" && ac_dir=.
5499     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500       lt_cv_path_LD="$ac_dir/$ac_prog"
5501       # Check to see if the program is GNU ld.  I'd rather use --version,
5502       # but apparently some variants of GNU ld only accept -v.
5503       # Break only if it was the GNU/non-GNU ld that we prefer.
5504       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505       *GNU* | *'with BFD'*)
5506         test "$with_gnu_ld" != no && break
5507         ;;
5508       *)
5509         test "$with_gnu_ld" != yes && break
5510         ;;
5511       esac
5512     fi
5513   done
5514   IFS="$lt_save_ifs"
5515 else
5516   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5517 fi
5518 fi
5519
5520 LD="$lt_cv_path_LD"
5521 if test -n "$LD"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523 $as_echo "$LD" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531 if ${lt_cv_prog_gnu_ld+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535 case `$LD -v 2>&1 </dev/null` in
5536 *GNU* | *'with BFD'*)
5537   lt_cv_prog_gnu_ld=yes
5538   ;;
5539 *)
5540   lt_cv_prog_gnu_ld=no
5541   ;;
5542 esac
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546 with_gnu_ld=$lt_cv_prog_gnu_ld
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558 if ${lt_cv_path_NM+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -n "$NM"; then
5562   # Let the user override the test.
5563   lt_cv_path_NM="$NM"
5564 else
5565   lt_nm_to_check="${ac_tool_prefix}nm"
5566   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567     lt_nm_to_check="$lt_nm_to_check nm"
5568   fi
5569   for lt_tmp_nm in $lt_nm_to_check; do
5570     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5571     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5572       IFS="$lt_save_ifs"
5573       test -z "$ac_dir" && ac_dir=.
5574       tmp_nm="$ac_dir/$lt_tmp_nm"
5575       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5576         # Check to see if the nm accepts a BSD-compat flag.
5577         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5578         #   nm: unknown option "B" ignored
5579         # Tru64's nm complains that /dev/null is an invalid object file
5580         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5581         */dev/null* | *'Invalid file or object type'*)
5582           lt_cv_path_NM="$tmp_nm -B"
5583           break
5584           ;;
5585         *)
5586           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5587           */dev/null*)
5588             lt_cv_path_NM="$tmp_nm -p"
5589             break
5590             ;;
5591           *)
5592             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5593             continue # so that we can try to find one that supports BSD flags
5594             ;;
5595           esac
5596           ;;
5597         esac
5598       fi
5599     done
5600     IFS="$lt_save_ifs"
5601   done
5602   : ${lt_cv_path_NM=no}
5603 fi
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5606 $as_echo "$lt_cv_path_NM" >&6; }
5607 if test "$lt_cv_path_NM" != "no"; then
5608   NM="$lt_cv_path_NM"
5609 else
5610   # Didn't find any BSD compatible name lister, look for dumpbin.
5611   if test -n "$DUMPBIN"; then :
5612     # Let the user override the test.
5613   else
5614     if test -n "$ac_tool_prefix"; then
5615   for ac_prog in dumpbin "link -dump"
5616   do
5617     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_DUMPBIN+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$DUMPBIN"; then
5625   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 DUMPBIN=$ac_cv_prog_DUMPBIN
5645 if test -n "$DUMPBIN"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5647 $as_echo "$DUMPBIN" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654     test -n "$DUMPBIN" && break
5655   done
5656 fi
5657 if test -z "$DUMPBIN"; then
5658   ac_ct_DUMPBIN=$DUMPBIN
5659   for ac_prog in dumpbin "link -dump"
5660 do
5661   # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$ac_ct_DUMPBIN"; then
5669   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689 if test -n "$ac_ct_DUMPBIN"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5691 $as_echo "$ac_ct_DUMPBIN" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698   test -n "$ac_ct_DUMPBIN" && break
5699 done
5700
5701   if test "x$ac_ct_DUMPBIN" = x; then
5702     DUMPBIN=":"
5703   else
5704     case $cross_compiling:$ac_tool_warned in
5705 yes:)
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710     DUMPBIN=$ac_ct_DUMPBIN
5711   fi
5712 fi
5713
5714     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5715     *COFF*)
5716       DUMPBIN="$DUMPBIN -symbols"
5717       ;;
5718     *)
5719       DUMPBIN=:
5720       ;;
5721     esac
5722   fi
5723
5724   if test "$DUMPBIN" != ":"; then
5725     NM="$DUMPBIN"
5726   fi
5727 fi
5728 test -z "$NM" && NM=nm
5729
5730
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5736 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5737 if ${lt_cv_nm_interface+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   lt_cv_nm_interface="BSD nm"
5741   echo "int some_variable = 0;" > conftest.$ac_ext
5742   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5743   (eval "$ac_compile" 2>conftest.err)
5744   cat conftest.err >&5
5745   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5746   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5747   cat conftest.err >&5
5748   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5749   cat conftest.out >&5
5750   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5751     lt_cv_nm_interface="MS dumpbin"
5752   fi
5753   rm -f conftest*
5754 fi
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5756 $as_echo "$lt_cv_nm_interface" >&6; }
5757
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5759 $as_echo_n "checking whether ln -s works... " >&6; }
5760 LN_S=$as_ln_s
5761 if test "$LN_S" = "ln -s"; then
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 $as_echo "yes" >&6; }
5764 else
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5766 $as_echo "no, using $LN_S" >&6; }
5767 fi
5768
5769 # find the maximum length of command line arguments
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5771 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5772 if ${lt_cv_sys_max_cmd_len+:} false; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775     i=0
5776   teststring="ABCD"
5777
5778   case $build_os in
5779   msdosdjgpp*)
5780     # On DJGPP, this test can blow up pretty badly due to problems in libc
5781     # (any single argument exceeding 2000 bytes causes a buffer overrun
5782     # during glob expansion).  Even if it were fixed, the result of this
5783     # check would be larger than it should be.
5784     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5785     ;;
5786
5787   gnu*)
5788     # Under GNU Hurd, this test is not required because there is
5789     # no limit to the length of command line arguments.
5790     # Libtool will interpret -1 as no limit whatsoever
5791     lt_cv_sys_max_cmd_len=-1;
5792     ;;
5793
5794   cygwin* | mingw* | cegcc*)
5795     # On Win9x/ME, this test blows up -- it succeeds, but takes
5796     # about 5 minutes as the teststring grows exponentially.
5797     # Worse, since 9x/ME are not pre-emptively multitasking,
5798     # you end up with a "frozen" computer, even though with patience
5799     # the test eventually succeeds (with a max line length of 256k).
5800     # Instead, let's just punt: use the minimum linelength reported by
5801     # all of the supported platforms: 8192 (on NT/2K/XP).
5802     lt_cv_sys_max_cmd_len=8192;
5803     ;;
5804
5805   mint*)
5806     # On MiNT this can take a long time and run out of memory.
5807     lt_cv_sys_max_cmd_len=8192;
5808     ;;
5809
5810   amigaos*)
5811     # On AmigaOS with pdksh, this test takes hours, literally.
5812     # So we just punt and use a minimum line length of 8192.
5813     lt_cv_sys_max_cmd_len=8192;
5814     ;;
5815
5816   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5817     # This has been around since 386BSD, at least.  Likely further.
5818     if test -x /sbin/sysctl; then
5819       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5820     elif test -x /usr/sbin/sysctl; then
5821       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5822     else
5823       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5824     fi
5825     # And add a safety zone
5826     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828     ;;
5829
5830   interix*)
5831     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5832     lt_cv_sys_max_cmd_len=196608
5833     ;;
5834
5835   os2*)
5836     # The test takes a long time on OS/2.
5837     lt_cv_sys_max_cmd_len=8192
5838     ;;
5839
5840   osf*)
5841     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5842     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5843     # nice to cause kernel panics so lets avoid the loop below.
5844     # First set a reasonable default.
5845     lt_cv_sys_max_cmd_len=16384
5846     #
5847     if test -x /sbin/sysconfig; then
5848       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5849         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5850       esac
5851     fi
5852     ;;
5853   sco3.2v5*)
5854     lt_cv_sys_max_cmd_len=102400
5855     ;;
5856   sysv5* | sco5v6* | sysv4.2uw2*)
5857     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5858     if test -n "$kargmax"; then
5859       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5860     else
5861       lt_cv_sys_max_cmd_len=32768
5862     fi
5863     ;;
5864   *)
5865     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5866     if test -n "$lt_cv_sys_max_cmd_len" && \
5867         test undefined != "$lt_cv_sys_max_cmd_len"; then
5868       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5869       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5870     else
5871       # Make teststring a little bigger before we do anything with it.
5872       # a 1K string should be a reasonable start.
5873       for i in 1 2 3 4 5 6 7 8 ; do
5874         teststring=$teststring$teststring
5875       done
5876       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5877       # If test is not a shell built-in, we'll probably end up computing a
5878       # maximum length that is only half of the actual maximum length, but
5879       # we can't tell.
5880       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5881                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5882               test $i != 17 # 1/2 MB should be enough
5883       do
5884         i=`expr $i + 1`
5885         teststring=$teststring$teststring
5886       done
5887       # Only check the string length outside the loop.
5888       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5889       teststring=
5890       # Add a significant safety factor because C++ compilers can tack on
5891       # massive amounts of additional arguments before passing them to the
5892       # linker.  It appears as though 1/2 is a usable value.
5893       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5894     fi
5895     ;;
5896   esac
5897
5898 fi
5899
5900 if test -n $lt_cv_sys_max_cmd_len ; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5902 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5905 $as_echo "none" >&6; }
5906 fi
5907 max_cmd_len=$lt_cv_sys_max_cmd_len
5908
5909
5910
5911
5912
5913
5914 : ${CP="cp -f"}
5915 : ${MV="mv -f"}
5916 : ${RM="rm -f"}
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5919 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5920 # Try some XSI features
5921 xsi_shell=no
5922 ( _lt_dummy="a/b/c"
5923   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5924       = c,a/b,b/c, \
5925     && eval 'test $(( 1 + 1 )) -eq 2 \
5926     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5927   && xsi_shell=yes
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5929 $as_echo "$xsi_shell" >&6; }
5930
5931
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5933 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5934 lt_shell_append=no
5935 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5936     >/dev/null 2>&1 \
5937   && lt_shell_append=yes
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5939 $as_echo "$lt_shell_append" >&6; }
5940
5941
5942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5943   lt_unset=unset
5944 else
5945   lt_unset=false
5946 fi
5947
5948
5949
5950
5951
5952 # test EBCDIC or ASCII
5953 case `echo X|tr X '\101'` in
5954  A) # ASCII based system
5955     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5956   lt_SP2NL='tr \040 \012'
5957   lt_NL2SP='tr \015\012 \040\040'
5958   ;;
5959  *) # EBCDIC based system
5960   lt_SP2NL='tr \100 \n'
5961   lt_NL2SP='tr \r\n \100\100'
5962   ;;
5963 esac
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5974 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5975 if ${lt_cv_to_host_file_cmd+:} false; then :
5976   $as_echo_n "(cached) " >&6
5977 else
5978   case $host in
5979   *-*-mingw* )
5980     case $build in
5981       *-*-mingw* ) # actually msys
5982         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5983         ;;
5984       *-*-cygwin* )
5985         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5986         ;;
5987       * ) # otherwise, assume *nix
5988         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5989         ;;
5990     esac
5991     ;;
5992   *-*-cygwin* )
5993     case $build in
5994       *-*-mingw* ) # actually msys
5995         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5996         ;;
5997       *-*-cygwin* )
5998         lt_cv_to_host_file_cmd=func_convert_file_noop
5999         ;;
6000       * ) # otherwise, assume *nix
6001         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6002         ;;
6003     esac
6004     ;;
6005   * ) # unhandled hosts (and "normal" native builds)
6006     lt_cv_to_host_file_cmd=func_convert_file_noop
6007     ;;
6008 esac
6009
6010 fi
6011
6012 to_host_file_cmd=$lt_cv_to_host_file_cmd
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6014 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6015
6016
6017
6018
6019
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6021 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6022 if ${lt_cv_to_tool_file_cmd+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   #assume ordinary cross tools, or native build.
6026 lt_cv_to_tool_file_cmd=func_convert_file_noop
6027 case $host in
6028   *-*-mingw* )
6029     case $build in
6030       *-*-mingw* ) # actually msys
6031         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6032         ;;
6033     esac
6034     ;;
6035 esac
6036
6037 fi
6038
6039 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6041 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6042
6043
6044
6045
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6048 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6049 if ${lt_cv_ld_reload_flag+:} false; then :
6050   $as_echo_n "(cached) " >&6
6051 else
6052   lt_cv_ld_reload_flag='-r'
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6055 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6056 reload_flag=$lt_cv_ld_reload_flag
6057 case $reload_flag in
6058 "" | " "*) ;;
6059 *) reload_flag=" $reload_flag" ;;
6060 esac
6061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6062 case $host_os in
6063   cygwin* | mingw* | pw32* | cegcc*)
6064     if test "$GCC" != yes; then
6065       reload_cmds=false
6066     fi
6067     ;;
6068   darwin*)
6069     if test "$GCC" = yes; then
6070       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6071     else
6072       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6073     fi
6074     ;;
6075 esac
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 if test -n "$ac_tool_prefix"; then
6086   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_OBJDUMP+:} false; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   if test -n "$OBJDUMP"; then
6094   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101     for ac_exec_ext in '' $ac_executable_extensions; do
6102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108   done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 OBJDUMP=$ac_cv_prog_OBJDUMP
6114 if test -n "$OBJDUMP"; then
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6116 $as_echo "$OBJDUMP" >&6; }
6117 else
6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 fi
6124 if test -z "$ac_cv_prog_OBJDUMP"; then
6125   ac_ct_OBJDUMP=$OBJDUMP
6126   # Extract the first word of "objdump", so it can be a program name with args.
6127 set dummy objdump; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6131   $as_echo_n "(cached) " >&6
6132 else
6133   if test -n "$ac_ct_OBJDUMP"; then
6134   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141     for ac_exec_ext in '' $ac_executable_extensions; do
6142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148   done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6154 if test -n "$ac_ct_OBJDUMP"; then
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6156 $as_echo "$ac_ct_OBJDUMP" >&6; }
6157 else
6158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162   if test "x$ac_ct_OBJDUMP" = x; then
6163     OBJDUMP="false"
6164   else
6165     case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171     OBJDUMP=$ac_ct_OBJDUMP
6172   fi
6173 else
6174   OBJDUMP="$ac_cv_prog_OBJDUMP"
6175 fi
6176
6177 test -z "$OBJDUMP" && OBJDUMP=objdump
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6188 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6189 if ${lt_cv_deplibs_check_method+:} false; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   lt_cv_file_magic_cmd='$MAGIC_CMD'
6193 lt_cv_file_magic_test_file=
6194 lt_cv_deplibs_check_method='unknown'
6195 # Need to set the preceding variable on all platforms that support
6196 # interlibrary dependencies.
6197 # 'none' -- dependencies not supported.
6198 # `unknown' -- same as none, but documents that we really don't know.
6199 # 'pass_all' -- all dependencies passed with no checks.
6200 # 'test_compile' -- check by making test program.
6201 # 'file_magic [[regex]]' -- check by looking for files in library path
6202 # which responds to the $file_magic_cmd with a given extended regex.
6203 # If you have `file' or equivalent on your system and you're not sure
6204 # whether `pass_all' will *always* work, you probably want this one.
6205
6206 case $host_os in
6207 aix[4-9]*)
6208   lt_cv_deplibs_check_method=pass_all
6209   ;;
6210
6211 beos*)
6212   lt_cv_deplibs_check_method=pass_all
6213   ;;
6214
6215 bsdi[45]*)
6216   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6217   lt_cv_file_magic_cmd='/usr/bin/file -L'
6218   lt_cv_file_magic_test_file=/shlib/libc.so
6219   ;;
6220
6221 cygwin*)
6222   # func_win32_libid is a shell function defined in ltmain.sh
6223   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224   lt_cv_file_magic_cmd='func_win32_libid'
6225   ;;
6226
6227 mingw* | pw32*)
6228   # Base MSYS/MinGW do not provide the 'file' command needed by
6229   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6230   # unless we find 'file', for example because we are cross-compiling.
6231   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6232   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6233     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234     lt_cv_file_magic_cmd='func_win32_libid'
6235   else
6236     # Keep this pattern in sync with the one in func_win32_libid.
6237     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6238     lt_cv_file_magic_cmd='$OBJDUMP -f'
6239   fi
6240   ;;
6241
6242 cegcc*)
6243   # use the weaker test based on 'objdump'. See mingw*.
6244   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6245   lt_cv_file_magic_cmd='$OBJDUMP -f'
6246   ;;
6247
6248 darwin* | rhapsody*)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251
6252 freebsd* | dragonfly*)
6253   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6254     case $host_cpu in
6255     i*86 )
6256       # Not sure whether the presence of OpenBSD here was a mistake.
6257       # Let's accept both of them until this is cleared up.
6258       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6259       lt_cv_file_magic_cmd=/usr/bin/file
6260       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6261       ;;
6262     esac
6263   else
6264     lt_cv_deplibs_check_method=pass_all
6265   fi
6266   ;;
6267
6268 haiku*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 hpux10.20* | hpux11*)
6273   lt_cv_file_magic_cmd=/usr/bin/file
6274   case $host_cpu in
6275   ia64*)
6276     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6277     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6278     ;;
6279   hppa*64*)
6280     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]'
6281     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6282     ;;
6283   *)
6284     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6285     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6286     ;;
6287   esac
6288   ;;
6289
6290 interix[3-9]*)
6291   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6292   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6293   ;;
6294
6295 irix5* | irix6* | nonstopux*)
6296   case $LD in
6297   *-32|*"-32 ") libmagic=32-bit;;
6298   *-n32|*"-n32 ") libmagic=N32;;
6299   *-64|*"-64 ") libmagic=64-bit;;
6300   *) libmagic=never-match;;
6301   esac
6302   lt_cv_deplibs_check_method=pass_all
6303   ;;
6304
6305 # This must be glibc/ELF.
6306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6307   lt_cv_deplibs_check_method=pass_all
6308   ;;
6309
6310 netbsd* | netbsdelf*-gnu)
6311   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6312     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6313   else
6314     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6315   fi
6316   ;;
6317
6318 newos6*)
6319   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6320   lt_cv_file_magic_cmd=/usr/bin/file
6321   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6322   ;;
6323
6324 *nto* | *qnx*)
6325   lt_cv_deplibs_check_method=pass_all
6326   ;;
6327
6328 openbsd*)
6329   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6330     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6331   else
6332     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6333   fi
6334   ;;
6335
6336 osf3* | osf4* | osf5*)
6337   lt_cv_deplibs_check_method=pass_all
6338   ;;
6339
6340 rdos*)
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 solaris*)
6345   lt_cv_deplibs_check_method=pass_all
6346   ;;
6347
6348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 sysv4 | sysv4.3*)
6353   case $host_vendor in
6354   motorola)
6355     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]'
6356     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6357     ;;
6358   ncr)
6359     lt_cv_deplibs_check_method=pass_all
6360     ;;
6361   sequent)
6362     lt_cv_file_magic_cmd='/bin/file'
6363     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6364     ;;
6365   sni)
6366     lt_cv_file_magic_cmd='/bin/file'
6367     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6368     lt_cv_file_magic_test_file=/lib/libc.so
6369     ;;
6370   siemens)
6371     lt_cv_deplibs_check_method=pass_all
6372     ;;
6373   pc)
6374     lt_cv_deplibs_check_method=pass_all
6375     ;;
6376   esac
6377   ;;
6378
6379 tpf*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382 esac
6383
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6386 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6387
6388 file_magic_glob=
6389 want_nocaseglob=no
6390 if test "$build" = "$host"; then
6391   case $host_os in
6392   mingw* | pw32*)
6393     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6394       want_nocaseglob=yes
6395     else
6396       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6397     fi
6398     ;;
6399   esac
6400 fi
6401
6402 file_magic_cmd=$lt_cv_file_magic_cmd
6403 deplibs_check_method=$lt_cv_deplibs_check_method
6404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 if test -n "$ac_tool_prefix"; then
6428   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_DLLTOOL+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$DLLTOOL"; then
6436   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 DLLTOOL=$ac_cv_prog_DLLTOOL
6456 if test -n "$DLLTOOL"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6458 $as_echo "$DLLTOOL" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465 fi
6466 if test -z "$ac_cv_prog_DLLTOOL"; then
6467   ac_ct_DLLTOOL=$DLLTOOL
6468   # Extract the first word of "dlltool", so it can be a program name with args.
6469 set dummy dlltool; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$ac_ct_DLLTOOL"; then
6476   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6496 if test -n "$ac_ct_DLLTOOL"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6498 $as_echo "$ac_ct_DLLTOOL" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504   if test "x$ac_ct_DLLTOOL" = x; then
6505     DLLTOOL="false"
6506   else
6507     case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6512 esac
6513     DLLTOOL=$ac_ct_DLLTOOL
6514   fi
6515 else
6516   DLLTOOL="$ac_cv_prog_DLLTOOL"
6517 fi
6518
6519 test -z "$DLLTOOL" && DLLTOOL=dlltool
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6531 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6532 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   lt_cv_sharedlib_from_linklib_cmd='unknown'
6536
6537 case $host_os in
6538 cygwin* | mingw* | pw32* | cegcc*)
6539   # two different shell functions defined in ltmain.sh
6540   # decide which to use based on capabilities of $DLLTOOL
6541   case `$DLLTOOL --help 2>&1` in
6542   *--identify-strict*)
6543     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6544     ;;
6545   *)
6546     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6547     ;;
6548   esac
6549   ;;
6550 *)
6551   # fallback: assume linklib IS sharedlib
6552   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6553   ;;
6554 esac
6555
6556 fi
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6558 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6559 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6560 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6561
6562
6563
6564
6565
6566
6567
6568 if test -n "$ac_tool_prefix"; then
6569   for ac_prog in ar
6570   do
6571     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_AR+:} false; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$AR"; then
6579   ac_cv_prog_AR="$AR" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 AR=$ac_cv_prog_AR
6599 if test -n "$AR"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6601 $as_echo "$AR" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608     test -n "$AR" && break
6609   done
6610 fi
6611 if test -z "$AR"; then
6612   ac_ct_AR=$AR
6613   for ac_prog in ar
6614 do
6615   # Extract the first word of "$ac_prog", so it can be a program name with args.
6616 set dummy $ac_prog; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$ac_ct_AR"; then
6623   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632     ac_cv_prog_ac_ct_AR="$ac_prog"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6643 if test -n "$ac_ct_AR"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6645 $as_echo "$ac_ct_AR" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652   test -n "$ac_ct_AR" && break
6653 done
6654
6655   if test "x$ac_ct_AR" = x; then
6656     AR="false"
6657   else
6658     case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664     AR=$ac_ct_AR
6665   fi
6666 fi
6667
6668 : ${AR=ar}
6669 : ${AR_FLAGS=cru}
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6682 $as_echo_n "checking for archiver @FILE support... " >&6; }
6683 if ${lt_cv_ar_at_file+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   lt_cv_ar_at_file=no
6687    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h.  */
6689
6690 int
6691 main ()
6692 {
6693
6694   ;
6695   return 0;
6696 }
6697 _ACEOF
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699   echo conftest.$ac_objext > conftest.lst
6700       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6701       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6702   (eval $lt_ar_try) 2>&5
6703   ac_status=$?
6704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705   test $ac_status = 0; }
6706       if test "$ac_status" -eq 0; then
6707         # Ensure the archiver fails upon bogus file names.
6708         rm -f conftest.$ac_objext libconftest.a
6709         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6710   (eval $lt_ar_try) 2>&5
6711   ac_status=$?
6712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713   test $ac_status = 0; }
6714         if test "$ac_status" -ne 0; then
6715           lt_cv_ar_at_file=@
6716         fi
6717       fi
6718       rm -f conftest.* libconftest.a
6719
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722
6723 fi
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6725 $as_echo "$lt_cv_ar_at_file" >&6; }
6726
6727 if test "x$lt_cv_ar_at_file" = xno; then
6728   archiver_list_spec=
6729 else
6730   archiver_list_spec=$lt_cv_ar_at_file
6731 fi
6732
6733
6734
6735
6736
6737
6738
6739 if test -n "$ac_tool_prefix"; then
6740   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}strip; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_STRIP+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   if test -n "$STRIP"; then
6748   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755     for ac_exec_ext in '' $ac_executable_extensions; do
6756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762   done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 STRIP=$ac_cv_prog_STRIP
6768 if test -n "$STRIP"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6770 $as_echo "$STRIP" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776
6777 fi
6778 if test -z "$ac_cv_prog_STRIP"; then
6779   ac_ct_STRIP=$STRIP
6780   # Extract the first word of "strip", so it can be a program name with args.
6781 set dummy strip; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   if test -n "$ac_ct_STRIP"; then
6788   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795     for ac_exec_ext in '' $ac_executable_extensions; do
6796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797     ac_cv_prog_ac_ct_STRIP="strip"
6798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802   done
6803 IFS=$as_save_IFS
6804
6805 fi
6806 fi
6807 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6808 if test -n "$ac_ct_STRIP"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6810 $as_echo "$ac_ct_STRIP" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815
6816   if test "x$ac_ct_STRIP" = x; then
6817     STRIP=":"
6818   else
6819     case $cross_compiling:$ac_tool_warned in
6820 yes:)
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825     STRIP=$ac_ct_STRIP
6826   fi
6827 else
6828   STRIP="$ac_cv_prog_STRIP"
6829 fi
6830
6831 test -z "$STRIP" && STRIP=:
6832
6833
6834
6835
6836
6837
6838 if test -n "$ac_tool_prefix"; then
6839   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_RANLIB+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$RANLIB"; then
6847   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 RANLIB=$ac_cv_prog_RANLIB
6867 if test -n "$RANLIB"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6869 $as_echo "$RANLIB" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_RANLIB"; then
6878   ac_ct_RANLIB=$RANLIB
6879   # Extract the first word of "ranlib", so it can be a program name with args.
6880 set dummy ranlib; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   if test -n "$ac_ct_RANLIB"; then
6887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896     ac_cv_prog_ac_ct_RANLIB="ranlib"
6897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901   done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6907 if test -n "$ac_ct_RANLIB"; then
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6909 $as_echo "$ac_ct_RANLIB" >&6; }
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915   if test "x$ac_ct_RANLIB" = x; then
6916     RANLIB=":"
6917   else
6918     case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924     RANLIB=$ac_ct_RANLIB
6925   fi
6926 else
6927   RANLIB="$ac_cv_prog_RANLIB"
6928 fi
6929
6930 test -z "$RANLIB" && RANLIB=:
6931
6932
6933
6934
6935
6936
6937 # Determine commands to create old-style static archives.
6938 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6939 old_postinstall_cmds='chmod 644 $oldlib'
6940 old_postuninstall_cmds=
6941
6942 if test -n "$RANLIB"; then
6943   case $host_os in
6944   openbsd*)
6945     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6946     ;;
6947   *)
6948     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6949     ;;
6950   esac
6951   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6952 fi
6953
6954 case $host_os in
6955   darwin*)
6956     lock_old_archive_extraction=yes ;;
6957   *)
6958     lock_old_archive_extraction=no ;;
6959 esac
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999 # If no C compiler was specified, use CC.
7000 LTCC=${LTCC-"$CC"}
7001
7002 # If no C compiler flags were specified, use CFLAGS.
7003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7004
7005 # Allow CC to be a program name with arguments.
7006 compiler=$CC
7007
7008
7009 # Check for command to grab the raw symbol name followed by C symbol from nm.
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7011 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7012 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015
7016 # These are sane defaults that work on at least a few old systems.
7017 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7018
7019 # Character class describing NM global symbol codes.
7020 symcode='[BCDEGRST]'
7021
7022 # Regexp to match symbols that can be accessed directly from C.
7023 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7024
7025 # Define system-specific variables.
7026 case $host_os in
7027 aix*)
7028   symcode='[BCDT]'
7029   ;;
7030 cygwin* | mingw* | pw32* | cegcc*)
7031   symcode='[ABCDGISTW]'
7032   ;;
7033 hpux*)
7034   if test "$host_cpu" = ia64; then
7035     symcode='[ABCDEGRST]'
7036   fi
7037   ;;
7038 irix* | nonstopux*)
7039   symcode='[BCDEGRST]'
7040   ;;
7041 osf*)
7042   symcode='[BCDEGQRST]'
7043   ;;
7044 solaris*)
7045   symcode='[BDRT]'
7046   ;;
7047 sco3.2v5*)
7048   symcode='[DT]'
7049   ;;
7050 sysv4.2uw2*)
7051   symcode='[DT]'
7052   ;;
7053 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7054   symcode='[ABDT]'
7055   ;;
7056 sysv4)
7057   symcode='[DFNSTU]'
7058   ;;
7059 esac
7060
7061 # If we're using GNU nm, then use its standard symbol codes.
7062 case `$NM -V 2>&1` in
7063 *GNU* | *'with BFD'*)
7064   symcode='[ABCDGIRSTW]' ;;
7065 esac
7066
7067 # Transform an extracted symbol line into a proper C declaration.
7068 # Some systems (esp. on ia64) link data and code symbols differently,
7069 # so use this general approach.
7070 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7071
7072 # Transform an extracted symbol line into symbol name and symbol address
7073 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7074 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7075
7076 # Handle CRLF in mingw tool chain
7077 opt_cr=
7078 case $build_os in
7079 mingw*)
7080   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7081   ;;
7082 esac
7083
7084 # Try without a prefix underscore, then with it.
7085 for ac_symprfx in "" "_"; do
7086
7087   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7088   symxfrm="\\1 $ac_symprfx\\2 \\2"
7089
7090   # Write the raw and C identifiers.
7091   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7092     # Fake it for dumpbin and say T for any non-static function
7093     # and D for any global variable.
7094     # Also find C++ and __fastcall symbols from MSVC++,
7095     # which start with @ or ?.
7096     lt_cv_sys_global_symbol_pipe="$AWK '"\
7097 "     {last_section=section; section=\$ 3};"\
7098 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7099 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7100 "     \$ 0!~/External *\|/{next};"\
7101 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7102 "     {if(hide[section]) next};"\
7103 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7104 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7105 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7106 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7107 "     ' prfx=^$ac_symprfx"
7108   else
7109     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7110   fi
7111   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7112
7113   # Check to see that the pipe works correctly.
7114   pipe_works=no
7115
7116   rm -f conftest*
7117   cat > conftest.$ac_ext <<_LT_EOF
7118 #ifdef __cplusplus
7119 extern "C" {
7120 #endif
7121 char nm_test_var;
7122 void nm_test_func(void);
7123 void nm_test_func(void){}
7124 #ifdef __cplusplus
7125 }
7126 #endif
7127 int main(){nm_test_var='a';nm_test_func();return(0);}
7128 _LT_EOF
7129
7130   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7131   (eval $ac_compile) 2>&5
7132   ac_status=$?
7133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134   test $ac_status = 0; }; then
7135     # Now try to grab the symbols.
7136     nlist=conftest.nm
7137     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7138   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7139   ac_status=$?
7140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141   test $ac_status = 0; } && test -s "$nlist"; then
7142       # Try sorting and uniquifying the output.
7143       if sort "$nlist" | uniq > "$nlist"T; then
7144         mv -f "$nlist"T "$nlist"
7145       else
7146         rm -f "$nlist"T
7147       fi
7148
7149       # Make sure that we snagged all the symbols we need.
7150       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7151         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7152           cat <<_LT_EOF > conftest.$ac_ext
7153 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7154 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7155 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7156    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7157 # define LT_DLSYM_CONST
7158 #elif defined(__osf__)
7159 /* This system does not cope well with relocations in const data.  */
7160 # define LT_DLSYM_CONST
7161 #else
7162 # define LT_DLSYM_CONST const
7163 #endif
7164
7165 #ifdef __cplusplus
7166 extern "C" {
7167 #endif
7168
7169 _LT_EOF
7170           # Now generate the symbol file.
7171           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7172
7173           cat <<_LT_EOF >> conftest.$ac_ext
7174
7175 /* The mapping between symbol names and symbols.  */
7176 LT_DLSYM_CONST struct {
7177   const char *name;
7178   void       *address;
7179 }
7180 lt__PROGRAM__LTX_preloaded_symbols[] =
7181 {
7182   { "@PROGRAM@", (void *) 0 },
7183 _LT_EOF
7184           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7185           cat <<\_LT_EOF >> conftest.$ac_ext
7186   {0, (void *) 0}
7187 };
7188
7189 /* This works around a problem in FreeBSD linker */
7190 #ifdef FREEBSD_WORKAROUND
7191 static const void *lt_preloaded_setup() {
7192   return lt__PROGRAM__LTX_preloaded_symbols;
7193 }
7194 #endif
7195
7196 #ifdef __cplusplus
7197 }
7198 #endif
7199 _LT_EOF
7200           # Now try linking the two files.
7201           mv conftest.$ac_objext conftstm.$ac_objext
7202           lt_globsym_save_LIBS=$LIBS
7203           lt_globsym_save_CFLAGS=$CFLAGS
7204           LIBS="conftstm.$ac_objext"
7205           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7206           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7207   (eval $ac_link) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7211             pipe_works=yes
7212           fi
7213           LIBS=$lt_globsym_save_LIBS
7214           CFLAGS=$lt_globsym_save_CFLAGS
7215         else
7216           echo "cannot find nm_test_func in $nlist" >&5
7217         fi
7218       else
7219         echo "cannot find nm_test_var in $nlist" >&5
7220       fi
7221     else
7222       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7223     fi
7224   else
7225     echo "$progname: failed program was:" >&5
7226     cat conftest.$ac_ext >&5
7227   fi
7228   rm -rf conftest* conftst*
7229
7230   # Do not use the global_symbol_pipe unless it works.
7231   if test "$pipe_works" = yes; then
7232     break
7233   else
7234     lt_cv_sys_global_symbol_pipe=
7235   fi
7236 done
7237
7238 fi
7239
7240 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7241   lt_cv_sys_global_symbol_to_cdecl=
7242 fi
7243 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7245 $as_echo "failed" >&6; }
7246 else
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7248 $as_echo "ok" >&6; }
7249 fi
7250
7251 # Response file support.
7252 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7253   nm_file_list_spec='@'
7254 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7255   nm_file_list_spec='@'
7256 fi
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7285 $as_echo_n "checking for sysroot... " >&6; }
7286
7287 # Check whether --with-sysroot was given.
7288 if test "${with_sysroot+set}" = set; then :
7289   withval=$with_sysroot;
7290 else
7291   with_sysroot=no
7292 fi
7293
7294
7295 lt_sysroot=
7296 case ${with_sysroot} in #(
7297  yes)
7298    if test "$GCC" = yes; then
7299      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7300    fi
7301    ;; #(
7302  /*)
7303    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7304    ;; #(
7305  no|'')
7306    ;; #(
7307  *)
7308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7309 $as_echo "${with_sysroot}" >&6; }
7310    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7311    ;;
7312 esac
7313
7314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7315 $as_echo "${lt_sysroot:-no}" >&6; }
7316
7317
7318
7319
7320
7321 # Check whether --enable-libtool-lock was given.
7322 if test "${enable_libtool_lock+set}" = set; then :
7323   enableval=$enable_libtool_lock;
7324 fi
7325
7326 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7327
7328 # Some flags need to be propagated to the compiler or linker for good
7329 # libtool support.
7330 case $host in
7331 ia64-*-hpux*)
7332   # Find out which ABI we are using.
7333   echo 'int i;' > conftest.$ac_ext
7334   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335   (eval $ac_compile) 2>&5
7336   ac_status=$?
7337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338   test $ac_status = 0; }; then
7339     case `/usr/bin/file conftest.$ac_objext` in
7340       *ELF-32*)
7341         HPUX_IA64_MODE="32"
7342         ;;
7343       *ELF-64*)
7344         HPUX_IA64_MODE="64"
7345         ;;
7346     esac
7347   fi
7348   rm -rf conftest*
7349   ;;
7350 *-*-irix6*)
7351   # Find out which ABI we are using.
7352   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7353   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354   (eval $ac_compile) 2>&5
7355   ac_status=$?
7356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357   test $ac_status = 0; }; then
7358     if test "$lt_cv_prog_gnu_ld" = yes; then
7359       case `/usr/bin/file conftest.$ac_objext` in
7360         *32-bit*)
7361           LD="${LD-ld} -melf32bsmip"
7362           ;;
7363         *N32*)
7364           LD="${LD-ld} -melf32bmipn32"
7365           ;;
7366         *64-bit*)
7367           LD="${LD-ld} -melf64bmip"
7368         ;;
7369       esac
7370     else
7371       case `/usr/bin/file conftest.$ac_objext` in
7372         *32-bit*)
7373           LD="${LD-ld} -32"
7374           ;;
7375         *N32*)
7376           LD="${LD-ld} -n32"
7377           ;;
7378         *64-bit*)
7379           LD="${LD-ld} -64"
7380           ;;
7381       esac
7382     fi
7383   fi
7384   rm -rf conftest*
7385   ;;
7386
7387 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7388 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7389   # Find out which ABI we are using.
7390   echo 'int i;' > conftest.$ac_ext
7391   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392   (eval $ac_compile) 2>&5
7393   ac_status=$?
7394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395   test $ac_status = 0; }; then
7396     case `/usr/bin/file conftest.o` in
7397       *32-bit*)
7398         case $host in
7399           x86_64-*kfreebsd*-gnu)
7400             LD="${LD-ld} -m elf_i386_fbsd"
7401             ;;
7402           x86_64-*linux*)
7403             case `/usr/bin/file conftest.o` in
7404               *x86-64*)
7405                 LD="${LD-ld} -m elf32_x86_64"
7406                 ;;
7407               *)
7408                 LD="${LD-ld} -m elf_i386"
7409                 ;;
7410             esac
7411             ;;
7412           powerpc64le-*)
7413             LD="${LD-ld} -m elf32lppclinux"
7414             ;;
7415           powerpc64-*)
7416             LD="${LD-ld} -m elf32ppclinux"
7417             ;;
7418           s390x-*linux*)
7419             LD="${LD-ld} -m elf_s390"
7420             ;;
7421           sparc64-*linux*)
7422             LD="${LD-ld} -m elf32_sparc"
7423             ;;
7424         esac
7425         ;;
7426       *64-bit*)
7427         case $host in
7428           x86_64-*kfreebsd*-gnu)
7429             LD="${LD-ld} -m elf_x86_64_fbsd"
7430             ;;
7431           x86_64-*linux*)
7432             LD="${LD-ld} -m elf_x86_64"
7433             ;;
7434           powerpcle-*)
7435             LD="${LD-ld} -m elf64lppc"
7436             ;;
7437           powerpc-*)
7438             LD="${LD-ld} -m elf64ppc"
7439             ;;
7440           s390*-*linux*|s390*-*tpf*)
7441             LD="${LD-ld} -m elf64_s390"
7442             ;;
7443           sparc*-*linux*)
7444             LD="${LD-ld} -m elf64_sparc"
7445             ;;
7446         esac
7447         ;;
7448     esac
7449   fi
7450   rm -rf conftest*
7451   ;;
7452
7453 *-*-sco3.2v5*)
7454   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7455   SAVE_CFLAGS="$CFLAGS"
7456   CFLAGS="$CFLAGS -belf"
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7458 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7459 if ${lt_cv_cc_needs_belf+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
7468      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h.  */
7470
7471 int
7472 main ()
7473 {
7474
7475   ;
7476   return 0;
7477 }
7478 _ACEOF
7479 if ac_fn_c_try_link "$LINENO"; then :
7480   lt_cv_cc_needs_belf=yes
7481 else
7482   lt_cv_cc_needs_belf=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext \
7485     conftest$ac_exeext conftest.$ac_ext
7486      ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7494 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7495   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7496     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7497     CFLAGS="$SAVE_CFLAGS"
7498   fi
7499   ;;
7500 *-*solaris*)
7501   # Find out which ABI we are using.
7502   echo 'int i;' > conftest.$ac_ext
7503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504   (eval $ac_compile) 2>&5
7505   ac_status=$?
7506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507   test $ac_status = 0; }; then
7508     case `/usr/bin/file conftest.o` in
7509     *64-bit*)
7510       case $lt_cv_prog_gnu_ld in
7511       yes*)
7512         case $host in
7513         i?86-*-solaris*)
7514           LD="${LD-ld} -m elf_x86_64"
7515           ;;
7516         sparc*-*-solaris*)
7517           LD="${LD-ld} -m elf64_sparc"
7518           ;;
7519         esac
7520         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7521         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7522           LD="${LD-ld}_sol2"
7523         fi
7524         ;;
7525       *)
7526         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7527           LD="${LD-ld} -64"
7528         fi
7529         ;;
7530       esac
7531       ;;
7532     esac
7533   fi
7534   rm -rf conftest*
7535   ;;
7536 esac
7537
7538 need_locks="$enable_libtool_lock"
7539
7540 if test -n "$ac_tool_prefix"; then
7541   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}mt; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$MANIFEST_TOOL"; then
7549   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563   done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7569 if test -n "$MANIFEST_TOOL"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7571 $as_echo "$MANIFEST_TOOL" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7580   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7581   # Extract the first word of "mt", so it can be a program name with args.
7582 set dummy mt; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588   if test -n "$ac_ct_MANIFEST_TOOL"; then
7589   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596     for ac_exec_ext in '' $ac_executable_extensions; do
7597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603   done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7609 if test -n "$ac_ct_MANIFEST_TOOL"; then
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7611 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7612 else
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7618     MANIFEST_TOOL=":"
7619   else
7620     case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7627   fi
7628 else
7629   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7630 fi
7631
7632 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7634 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7635 if ${lt_cv_path_mainfest_tool+:} false; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   lt_cv_path_mainfest_tool=no
7639   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7640   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7641   cat conftest.err >&5
7642   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7643     lt_cv_path_mainfest_tool=yes
7644   fi
7645   rm -f conftest*
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7648 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7649 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7650   MANIFEST_TOOL=:
7651 fi
7652
7653
7654
7655
7656
7657
7658   case $host_os in
7659     rhapsody* | darwin*)
7660     if test -n "$ac_tool_prefix"; then
7661   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$DSYMUTIL"; then
7669   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7689 if test -n "$DSYMUTIL"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7691 $as_echo "$DSYMUTIL" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698 fi
7699 if test -z "$ac_cv_prog_DSYMUTIL"; then
7700   ac_ct_DSYMUTIL=$DSYMUTIL
7701   # Extract the first word of "dsymutil", so it can be a program name with args.
7702 set dummy dsymutil; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   if test -n "$ac_ct_DSYMUTIL"; then
7709   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7713 do
7714   IFS=$as_save_IFS
7715   test -z "$as_dir" && as_dir=.
7716     for ac_exec_ext in '' $ac_executable_extensions; do
7717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720     break 2
7721   fi
7722 done
7723   done
7724 IFS=$as_save_IFS
7725
7726 fi
7727 fi
7728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7729 if test -n "$ac_ct_DSYMUTIL"; then
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7732 else
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737   if test "x$ac_ct_DSYMUTIL" = x; then
7738     DSYMUTIL=":"
7739   else
7740     case $cross_compiling:$ac_tool_warned in
7741 yes:)
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7745 esac
7746     DSYMUTIL=$ac_ct_DSYMUTIL
7747   fi
7748 else
7749   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7750 fi
7751
7752     if test -n "$ac_tool_prefix"; then
7753   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_NMEDIT+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$NMEDIT"; then
7761   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 NMEDIT=$ac_cv_prog_NMEDIT
7781 if test -n "$NMEDIT"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7783 $as_echo "$NMEDIT" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790 fi
7791 if test -z "$ac_cv_prog_NMEDIT"; then
7792   ac_ct_NMEDIT=$NMEDIT
7793   # Extract the first word of "nmedit", so it can be a program name with args.
7794 set dummy nmedit; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   if test -n "$ac_ct_NMEDIT"; then
7801   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808     for ac_exec_ext in '' $ac_executable_extensions; do
7809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815   done
7816 IFS=$as_save_IFS
7817
7818 fi
7819 fi
7820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7821 if test -n "$ac_ct_NMEDIT"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7823 $as_echo "$ac_ct_NMEDIT" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829   if test "x$ac_ct_NMEDIT" = x; then
7830     NMEDIT=":"
7831   else
7832     case $cross_compiling:$ac_tool_warned in
7833 yes:)
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7836 ac_tool_warned=yes ;;
7837 esac
7838     NMEDIT=$ac_ct_NMEDIT
7839   fi
7840 else
7841   NMEDIT="$ac_cv_prog_NMEDIT"
7842 fi
7843
7844     if test -n "$ac_tool_prefix"; then
7845   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_LIPO+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$LIPO"; then
7853   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 LIPO=$ac_cv_prog_LIPO
7873 if test -n "$LIPO"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7875 $as_echo "$LIPO" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881
7882 fi
7883 if test -z "$ac_cv_prog_LIPO"; then
7884   ac_ct_LIPO=$LIPO
7885   # Extract the first word of "lipo", so it can be a program name with args.
7886 set dummy lipo; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   if test -n "$ac_ct_LIPO"; then
7893   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7894 else
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898   IFS=$as_save_IFS
7899   test -z "$as_dir" && as_dir=.
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902     ac_cv_prog_ac_ct_LIPO="lipo"
7903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909
7910 fi
7911 fi
7912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7913 if test -n "$ac_ct_LIPO"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7915 $as_echo "$ac_ct_LIPO" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921   if test "x$ac_ct_LIPO" = x; then
7922     LIPO=":"
7923   else
7924     case $cross_compiling:$ac_tool_warned in
7925 yes:)
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928 ac_tool_warned=yes ;;
7929 esac
7930     LIPO=$ac_ct_LIPO
7931   fi
7932 else
7933   LIPO="$ac_cv_prog_LIPO"
7934 fi
7935
7936     if test -n "$ac_tool_prefix"; then
7937   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7938 set dummy ${ac_tool_prefix}otool; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_OTOOL+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$OTOOL"; then
7945   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 OTOOL=$ac_cv_prog_OTOOL
7965 if test -n "$OTOOL"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7967 $as_echo "$OTOOL" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 fi
7975 if test -z "$ac_cv_prog_OTOOL"; then
7976   ac_ct_OTOOL=$OTOOL
7977   # Extract the first word of "otool", so it can be a program name with args.
7978 set dummy otool; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   if test -n "$ac_ct_OTOOL"; then
7985   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994     ac_cv_prog_ac_ct_OTOOL="otool"
7995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8005 if test -n "$ac_ct_OTOOL"; then
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8007 $as_echo "$ac_ct_OTOOL" >&6; }
8008 else
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013   if test "x$ac_ct_OTOOL" = x; then
8014     OTOOL=":"
8015   else
8016     case $cross_compiling:$ac_tool_warned in
8017 yes:)
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8021 esac
8022     OTOOL=$ac_ct_OTOOL
8023   fi
8024 else
8025   OTOOL="$ac_cv_prog_OTOOL"
8026 fi
8027
8028     if test -n "$ac_tool_prefix"; then
8029   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_OTOOL64+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   if test -n "$OTOOL64"; then
8037   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044     for ac_exec_ext in '' $ac_executable_extensions; do
8045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051   done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 OTOOL64=$ac_cv_prog_OTOOL64
8057 if test -n "$OTOOL64"; then
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8059 $as_echo "$OTOOL64" >&6; }
8060 else
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065
8066 fi
8067 if test -z "$ac_cv_prog_OTOOL64"; then
8068   ac_ct_OTOOL64=$OTOOL64
8069   # Extract the first word of "otool64", so it can be a program name with args.
8070 set dummy otool64; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   if test -n "$ac_ct_OTOOL64"; then
8077   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082   IFS=$as_save_IFS
8083   test -z "$as_dir" && as_dir=.
8084     for ac_exec_ext in '' $ac_executable_extensions; do
8085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086     ac_cv_prog_ac_ct_OTOOL64="otool64"
8087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088     break 2
8089   fi
8090 done
8091   done
8092 IFS=$as_save_IFS
8093
8094 fi
8095 fi
8096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8097 if test -n "$ac_ct_OTOOL64"; then
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8099 $as_echo "$ac_ct_OTOOL64" >&6; }
8100 else
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 fi
8104
8105   if test "x$ac_ct_OTOOL64" = x; then
8106     OTOOL64=":"
8107   else
8108     case $cross_compiling:$ac_tool_warned in
8109 yes:)
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8112 ac_tool_warned=yes ;;
8113 esac
8114     OTOOL64=$ac_ct_OTOOL64
8115   fi
8116 else
8117   OTOOL64="$ac_cv_prog_OTOOL64"
8118 fi
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8147 $as_echo_n "checking for -single_module linker flag... " >&6; }
8148 if ${lt_cv_apple_cc_single_mod+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   lt_cv_apple_cc_single_mod=no
8152       if test -z "${LT_MULTI_MODULE}"; then
8153         # By default we will add the -single_module flag. You can override
8154         # by either setting the environment variable LT_MULTI_MODULE
8155         # non-empty at configure time, or by adding -multi_module to the
8156         # link flags.
8157         rm -rf libconftest.dylib*
8158         echo "int foo(void){return 1;}" > conftest.c
8159         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8160 -dynamiclib -Wl,-single_module conftest.c" >&5
8161         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8163         _lt_result=$?
8164         # If there is a non-empty error log, and "single_module"
8165         # appears in it, assume the flag caused a linker warning
8166         if test -s conftest.err && $GREP single_module conftest.err; then
8167           cat conftest.err >&5
8168         # Otherwise, if the output was created with a 0 exit code from
8169         # the compiler, it worked.
8170         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8171           lt_cv_apple_cc_single_mod=yes
8172         else
8173           cat conftest.err >&5
8174         fi
8175         rm -rf libconftest.dylib*
8176         rm -f conftest.*
8177       fi
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181
8182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8183 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8184 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   lt_cv_ld_exported_symbols_list=no
8188       save_LDFLAGS=$LDFLAGS
8189       echo "_main" > conftest.sym
8190       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h.  */
8193
8194 int
8195 main ()
8196 {
8197
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 if ac_fn_c_try_link "$LINENO"; then :
8203   lt_cv_ld_exported_symbols_list=yes
8204 else
8205   lt_cv_ld_exported_symbols_list=no
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext \
8208     conftest$ac_exeext conftest.$ac_ext
8209         LDFLAGS="$save_LDFLAGS"
8210
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8213 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8214
8215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8216 $as_echo_n "checking for -force_load linker flag... " >&6; }
8217 if ${lt_cv_ld_force_load+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   lt_cv_ld_force_load=no
8221       cat > conftest.c << _LT_EOF
8222 int forced_loaded() { return 2;}
8223 _LT_EOF
8224       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8225       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8226       echo "$AR cru libconftest.a conftest.o" >&5
8227       $AR cru libconftest.a conftest.o 2>&5
8228       echo "$RANLIB libconftest.a" >&5
8229       $RANLIB libconftest.a 2>&5
8230       cat > conftest.c << _LT_EOF
8231 int main() { return 0;}
8232 _LT_EOF
8233       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8234       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8235       _lt_result=$?
8236       if test -s conftest.err && $GREP force_load conftest.err; then
8237         cat conftest.err >&5
8238       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8239         lt_cv_ld_force_load=yes
8240       else
8241         cat conftest.err >&5
8242       fi
8243         rm -f conftest.err libconftest.a conftest conftest.c
8244         rm -rf conftest.dSYM
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8248 $as_echo "$lt_cv_ld_force_load" >&6; }
8249     case $host_os in
8250     rhapsody* | darwin1.[012])
8251       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8252     darwin1.*)
8253       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8254     darwin*) # darwin 5.x on
8255       # if running on 10.5 or later, the deployment target defaults
8256       # to the OS version, if on x86, and 10.4, the deployment
8257       # target defaults to 10.4. Don't you love it?
8258       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8259         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8260           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8261         10.[012]*)
8262           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8263         10.*)
8264           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265       esac
8266     ;;
8267   esac
8268     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8269       _lt_dar_single_mod='$single_module'
8270     fi
8271     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8272       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8273     else
8274       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8275     fi
8276     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8277       _lt_dsymutil='~$DSYMUTIL $lib || :'
8278     else
8279       _lt_dsymutil=
8280     fi
8281     ;;
8282   esac
8283
8284 for ac_header in dlfcn.h
8285 do :
8286   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8287 "
8288 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8289   cat >>confdefs.h <<_ACEOF
8290 #define HAVE_DLFCN_H 1
8291 _ACEOF
8292
8293 fi
8294
8295 done
8296
8297
8298
8299
8300
8301 # Set options
8302
8303
8304
8305         enable_dlopen=no
8306
8307
8308   enable_win32_dll=no
8309
8310
8311             # Check whether --enable-shared was given.
8312 if test "${enable_shared+set}" = set; then :
8313   enableval=$enable_shared; p=${PACKAGE-default}
8314     case $enableval in
8315     yes) enable_shared=yes ;;
8316     no) enable_shared=no ;;
8317     *)
8318       enable_shared=no
8319       # Look at the argument we got.  We use all the common list separators.
8320       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8321       for pkg in $enableval; do
8322         IFS="$lt_save_ifs"
8323         if test "X$pkg" = "X$p"; then
8324           enable_shared=yes
8325         fi
8326       done
8327       IFS="$lt_save_ifs"
8328       ;;
8329     esac
8330 else
8331   enable_shared=yes
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342   # Check whether --enable-static was given.
8343 if test "${enable_static+set}" = set; then :
8344   enableval=$enable_static; p=${PACKAGE-default}
8345     case $enableval in
8346     yes) enable_static=yes ;;
8347     no) enable_static=no ;;
8348     *)
8349      enable_static=no
8350       # Look at the argument we got.  We use all the common list separators.
8351       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8352       for pkg in $enableval; do
8353         IFS="$lt_save_ifs"
8354         if test "X$pkg" = "X$p"; then
8355           enable_static=yes
8356         fi
8357       done
8358       IFS="$lt_save_ifs"
8359       ;;
8360     esac
8361 else
8362   enable_static=yes
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374 # Check whether --with-pic was given.
8375 if test "${with_pic+set}" = set; then :
8376   withval=$with_pic; lt_p=${PACKAGE-default}
8377     case $withval in
8378     yes|no) pic_mode=$withval ;;
8379     *)
8380       pic_mode=default
8381       # Look at the argument we got.  We use all the common list separators.
8382       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8383       for lt_pkg in $withval; do
8384         IFS="$lt_save_ifs"
8385         if test "X$lt_pkg" = "X$lt_p"; then
8386           pic_mode=yes
8387         fi
8388       done
8389       IFS="$lt_save_ifs"
8390       ;;
8391     esac
8392 else
8393   pic_mode=default
8394 fi
8395
8396
8397 test -z "$pic_mode" && pic_mode=default
8398
8399
8400
8401
8402
8403
8404
8405   # Check whether --enable-fast-install was given.
8406 if test "${enable_fast_install+set}" = set; then :
8407   enableval=$enable_fast_install; p=${PACKAGE-default}
8408     case $enableval in
8409     yes) enable_fast_install=yes ;;
8410     no) enable_fast_install=no ;;
8411     *)
8412       enable_fast_install=no
8413       # Look at the argument we got.  We use all the common list separators.
8414       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8415       for pkg in $enableval; do
8416         IFS="$lt_save_ifs"
8417         if test "X$pkg" = "X$p"; then
8418           enable_fast_install=yes
8419         fi
8420       done
8421       IFS="$lt_save_ifs"
8422       ;;
8423     esac
8424 else
8425   enable_fast_install=yes
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438 # This can be used to rebuild libtool when needed
8439 LIBTOOL_DEPS="$ltmain"
8440
8441 # Always use our own libtool.
8442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 test -z "$LN_S" && LN_S="ln -s"
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 if test -n "${ZSH_VERSION+set}" ; then
8489    setopt NO_GLOB_SUBST
8490 fi
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8493 $as_echo_n "checking for objdir... " >&6; }
8494 if ${lt_cv_objdir+:} false; then :
8495   $as_echo_n "(cached) " >&6
8496 else
8497   rm -f .libs 2>/dev/null
8498 mkdir .libs 2>/dev/null
8499 if test -d .libs; then
8500   lt_cv_objdir=.libs
8501 else
8502   # MS-DOS does not allow filenames that begin with a dot.
8503   lt_cv_objdir=_libs
8504 fi
8505 rmdir .libs 2>/dev/null
8506 fi
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8508 $as_echo "$lt_cv_objdir" >&6; }
8509 objdir=$lt_cv_objdir
8510
8511
8512
8513
8514
8515 cat >>confdefs.h <<_ACEOF
8516 #define LT_OBJDIR "$lt_cv_objdir/"
8517 _ACEOF
8518
8519
8520
8521
8522 case $host_os in
8523 aix3*)
8524   # AIX sometimes has problems with the GCC collect2 program.  For some
8525   # reason, if we set the COLLECT_NAMES environment variable, the problems
8526   # vanish in a puff of smoke.
8527   if test "X${COLLECT_NAMES+set}" != Xset; then
8528     COLLECT_NAMES=
8529     export COLLECT_NAMES
8530   fi
8531   ;;
8532 esac
8533
8534 # Global variables:
8535 ofile=libtool
8536 can_build_shared=yes
8537
8538 # All known linkers require a `.a' archive for static linking (except MSVC,
8539 # which needs '.lib').
8540 libext=a
8541
8542 with_gnu_ld="$lt_cv_prog_gnu_ld"
8543
8544 old_CC="$CC"
8545 old_CFLAGS="$CFLAGS"
8546
8547 # Set sane defaults for various variables
8548 test -z "$CC" && CC=cc
8549 test -z "$LTCC" && LTCC=$CC
8550 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8551 test -z "$LD" && LD=ld
8552 test -z "$ac_objext" && ac_objext=o
8553
8554 for cc_temp in $compiler""; do
8555   case $cc_temp in
8556     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8557     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8558     \-*) ;;
8559     *) break;;
8560   esac
8561 done
8562 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8563
8564
8565 # Only perform the check for file, if the check method requires it
8566 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8567 case $deplibs_check_method in
8568 file_magic*)
8569   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8571 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   case $MAGIC_CMD in
8576 [\\/*] |  ?:[\\/]*)
8577   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8578   ;;
8579 *)
8580   lt_save_MAGIC_CMD="$MAGIC_CMD"
8581   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8582   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8583   for ac_dir in $ac_dummy; do
8584     IFS="$lt_save_ifs"
8585     test -z "$ac_dir" && ac_dir=.
8586     if test -f $ac_dir/${ac_tool_prefix}file; then
8587       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8588       if test -n "$file_magic_test_file"; then
8589         case $deplibs_check_method in
8590         "file_magic "*)
8591           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8592           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8594             $EGREP "$file_magic_regex" > /dev/null; then
8595             :
8596           else
8597             cat <<_LT_EOF 1>&2
8598
8599 *** Warning: the command libtool uses to detect shared libraries,
8600 *** $file_magic_cmd, produces output that libtool cannot recognize.
8601 *** The result is that libtool may fail to recognize shared libraries
8602 *** as such.  This will affect the creation of libtool libraries that
8603 *** depend on shared libraries, but programs linked with such libtool
8604 *** libraries will work regardless of this problem.  Nevertheless, you
8605 *** may want to report the problem to your system manager and/or to
8606 *** bug-libtool@gnu.org
8607
8608 _LT_EOF
8609           fi ;;
8610         esac
8611       fi
8612       break
8613     fi
8614   done
8615   IFS="$lt_save_ifs"
8616   MAGIC_CMD="$lt_save_MAGIC_CMD"
8617   ;;
8618 esac
8619 fi
8620
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if test -n "$MAGIC_CMD"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8624 $as_echo "$MAGIC_CMD" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631
8632
8633
8634 if test -z "$lt_cv_path_MAGIC_CMD"; then
8635   if test -n "$ac_tool_prefix"; then
8636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8637 $as_echo_n "checking for file... " >&6; }
8638 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   case $MAGIC_CMD in
8642 [\\/*] |  ?:[\\/]*)
8643   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8644   ;;
8645 *)
8646   lt_save_MAGIC_CMD="$MAGIC_CMD"
8647   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8648   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8649   for ac_dir in $ac_dummy; do
8650     IFS="$lt_save_ifs"
8651     test -z "$ac_dir" && ac_dir=.
8652     if test -f $ac_dir/file; then
8653       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8654       if test -n "$file_magic_test_file"; then
8655         case $deplibs_check_method in
8656         "file_magic "*)
8657           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8658           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8659           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8660             $EGREP "$file_magic_regex" > /dev/null; then
8661             :
8662           else
8663             cat <<_LT_EOF 1>&2
8664
8665 *** Warning: the command libtool uses to detect shared libraries,
8666 *** $file_magic_cmd, produces output that libtool cannot recognize.
8667 *** The result is that libtool may fail to recognize shared libraries
8668 *** as such.  This will affect the creation of libtool libraries that
8669 *** depend on shared libraries, but programs linked with such libtool
8670 *** libraries will work regardless of this problem.  Nevertheless, you
8671 *** may want to report the problem to your system manager and/or to
8672 *** bug-libtool@gnu.org
8673
8674 _LT_EOF
8675           fi ;;
8676         esac
8677       fi
8678       break
8679     fi
8680   done
8681   IFS="$lt_save_ifs"
8682   MAGIC_CMD="$lt_save_MAGIC_CMD"
8683   ;;
8684 esac
8685 fi
8686
8687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8688 if test -n "$MAGIC_CMD"; then
8689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8690 $as_echo "$MAGIC_CMD" >&6; }
8691 else
8692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8694 fi
8695
8696
8697   else
8698     MAGIC_CMD=:
8699   fi
8700 fi
8701
8702   fi
8703   ;;
8704 esac
8705
8706 # Use C for the default configuration in the libtool script
8707
8708 lt_save_CC="$CC"
8709 ac_ext=c
8710 ac_cpp='$CPP $CPPFLAGS'
8711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8714
8715
8716 # Source file extension for C test sources.
8717 ac_ext=c
8718
8719 # Object file extension for compiled C test sources.
8720 objext=o
8721 objext=$objext
8722
8723 # Code to be used in simple compile tests
8724 lt_simple_compile_test_code="int some_variable = 0;"
8725
8726 # Code to be used in simple link tests
8727 lt_simple_link_test_code='int main(){return(0);}'
8728
8729
8730
8731
8732
8733
8734
8735 # If no C compiler was specified, use CC.
8736 LTCC=${LTCC-"$CC"}
8737
8738 # If no C compiler flags were specified, use CFLAGS.
8739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8740
8741 # Allow CC to be a program name with arguments.
8742 compiler=$CC
8743
8744 # Save the default compiler, since it gets overwritten when the other
8745 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8746 compiler_DEFAULT=$CC
8747
8748 # save warnings/boilerplate of simple test code
8749 ac_outfile=conftest.$ac_objext
8750 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8752 _lt_compiler_boilerplate=`cat conftest.err`
8753 $RM conftest*
8754
8755 ac_outfile=conftest.$ac_objext
8756 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8758 _lt_linker_boilerplate=`cat conftest.err`
8759 $RM -r conftest*
8760
8761
8762 if test -n "$compiler"; then
8763
8764 lt_prog_compiler_no_builtin_flag=
8765
8766 if test "$GCC" = yes; then
8767   case $cc_basename in
8768   nvcc*)
8769     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8770   *)
8771     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8772   esac
8773
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8775 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8776 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   lt_cv_prog_compiler_rtti_exceptions=no
8780    ac_outfile=conftest.$ac_objext
8781    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8782    lt_compiler_flag="-fno-rtti -fno-exceptions"
8783    # Insert the option either (1) after the last *FLAGS variable, or
8784    # (2) before a word containing "conftest.", or (3) at the end.
8785    # Note that $ac_compile itself does not contain backslashes and begins
8786    # with a dollar sign (not a hyphen), so the echo should work correctly.
8787    # The option is referenced via a variable to avoid confusing sed.
8788    lt_compile=`echo "$ac_compile" | $SED \
8789    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8790    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8791    -e 's:$: $lt_compiler_flag:'`
8792    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8793    (eval "$lt_compile" 2>conftest.err)
8794    ac_status=$?
8795    cat conftest.err >&5
8796    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797    if (exit $ac_status) && test -s "$ac_outfile"; then
8798      # The compiler can only warn and ignore the option if not recognized
8799      # So say no if there are warnings other than the usual output.
8800      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8801      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8802      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8803        lt_cv_prog_compiler_rtti_exceptions=yes
8804      fi
8805    fi
8806    $RM conftest*
8807
8808 fi
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8810 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8811
8812 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8813     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8814 else
8815     :
8816 fi
8817
8818 fi
8819
8820
8821
8822
8823
8824
8825   lt_prog_compiler_wl=
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_static=
8828
8829
8830   if test "$GCC" = yes; then
8831     lt_prog_compiler_wl='-Wl,'
8832     lt_prog_compiler_static='-static'
8833
8834     case $host_os in
8835       aix*)
8836       # All AIX code is PIC.
8837       if test "$host_cpu" = ia64; then
8838         # AIX 5 now supports IA64 processor
8839         lt_prog_compiler_static='-Bstatic'
8840       fi
8841       ;;
8842
8843     amigaos*)
8844       case $host_cpu in
8845       powerpc)
8846             # see comment about AmigaOS4 .so support
8847             lt_prog_compiler_pic='-fPIC'
8848         ;;
8849       m68k)
8850             # FIXME: we need at least 68020 code to build shared libraries, but
8851             # adding the `-m68020' flag to GCC prevents building anything better,
8852             # like `-m68040'.
8853             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8854         ;;
8855       esac
8856       ;;
8857
8858     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8859       # PIC is the default for these OSes.
8860       ;;
8861
8862     mingw* | cygwin* | pw32* | os2* | cegcc*)
8863       # This hack is so that the source file can tell whether it is being
8864       # built for inclusion in a dll (and should export symbols for example).
8865       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8866       # (--disable-auto-import) libraries
8867       lt_prog_compiler_pic='-DDLL_EXPORT'
8868       ;;
8869
8870     darwin* | rhapsody*)
8871       # PIC is the default on this platform
8872       # Common symbols not allowed in MH_DYLIB files
8873       lt_prog_compiler_pic='-fno-common'
8874       ;;
8875
8876     haiku*)
8877       # PIC is the default for Haiku.
8878       # The "-static" flag exists, but is broken.
8879       lt_prog_compiler_static=
8880       ;;
8881
8882     hpux*)
8883       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8884       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8885       # sets the default TLS model and affects inlining.
8886       case $host_cpu in
8887       hppa*64*)
8888         # +Z the default
8889         ;;
8890       *)
8891         lt_prog_compiler_pic='-fPIC'
8892         ;;
8893       esac
8894       ;;
8895
8896     interix[3-9]*)
8897       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8898       # Instead, we relocate shared libraries at runtime.
8899       ;;
8900
8901     msdosdjgpp*)
8902       # Just because we use GCC doesn't mean we suddenly get shared libraries
8903       # on systems that don't support them.
8904       lt_prog_compiler_can_build_shared=no
8905       enable_shared=no
8906       ;;
8907
8908     *nto* | *qnx*)
8909       # QNX uses GNU C++, but need to define -shared option too, otherwise
8910       # it will coredump.
8911       lt_prog_compiler_pic='-fPIC -shared'
8912       ;;
8913
8914     sysv4*MP*)
8915       if test -d /usr/nec; then
8916         lt_prog_compiler_pic=-Kconform_pic
8917       fi
8918       ;;
8919
8920     *)
8921       lt_prog_compiler_pic='-fPIC'
8922       ;;
8923     esac
8924
8925     case $cc_basename in
8926     nvcc*) # Cuda Compiler Driver 2.2
8927       lt_prog_compiler_wl='-Xlinker '
8928       if test -n "$lt_prog_compiler_pic"; then
8929         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8930       fi
8931       ;;
8932     esac
8933   else
8934     # PORTME Check for flag to pass linker flags through the system compiler.
8935     case $host_os in
8936     aix*)
8937       lt_prog_compiler_wl='-Wl,'
8938       if test "$host_cpu" = ia64; then
8939         # AIX 5 now supports IA64 processor
8940         lt_prog_compiler_static='-Bstatic'
8941       else
8942         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8943       fi
8944       ;;
8945
8946     mingw* | cygwin* | pw32* | os2* | cegcc*)
8947       # This hack is so that the source file can tell whether it is being
8948       # built for inclusion in a dll (and should export symbols for example).
8949       lt_prog_compiler_pic='-DDLL_EXPORT'
8950       ;;
8951
8952     hpux9* | hpux10* | hpux11*)
8953       lt_prog_compiler_wl='-Wl,'
8954       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8955       # not for PA HP-UX.
8956       case $host_cpu in
8957       hppa*64*|ia64*)
8958         # +Z the default
8959         ;;
8960       *)
8961         lt_prog_compiler_pic='+Z'
8962         ;;
8963       esac
8964       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8965       lt_prog_compiler_static='${wl}-a ${wl}archive'
8966       ;;
8967
8968     irix5* | irix6* | nonstopux*)
8969       lt_prog_compiler_wl='-Wl,'
8970       # PIC (with -KPIC) is the default.
8971       lt_prog_compiler_static='-non_shared'
8972       ;;
8973
8974     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8975       case $cc_basename in
8976       # old Intel for x86_64 which still supported -KPIC.
8977       ecc*)
8978         lt_prog_compiler_wl='-Wl,'
8979         lt_prog_compiler_pic='-KPIC'
8980         lt_prog_compiler_static='-static'
8981         ;;
8982       # icc used to be incompatible with GCC.
8983       # ICC 10 doesn't accept -KPIC any more.
8984       icc* | ifort*)
8985         lt_prog_compiler_wl='-Wl,'
8986         lt_prog_compiler_pic='-fPIC'
8987         lt_prog_compiler_static='-static'
8988         ;;
8989       # Lahey Fortran 8.1.
8990       lf95*)
8991         lt_prog_compiler_wl='-Wl,'
8992         lt_prog_compiler_pic='--shared'
8993         lt_prog_compiler_static='--static'
8994         ;;
8995       nagfor*)
8996         # NAG Fortran compiler
8997         lt_prog_compiler_wl='-Wl,-Wl,,'
8998         lt_prog_compiler_pic='-PIC'
8999         lt_prog_compiler_static='-Bstatic'
9000         ;;
9001       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9002         # Portland Group compilers (*not* the Pentium gcc compiler,
9003         # which looks to be a dead project)
9004         lt_prog_compiler_wl='-Wl,'
9005         lt_prog_compiler_pic='-fpic'
9006         lt_prog_compiler_static='-Bstatic'
9007         ;;
9008       ccc*)
9009         lt_prog_compiler_wl='-Wl,'
9010         # All Alpha code is PIC.
9011         lt_prog_compiler_static='-non_shared'
9012         ;;
9013       xl* | bgxl* | bgf* | mpixl*)
9014         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9015         lt_prog_compiler_wl='-Wl,'
9016         lt_prog_compiler_pic='-qpic'
9017         lt_prog_compiler_static='-qstaticlink'
9018         ;;
9019       *)
9020         case `$CC -V 2>&1 | sed 5q` in
9021         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9022           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9023           lt_prog_compiler_pic='-KPIC'
9024           lt_prog_compiler_static='-Bstatic'
9025           lt_prog_compiler_wl=''
9026           ;;
9027         *Sun\ F* | *Sun*Fortran*)
9028           lt_prog_compiler_pic='-KPIC'
9029           lt_prog_compiler_static='-Bstatic'
9030           lt_prog_compiler_wl='-Qoption ld '
9031           ;;
9032         *Sun\ C*)
9033           # Sun C 5.9
9034           lt_prog_compiler_pic='-KPIC'
9035           lt_prog_compiler_static='-Bstatic'
9036           lt_prog_compiler_wl='-Wl,'
9037           ;;
9038         *Intel*\ [CF]*Compiler*)
9039           lt_prog_compiler_wl='-Wl,'
9040           lt_prog_compiler_pic='-fPIC'
9041           lt_prog_compiler_static='-static'
9042           ;;
9043         *Portland\ Group*)
9044           lt_prog_compiler_wl='-Wl,'
9045           lt_prog_compiler_pic='-fpic'
9046           lt_prog_compiler_static='-Bstatic'
9047           ;;
9048         esac
9049         ;;
9050       esac
9051       ;;
9052
9053     newsos6)
9054       lt_prog_compiler_pic='-KPIC'
9055       lt_prog_compiler_static='-Bstatic'
9056       ;;
9057
9058     *nto* | *qnx*)
9059       # QNX uses GNU C++, but need to define -shared option too, otherwise
9060       # it will coredump.
9061       lt_prog_compiler_pic='-fPIC -shared'
9062       ;;
9063
9064     osf3* | osf4* | osf5*)
9065       lt_prog_compiler_wl='-Wl,'
9066       # All OSF/1 code is PIC.
9067       lt_prog_compiler_static='-non_shared'
9068       ;;
9069
9070     rdos*)
9071       lt_prog_compiler_static='-non_shared'
9072       ;;
9073
9074     solaris*)
9075       lt_prog_compiler_pic='-KPIC'
9076       lt_prog_compiler_static='-Bstatic'
9077       case $cc_basename in
9078       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9079         lt_prog_compiler_wl='-Qoption ld ';;
9080       *)
9081         lt_prog_compiler_wl='-Wl,';;
9082       esac
9083       ;;
9084
9085     sunos4*)
9086       lt_prog_compiler_wl='-Qoption ld '
9087       lt_prog_compiler_pic='-PIC'
9088       lt_prog_compiler_static='-Bstatic'
9089       ;;
9090
9091     sysv4 | sysv4.2uw2* | sysv4.3*)
9092       lt_prog_compiler_wl='-Wl,'
9093       lt_prog_compiler_pic='-KPIC'
9094       lt_prog_compiler_static='-Bstatic'
9095       ;;
9096
9097     sysv4*MP*)
9098       if test -d /usr/nec ;then
9099         lt_prog_compiler_pic='-Kconform_pic'
9100         lt_prog_compiler_static='-Bstatic'
9101       fi
9102       ;;
9103
9104     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9105       lt_prog_compiler_wl='-Wl,'
9106       lt_prog_compiler_pic='-KPIC'
9107       lt_prog_compiler_static='-Bstatic'
9108       ;;
9109
9110     unicos*)
9111       lt_prog_compiler_wl='-Wl,'
9112       lt_prog_compiler_can_build_shared=no
9113       ;;
9114
9115     uts4*)
9116       lt_prog_compiler_pic='-pic'
9117       lt_prog_compiler_static='-Bstatic'
9118       ;;
9119
9120     *)
9121       lt_prog_compiler_can_build_shared=no
9122       ;;
9123     esac
9124   fi
9125
9126 case $host_os in
9127   # For platforms which do not support PIC, -DPIC is meaningless:
9128   *djgpp*)
9129     lt_prog_compiler_pic=
9130     ;;
9131   *)
9132     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9133     ;;
9134 esac
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9137 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9138 if ${lt_cv_prog_compiler_pic+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9144 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9145 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9146
9147 #
9148 # Check to make sure the PIC flag actually works.
9149 #
9150 if test -n "$lt_prog_compiler_pic"; then
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9153 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9154   $as_echo_n "(cached) " >&6
9155 else
9156   lt_cv_prog_compiler_pic_works=no
9157    ac_outfile=conftest.$ac_objext
9158    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9159    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9160    # Insert the option either (1) after the last *FLAGS variable, or
9161    # (2) before a word containing "conftest.", or (3) at the end.
9162    # Note that $ac_compile itself does not contain backslashes and begins
9163    # with a dollar sign (not a hyphen), so the echo should work correctly.
9164    # The option is referenced via a variable to avoid confusing sed.
9165    lt_compile=`echo "$ac_compile" | $SED \
9166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9168    -e 's:$: $lt_compiler_flag:'`
9169    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9170    (eval "$lt_compile" 2>conftest.err)
9171    ac_status=$?
9172    cat conftest.err >&5
9173    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174    if (exit $ac_status) && test -s "$ac_outfile"; then
9175      # The compiler can only warn and ignore the option if not recognized
9176      # So say no if there are warnings other than the usual output.
9177      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9178      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9179      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9180        lt_cv_prog_compiler_pic_works=yes
9181      fi
9182    fi
9183    $RM conftest*
9184
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9187 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9188
9189 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9190     case $lt_prog_compiler_pic in
9191      "" | " "*) ;;
9192      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9193      esac
9194 else
9195     lt_prog_compiler_pic=
9196      lt_prog_compiler_can_build_shared=no
9197 fi
9198
9199 fi
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 #
9212 # Check to make sure the static flag actually works.
9213 #
9214 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9217 if ${lt_cv_prog_compiler_static_works+:} false; then :
9218   $as_echo_n "(cached) " >&6
9219 else
9220   lt_cv_prog_compiler_static_works=no
9221    save_LDFLAGS="$LDFLAGS"
9222    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9223    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9224    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9225      # The linker can only warn and ignore the option if not recognized
9226      # So say no if there are warnings
9227      if test -s conftest.err; then
9228        # Append any errors to the config.log.
9229        cat conftest.err 1>&5
9230        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9231        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232        if diff conftest.exp conftest.er2 >/dev/null; then
9233          lt_cv_prog_compiler_static_works=yes
9234        fi
9235      else
9236        lt_cv_prog_compiler_static_works=yes
9237      fi
9238    fi
9239    $RM -r conftest*
9240    LDFLAGS="$save_LDFLAGS"
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9244 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9245
9246 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9247     :
9248 else
9249     lt_prog_compiler_static=
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9260 if ${lt_cv_prog_compiler_c_o+:} false; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   lt_cv_prog_compiler_c_o=no
9264    $RM -r conftest 2>/dev/null
9265    mkdir conftest
9266    cd conftest
9267    mkdir out
9268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9269
9270    lt_compiler_flag="-o out/conftest2.$ac_objext"
9271    # Insert the option either (1) after the last *FLAGS variable, or
9272    # (2) before a word containing "conftest.", or (3) at the end.
9273    # Note that $ac_compile itself does not contain backslashes and begins
9274    # with a dollar sign (not a hyphen), so the echo should work correctly.
9275    lt_compile=`echo "$ac_compile" | $SED \
9276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9278    -e 's:$: $lt_compiler_flag:'`
9279    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9280    (eval "$lt_compile" 2>out/conftest.err)
9281    ac_status=$?
9282    cat out/conftest.err >&5
9283    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9285    then
9286      # The compiler can only warn and ignore the option if not recognized
9287      # So say no if there are warnings
9288      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9289      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9290      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9291        lt_cv_prog_compiler_c_o=yes
9292      fi
9293    fi
9294    chmod u+w . 2>&5
9295    $RM conftest*
9296    # SGI C++ compiler will create directory out/ii_files/ for
9297    # template instantiation
9298    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9299    $RM out/* && rmdir out
9300    cd ..
9301    $RM -r conftest
9302    $RM conftest*
9303
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9307
9308
9309
9310
9311
9312
9313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9315 if ${lt_cv_prog_compiler_c_o+:} false; then :
9316   $as_echo_n "(cached) " >&6
9317 else
9318   lt_cv_prog_compiler_c_o=no
9319    $RM -r conftest 2>/dev/null
9320    mkdir conftest
9321    cd conftest
9322    mkdir out
9323    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324
9325    lt_compiler_flag="-o out/conftest2.$ac_objext"
9326    # Insert the option either (1) after the last *FLAGS variable, or
9327    # (2) before a word containing "conftest.", or (3) at the end.
9328    # Note that $ac_compile itself does not contain backslashes and begins
9329    # with a dollar sign (not a hyphen), so the echo should work correctly.
9330    lt_compile=`echo "$ac_compile" | $SED \
9331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9333    -e 's:$: $lt_compiler_flag:'`
9334    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9335    (eval "$lt_compile" 2>out/conftest.err)
9336    ac_status=$?
9337    cat out/conftest.err >&5
9338    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9340    then
9341      # The compiler can only warn and ignore the option if not recognized
9342      # So say no if there are warnings
9343      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9344      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9345      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9346        lt_cv_prog_compiler_c_o=yes
9347      fi
9348    fi
9349    chmod u+w . 2>&5
9350    $RM conftest*
9351    # SGI C++ compiler will create directory out/ii_files/ for
9352    # template instantiation
9353    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9354    $RM out/* && rmdir out
9355    cd ..
9356    $RM -r conftest
9357    $RM conftest*
9358
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9362
9363
9364
9365
9366 hard_links="nottested"
9367 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9368   # do not overwrite the value of need_locks provided by the user
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9370 $as_echo_n "checking if we can lock with hard links... " >&6; }
9371   hard_links=yes
9372   $RM conftest*
9373   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9374   touch conftest.a
9375   ln conftest.a conftest.b 2>&5 || hard_links=no
9376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9378 $as_echo "$hard_links" >&6; }
9379   if test "$hard_links" = no; then
9380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9381 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9382     need_locks=warn
9383   fi
9384 else
9385   need_locks=no
9386 fi
9387
9388
9389
9390
9391
9392
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9395
9396   runpath_var=
9397   allow_undefined_flag=
9398   always_export_symbols=no
9399   archive_cmds=
9400   archive_expsym_cmds=
9401   compiler_needs_object=no
9402   enable_shared_with_static_runtimes=no
9403   export_dynamic_flag_spec=
9404   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9405   hardcode_automatic=no
9406   hardcode_direct=no
9407   hardcode_direct_absolute=no
9408   hardcode_libdir_flag_spec=
9409   hardcode_libdir_separator=
9410   hardcode_minus_L=no
9411   hardcode_shlibpath_var=unsupported
9412   inherit_rpath=no
9413   link_all_deplibs=unknown
9414   module_cmds=
9415   module_expsym_cmds=
9416   old_archive_from_new_cmds=
9417   old_archive_from_expsyms_cmds=
9418   thread_safe_flag_spec=
9419   whole_archive_flag_spec=
9420   # include_expsyms should be a list of space-separated symbols to be *always*
9421   # included in the symbol list
9422   include_expsyms=
9423   # exclude_expsyms can be an extended regexp of symbols to exclude
9424   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9425   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9426   # as well as any symbol that contains `d'.
9427   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9428   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9429   # platforms (ab)use it in PIC code, but their linkers get confused if
9430   # the symbol is explicitly referenced.  Since portable code cannot
9431   # rely on this symbol name, it's probably fine to never include it in
9432   # preloaded symbol tables.
9433   # Exclude shared library initialization/finalization symbols.
9434   extract_expsyms_cmds=
9435
9436   case $host_os in
9437   cygwin* | mingw* | pw32* | cegcc*)
9438     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9439     # When not using gcc, we currently assume that we are using
9440     # Microsoft Visual C++.
9441     if test "$GCC" != yes; then
9442       with_gnu_ld=no
9443     fi
9444     ;;
9445   interix*)
9446     # we just hope/assume this is gcc and not c89 (= MSVC++)
9447     with_gnu_ld=yes
9448     ;;
9449   openbsd*)
9450     with_gnu_ld=no
9451     ;;
9452   linux* | k*bsd*-gnu | gnu*)
9453     link_all_deplibs=no
9454     ;;
9455   esac
9456
9457   ld_shlibs=yes
9458
9459   # On some targets, GNU ld is compatible enough with the native linker
9460   # that we're better off using the native interface for both.
9461   lt_use_gnu_ld_interface=no
9462   if test "$with_gnu_ld" = yes; then
9463     case $host_os in
9464       aix*)
9465         # The AIX port of GNU ld has always aspired to compatibility
9466         # with the native linker.  However, as the warning in the GNU ld
9467         # block says, versions before 2.19.5* couldn't really create working
9468         # shared libraries, regardless of the interface used.
9469         case `$LD -v 2>&1` in
9470           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9471           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9472           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9473           *)
9474             lt_use_gnu_ld_interface=yes
9475             ;;
9476         esac
9477         ;;
9478       *)
9479         lt_use_gnu_ld_interface=yes
9480         ;;
9481     esac
9482   fi
9483
9484   if test "$lt_use_gnu_ld_interface" = yes; then
9485     # If archive_cmds runs LD, not CC, wlarc should be empty
9486     wlarc='${wl}'
9487
9488     # Set some defaults for GNU ld with shared library support. These
9489     # are reset later if shared libraries are not supported. Putting them
9490     # here allows them to be overridden if necessary.
9491     runpath_var=LD_RUN_PATH
9492     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493     export_dynamic_flag_spec='${wl}--export-dynamic'
9494     # ancient GNU ld didn't support --whole-archive et. al.
9495     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9496       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9497     else
9498       whole_archive_flag_spec=
9499     fi
9500     supports_anon_versioning=no
9501     case `$LD -v 2>&1` in
9502       *GNU\ gold*) supports_anon_versioning=yes ;;
9503       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9504       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9505       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9506       *\ 2.11.*) ;; # other 2.11 versions
9507       *) supports_anon_versioning=yes ;;
9508     esac
9509
9510     # See if GNU ld supports shared libraries.
9511     case $host_os in
9512     aix[3-9]*)
9513       # On AIX/PPC, the GNU linker is very broken
9514       if test "$host_cpu" != ia64; then
9515         ld_shlibs=no
9516         cat <<_LT_EOF 1>&2
9517
9518 *** Warning: the GNU linker, at least up to release 2.19, is reported
9519 *** to be unable to reliably create shared libraries on AIX.
9520 *** Therefore, libtool is disabling shared libraries support.  If you
9521 *** really care for shared libraries, you may want to install binutils
9522 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9523 *** You will then need to restart the configuration process.
9524
9525 _LT_EOF
9526       fi
9527       ;;
9528
9529     amigaos*)
9530       case $host_cpu in
9531       powerpc)
9532             # see comment about AmigaOS4 .so support
9533             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9534             archive_expsym_cmds=''
9535         ;;
9536       m68k)
9537             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)'
9538             hardcode_libdir_flag_spec='-L$libdir'
9539             hardcode_minus_L=yes
9540         ;;
9541       esac
9542       ;;
9543
9544     beos*)
9545       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546         allow_undefined_flag=unsupported
9547         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9548         # support --undefined.  This deserves some investigation.  FIXME
9549         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550       else
9551         ld_shlibs=no
9552       fi
9553       ;;
9554
9555     cygwin* | mingw* | pw32* | cegcc*)
9556       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9557       # as there is no search path for DLLs.
9558       hardcode_libdir_flag_spec='-L$libdir'
9559       export_dynamic_flag_spec='${wl}--export-all-symbols'
9560       allow_undefined_flag=unsupported
9561       always_export_symbols=no
9562       enable_shared_with_static_runtimes=yes
9563       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'
9564       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9565
9566       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9567         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568         # If the export-symbols file already is a .def file (1st line
9569         # is EXPORTS), use it as is; otherwise, prepend...
9570         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9571           cp $export_symbols $output_objdir/$soname.def;
9572         else
9573           echo EXPORTS > $output_objdir/$soname.def;
9574           cat $export_symbols >> $output_objdir/$soname.def;
9575         fi~
9576         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9577       else
9578         ld_shlibs=no
9579       fi
9580       ;;
9581
9582     haiku*)
9583       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584       link_all_deplibs=yes
9585       ;;
9586
9587     interix[3-9]*)
9588       hardcode_direct=no
9589       hardcode_shlibpath_var=no
9590       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591       export_dynamic_flag_spec='${wl}-E'
9592       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9593       # Instead, shared libraries are loaded at an image base (0x10000000 by
9594       # default) and relocated if they conflict, which is a slow very memory
9595       # consuming and fragmenting process.  To avoid this, we pick a random,
9596       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9597       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9598       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9599       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'
9600       ;;
9601
9602     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9603       tmp_diet=no
9604       if test "$host_os" = linux-dietlibc; then
9605         case $cc_basename in
9606           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9607         esac
9608       fi
9609       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9610          && test "$tmp_diet" = no
9611       then
9612         tmp_addflag=' $pic_flag'
9613         tmp_sharedflag='-shared'
9614         case $cc_basename,$host_cpu in
9615         pgcc*)                          # Portland Group C compiler
9616           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'
9617           tmp_addflag=' $pic_flag'
9618           ;;
9619         pgf77* | pgf90* | pgf95* | pgfortran*)
9620                                         # Portland Group f77 and f90 compilers
9621           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'
9622           tmp_addflag=' $pic_flag -Mnomain' ;;
9623         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9624           tmp_addflag=' -i_dynamic' ;;
9625         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9626           tmp_addflag=' -i_dynamic -nofor_main' ;;
9627         ifc* | ifort*)                  # Intel Fortran compiler
9628           tmp_addflag=' -nofor_main' ;;
9629         lf95*)                          # Lahey Fortran 8.1
9630           whole_archive_flag_spec=
9631           tmp_sharedflag='--shared' ;;
9632         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9633           tmp_sharedflag='-qmkshrobj'
9634           tmp_addflag= ;;
9635         nvcc*)  # Cuda Compiler Driver 2.2
9636           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'
9637           compiler_needs_object=yes
9638           ;;
9639         esac
9640         case `$CC -V 2>&1 | sed 5q` in
9641         *Sun\ C*)                       # Sun C 5.9
9642           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'
9643           compiler_needs_object=yes
9644           tmp_sharedflag='-G' ;;
9645         *Sun\ F*)                       # Sun Fortran 8.3
9646           tmp_sharedflag='-G' ;;
9647         esac
9648         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649
9650         if test "x$supports_anon_versioning" = xyes; then
9651           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9652             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653             echo "local: *; };" >> $output_objdir/$libname.ver~
9654             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9655         fi
9656
9657         case $cc_basename in
9658         xlf* | bgf* | bgxlf* | mpixlf*)
9659           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9660           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9661           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9662           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9663           if test "x$supports_anon_versioning" = xyes; then
9664             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9665               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9666               echo "local: *; };" >> $output_objdir/$libname.ver~
9667               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9668           fi
9669           ;;
9670         esac
9671       else
9672         ld_shlibs=no
9673       fi
9674       ;;
9675
9676     netbsd* | netbsdelf*-gnu)
9677       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9678         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9679         wlarc=
9680       else
9681         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9683       fi
9684       ;;
9685
9686     solaris*)
9687       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9688         ld_shlibs=no
9689         cat <<_LT_EOF 1>&2
9690
9691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9692 *** create shared libraries on Solaris systems.  Therefore, libtool
9693 *** is disabling shared libraries support.  We urge you to upgrade GNU
9694 *** binutils to release 2.9.1 or newer.  Another option is to modify
9695 *** your PATH or compiler configuration so that the native linker is
9696 *** used, and then restart.
9697
9698 _LT_EOF
9699       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9701         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9702       else
9703         ld_shlibs=no
9704       fi
9705       ;;
9706
9707     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9708       case `$LD -v 2>&1` in
9709         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9710         ld_shlibs=no
9711         cat <<_LT_EOF 1>&2
9712
9713 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9714 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9715 *** is disabling shared libraries support.  We urge you to upgrade GNU
9716 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9717 *** your PATH or compiler configuration so that the native linker is
9718 *** used, and then restart.
9719
9720 _LT_EOF
9721         ;;
9722         *)
9723           # For security reasons, it is highly recommended that you always
9724           # use absolute paths for naming shared libraries, and exclude the
9725           # DT_RUNPATH tag from executables and libraries.  But doing so
9726           # requires that you compile everything twice, which is a pain.
9727           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9729             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9731           else
9732             ld_shlibs=no
9733           fi
9734         ;;
9735       esac
9736       ;;
9737
9738     sunos4*)
9739       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740       wlarc=
9741       hardcode_direct=yes
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     *)
9746       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9749       else
9750         ld_shlibs=no
9751       fi
9752       ;;
9753     esac
9754
9755     if test "$ld_shlibs" = no; then
9756       runpath_var=
9757       hardcode_libdir_flag_spec=
9758       export_dynamic_flag_spec=
9759       whole_archive_flag_spec=
9760     fi
9761   else
9762     # PORTME fill in a description of your system's linker (not GNU ld)
9763     case $host_os in
9764     aix3*)
9765       allow_undefined_flag=unsupported
9766       always_export_symbols=yes
9767       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'
9768       # Note: this linker hardcodes the directories in LIBPATH if there
9769       # are no directories specified by -L.
9770       hardcode_minus_L=yes
9771       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9772         # Neither direct hardcoding nor static linking is supported with a
9773         # broken collect2.
9774         hardcode_direct=unsupported
9775       fi
9776       ;;
9777
9778     aix[4-9]*)
9779       if test "$host_cpu" = ia64; then
9780         # On IA64, the linker does run time linking by default, so we don't
9781         # have to do anything special.
9782         aix_use_runtimelinking=no
9783         exp_sym_flag='-Bexport'
9784         no_entry_flag=""
9785       else
9786         # If we're using GNU nm, then we don't want the "-C" option.
9787         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9788         # Also, AIX nm treats weak defined symbols like other global
9789         # defined symbols, whereas GNU nm marks them as "W".
9790         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9791           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9792         else
9793           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9794         fi
9795         aix_use_runtimelinking=no
9796
9797         # Test if we are trying to use run time linking or normal
9798         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9799         # need to do runtime linking.
9800         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9801           for ld_flag in $LDFLAGS; do
9802           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9803             aix_use_runtimelinking=yes
9804             break
9805           fi
9806           done
9807           ;;
9808         esac
9809
9810         exp_sym_flag='-bexport'
9811         no_entry_flag='-bnoentry'
9812       fi
9813
9814       # When large executables or shared objects are built, AIX ld can
9815       # have problems creating the table of contents.  If linking a library
9816       # or program results in "error TOC overflow" add -mminimal-toc to
9817       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9818       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9819
9820       archive_cmds=''
9821       hardcode_direct=yes
9822       hardcode_direct_absolute=yes
9823       hardcode_libdir_separator=':'
9824       link_all_deplibs=yes
9825       file_list_spec='${wl}-f,'
9826
9827       if test "$GCC" = yes; then
9828         case $host_os in aix4.[012]|aix4.[012].*)
9829         # We only want to do this on AIX 4.2 and lower, the check
9830         # below for broken collect2 doesn't work under 4.3+
9831           collect2name=`${CC} -print-prog-name=collect2`
9832           if test -f "$collect2name" &&
9833            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9834           then
9835           # We have reworked collect2
9836           :
9837           else
9838           # We have old collect2
9839           hardcode_direct=unsupported
9840           # It fails to find uninstalled libraries when the uninstalled
9841           # path is not listed in the libpath.  Setting hardcode_minus_L
9842           # to unsupported forces relinking
9843           hardcode_minus_L=yes
9844           hardcode_libdir_flag_spec='-L$libdir'
9845           hardcode_libdir_separator=
9846           fi
9847           ;;
9848         esac
9849         shared_flag='-shared'
9850         if test "$aix_use_runtimelinking" = yes; then
9851           shared_flag="$shared_flag "'${wl}-G'
9852         fi
9853         link_all_deplibs=no
9854       else
9855         # not using gcc
9856         if test "$host_cpu" = ia64; then
9857         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9858         # chokes on -Wl,-G. The following line is correct:
9859           shared_flag='-G'
9860         else
9861           if test "$aix_use_runtimelinking" = yes; then
9862             shared_flag='${wl}-G'
9863           else
9864             shared_flag='${wl}-bM:SRE'
9865           fi
9866         fi
9867       fi
9868
9869       export_dynamic_flag_spec='${wl}-bexpall'
9870       # It seems that -bexpall does not export symbols beginning with
9871       # underscore (_), so it is better to generate a list of symbols to export.
9872       always_export_symbols=yes
9873       if test "$aix_use_runtimelinking" = yes; then
9874         # Warning - without using the other runtime loading flags (-brtl),
9875         # -berok will link without error, but may produce a broken library.
9876         allow_undefined_flag='-berok'
9877         # Determine the default libpath from the value encoded in an
9878         # empty executable.
9879         if test "${lt_cv_aix_libpath+set}" = set; then
9880   aix_libpath=$lt_cv_aix_libpath
9881 else
9882   if ${lt_cv_aix_libpath_+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887
9888 int
9889 main ()
9890 {
9891
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9897
9898   lt_aix_libpath_sed='
9899       /Import File Strings/,/^$/ {
9900           /^0/ {
9901               s/^0  *\([^ ]*\) *$/\1/
9902               p
9903           }
9904       }'
9905   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9906   # Check for a 64-bit object if we didn't find anything.
9907   if test -z "$lt_cv_aix_libpath_"; then
9908     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909   fi
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext \
9912     conftest$ac_exeext conftest.$ac_ext
9913   if test -z "$lt_cv_aix_libpath_"; then
9914     lt_cv_aix_libpath_="/usr/lib:/lib"
9915   fi
9916
9917 fi
9918
9919   aix_libpath=$lt_cv_aix_libpath_
9920 fi
9921
9922         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9923         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9924       else
9925         if test "$host_cpu" = ia64; then
9926           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9927           allow_undefined_flag="-z nodefs"
9928           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"
9929         else
9930          # Determine the default libpath from the value encoded in an
9931          # empty executable.
9932          if test "${lt_cv_aix_libpath+set}" = set; then
9933   aix_libpath=$lt_cv_aix_libpath
9934 else
9935   if ${lt_cv_aix_libpath_+:} false; then :
9936   $as_echo_n "(cached) " >&6
9937 else
9938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h.  */
9940
9941 int
9942 main ()
9943 {
9944
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950
9951   lt_aix_libpath_sed='
9952       /Import File Strings/,/^$/ {
9953           /^0/ {
9954               s/^0  *\([^ ]*\) *$/\1/
9955               p
9956           }
9957       }'
9958   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9959   # Check for a 64-bit object if we didn't find anything.
9960   if test -z "$lt_cv_aix_libpath_"; then
9961     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962   fi
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext \
9965     conftest$ac_exeext conftest.$ac_ext
9966   if test -z "$lt_cv_aix_libpath_"; then
9967     lt_cv_aix_libpath_="/usr/lib:/lib"
9968   fi
9969
9970 fi
9971
9972   aix_libpath=$lt_cv_aix_libpath_
9973 fi
9974
9975          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9976           # Warning - without using the other run time loading flags,
9977           # -berok will link without error, but may produce a broken library.
9978           no_undefined_flag=' ${wl}-bernotok'
9979           allow_undefined_flag=' ${wl}-berok'
9980           if test "$with_gnu_ld" = yes; then
9981             # We only use this code for GNU lds that support --whole-archive.
9982             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9983           else
9984             # Exported symbols can be pulled into shared objects from archives
9985             whole_archive_flag_spec='$convenience'
9986           fi
9987           archive_cmds_need_lc=yes
9988           # This is similar to how AIX traditionally builds its shared libraries.
9989           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9990         fi
9991       fi
9992       ;;
9993
9994     amigaos*)
9995       case $host_cpu in
9996       powerpc)
9997             # see comment about AmigaOS4 .so support
9998             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999             archive_expsym_cmds=''
10000         ;;
10001       m68k)
10002             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)'
10003             hardcode_libdir_flag_spec='-L$libdir'
10004             hardcode_minus_L=yes
10005         ;;
10006       esac
10007       ;;
10008
10009     bsdi[45]*)
10010       export_dynamic_flag_spec=-rdynamic
10011       ;;
10012
10013     cygwin* | mingw* | pw32* | cegcc*)
10014       # When not using gcc, we currently assume that we are using
10015       # Microsoft Visual C++.
10016       # hardcode_libdir_flag_spec is actually meaningless, as there is
10017       # no search path for DLLs.
10018       case $cc_basename in
10019       cl*)
10020         # Native MSVC
10021         hardcode_libdir_flag_spec=' '
10022         allow_undefined_flag=unsupported
10023         always_export_symbols=yes
10024         file_list_spec='@'
10025         # Tell ltmain to make .lib files, not .a files.
10026         libext=lib
10027         # Tell ltmain to make .dll files, not .so files.
10028         shrext_cmds=".dll"
10029         # FIXME: Setting linknames here is a bad hack.
10030         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10031         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10032             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10033           else
10034             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10035           fi~
10036           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10037           linknames='
10038         # The linker will not automatically build a static lib if we build a DLL.
10039         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10040         enable_shared_with_static_runtimes=yes
10041         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10042         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10043         # Don't use ranlib
10044         old_postinstall_cmds='chmod 644 $oldlib'
10045         postlink_cmds='lt_outputfile="@OUTPUT@"~
10046           lt_tool_outputfile="@TOOL_OUTPUT@"~
10047           case $lt_outputfile in
10048             *.exe|*.EXE) ;;
10049             *)
10050               lt_outputfile="$lt_outputfile.exe"
10051               lt_tool_outputfile="$lt_tool_outputfile.exe"
10052               ;;
10053           esac~
10054           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10055             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10056             $RM "$lt_outputfile.manifest";
10057           fi'
10058         ;;
10059       *)
10060         # Assume MSVC wrapper
10061         hardcode_libdir_flag_spec=' '
10062         allow_undefined_flag=unsupported
10063         # Tell ltmain to make .lib files, not .a files.
10064         libext=lib
10065         # Tell ltmain to make .dll files, not .so files.
10066         shrext_cmds=".dll"
10067         # FIXME: Setting linknames here is a bad hack.
10068         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10069         # The linker will automatically build a .lib file if we build a DLL.
10070         old_archive_from_new_cmds='true'
10071         # FIXME: Should let the user specify the lib program.
10072         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10073         enable_shared_with_static_runtimes=yes
10074         ;;
10075       esac
10076       ;;
10077
10078     darwin* | rhapsody*)
10079
10080
10081   archive_cmds_need_lc=no
10082   hardcode_direct=no
10083   hardcode_automatic=yes
10084   hardcode_shlibpath_var=unsupported
10085   if test "$lt_cv_ld_force_load" = "yes"; then
10086     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\"`'
10087
10088   else
10089     whole_archive_flag_spec=''
10090   fi
10091   link_all_deplibs=yes
10092   allow_undefined_flag="$_lt_dar_allow_undefined"
10093   case $cc_basename in
10094      ifort*) _lt_dar_can_shared=yes ;;
10095      *) _lt_dar_can_shared=$GCC ;;
10096   esac
10097   if test "$_lt_dar_can_shared" = "yes"; then
10098     output_verbose_link_cmd=func_echo_all
10099     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10100     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10101     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}"
10102     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}"
10103
10104   else
10105   ld_shlibs=no
10106   fi
10107
10108       ;;
10109
10110     dgux*)
10111       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112       hardcode_libdir_flag_spec='-L$libdir'
10113       hardcode_shlibpath_var=no
10114       ;;
10115
10116     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10117     # support.  Future versions do this automatically, but an explicit c++rt0.o
10118     # does not break anything, and helps significantly (at the cost of a little
10119     # extra space).
10120     freebsd2.2*)
10121       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10122       hardcode_libdir_flag_spec='-R$libdir'
10123       hardcode_direct=yes
10124       hardcode_shlibpath_var=no
10125       ;;
10126
10127     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10128     freebsd2.*)
10129       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10130       hardcode_direct=yes
10131       hardcode_minus_L=yes
10132       hardcode_shlibpath_var=no
10133       ;;
10134
10135     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10136     freebsd* | dragonfly*)
10137       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138       hardcode_libdir_flag_spec='-R$libdir'
10139       hardcode_direct=yes
10140       hardcode_shlibpath_var=no
10141       ;;
10142
10143     hpux9*)
10144       if test "$GCC" = yes; then
10145         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10146       else
10147         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10148       fi
10149       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10150       hardcode_libdir_separator=:
10151       hardcode_direct=yes
10152
10153       # hardcode_minus_L: Not really in the search PATH,
10154       # but as the default location of the library.
10155       hardcode_minus_L=yes
10156       export_dynamic_flag_spec='${wl}-E'
10157       ;;
10158
10159     hpux10*)
10160       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10161         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10162       else
10163         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10164       fi
10165       if test "$with_gnu_ld" = no; then
10166         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10167         hardcode_libdir_separator=:
10168         hardcode_direct=yes
10169         hardcode_direct_absolute=yes
10170         export_dynamic_flag_spec='${wl}-E'
10171         # hardcode_minus_L: Not really in the search PATH,
10172         # but as the default location of the library.
10173         hardcode_minus_L=yes
10174       fi
10175       ;;
10176
10177     hpux11*)
10178       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10179         case $host_cpu in
10180         hppa*64*)
10181           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10182           ;;
10183         ia64*)
10184           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10185           ;;
10186         *)
10187           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10188           ;;
10189         esac
10190       else
10191         case $host_cpu in
10192         hppa*64*)
10193           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10194           ;;
10195         ia64*)
10196           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10197           ;;
10198         *)
10199
10200           # Older versions of the 11.00 compiler do not understand -b yet
10201           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10202           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10203 $as_echo_n "checking if $CC understands -b... " >&6; }
10204 if ${lt_cv_prog_compiler__b+:} false; then :
10205   $as_echo_n "(cached) " >&6
10206 else
10207   lt_cv_prog_compiler__b=no
10208    save_LDFLAGS="$LDFLAGS"
10209    LDFLAGS="$LDFLAGS -b"
10210    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10211    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10212      # The linker can only warn and ignore the option if not recognized
10213      # So say no if there are warnings
10214      if test -s conftest.err; then
10215        # Append any errors to the config.log.
10216        cat conftest.err 1>&5
10217        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10218        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10219        if diff conftest.exp conftest.er2 >/dev/null; then
10220          lt_cv_prog_compiler__b=yes
10221        fi
10222      else
10223        lt_cv_prog_compiler__b=yes
10224      fi
10225    fi
10226    $RM -r conftest*
10227    LDFLAGS="$save_LDFLAGS"
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10231 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10232
10233 if test x"$lt_cv_prog_compiler__b" = xyes; then
10234     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10235 else
10236     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10237 fi
10238
10239           ;;
10240         esac
10241       fi
10242       if test "$with_gnu_ld" = no; then
10243         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244         hardcode_libdir_separator=:
10245
10246         case $host_cpu in
10247         hppa*64*|ia64*)
10248           hardcode_direct=no
10249           hardcode_shlibpath_var=no
10250           ;;
10251         *)
10252           hardcode_direct=yes
10253           hardcode_direct_absolute=yes
10254           export_dynamic_flag_spec='${wl}-E'
10255
10256           # hardcode_minus_L: Not really in the search PATH,
10257           # but as the default location of the library.
10258           hardcode_minus_L=yes
10259           ;;
10260         esac
10261       fi
10262       ;;
10263
10264     irix5* | irix6* | nonstopux*)
10265       if test "$GCC" = yes; then
10266         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'
10267         # Try to use the -exported_symbol ld option, if it does not
10268         # work, assume that -exports_file does not work either and
10269         # implicitly export all symbols.
10270         # This should be the same for all languages, so no per-tag cache variable.
10271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10272 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10273 if ${lt_cv_irix_exported_symbol+:} false; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   save_LDFLAGS="$LDFLAGS"
10277            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10278            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h.  */
10280 int foo (void) { return 0; }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283   lt_cv_irix_exported_symbol=yes
10284 else
10285   lt_cv_irix_exported_symbol=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288     conftest$ac_exeext conftest.$ac_ext
10289            LDFLAGS="$save_LDFLAGS"
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10292 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10293         if test "$lt_cv_irix_exported_symbol" = yes; then
10294           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'
10295         fi
10296       else
10297         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'
10298         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'
10299       fi
10300       archive_cmds_need_lc='no'
10301       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10302       hardcode_libdir_separator=:
10303       inherit_rpath=yes
10304       link_all_deplibs=yes
10305       ;;
10306
10307     netbsd* | netbsdelf*-gnu)
10308       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10309         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10310       else
10311         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10312       fi
10313       hardcode_libdir_flag_spec='-R$libdir'
10314       hardcode_direct=yes
10315       hardcode_shlibpath_var=no
10316       ;;
10317
10318     newsos6)
10319       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320       hardcode_direct=yes
10321       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322       hardcode_libdir_separator=:
10323       hardcode_shlibpath_var=no
10324       ;;
10325
10326     *nto* | *qnx*)
10327       ;;
10328
10329     openbsd*)
10330       if test -f /usr/libexec/ld.so; then
10331         hardcode_direct=yes
10332         hardcode_shlibpath_var=no
10333         hardcode_direct_absolute=yes
10334         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10336           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10337           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10338           export_dynamic_flag_spec='${wl}-E'
10339         else
10340           case $host_os in
10341            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10342              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10343              hardcode_libdir_flag_spec='-R$libdir'
10344              ;;
10345            *)
10346              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10347              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10348              ;;
10349           esac
10350         fi
10351       else
10352         ld_shlibs=no
10353       fi
10354       ;;
10355
10356     os2*)
10357       hardcode_libdir_flag_spec='-L$libdir'
10358       hardcode_minus_L=yes
10359       allow_undefined_flag=unsupported
10360       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10361       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10362       ;;
10363
10364     osf3*)
10365       if test "$GCC" = yes; then
10366         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10367         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'
10368       else
10369         allow_undefined_flag=' -expect_unresolved \*'
10370         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'
10371       fi
10372       archive_cmds_need_lc='no'
10373       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374       hardcode_libdir_separator=:
10375       ;;
10376
10377     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10378       if test "$GCC" = yes; then
10379         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10380         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'
10381         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10382       else
10383         allow_undefined_flag=' -expect_unresolved \*'
10384         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'
10385         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~
10386         $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'
10387
10388         # Both c and cxx compiler support -rpath directly
10389         hardcode_libdir_flag_spec='-rpath $libdir'
10390       fi
10391       archive_cmds_need_lc='no'
10392       hardcode_libdir_separator=:
10393       ;;
10394
10395     solaris*)
10396       no_undefined_flag=' -z defs'
10397       if test "$GCC" = yes; then
10398         wlarc='${wl}'
10399         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10400         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10401           $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'
10402       else
10403         case `$CC -V 2>&1` in
10404         *"Compilers 5.0"*)
10405           wlarc=''
10406           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10408           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10409           ;;
10410         *)
10411           wlarc='${wl}'
10412           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10413           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10414           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10415           ;;
10416         esac
10417       fi
10418       hardcode_libdir_flag_spec='-R$libdir'
10419       hardcode_shlibpath_var=no
10420       case $host_os in
10421       solaris2.[0-5] | solaris2.[0-5].*) ;;
10422       *)
10423         # The compiler driver will combine and reorder linker options,
10424         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10425         # but is careful enough not to reorder.
10426         # Supported since Solaris 2.6 (maybe 2.5.1?)
10427         if test "$GCC" = yes; then
10428           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10429         else
10430           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10431         fi
10432         ;;
10433       esac
10434       link_all_deplibs=yes
10435       ;;
10436
10437     sunos4*)
10438       if test "x$host_vendor" = xsequent; then
10439         # Use $CC to link under sequent, because it throws in some extra .o
10440         # files that make .init and .fini sections work.
10441         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10442       else
10443         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10444       fi
10445       hardcode_libdir_flag_spec='-L$libdir'
10446       hardcode_direct=yes
10447       hardcode_minus_L=yes
10448       hardcode_shlibpath_var=no
10449       ;;
10450
10451     sysv4)
10452       case $host_vendor in
10453         sni)
10454           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455           hardcode_direct=yes # is this really true???
10456         ;;
10457         siemens)
10458           ## LD is ld it makes a PLAMLIB
10459           ## CC just makes a GrossModule.
10460           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10461           reload_cmds='$CC -r -o $output$reload_objs'
10462           hardcode_direct=no
10463         ;;
10464         motorola)
10465           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10467         ;;
10468       esac
10469       runpath_var='LD_RUN_PATH'
10470       hardcode_shlibpath_var=no
10471       ;;
10472
10473     sysv4.3*)
10474       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475       hardcode_shlibpath_var=no
10476       export_dynamic_flag_spec='-Bexport'
10477       ;;
10478
10479     sysv4*MP*)
10480       if test -d /usr/nec; then
10481         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482         hardcode_shlibpath_var=no
10483         runpath_var=LD_RUN_PATH
10484         hardcode_runpath_var=yes
10485         ld_shlibs=yes
10486       fi
10487       ;;
10488
10489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10490       no_undefined_flag='${wl}-z,text'
10491       archive_cmds_need_lc=no
10492       hardcode_shlibpath_var=no
10493       runpath_var='LD_RUN_PATH'
10494
10495       if test "$GCC" = yes; then
10496         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10497         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498       else
10499         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501       fi
10502       ;;
10503
10504     sysv5* | sco3.2v5* | sco5v6*)
10505       # Note: We can NOT use -z defs as we might desire, because we do not
10506       # link with -lc, and that would cause any symbols used from libc to
10507       # always be unresolved, which means just about no library would
10508       # ever link correctly.  If we're not using GNU ld we use -z text
10509       # though, which does catch some bad symbols but isn't as heavy-handed
10510       # as -z defs.
10511       no_undefined_flag='${wl}-z,text'
10512       allow_undefined_flag='${wl}-z,nodefs'
10513       archive_cmds_need_lc=no
10514       hardcode_shlibpath_var=no
10515       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10516       hardcode_libdir_separator=':'
10517       link_all_deplibs=yes
10518       export_dynamic_flag_spec='${wl}-Bexport'
10519       runpath_var='LD_RUN_PATH'
10520
10521       if test "$GCC" = yes; then
10522         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10523         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10524       else
10525         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527       fi
10528       ;;
10529
10530     uts4*)
10531       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532       hardcode_libdir_flag_spec='-L$libdir'
10533       hardcode_shlibpath_var=no
10534       ;;
10535
10536     *)
10537       ld_shlibs=no
10538       ;;
10539     esac
10540
10541     if test x$host_vendor = xsni; then
10542       case $host in
10543       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10544         export_dynamic_flag_spec='${wl}-Blargedynsym'
10545         ;;
10546       esac
10547     fi
10548   fi
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10551 $as_echo "$ld_shlibs" >&6; }
10552 test "$ld_shlibs" = no && can_build_shared=no
10553
10554 with_gnu_ld=$with_gnu_ld
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570 #
10571 # Do we need to explicitly link libc?
10572 #
10573 case "x$archive_cmds_need_lc" in
10574 x|xyes)
10575   # Assume -lc should be added
10576   archive_cmds_need_lc=yes
10577
10578   if test "$enable_shared" = yes && test "$GCC" = yes; then
10579     case $archive_cmds in
10580     *'~'*)
10581       # FIXME: we may have to deal with multi-command sequences.
10582       ;;
10583     '$CC '*)
10584       # Test whether the compiler implicitly links with -lc since on some
10585       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10586       # to ld, don't add -lc before -lgcc.
10587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10589 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   $RM conftest*
10593         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10594
10595         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10596   (eval $ac_compile) 2>&5
10597   ac_status=$?
10598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10599   test $ac_status = 0; } 2>conftest.err; then
10600           soname=conftest
10601           lib=conftest
10602           libobjs=conftest.$ac_objext
10603           deplibs=
10604           wl=$lt_prog_compiler_wl
10605           pic_flag=$lt_prog_compiler_pic
10606           compiler_flags=-v
10607           linker_flags=-v
10608           verstring=
10609           output_objdir=.
10610           libname=conftest
10611           lt_save_allow_undefined_flag=$allow_undefined_flag
10612           allow_undefined_flag=
10613           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10614   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10615   ac_status=$?
10616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617   test $ac_status = 0; }
10618           then
10619             lt_cv_archive_cmds_need_lc=no
10620           else
10621             lt_cv_archive_cmds_need_lc=yes
10622           fi
10623           allow_undefined_flag=$lt_save_allow_undefined_flag
10624         else
10625           cat conftest.err 1>&5
10626         fi
10627         $RM conftest*
10628
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10631 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10632       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10633       ;;
10634     esac
10635   fi
10636   ;;
10637 esac
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10791 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10792
10793 if test "$GCC" = yes; then
10794   case $host_os in
10795     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10796     *) lt_awk_arg="/^libraries:/" ;;
10797   esac
10798   case $host_os in
10799     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10800     *) lt_sed_strip_eq="s,=/,/,g" ;;
10801   esac
10802   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10803   case $lt_search_path_spec in
10804   *\;*)
10805     # if the path contains ";" then we assume it to be the separator
10806     # otherwise default to the standard path separator (i.e. ":") - it is
10807     # assumed that no part of a normal pathname contains ";" but that should
10808     # okay in the real world where ";" in dirpaths is itself problematic.
10809     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10810     ;;
10811   *)
10812     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10813     ;;
10814   esac
10815   # Ok, now we have the path, separated by spaces, we can step through it
10816   # and add multilib dir if necessary.
10817   lt_tmp_lt_search_path_spec=
10818   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10819   for lt_sys_path in $lt_search_path_spec; do
10820     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10821       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10822     else
10823       test -d "$lt_sys_path" && \
10824         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10825     fi
10826   done
10827   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10828 BEGIN {RS=" "; FS="/|\n";} {
10829   lt_foo="";
10830   lt_count=0;
10831   for (lt_i = NF; lt_i > 0; lt_i--) {
10832     if ($lt_i != "" && $lt_i != ".") {
10833       if ($lt_i == "..") {
10834         lt_count++;
10835       } else {
10836         if (lt_count == 0) {
10837           lt_foo="/" $lt_i lt_foo;
10838         } else {
10839           lt_count--;
10840         }
10841       }
10842     }
10843   }
10844   if (lt_foo != "") { lt_freq[lt_foo]++; }
10845   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10846 }'`
10847   # AWK program above erroneously prepends '/' to C:/dos/paths
10848   # for these hosts.
10849   case $host_os in
10850     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10851       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10852   esac
10853   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10854 else
10855   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10856 fi
10857 library_names_spec=
10858 libname_spec='lib$name'
10859 soname_spec=
10860 shrext_cmds=".so"
10861 postinstall_cmds=
10862 postuninstall_cmds=
10863 finish_cmds=
10864 finish_eval=
10865 shlibpath_var=
10866 shlibpath_overrides_runpath=unknown
10867 version_type=none
10868 dynamic_linker="$host_os ld.so"
10869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10870 need_lib_prefix=unknown
10871 hardcode_into_libs=no
10872
10873 # when you set need_version to no, make sure it does not cause -set_version
10874 # flags to be left without arguments
10875 need_version=unknown
10876
10877 case $host_os in
10878 aix3*)
10879   version_type=linux # correct to gnu/linux during the next big refactor
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10881   shlibpath_var=LIBPATH
10882
10883   # AIX 3 has no versioning support, so we append a major version to the name.
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   ;;
10886
10887 aix[4-9]*)
10888   version_type=linux # correct to gnu/linux during the next big refactor
10889   need_lib_prefix=no
10890   need_version=no
10891   hardcode_into_libs=yes
10892   if test "$host_cpu" = ia64; then
10893     # AIX 5 supports IA64
10894     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10895     shlibpath_var=LD_LIBRARY_PATH
10896   else
10897     # With GCC up to 2.95.x, collect2 would create an import file
10898     # for dependence libraries.  The import file would start with
10899     # the line `#! .'.  This would cause the generated library to
10900     # depend on `.', always an invalid library.  This was fixed in
10901     # development snapshots of GCC prior to 3.0.
10902     case $host_os in
10903       aix4 | aix4.[01] | aix4.[01].*)
10904       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10905            echo ' yes '
10906            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10907         :
10908       else
10909         can_build_shared=no
10910       fi
10911       ;;
10912     esac
10913     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10914     # soname into executable. Probably we can add versioning support to
10915     # collect2, so additional links can be useful in future.
10916     if test "$aix_use_runtimelinking" = yes; then
10917       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10918       # instead of lib<name>.a to let people know that these are not
10919       # typical AIX shared libraries.
10920       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921     else
10922       # We preserve .a as extension for shared libraries through AIX4.2
10923       # and later when we are not doing run time linking.
10924       library_names_spec='${libname}${release}.a $libname.a'
10925       soname_spec='${libname}${release}${shared_ext}$major'
10926     fi
10927     shlibpath_var=LIBPATH
10928   fi
10929   ;;
10930
10931 amigaos*)
10932   case $host_cpu in
10933   powerpc)
10934     # Since July 2007 AmigaOS4 officially supports .so libraries.
10935     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937     ;;
10938   m68k)
10939     library_names_spec='$libname.ixlibrary $libname.a'
10940     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10941     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10942     ;;
10943   esac
10944   ;;
10945
10946 beos*)
10947   library_names_spec='${libname}${shared_ext}'
10948   dynamic_linker="$host_os ld.so"
10949   shlibpath_var=LIBRARY_PATH
10950   ;;
10951
10952 bsdi[45]*)
10953   version_type=linux # correct to gnu/linux during the next big refactor
10954   need_version=no
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10960   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10961   # the default ld.so.conf also contains /usr/contrib/lib and
10962   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10963   # libtool to hard-code these into programs
10964   ;;
10965
10966 cygwin* | mingw* | pw32* | cegcc*)
10967   version_type=windows
10968   shrext_cmds=".dll"
10969   need_version=no
10970   need_lib_prefix=no
10971
10972   case $GCC,$cc_basename in
10973   yes,*)
10974     # gcc
10975     library_names_spec='$libname.dll.a'
10976     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10977     postinstall_cmds='base_file=`basename \${file}`~
10978       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10979       dldir=$destdir/`dirname \$dlpath`~
10980       test -d \$dldir || mkdir -p \$dldir~
10981       $install_prog $dir/$dlname \$dldir/$dlname~
10982       chmod a+x \$dldir/$dlname~
10983       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10984         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10985       fi'
10986     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10987       dlpath=$dir/\$dldll~
10988        $RM \$dlpath'
10989     shlibpath_overrides_runpath=yes
10990
10991     case $host_os in
10992     cygwin*)
10993       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10994       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10995
10996       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10997       ;;
10998     mingw* | cegcc*)
10999       # MinGW DLLs use traditional 'lib' prefix
11000       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11001       ;;
11002     pw32*)
11003       # pw32 DLLs use 'pw' prefix rather than 'lib'
11004       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11005       ;;
11006     esac
11007     dynamic_linker='Win32 ld.exe'
11008     ;;
11009
11010   *,cl*)
11011     # Native MSVC
11012     libname_spec='$name'
11013     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11014     library_names_spec='${libname}.dll.lib'
11015
11016     case $build_os in
11017     mingw*)
11018       sys_lib_search_path_spec=
11019       lt_save_ifs=$IFS
11020       IFS=';'
11021       for lt_path in $LIB
11022       do
11023         IFS=$lt_save_ifs
11024         # Let DOS variable expansion print the short 8.3 style file name.
11025         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11026         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11027       done
11028       IFS=$lt_save_ifs
11029       # Convert to MSYS style.
11030       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11031       ;;
11032     cygwin*)
11033       # Convert to unix form, then to dos form, then back to unix form
11034       # but this time dos style (no spaces!) so that the unix form looks
11035       # like /cygdrive/c/PROGRA~1:/cygdr...
11036       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11037       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11038       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11039       ;;
11040     *)
11041       sys_lib_search_path_spec="$LIB"
11042       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11043         # It is most probably a Windows format PATH.
11044         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11045       else
11046         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11047       fi
11048       # FIXME: find the short name or the path components, as spaces are
11049       # common. (e.g. "Program Files" -> "PROGRA~1")
11050       ;;
11051     esac
11052
11053     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11054     postinstall_cmds='base_file=`basename \${file}`~
11055       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11056       dldir=$destdir/`dirname \$dlpath`~
11057       test -d \$dldir || mkdir -p \$dldir~
11058       $install_prog $dir/$dlname \$dldir/$dlname'
11059     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11060       dlpath=$dir/\$dldll~
11061        $RM \$dlpath'
11062     shlibpath_overrides_runpath=yes
11063     dynamic_linker='Win32 link.exe'
11064     ;;
11065
11066   *)
11067     # Assume MSVC wrapper
11068     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11069     dynamic_linker='Win32 ld.exe'
11070     ;;
11071   esac
11072   # FIXME: first we should search . and the directory the executable is in
11073   shlibpath_var=PATH
11074   ;;
11075
11076 darwin* | rhapsody*)
11077   dynamic_linker="$host_os dyld"
11078   version_type=darwin
11079   need_lib_prefix=no
11080   need_version=no
11081   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11082   soname_spec='${libname}${release}${major}$shared_ext'
11083   shlibpath_overrides_runpath=yes
11084   shlibpath_var=DYLD_LIBRARY_PATH
11085   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11086
11087   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11089   ;;
11090
11091 dgux*)
11092   version_type=linux # correct to gnu/linux during the next big refactor
11093   need_lib_prefix=no
11094   need_version=no
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11096   soname_spec='${libname}${release}${shared_ext}$major'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   ;;
11099
11100 freebsd* | dragonfly*)
11101   # DragonFly does not have aout.  When/if they implement a new
11102   # versioning mechanism, adjust this.
11103   if test -x /usr/bin/objformat; then
11104     objformat=`/usr/bin/objformat`
11105   else
11106     case $host_os in
11107     freebsd[23].*) objformat=aout ;;
11108     *) objformat=elf ;;
11109     esac
11110   fi
11111   version_type=freebsd-$objformat
11112   case $version_type in
11113     freebsd-elf*)
11114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11115       need_version=no
11116       need_lib_prefix=no
11117       ;;
11118     freebsd-*)
11119       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11120       need_version=yes
11121       ;;
11122   esac
11123   shlibpath_var=LD_LIBRARY_PATH
11124   case $host_os in
11125   freebsd2.*)
11126     shlibpath_overrides_runpath=yes
11127     ;;
11128   freebsd3.[01]* | freebsdelf3.[01]*)
11129     shlibpath_overrides_runpath=yes
11130     hardcode_into_libs=yes
11131     ;;
11132   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11133   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11134     shlibpath_overrides_runpath=no
11135     hardcode_into_libs=yes
11136     ;;
11137   *) # from 4.6 on, and DragonFly
11138     shlibpath_overrides_runpath=yes
11139     hardcode_into_libs=yes
11140     ;;
11141   esac
11142   ;;
11143
11144 haiku*)
11145   version_type=linux # correct to gnu/linux during the next big refactor
11146   need_lib_prefix=no
11147   need_version=no
11148   dynamic_linker="$host_os runtime_loader"
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11150   soname_spec='${libname}${release}${shared_ext}$major'
11151   shlibpath_var=LIBRARY_PATH
11152   shlibpath_overrides_runpath=yes
11153   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11154   hardcode_into_libs=yes
11155   ;;
11156
11157 hpux9* | hpux10* | hpux11*)
11158   # Give a soname corresponding to the major version so that dld.sl refuses to
11159   # link against other versions.
11160   version_type=sunos
11161   need_lib_prefix=no
11162   need_version=no
11163   case $host_cpu in
11164   ia64*)
11165     shrext_cmds='.so'
11166     hardcode_into_libs=yes
11167     dynamic_linker="$host_os dld.so"
11168     shlibpath_var=LD_LIBRARY_PATH
11169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171     soname_spec='${libname}${release}${shared_ext}$major'
11172     if test "X$HPUX_IA64_MODE" = X32; then
11173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11174     else
11175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11176     fi
11177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11178     ;;
11179   hppa*64*)
11180     shrext_cmds='.sl'
11181     hardcode_into_libs=yes
11182     dynamic_linker="$host_os dld.sl"
11183     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11184     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186     soname_spec='${libname}${release}${shared_ext}$major'
11187     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11188     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189     ;;
11190   *)
11191     shrext_cmds='.sl'
11192     dynamic_linker="$host_os dld.sl"
11193     shlibpath_var=SHLIB_PATH
11194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196     soname_spec='${libname}${release}${shared_ext}$major'
11197     ;;
11198   esac
11199   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11200   postinstall_cmds='chmod 555 $lib'
11201   # or fails outright, so override atomically:
11202   install_override_mode=555
11203   ;;
11204
11205 interix[3-9]*)
11206   version_type=linux # correct to gnu/linux during the next big refactor
11207   need_lib_prefix=no
11208   need_version=no
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   shlibpath_overrides_runpath=no
11214   hardcode_into_libs=yes
11215   ;;
11216
11217 irix5* | irix6* | nonstopux*)
11218   case $host_os in
11219     nonstopux*) version_type=nonstopux ;;
11220     *)
11221         if test "$lt_cv_prog_gnu_ld" = yes; then
11222                 version_type=linux # correct to gnu/linux during the next big refactor
11223         else
11224                 version_type=irix
11225         fi ;;
11226   esac
11227   need_lib_prefix=no
11228   need_version=no
11229   soname_spec='${libname}${release}${shared_ext}$major'
11230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11231   case $host_os in
11232   irix5* | nonstopux*)
11233     libsuff= shlibsuff=
11234     ;;
11235   *)
11236     case $LD in # libtool.m4 will add one of these switches to LD
11237     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11238       libsuff= shlibsuff= libmagic=32-bit;;
11239     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11240       libsuff=32 shlibsuff=N32 libmagic=N32;;
11241     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11242       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11243     *) libsuff= shlibsuff= libmagic=never-match;;
11244     esac
11245     ;;
11246   esac
11247   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11248   shlibpath_overrides_runpath=no
11249   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11250   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11251   hardcode_into_libs=yes
11252   ;;
11253
11254 # No shared lib support for Linux oldld, aout, or coff.
11255 linux*oldld* | linux*aout* | linux*coff*)
11256   dynamic_linker=no
11257   ;;
11258
11259 # This must be glibc/ELF.
11260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11261   version_type=linux # correct to gnu/linux during the next big refactor
11262   need_lib_prefix=no
11263   need_version=no
11264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265   soname_spec='${libname}${release}${shared_ext}$major'
11266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=no
11269
11270   # Some binutils ld are patched to set DT_RUNPATH
11271   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274   lt_cv_shlibpath_overrides_runpath=no
11275     save_LDFLAGS=$LDFLAGS
11276     save_libdir=$libdir
11277     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11278          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281
11282 int
11283 main ()
11284 {
11285
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"; then :
11291   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11292   lt_cv_shlibpath_overrides_runpath=yes
11293 fi
11294 fi
11295 rm -f core conftest.err conftest.$ac_objext \
11296     conftest$ac_exeext conftest.$ac_ext
11297     LDFLAGS=$save_LDFLAGS
11298     libdir=$save_libdir
11299
11300 fi
11301
11302   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11303
11304   # This implies no fast_install, which is unacceptable.
11305   # Some rework will be needed to allow for fast_install
11306   # before this can be enabled.
11307   hardcode_into_libs=yes
11308
11309   # Append ld.so.conf contents to the search path
11310   if test -f /etc/ld.so.conf; then
11311     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' ' '`
11312     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11313   fi
11314
11315   # We used to test for /lib/ld.so.1 and disable shared libraries on
11316   # powerpc, because MkLinux only supported shared libraries with the
11317   # GNU dynamic linker.  Since this was broken with cross compilers,
11318   # most powerpc-linux boxes support dynamic linking these days and
11319   # people can always --disable-shared, the test was removed, and we
11320   # assume the GNU/Linux dynamic linker is in use.
11321   dynamic_linker='GNU/Linux ld.so'
11322   ;;
11323
11324 netbsdelf*-gnu)
11325   version_type=linux
11326   need_lib_prefix=no
11327   need_version=no
11328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11329   soname_spec='${libname}${release}${shared_ext}$major'
11330   shlibpath_var=LD_LIBRARY_PATH
11331   shlibpath_overrides_runpath=no
11332   hardcode_into_libs=yes
11333   dynamic_linker='NetBSD ld.elf_so'
11334   ;;
11335
11336 netbsd*)
11337   version_type=sunos
11338   need_lib_prefix=no
11339   need_version=no
11340   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11342     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343     dynamic_linker='NetBSD (a.out) ld.so'
11344   else
11345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11346     soname_spec='${libname}${release}${shared_ext}$major'
11347     dynamic_linker='NetBSD ld.elf_so'
11348   fi
11349   shlibpath_var=LD_LIBRARY_PATH
11350   shlibpath_overrides_runpath=yes
11351   hardcode_into_libs=yes
11352   ;;
11353
11354 newsos6)
11355   version_type=linux # correct to gnu/linux during the next big refactor
11356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   shlibpath_overrides_runpath=yes
11359   ;;
11360
11361 *nto* | *qnx*)
11362   version_type=qnx
11363   need_lib_prefix=no
11364   need_version=no
11365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366   soname_spec='${libname}${release}${shared_ext}$major'
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=no
11369   hardcode_into_libs=yes
11370   dynamic_linker='ldqnx.so'
11371   ;;
11372
11373 openbsd*)
11374   version_type=sunos
11375   sys_lib_dlsearch_path_spec="/usr/lib"
11376   need_lib_prefix=no
11377   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11378   case $host_os in
11379     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11380     *)                          need_version=no  ;;
11381   esac
11382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384   shlibpath_var=LD_LIBRARY_PATH
11385   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11386     case $host_os in
11387       openbsd2.[89] | openbsd2.[89].*)
11388         shlibpath_overrides_runpath=no
11389         ;;
11390       *)
11391         shlibpath_overrides_runpath=yes
11392         ;;
11393       esac
11394   else
11395     shlibpath_overrides_runpath=yes
11396   fi
11397   ;;
11398
11399 os2*)
11400   libname_spec='$name'
11401   shrext_cmds=".dll"
11402   need_lib_prefix=no
11403   library_names_spec='$libname${shared_ext} $libname.a'
11404   dynamic_linker='OS/2 ld.exe'
11405   shlibpath_var=LIBPATH
11406   ;;
11407
11408 osf3* | osf4* | osf5*)
11409   version_type=osf
11410   need_lib_prefix=no
11411   need_version=no
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414   shlibpath_var=LD_LIBRARY_PATH
11415   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11416   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11417   ;;
11418
11419 rdos*)
11420   dynamic_linker=no
11421   ;;
11422
11423 solaris*)
11424   version_type=linux # correct to gnu/linux during the next big refactor
11425   need_lib_prefix=no
11426   need_version=no
11427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428   soname_spec='${libname}${release}${shared_ext}$major'
11429   shlibpath_var=LD_LIBRARY_PATH
11430   shlibpath_overrides_runpath=yes
11431   hardcode_into_libs=yes
11432   # ldd complains unless libraries are executable
11433   postinstall_cmds='chmod +x $lib'
11434   ;;
11435
11436 sunos4*)
11437   version_type=sunos
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   shlibpath_overrides_runpath=yes
11442   if test "$with_gnu_ld" = yes; then
11443     need_lib_prefix=no
11444   fi
11445   need_version=yes
11446   ;;
11447
11448 sysv4 | sysv4.3*)
11449   version_type=linux # correct to gnu/linux during the next big refactor
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   case $host_vendor in
11454     sni)
11455       shlibpath_overrides_runpath=no
11456       need_lib_prefix=no
11457       runpath_var=LD_RUN_PATH
11458       ;;
11459     siemens)
11460       need_lib_prefix=no
11461       ;;
11462     motorola)
11463       need_lib_prefix=no
11464       need_version=no
11465       shlibpath_overrides_runpath=no
11466       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11467       ;;
11468   esac
11469   ;;
11470
11471 sysv4*MP*)
11472   if test -d /usr/nec ;then
11473     version_type=linux # correct to gnu/linux during the next big refactor
11474     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11475     soname_spec='$libname${shared_ext}.$major'
11476     shlibpath_var=LD_LIBRARY_PATH
11477   fi
11478   ;;
11479
11480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11481   version_type=freebsd-elf
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   shlibpath_var=LD_LIBRARY_PATH
11487   shlibpath_overrides_runpath=yes
11488   hardcode_into_libs=yes
11489   if test "$with_gnu_ld" = yes; then
11490     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11491   else
11492     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11493     case $host_os in
11494       sco3.2v5*)
11495         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11496         ;;
11497     esac
11498   fi
11499   sys_lib_dlsearch_path_spec='/usr/lib'
11500   ;;
11501
11502 tpf*)
11503   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11504   version_type=linux # correct to gnu/linux during the next big refactor
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=no
11510   hardcode_into_libs=yes
11511   ;;
11512
11513 uts4*)
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516   soname_spec='${libname}${release}${shared_ext}$major'
11517   shlibpath_var=LD_LIBRARY_PATH
11518   ;;
11519
11520 *)
11521   dynamic_linker=no
11522   ;;
11523 esac
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11525 $as_echo "$dynamic_linker" >&6; }
11526 test "$dynamic_linker" = no && can_build_shared=no
11527
11528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11529 if test "$GCC" = yes; then
11530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11531 fi
11532
11533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11534   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11535 fi
11536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11537   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11538 fi
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11633 hardcode_action=
11634 if test -n "$hardcode_libdir_flag_spec" ||
11635    test -n "$runpath_var" ||
11636    test "X$hardcode_automatic" = "Xyes" ; then
11637
11638   # We can hardcode non-existent directories.
11639   if test "$hardcode_direct" != no &&
11640      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641      # have to relink, otherwise we might link with an installed library
11642      # when we should be linking with a yet-to-be-installed one
11643      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11644      test "$hardcode_minus_L" != no; then
11645     # Linking always hardcodes the temporary library directory.
11646     hardcode_action=relink
11647   else
11648     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649     hardcode_action=immediate
11650   fi
11651 else
11652   # We cannot hardcode anything, or else we can only hardcode existing
11653   # directories.
11654   hardcode_action=unsupported
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11657 $as_echo "$hardcode_action" >&6; }
11658
11659 if test "$hardcode_action" = relink ||
11660    test "$inherit_rpath" = yes; then
11661   # Fast installation is not supported
11662   enable_fast_install=no
11663 elif test "$shlibpath_overrides_runpath" = yes ||
11664      test "$enable_shared" = no; then
11665   # Fast installation is not necessary
11666   enable_fast_install=needless
11667 fi
11668
11669
11670
11671
11672
11673
11674   if test "x$enable_dlopen" != xyes; then
11675   enable_dlopen=unknown
11676   enable_dlopen_self=unknown
11677   enable_dlopen_self_static=unknown
11678 else
11679   lt_cv_dlopen=no
11680   lt_cv_dlopen_libs=
11681
11682   case $host_os in
11683   beos*)
11684     lt_cv_dlopen="load_add_on"
11685     lt_cv_dlopen_libs=
11686     lt_cv_dlopen_self=yes
11687     ;;
11688
11689   mingw* | pw32* | cegcc*)
11690     lt_cv_dlopen="LoadLibrary"
11691     lt_cv_dlopen_libs=
11692     ;;
11693
11694   cygwin*)
11695     lt_cv_dlopen="dlopen"
11696     lt_cv_dlopen_libs=
11697     ;;
11698
11699   darwin*)
11700   # if libdl is installed we need to link against it
11701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11702 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11703 if ${ac_cv_lib_dl_dlopen+:} false; then :
11704   $as_echo_n "(cached) " >&6
11705 else
11706   ac_check_lib_save_LIBS=$LIBS
11707 LIBS="-ldl  $LIBS"
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h.  */
11710
11711 /* Override any GCC internal prototype to avoid an error.
11712    Use char because int might match the return type of a GCC
11713    builtin and then its argument prototype would still apply.  */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char dlopen ();
11718 int
11719 main ()
11720 {
11721 return dlopen ();
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"; then :
11727   ac_cv_lib_dl_dlopen=yes
11728 else
11729   ac_cv_lib_dl_dlopen=no
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext \
11732     conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11738   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11739 else
11740
11741     lt_cv_dlopen="dyld"
11742     lt_cv_dlopen_libs=
11743     lt_cv_dlopen_self=yes
11744
11745 fi
11746
11747     ;;
11748
11749   *)
11750     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11751 if test "x$ac_cv_func_shl_load" = xyes; then :
11752   lt_cv_dlopen="shl_load"
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11755 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11756 if ${ac_cv_lib_dld_shl_load+:} false; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-ldld  $LIBS"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h.  */
11763
11764 /* Override any GCC internal prototype to avoid an error.
11765    Use char because int might match the return type of a GCC
11766    builtin and then its argument prototype would still apply.  */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 char shl_load ();
11771 int
11772 main ()
11773 {
11774 return shl_load ();
11775   ;
11776   return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780   ac_cv_lib_dld_shl_load=yes
11781 else
11782   ac_cv_lib_dld_shl_load=no
11783 fi
11784 rm -f core conftest.err conftest.$ac_objext \
11785     conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11789 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11790 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11791   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11792 else
11793   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11794 if test "x$ac_cv_func_dlopen" = xyes; then :
11795   lt_cv_dlopen="dlopen"
11796 else
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11799 if ${ac_cv_lib_dl_dlopen+:} false; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl  $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h.  */
11806
11807 /* Override any GCC internal prototype to avoid an error.
11808    Use char because int might match the return type of a GCC
11809    builtin and then its argument prototype would still apply.  */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 return dlopen ();
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823   ac_cv_lib_dl_dlopen=yes
11824 else
11825   ac_cv_lib_dl_dlopen=no
11826 fi
11827 rm -f core conftest.err conftest.$ac_objext \
11828     conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11835 else
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11837 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11838 if ${ac_cv_lib_svld_dlopen+:} false; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lsvld  $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h.  */
11845
11846 /* Override any GCC internal prototype to avoid an error.
11847    Use char because int might match the return type of a GCC
11848    builtin and then its argument prototype would still apply.  */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char dlopen ();
11853 int
11854 main ()
11855 {
11856 return dlopen ();
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862   ac_cv_lib_svld_dlopen=yes
11863 else
11864   ac_cv_lib_svld_dlopen=no
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext \
11867     conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11872 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11873   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11874 else
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11877 if ${ac_cv_lib_dld_dld_link+:} false; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-ldld  $LIBS"
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h.  */
11884
11885 /* Override any GCC internal prototype to avoid an error.
11886    Use char because int might match the return type of a GCC
11887    builtin and then its argument prototype would still apply.  */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char dld_link ();
11892 int
11893 main ()
11894 {
11895 return dld_link ();
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_link "$LINENO"; then :
11901   ac_cv_lib_dld_dld_link=yes
11902 else
11903   ac_cv_lib_dld_dld_link=no
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext \
11906     conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11910 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11911 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11912   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11913 fi
11914
11915
11916 fi
11917
11918
11919 fi
11920
11921
11922 fi
11923
11924
11925 fi
11926
11927
11928 fi
11929
11930     ;;
11931   esac
11932
11933   if test "x$lt_cv_dlopen" != xno; then
11934     enable_dlopen=yes
11935   else
11936     enable_dlopen=no
11937   fi
11938
11939   case $lt_cv_dlopen in
11940   dlopen)
11941     save_CPPFLAGS="$CPPFLAGS"
11942     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11943
11944     save_LDFLAGS="$LDFLAGS"
11945     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11946
11947     save_LIBS="$LIBS"
11948     LIBS="$lt_cv_dlopen_libs $LIBS"
11949
11950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11951 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11952 if ${lt_cv_dlopen_self+:} false; then :
11953   $as_echo_n "(cached) " >&6
11954 else
11955           if test "$cross_compiling" = yes; then :
11956   lt_cv_dlopen_self=cross
11957 else
11958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11959   lt_status=$lt_dlunknown
11960   cat > conftest.$ac_ext <<_LT_EOF
11961 #line $LINENO "configure"
11962 #include "confdefs.h"
11963
11964 #if HAVE_DLFCN_H
11965 #include <dlfcn.h>
11966 #endif
11967
11968 #include <stdio.h>
11969
11970 #ifdef RTLD_GLOBAL
11971 #  define LT_DLGLOBAL           RTLD_GLOBAL
11972 #else
11973 #  ifdef DL_GLOBAL
11974 #    define LT_DLGLOBAL         DL_GLOBAL
11975 #  else
11976 #    define LT_DLGLOBAL         0
11977 #  endif
11978 #endif
11979
11980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11981    find out it does not work in some platform. */
11982 #ifndef LT_DLLAZY_OR_NOW
11983 #  ifdef RTLD_LAZY
11984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11985 #  else
11986 #    ifdef DL_LAZY
11987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11988 #    else
11989 #      ifdef RTLD_NOW
11990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11991 #      else
11992 #        ifdef DL_NOW
11993 #          define LT_DLLAZY_OR_NOW      DL_NOW
11994 #        else
11995 #          define LT_DLLAZY_OR_NOW      0
11996 #        endif
11997 #      endif
11998 #    endif
11999 #  endif
12000 #endif
12001
12002 /* When -fvisbility=hidden is used, assume the code has been annotated
12003    correspondingly for the symbols needed.  */
12004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12005 int fnord () __attribute__((visibility("default")));
12006 #endif
12007
12008 int fnord () { return 42; }
12009 int main ()
12010 {
12011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12012   int status = $lt_dlunknown;
12013
12014   if (self)
12015     {
12016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12017       else
12018         {
12019           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12020           else puts (dlerror ());
12021         }
12022       /* dlclose (self); */
12023     }
12024   else
12025     puts (dlerror ());
12026
12027   return status;
12028 }
12029 _LT_EOF
12030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12031   (eval $ac_link) 2>&5
12032   ac_status=$?
12033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12035     (./conftest; exit; ) >&5 2>/dev/null
12036     lt_status=$?
12037     case x$lt_status in
12038       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12039       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12040       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12041     esac
12042   else :
12043     # compilation failed
12044     lt_cv_dlopen_self=no
12045   fi
12046 fi
12047 rm -fr conftest*
12048
12049
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12052 $as_echo "$lt_cv_dlopen_self" >&6; }
12053
12054     if test "x$lt_cv_dlopen_self" = xyes; then
12055       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12057 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12058 if ${lt_cv_dlopen_self_static+:} false; then :
12059   $as_echo_n "(cached) " >&6
12060 else
12061           if test "$cross_compiling" = yes; then :
12062   lt_cv_dlopen_self_static=cross
12063 else
12064   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12065   lt_status=$lt_dlunknown
12066   cat > conftest.$ac_ext <<_LT_EOF
12067 #line $LINENO "configure"
12068 #include "confdefs.h"
12069
12070 #if HAVE_DLFCN_H
12071 #include <dlfcn.h>
12072 #endif
12073
12074 #include <stdio.h>
12075
12076 #ifdef RTLD_GLOBAL
12077 #  define LT_DLGLOBAL           RTLD_GLOBAL
12078 #else
12079 #  ifdef DL_GLOBAL
12080 #    define LT_DLGLOBAL         DL_GLOBAL
12081 #  else
12082 #    define LT_DLGLOBAL         0
12083 #  endif
12084 #endif
12085
12086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12087    find out it does not work in some platform. */
12088 #ifndef LT_DLLAZY_OR_NOW
12089 #  ifdef RTLD_LAZY
12090 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12091 #  else
12092 #    ifdef DL_LAZY
12093 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12094 #    else
12095 #      ifdef RTLD_NOW
12096 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12097 #      else
12098 #        ifdef DL_NOW
12099 #          define LT_DLLAZY_OR_NOW      DL_NOW
12100 #        else
12101 #          define LT_DLLAZY_OR_NOW      0
12102 #        endif
12103 #      endif
12104 #    endif
12105 #  endif
12106 #endif
12107
12108 /* When -fvisbility=hidden is used, assume the code has been annotated
12109    correspondingly for the symbols needed.  */
12110 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12111 int fnord () __attribute__((visibility("default")));
12112 #endif
12113
12114 int fnord () { return 42; }
12115 int main ()
12116 {
12117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118   int status = $lt_dlunknown;
12119
12120   if (self)
12121     {
12122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12123       else
12124         {
12125           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12126           else puts (dlerror ());
12127         }
12128       /* dlclose (self); */
12129     }
12130   else
12131     puts (dlerror ());
12132
12133   return status;
12134 }
12135 _LT_EOF
12136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12137   (eval $ac_link) 2>&5
12138   ac_status=$?
12139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12141     (./conftest; exit; ) >&5 2>/dev/null
12142     lt_status=$?
12143     case x$lt_status in
12144       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12145       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12146       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12147     esac
12148   else :
12149     # compilation failed
12150     lt_cv_dlopen_self_static=no
12151   fi
12152 fi
12153 rm -fr conftest*
12154
12155
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12158 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12159     fi
12160
12161     CPPFLAGS="$save_CPPFLAGS"
12162     LDFLAGS="$save_LDFLAGS"
12163     LIBS="$save_LIBS"
12164     ;;
12165   esac
12166
12167   case $lt_cv_dlopen_self in
12168   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12169   *) enable_dlopen_self=unknown ;;
12170   esac
12171
12172   case $lt_cv_dlopen_self_static in
12173   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12174   *) enable_dlopen_self_static=unknown ;;
12175   esac
12176 fi
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194 striplib=
12195 old_striplib=
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12197 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12198 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12199   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12200   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12202 $as_echo "yes" >&6; }
12203 else
12204 # FIXME - insert some real tests, host_os isn't really good enough
12205   case $host_os in
12206   darwin*)
12207     if test -n "$STRIP" ; then
12208       striplib="$STRIP -x"
12209       old_striplib="$STRIP -S"
12210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211 $as_echo "yes" >&6; }
12212     else
12213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215     fi
12216     ;;
12217   *)
12218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220     ;;
12221   esac
12222 fi
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235   # Report which library types will actually be built
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12237 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12239 $as_echo "$can_build_shared" >&6; }
12240
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12242 $as_echo_n "checking whether to build shared libraries... " >&6; }
12243   test "$can_build_shared" = "no" && enable_shared=no
12244
12245   # On AIX, shared libraries and static libraries use the same namespace, and
12246   # are all built from PIC.
12247   case $host_os in
12248   aix3*)
12249     test "$enable_shared" = yes && enable_static=no
12250     if test -n "$RANLIB"; then
12251       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12252       postinstall_cmds='$RANLIB $lib'
12253     fi
12254     ;;
12255
12256   aix[4-9]*)
12257     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12258       test "$enable_shared" = yes && enable_static=no
12259     fi
12260     ;;
12261   esac
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12263 $as_echo "$enable_shared" >&6; }
12264
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12266 $as_echo_n "checking whether to build static libraries... " >&6; }
12267   # Make sure either enable_shared or enable_static is yes.
12268   test "$enable_shared" = yes || enable_static=yes
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12270 $as_echo "$enable_static" >&6; }
12271
12272
12273
12274
12275 fi
12276 ac_ext=c
12277 ac_cpp='$CPP $CPPFLAGS'
12278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12281
12282 CC="$lt_save_CC"
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298         ac_config_commands="$ac_config_commands libtool"
12299
12300
12301
12302
12303 # Only expand once:
12304
12305
12306
12307 # Check for the -Bsymbolic-functions linker flag
12308 # Check whether --enable-Bsymbolic was given.
12309 if test "${enable_Bsymbolic+set}" = set; then :
12310   enableval=$enable_Bsymbolic;
12311 else
12312   enable_Bsymbolic=check
12313 fi
12314
12315
12316 if test "x$enable_Bsymbolic" = "xcheck"; then :
12317
12318         saved_LDFLAGS="${LDFLAGS}"
12319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
12320 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
12321         LDFLAGS=-Wl,-Bsymbolic-functions
12322         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324
12325 int
12326 main ()
12327 {
12328 int main (void) { return 0; }
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334
12335                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336 $as_echo "yes" >&6; }
12337                       enable_Bsymbolic=yes
12338
12339 else
12340
12341                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343                       enable_Bsymbolic=no
12344
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext \
12347     conftest$ac_exeext conftest.$ac_ext
12348         LDFLAGS="${saved_LDFLAGS}"
12349
12350 fi
12351
12352 if test "x$enable_Bsymbolic" = "xyes"; then :
12353   JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
12354 fi
12355
12356
12357
12358
12359
12360
12361 for flag in -Wall -Werror -Wcast-qual -Wno-error=deprecated-declarations; do
12362   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12364 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12365 if eval \${$as_CACHEVAR+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368
12369   ax_check_save_flags=$CFLAGS
12370   CFLAGS="$CFLAGS  $flag"
12371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h.  */
12373
12374 int
12375 main ()
12376 {
12377
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"; then :
12383   eval "$as_CACHEVAR=yes"
12384 else
12385   eval "$as_CACHEVAR=no"
12386 fi
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388   CFLAGS=$ax_check_save_flags
12389 fi
12390 eval ac_res=\$$as_CACHEVAR
12391                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12392 $as_echo "$ac_res" >&6; }
12393 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12394
12395 if ${CFLAGS+:} false; then :
12396
12397   case " $CFLAGS " in #(
12398   *" $flag "*) :
12399     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12400   (: CFLAGS already contains $flag) 2>&5
12401   ac_status=$?
12402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403   test $ac_status = 0; } ;; #(
12404   *) :
12405
12406      as_fn_append CFLAGS " $flag"
12407      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12408   (: CFLAGS="$CFLAGS") 2>&5
12409   ac_status=$?
12410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411   test $ac_status = 0; }
12412      ;;
12413 esac
12414
12415 else
12416
12417   CFLAGS=$flag
12418   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12419   (: CFLAGS="$CFLAGS") 2>&5
12420   ac_status=$?
12421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12422   test $ac_status = 0; }
12423
12424 fi
12425
12426 else
12427   :
12428 fi
12429
12430 done
12431
12432
12433
12434
12435
12436 for flag in -Wextra -Wwrite-string -Wno-unused-parameter; do
12437   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12439 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12440 if eval \${$as_CACHEVAR+:} false; then :
12441   $as_echo_n "(cached) " >&6
12442 else
12443
12444   ax_check_save_flags=$CFLAGS
12445   CFLAGS="$CFLAGS  $flag"
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448
12449 int
12450 main ()
12451 {
12452
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 if ac_fn_c_try_compile "$LINENO"; then :
12458   eval "$as_CACHEVAR=yes"
12459 else
12460   eval "$as_CACHEVAR=no"
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463   CFLAGS=$ax_check_save_flags
12464 fi
12465 eval ac_res=\$$as_CACHEVAR
12466                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12467 $as_echo "$ac_res" >&6; }
12468 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12469
12470 if ${CFLAGS+:} false; then :
12471
12472   case " $CFLAGS " in #(
12473   *" $flag "*) :
12474     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12475   (: CFLAGS already contains $flag) 2>&5
12476   ac_status=$?
12477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478   test $ac_status = 0; } ;; #(
12479   *) :
12480
12481      as_fn_append CFLAGS " $flag"
12482      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12483   (: CFLAGS="$CFLAGS") 2>&5
12484   ac_status=$?
12485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486   test $ac_status = 0; }
12487      ;;
12488 esac
12489
12490 else
12491
12492   CFLAGS=$flag
12493   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12494   (: CFLAGS="$CFLAGS") 2>&5
12495   ac_status=$?
12496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497   test $ac_status = 0; }
12498
12499 fi
12500
12501 else
12502   :
12503 fi
12504
12505 done
12506
12507
12508
12509
12510
12511 for flag in -D_GNU_SOURCE; do
12512   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12514 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12515 if eval \${$as_CACHEVAR+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518
12519   ax_check_save_flags=$CFLAGS
12520   CFLAGS="$CFLAGS  $flag"
12521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523
12524 int
12525 main ()
12526 {
12527
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533   eval "$as_CACHEVAR=yes"
12534 else
12535   eval "$as_CACHEVAR=no"
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538   CFLAGS=$ax_check_save_flags
12539 fi
12540 eval ac_res=\$$as_CACHEVAR
12541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12542 $as_echo "$ac_res" >&6; }
12543 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12544
12545 if ${CFLAGS+:} false; then :
12546
12547   case " $CFLAGS " in #(
12548   *" $flag "*) :
12549     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12550   (: CFLAGS already contains $flag) 2>&5
12551   ac_status=$?
12552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553   test $ac_status = 0; } ;; #(
12554   *) :
12555
12556      as_fn_append CFLAGS " $flag"
12557      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12558   (: CFLAGS="$CFLAGS") 2>&5
12559   ac_status=$?
12560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561   test $ac_status = 0; }
12562      ;;
12563 esac
12564
12565 else
12566
12567   CFLAGS=$flag
12568   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12569   (: CFLAGS="$CFLAGS") 2>&5
12570   ac_status=$?
12571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572   test $ac_status = 0; }
12573
12574 fi
12575
12576 else
12577   :
12578 fi
12579
12580 done
12581
12582
12583 ac_ext=c
12584 ac_cpp='$CPP $CPPFLAGS'
12585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatibility with _REENTRANT and toolchain headers" >&5
12590 $as_echo_n "checking for compatibility with _REENTRANT and toolchain headers... " >&6; }
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h.  */
12593
12594
12595 /* uClibc toolchains without threading barf when _REENTRANT is defined */
12596 #define _REENTRANT 1
12597 #include <sys/types.h>
12598 int main ()
12599 {
12600   return 0;
12601 }
12602
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605
12606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607 $as_echo "yes" >&6; }
12608
12609
12610
12611
12612 for flag in -D_REENTRANT; do
12613   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12615 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12616 if eval \${$as_CACHEVAR+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619
12620   ax_check_save_flags=$CFLAGS
12621   CFLAGS="$CFLAGS  $flag"
12622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h.  */
12624
12625 int
12626 main ()
12627 {
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_compile "$LINENO"; then :
12634   eval "$as_CACHEVAR=yes"
12635 else
12636   eval "$as_CACHEVAR=no"
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639   CFLAGS=$ax_check_save_flags
12640 fi
12641 eval ac_res=\$$as_CACHEVAR
12642                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12643 $as_echo "$ac_res" >&6; }
12644 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12645
12646 if ${CFLAGS+:} false; then :
12647
12648   case " $CFLAGS " in #(
12649   *" $flag "*) :
12650     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12651   (: CFLAGS already contains $flag) 2>&5
12652   ac_status=$?
12653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654   test $ac_status = 0; } ;; #(
12655   *) :
12656
12657      as_fn_append CFLAGS " $flag"
12658      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12659   (: CFLAGS="$CFLAGS") 2>&5
12660   ac_status=$?
12661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662   test $ac_status = 0; }
12663      ;;
12664 esac
12665
12666 else
12667
12668   CFLAGS=$flag
12669   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12670   (: CFLAGS="$CFLAGS") 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673   test $ac_status = 0; }
12674
12675 fi
12676
12677 else
12678   :
12679 fi
12680
12681 done
12682
12683
12684 else
12685
12686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688
12689 fi
12690 rm -f core conftest.err conftest.$ac_objext \
12691     conftest$ac_exeext conftest.$ac_ext
12692 ac_ext=c
12693 ac_cpp='$CPP $CPPFLAGS'
12694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12697
12698
12699
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12701 $as_echo_n "checking size of int... " >&6; }
12702 if ${ac_cv_sizeof_int+:} false; then :
12703   $as_echo_n "(cached) " >&6
12704 else
12705   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708 #include "confdefs.h"
12709 #include <sys/types.h>
12710
12711
12712 int
12713 main ()
12714 {
12715 switch (0) case 0: case (sizeof (int) == $ac_size):;
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_compile "$LINENO"; then :
12721   ac_cv_sizeof_int=$ac_size
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724   if test x$ac_cv_sizeof_int != x ; then break; fi
12725 done
12726
12727 fi
12728
12729 if test x$ac_cv_sizeof_int = x ; then
12730   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12733 $as_echo "$ac_cv_sizeof_int" >&6; }
12734
12735 cat >>confdefs.h <<_ACEOF
12736 #define SIZEOF_INT $ac_cv_sizeof_int
12737 _ACEOF
12738
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12741 $as_echo_n "checking size of long... " >&6; }
12742 if ${ac_cv_sizeof_long+:} false; then :
12743   $as_echo_n "(cached) " >&6
12744 else
12745   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748 #include "confdefs.h"
12749 #include <sys/types.h>
12750
12751
12752 int
12753 main ()
12754 {
12755 switch (0) case 0: case (sizeof (long) == $ac_size):;
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_compile "$LINENO"; then :
12761   ac_cv_sizeof_long=$ac_size
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764   if test x$ac_cv_sizeof_long != x ; then break; fi
12765 done
12766
12767 fi
12768
12769 if test x$ac_cv_sizeof_long = x ; then
12770   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12773 $as_echo "$ac_cv_sizeof_long" >&6; }
12774
12775 cat >>confdefs.h <<_ACEOF
12776 #define SIZEOF_LONG $ac_cv_sizeof_long
12777 _ACEOF
12778
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12781 $as_echo_n "checking size of long long... " >&6; }
12782 if ${ac_cv_sizeof_long_long+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h.  */
12788 #include "confdefs.h"
12789 #include <sys/types.h>
12790
12791
12792 int
12793 main ()
12794 {
12795 switch (0) case 0: case (sizeof (long long) == $ac_size):;
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801   ac_cv_sizeof_long_long=$ac_size
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804   if test x$ac_cv_sizeof_long_long != x ; then break; fi
12805 done
12806
12807 fi
12808
12809 if test x$ac_cv_sizeof_long_long = x ; then
12810   as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
12811 fi
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12813 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12814
12815 cat >>confdefs.h <<_ACEOF
12816 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12817 _ACEOF
12818
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12821 $as_echo_n "checking size of size_t... " >&6; }
12822 if ${ac_cv_sizeof_size_t+:} false; then :
12823   $as_echo_n "(cached) " >&6
12824 else
12825   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828 #include "confdefs.h"
12829 #include <sys/types.h>
12830 #include <stdint.h>
12831
12832 int
12833 main ()
12834 {
12835 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
12836   ;
12837   return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841   ac_cv_sizeof_size_t=$ac_size
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844   if test x$ac_cv_sizeof_size_t != x ; then break; fi
12845 done
12846
12847 fi
12848
12849 if test x$ac_cv_sizeof_size_t = x ; then
12850   as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12853 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12854
12855 cat >>confdefs.h <<_ACEOF
12856 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12857 _ACEOF
12858
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12861 $as_echo_n "checking size of int64_t... " >&6; }
12862 if ${ac_cv_sizeof_int64_t+:} false; then :
12863   $as_echo_n "(cached) " >&6
12864 else
12865   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
12866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h.  */
12868 #include "confdefs.h"
12869 #include <sys/types.h>
12870 #include <stdint.h>
12871
12872 int
12873 main ()
12874 {
12875 switch (0) case 0: case (sizeof (int64_t) == $ac_size):;
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_compile "$LINENO"; then :
12881   ac_cv_sizeof_int64_t=$ac_size
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884   if test x$ac_cv_sizeof_int64_t != x ; then break; fi
12885 done
12886
12887 fi
12888
12889 if test x$ac_cv_sizeof_int64_t = x ; then
12890   as_fn_error $? "cannot determine a size for int64_t" "$LINENO" 5
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12893 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12894
12895 cat >>confdefs.h <<_ACEOF
12896 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12897 _ACEOF
12898
12899
12900
12901 ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
12902
12903
12904 cat >confcache <<\_ACEOF
12905 # This file is a shell script that caches the results of configure
12906 # tests run on this system so they can be shared between configure
12907 # scripts and configure runs, see configure's option --config-cache.
12908 # It is not useful on other systems.  If it contains results you don't
12909 # want to keep, you may remove or edit it.
12910 #
12911 # config.status only pays attention to the cache file if you give it
12912 # the --recheck option to rerun configure.
12913 #
12914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12916 # following values.
12917
12918 _ACEOF
12919
12920 # The following way of writing the cache mishandles newlines in values,
12921 # but we know of no workaround that is simple, portable, and efficient.
12922 # So, we kill variables containing newlines.
12923 # Ultrix sh set writes to stderr and can't be redirected directly,
12924 # and sets the high bit in the cache file unless we assign to the vars.
12925 (
12926   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12927     eval ac_val=\$$ac_var
12928     case $ac_val in #(
12929     *${as_nl}*)
12930       case $ac_var in #(
12931       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12933       esac
12934       case $ac_var in #(
12935       _ | IFS | as_nl) ;; #(
12936       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12937       *) { eval $ac_var=; unset $ac_var;} ;;
12938       esac ;;
12939     esac
12940   done
12941
12942   (set) 2>&1 |
12943     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12944     *${as_nl}ac_space=\ *)
12945       # `set' does not quote correctly, so add quotes: double-quote
12946       # substitution turns \\\\ into \\, and sed turns \\ into \.
12947       sed -n \
12948         "s/'/'\\\\''/g;
12949           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12950       ;; #(
12951     *)
12952       # `set' quotes correctly as required by POSIX, so do not add quotes.
12953       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12954       ;;
12955     esac |
12956     sort
12957 ) |
12958   sed '
12959      /^ac_cv_env_/b end
12960      t clear
12961      :clear
12962      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12963      t end
12964      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12965      :end' >>confcache
12966 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12967   if test -w "$cache_file"; then
12968     if test "x$cache_file" != "x/dev/null"; then
12969       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12970 $as_echo "$as_me: updating cache $cache_file" >&6;}
12971       if test ! -f "$cache_file" || test -h "$cache_file"; then
12972         cat confcache >"$cache_file"
12973       else
12974         case $cache_file in #(
12975         */* | ?:*)
12976           mv -f confcache "$cache_file"$$ &&
12977           mv -f "$cache_file"$$ "$cache_file" ;; #(
12978         *)
12979           mv -f confcache "$cache_file" ;;
12980         esac
12981       fi
12982     fi
12983   else
12984     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12985 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12986   fi
12987 fi
12988 rm -f confcache
12989
12990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12991 # Let make expand exec_prefix.
12992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12993
12994 DEFS=-DHAVE_CONFIG_H
12995
12996 ac_libobjs=
12997 ac_ltlibobjs=
12998 U=
12999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13000   # 1. Remove the extension, and $U if already installed.
13001   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13002   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13003   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13004   #    will be set to the directory where LIBOBJS objects are built.
13005   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13006   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13007 done
13008 LIBOBJS=$ac_libobjs
13009
13010 LTLIBOBJS=$ac_ltlibobjs
13011
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13014 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13015    if test -n "$am_sleep_pid"; then
13016      # Hide warnings about reused PIDs.
13017      wait $am_sleep_pid 2>/dev/null
13018    fi
13019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13020 $as_echo "done" >&6; }
13021  if test -n "$EXEEXT"; then
13022   am__EXEEXT_TRUE=
13023   am__EXEEXT_FALSE='#'
13024 else
13025   am__EXEEXT_TRUE='#'
13026   am__EXEEXT_FALSE=
13027 fi
13028
13029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13030   as_fn_error $? "conditional \"AMDEP\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13032 fi
13033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13034   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13036 fi
13037
13038 : "${CONFIG_STATUS=./config.status}"
13039 ac_write_fail=0
13040 ac_clean_files_save=$ac_clean_files
13041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13044 as_write_fail=0
13045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13046 #! $SHELL
13047 # Generated by $as_me.
13048 # Run this file to recreate the current configuration.
13049 # Compiler output produced by configure, useful for debugging
13050 # configure, is in config.log if it exists.
13051
13052 debug=false
13053 ac_cs_recheck=false
13054 ac_cs_silent=false
13055
13056 SHELL=\${CONFIG_SHELL-$SHELL}
13057 export SHELL
13058 _ASEOF
13059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13060 ## -------------------- ##
13061 ## M4sh Initialization. ##
13062 ## -------------------- ##
13063
13064 # Be more Bourne compatible
13065 DUALCASE=1; export DUALCASE # for MKS sh
13066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13067   emulate sh
13068   NULLCMD=:
13069   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13070   # is contrary to our usage.  Disable this feature.
13071   alias -g '${1+"$@"}'='"$@"'
13072   setopt NO_GLOB_SUBST
13073 else
13074   case `(set -o) 2>/dev/null` in #(
13075   *posix*) :
13076     set -o posix ;; #(
13077   *) :
13078      ;;
13079 esac
13080 fi
13081
13082
13083 as_nl='
13084 '
13085 export as_nl
13086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13087 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13090 # Prefer a ksh shell builtin over an external printf program on Solaris,
13091 # but without wasting forks for bash or zsh.
13092 if test -z "$BASH_VERSION$ZSH_VERSION" \
13093     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13094   as_echo='print -r --'
13095   as_echo_n='print -rn --'
13096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13097   as_echo='printf %s\n'
13098   as_echo_n='printf %s'
13099 else
13100   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13101     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13102     as_echo_n='/usr/ucb/echo -n'
13103   else
13104     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13105     as_echo_n_body='eval
13106       arg=$1;
13107       case $arg in #(
13108       *"$as_nl"*)
13109         expr "X$arg" : "X\\(.*\\)$as_nl";
13110         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13111       esac;
13112       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13113     '
13114     export as_echo_n_body
13115     as_echo_n='sh -c $as_echo_n_body as_echo'
13116   fi
13117   export as_echo_body
13118   as_echo='sh -c $as_echo_body as_echo'
13119 fi
13120
13121 # The user is always right.
13122 if test "${PATH_SEPARATOR+set}" != set; then
13123   PATH_SEPARATOR=:
13124   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13125     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13126       PATH_SEPARATOR=';'
13127   }
13128 fi
13129
13130
13131 # IFS
13132 # We need space, tab and new line, in precisely that order.  Quoting is
13133 # there to prevent editors from complaining about space-tab.
13134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13135 # splitting by setting IFS to empty value.)
13136 IFS=" ""        $as_nl"
13137
13138 # Find who we are.  Look in the path if we contain no directory separator.
13139 as_myself=
13140 case $0 in #((
13141   *[\\/]* ) as_myself=$0 ;;
13142   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145   IFS=$as_save_IFS
13146   test -z "$as_dir" && as_dir=.
13147     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13148   done
13149 IFS=$as_save_IFS
13150
13151      ;;
13152 esac
13153 # We did not find ourselves, most probably we were run as `sh COMMAND'
13154 # in which case we are not to be found in the path.
13155 if test "x$as_myself" = x; then
13156   as_myself=$0
13157 fi
13158 if test ! -f "$as_myself"; then
13159   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13160   exit 1
13161 fi
13162
13163 # Unset variables that we do not need and which cause bugs (e.g. in
13164 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13165 # suppresses any "Segmentation fault" message there.  '((' could
13166 # trigger a bug in pdksh 5.2.14.
13167 for as_var in BASH_ENV ENV MAIL MAILPATH
13168 do eval test x\${$as_var+set} = xset \
13169   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13170 done
13171 PS1='$ '
13172 PS2='> '
13173 PS4='+ '
13174
13175 # NLS nuisances.
13176 LC_ALL=C
13177 export LC_ALL
13178 LANGUAGE=C
13179 export LANGUAGE
13180
13181 # CDPATH.
13182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13183
13184
13185 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13186 # ----------------------------------------
13187 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13188 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13189 # script with STATUS, using 1 if that was 0.
13190 as_fn_error ()
13191 {
13192   as_status=$1; test $as_status -eq 0 && as_status=1
13193   if test "$4"; then
13194     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13195     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13196   fi
13197   $as_echo "$as_me: error: $2" >&2
13198   as_fn_exit $as_status
13199 } # as_fn_error
13200
13201
13202 # as_fn_set_status STATUS
13203 # -----------------------
13204 # Set $? to STATUS, without forking.
13205 as_fn_set_status ()
13206 {
13207   return $1
13208 } # as_fn_set_status
13209
13210 # as_fn_exit STATUS
13211 # -----------------
13212 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13213 as_fn_exit ()
13214 {
13215   set +e
13216   as_fn_set_status $1
13217   exit $1
13218 } # as_fn_exit
13219
13220 # as_fn_unset VAR
13221 # ---------------
13222 # Portably unset VAR.
13223 as_fn_unset ()
13224 {
13225   { eval $1=; unset $1;}
13226 }
13227 as_unset=as_fn_unset
13228 # as_fn_append VAR VALUE
13229 # ----------------------
13230 # Append the text in VALUE to the end of the definition contained in VAR. Take
13231 # advantage of any shell optimizations that allow amortized linear growth over
13232 # repeated appends, instead of the typical quadratic growth present in naive
13233 # implementations.
13234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13235   eval 'as_fn_append ()
13236   {
13237     eval $1+=\$2
13238   }'
13239 else
13240   as_fn_append ()
13241   {
13242     eval $1=\$$1\$2
13243   }
13244 fi # as_fn_append
13245
13246 # as_fn_arith ARG...
13247 # ------------------
13248 # Perform arithmetic evaluation on the ARGs, and store the result in the
13249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13250 # must be portable across $(()) and expr.
13251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13252   eval 'as_fn_arith ()
13253   {
13254     as_val=$(( $* ))
13255   }'
13256 else
13257   as_fn_arith ()
13258   {
13259     as_val=`expr "$@" || test $? -eq 1`
13260   }
13261 fi # as_fn_arith
13262
13263
13264 if expr a : '\(a\)' >/dev/null 2>&1 &&
13265    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13266   as_expr=expr
13267 else
13268   as_expr=false
13269 fi
13270
13271 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13272   as_basename=basename
13273 else
13274   as_basename=false
13275 fi
13276
13277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13278   as_dirname=dirname
13279 else
13280   as_dirname=false
13281 fi
13282
13283 as_me=`$as_basename -- "$0" ||
13284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13285          X"$0" : 'X\(//\)$' \| \
13286          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13287 $as_echo X/"$0" |
13288     sed '/^.*\/\([^/][^/]*\)\/*$/{
13289             s//\1/
13290             q
13291           }
13292           /^X\/\(\/\/\)$/{
13293             s//\1/
13294             q
13295           }
13296           /^X\/\(\/\).*/{
13297             s//\1/
13298             q
13299           }
13300           s/.*/./; q'`
13301
13302 # Avoid depending upon Character Ranges.
13303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13306 as_cr_digits='0123456789'
13307 as_cr_alnum=$as_cr_Letters$as_cr_digits
13308
13309 ECHO_C= ECHO_N= ECHO_T=
13310 case `echo -n x` in #(((((
13311 -n*)
13312   case `echo 'xy\c'` in
13313   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13314   xy)  ECHO_C='\c';;
13315   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13316        ECHO_T=' ';;
13317   esac;;
13318 *)
13319   ECHO_N='-n';;
13320 esac
13321
13322 rm -f conf$$ conf$$.exe conf$$.file
13323 if test -d conf$$.dir; then
13324   rm -f conf$$.dir/conf$$.file
13325 else
13326   rm -f conf$$.dir
13327   mkdir conf$$.dir 2>/dev/null
13328 fi
13329 if (echo >conf$$.file) 2>/dev/null; then
13330   if ln -s conf$$.file conf$$ 2>/dev/null; then
13331     as_ln_s='ln -s'
13332     # ... but there are two gotchas:
13333     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13334     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13335     # In both cases, we have to default to `cp -pR'.
13336     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13337       as_ln_s='cp -pR'
13338   elif ln conf$$.file conf$$ 2>/dev/null; then
13339     as_ln_s=ln
13340   else
13341     as_ln_s='cp -pR'
13342   fi
13343 else
13344   as_ln_s='cp -pR'
13345 fi
13346 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13347 rmdir conf$$.dir 2>/dev/null
13348
13349
13350 # as_fn_mkdir_p
13351 # -------------
13352 # Create "$as_dir" as a directory, including parents if necessary.
13353 as_fn_mkdir_p ()
13354 {
13355
13356   case $as_dir in #(
13357   -*) as_dir=./$as_dir;;
13358   esac
13359   test -d "$as_dir" || eval $as_mkdir_p || {
13360     as_dirs=
13361     while :; do
13362       case $as_dir in #(
13363       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13364       *) as_qdir=$as_dir;;
13365       esac
13366       as_dirs="'$as_qdir' $as_dirs"
13367       as_dir=`$as_dirname -- "$as_dir" ||
13368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13369          X"$as_dir" : 'X\(//\)[^/]' \| \
13370          X"$as_dir" : 'X\(//\)$' \| \
13371          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13372 $as_echo X"$as_dir" |
13373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13374             s//\1/
13375             q
13376           }
13377           /^X\(\/\/\)[^/].*/{
13378             s//\1/
13379             q
13380           }
13381           /^X\(\/\/\)$/{
13382             s//\1/
13383             q
13384           }
13385           /^X\(\/\).*/{
13386             s//\1/
13387             q
13388           }
13389           s/.*/./; q'`
13390       test -d "$as_dir" && break
13391     done
13392     test -z "$as_dirs" || eval "mkdir $as_dirs"
13393   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13394
13395
13396 } # as_fn_mkdir_p
13397 if mkdir -p . 2>/dev/null; then
13398   as_mkdir_p='mkdir -p "$as_dir"'
13399 else
13400   test -d ./-p && rmdir ./-p
13401   as_mkdir_p=false
13402 fi
13403
13404
13405 # as_fn_executable_p FILE
13406 # -----------------------
13407 # Test if FILE is an executable regular file.
13408 as_fn_executable_p ()
13409 {
13410   test -f "$1" && test -x "$1"
13411 } # as_fn_executable_p
13412 as_test_x='test -x'
13413 as_executable_p=as_fn_executable_p
13414
13415 # Sed expression to map a string onto a valid CPP name.
13416 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13417
13418 # Sed expression to map a string onto a valid variable name.
13419 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13420
13421
13422 exec 6>&1
13423 ## ----------------------------------- ##
13424 ## Main body of $CONFIG_STATUS script. ##
13425 ## ----------------------------------- ##
13426 _ASEOF
13427 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13428
13429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13430 # Save the log message, to keep $0 and so on meaningful, and to
13431 # report actual input values of CONFIG_FILES etc. instead of their
13432 # values after options handling.
13433 ac_log="
13434 This file was extended by json-c $as_me 0.13.1, which was
13435 generated by GNU Autoconf 2.69.  Invocation command line was
13436
13437   CONFIG_FILES    = $CONFIG_FILES
13438   CONFIG_HEADERS  = $CONFIG_HEADERS
13439   CONFIG_LINKS    = $CONFIG_LINKS
13440   CONFIG_COMMANDS = $CONFIG_COMMANDS
13441   $ $0 $@
13442
13443 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13444 "
13445
13446 _ACEOF
13447
13448 case $ac_config_files in *"
13449 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13450 esac
13451
13452 case $ac_config_headers in *"
13453 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13454 esac
13455
13456
13457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13458 # Files that config.status was made for.
13459 config_files="$ac_config_files"
13460 config_headers="$ac_config_headers"
13461 config_commands="$ac_config_commands"
13462
13463 _ACEOF
13464
13465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13466 ac_cs_usage="\
13467 \`$as_me' instantiates files and other configuration actions
13468 from templates according to the current configuration.  Unless the files
13469 and actions are specified as TAGs, all are instantiated by default.
13470
13471 Usage: $0 [OPTION]... [TAG]...
13472
13473   -h, --help       print this help, then exit
13474   -V, --version    print version number and configuration settings, then exit
13475       --config     print configuration, then exit
13476   -q, --quiet, --silent
13477                    do not print progress messages
13478   -d, --debug      don't remove temporary files
13479       --recheck    update $as_me by reconfiguring in the same conditions
13480       --file=FILE[:TEMPLATE]
13481                    instantiate the configuration file FILE
13482       --header=FILE[:TEMPLATE]
13483                    instantiate the configuration header FILE
13484
13485 Configuration files:
13486 $config_files
13487
13488 Configuration headers:
13489 $config_headers
13490
13491 Configuration commands:
13492 $config_commands
13493
13494 Report bugs to <json-c@googlegroups.com>."
13495
13496 _ACEOF
13497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13498 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13499 ac_cs_version="\\
13500 json-c config.status 0.13.1
13501 configured by $0, generated by GNU Autoconf 2.69,
13502   with options \\"\$ac_cs_config\\"
13503
13504 Copyright (C) 2012 Free Software Foundation, Inc.
13505 This config.status script is free software; the Free Software Foundation
13506 gives unlimited permission to copy, distribute and modify it."
13507
13508 ac_pwd='$ac_pwd'
13509 srcdir='$srcdir'
13510 INSTALL='$INSTALL'
13511 MKDIR_P='$MKDIR_P'
13512 AWK='$AWK'
13513 test -n "\$AWK" || AWK=awk
13514 _ACEOF
13515
13516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13517 # The default lists apply if the user does not specify any file.
13518 ac_need_defaults=:
13519 while test $# != 0
13520 do
13521   case $1 in
13522   --*=?*)
13523     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13524     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13525     ac_shift=:
13526     ;;
13527   --*=)
13528     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13529     ac_optarg=
13530     ac_shift=:
13531     ;;
13532   *)
13533     ac_option=$1
13534     ac_optarg=$2
13535     ac_shift=shift
13536     ;;
13537   esac
13538
13539   case $ac_option in
13540   # Handling of the options.
13541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13542     ac_cs_recheck=: ;;
13543   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13544     $as_echo "$ac_cs_version"; exit ;;
13545   --config | --confi | --conf | --con | --co | --c )
13546     $as_echo "$ac_cs_config"; exit ;;
13547   --debug | --debu | --deb | --de | --d | -d )
13548     debug=: ;;
13549   --file | --fil | --fi | --f )
13550     $ac_shift
13551     case $ac_optarg in
13552     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13553     '') as_fn_error $? "missing file argument" ;;
13554     esac
13555     as_fn_append CONFIG_FILES " '$ac_optarg'"
13556     ac_need_defaults=false;;
13557   --header | --heade | --head | --hea )
13558     $ac_shift
13559     case $ac_optarg in
13560     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13561     esac
13562     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13563     ac_need_defaults=false;;
13564   --he | --h)
13565     # Conflict between --help and --header
13566     as_fn_error $? "ambiguous option: \`$1'
13567 Try \`$0 --help' for more information.";;
13568   --help | --hel | -h )
13569     $as_echo "$ac_cs_usage"; exit ;;
13570   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13571   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13572     ac_cs_silent=: ;;
13573
13574   # This is an error.
13575   -*) as_fn_error $? "unrecognized option: \`$1'
13576 Try \`$0 --help' for more information." ;;
13577
13578   *) as_fn_append ac_config_targets " $1"
13579      ac_need_defaults=false ;;
13580
13581   esac
13582   shift
13583 done
13584
13585 ac_configure_extra_args=
13586
13587 if $ac_cs_silent; then
13588   exec 6>/dev/null
13589   ac_configure_extra_args="$ac_configure_extra_args --silent"
13590 fi
13591
13592 _ACEOF
13593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13594 if \$ac_cs_recheck; then
13595   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13596   shift
13597   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13598   CONFIG_SHELL='$SHELL'
13599   export CONFIG_SHELL
13600   exec "\$@"
13601 fi
13602
13603 _ACEOF
13604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13605 exec 5>>config.log
13606 {
13607   echo
13608   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13609 ## Running $as_me. ##
13610 _ASBOX
13611   $as_echo "$ac_log"
13612 } >&5
13613
13614 _ACEOF
13615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13616 #
13617 # INIT-COMMANDS
13618 #
13619 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13620
13621
13622 # The HP-UX ksh and POSIX shell print the target directory to stdout
13623 # if CDPATH is set.
13624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13625
13626 sed_quote_subst='$sed_quote_subst'
13627 double_quote_subst='$double_quote_subst'
13628 delay_variable_subst='$delay_variable_subst'
13629 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13630 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13631 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13632 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13633 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13634 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13635 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13636 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13637 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13638 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13639 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13640 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13641 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13642 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13643 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13649 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13650 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13651 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13652 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13653 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13654 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13655 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13656 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13657 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13658 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13659 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13660 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13661 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13662 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13663 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13664 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13665 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13666 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13667 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13668 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13669 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13670 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13671 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13672 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13673 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13674 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13675 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13676 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13677 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13678 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13679 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13680 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13681 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13682 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13684 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13685 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"`'
13686 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13687 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13688 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13689 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13690 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13691 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13692 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13693 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13694 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13695 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13696 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13697 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13698 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13699 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13700 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13701 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13702 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13703 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13704 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13705 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13706 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13707 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13708 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13709 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13710 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13711 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13712 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13713 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13714 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13715 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13716 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13717 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13718 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13719 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13720 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13721 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13722 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13723 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13724 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13725 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13726 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13727 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13728 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13729 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13730 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13731 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13732 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13733 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13734 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13735 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13736 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13737 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13738 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13739 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13740 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13741 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13742 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13743 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13744 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13745 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13746 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13747 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13748 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13749 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13750 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13751 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13752 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13753 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13754 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13755 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13756 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13757 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13758 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13759
13760 LTCC='$LTCC'
13761 LTCFLAGS='$LTCFLAGS'
13762 compiler='$compiler_DEFAULT'
13763
13764 # A function that is used when there is no print builtin or printf.
13765 func_fallback_echo ()
13766 {
13767   eval 'cat <<_LTECHO_EOF
13768 \$1
13769 _LTECHO_EOF'
13770 }
13771
13772 # Quote evaled strings.
13773 for var in SHELL \
13774 ECHO \
13775 PATH_SEPARATOR \
13776 SED \
13777 GREP \
13778 EGREP \
13779 FGREP \
13780 LD \
13781 NM \
13782 LN_S \
13783 lt_SP2NL \
13784 lt_NL2SP \
13785 reload_flag \
13786 OBJDUMP \
13787 deplibs_check_method \
13788 file_magic_cmd \
13789 file_magic_glob \
13790 want_nocaseglob \
13791 DLLTOOL \
13792 sharedlib_from_linklib_cmd \
13793 AR \
13794 AR_FLAGS \
13795 archiver_list_spec \
13796 STRIP \
13797 RANLIB \
13798 CC \
13799 CFLAGS \
13800 compiler \
13801 lt_cv_sys_global_symbol_pipe \
13802 lt_cv_sys_global_symbol_to_cdecl \
13803 lt_cv_sys_global_symbol_to_c_name_address \
13804 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13805 nm_file_list_spec \
13806 lt_prog_compiler_no_builtin_flag \
13807 lt_prog_compiler_pic \
13808 lt_prog_compiler_wl \
13809 lt_prog_compiler_static \
13810 lt_cv_prog_compiler_c_o \
13811 need_locks \
13812 MANIFEST_TOOL \
13813 DSYMUTIL \
13814 NMEDIT \
13815 LIPO \
13816 OTOOL \
13817 OTOOL64 \
13818 shrext_cmds \
13819 export_dynamic_flag_spec \
13820 whole_archive_flag_spec \
13821 compiler_needs_object \
13822 with_gnu_ld \
13823 allow_undefined_flag \
13824 no_undefined_flag \
13825 hardcode_libdir_flag_spec \
13826 hardcode_libdir_separator \
13827 exclude_expsyms \
13828 include_expsyms \
13829 file_list_spec \
13830 variables_saved_for_relink \
13831 libname_spec \
13832 library_names_spec \
13833 soname_spec \
13834 install_override_mode \
13835 finish_eval \
13836 old_striplib \
13837 striplib; do
13838     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13839     *[\\\\\\\`\\"\\\$]*)
13840       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13841       ;;
13842     *)
13843       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13844       ;;
13845     esac
13846 done
13847
13848 # Double-quote double-evaled strings.
13849 for var in reload_cmds \
13850 old_postinstall_cmds \
13851 old_postuninstall_cmds \
13852 old_archive_cmds \
13853 extract_expsyms_cmds \
13854 old_archive_from_new_cmds \
13855 old_archive_from_expsyms_cmds \
13856 archive_cmds \
13857 archive_expsym_cmds \
13858 module_cmds \
13859 module_expsym_cmds \
13860 export_symbols_cmds \
13861 prelink_cmds \
13862 postlink_cmds \
13863 postinstall_cmds \
13864 postuninstall_cmds \
13865 finish_cmds \
13866 sys_lib_search_path_spec \
13867 sys_lib_dlsearch_path_spec; do
13868     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13869     *[\\\\\\\`\\"\\\$]*)
13870       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13871       ;;
13872     *)
13873       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13874       ;;
13875     esac
13876 done
13877
13878 ac_aux_dir='$ac_aux_dir'
13879 xsi_shell='$xsi_shell'
13880 lt_shell_append='$lt_shell_append'
13881
13882 # See if we are running on zsh, and set the options which allow our
13883 # commands through without removal of \ escapes INIT.
13884 if test -n "\${ZSH_VERSION+set}" ; then
13885    setopt NO_GLOB_SUBST
13886 fi
13887
13888
13889     PACKAGE='$PACKAGE'
13890     VERSION='$VERSION'
13891     TIMESTAMP='$TIMESTAMP'
13892     RM='$RM'
13893     ofile='$ofile'
13894
13895
13896
13897
13898 _ACEOF
13899
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901
13902 # Handling of arguments.
13903 for ac_config_target in $ac_config_targets
13904 do
13905   case $ac_config_target in
13906     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13907     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13908     "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
13909     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13910     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13911     "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
13912     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13913     "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
13914
13915   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13916   esac
13917 done
13918
13919
13920 # If the user did not use the arguments to specify the items to instantiate,
13921 # then the envvar interface is used.  Set only those that are not.
13922 # We use the long form for the default assignment because of an extremely
13923 # bizarre bug on SunOS 4.1.3.
13924 if $ac_need_defaults; then
13925   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13926   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13927   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13928 fi
13929
13930 # Have a temporary directory for convenience.  Make it in the build tree
13931 # simply because there is no reason against having it here, and in addition,
13932 # creating and moving files from /tmp can sometimes cause problems.
13933 # Hook for its removal unless debugging.
13934 # Note that there is a small window in which the directory will not be cleaned:
13935 # after its creation but before its name has been assigned to `$tmp'.
13936 $debug ||
13937 {
13938   tmp= ac_tmp=
13939   trap 'exit_status=$?
13940   : "${ac_tmp:=$tmp}"
13941   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13942 ' 0
13943   trap 'as_fn_exit 1' 1 2 13 15
13944 }
13945 # Create a (secure) tmp directory for tmp files.
13946
13947 {
13948   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13949   test -d "$tmp"
13950 }  ||
13951 {
13952   tmp=./conf$$-$RANDOM
13953   (umask 077 && mkdir "$tmp")
13954 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13955 ac_tmp=$tmp
13956
13957 # Set up the scripts for CONFIG_FILES section.
13958 # No need to generate them if there are no CONFIG_FILES.
13959 # This happens for instance with `./config.status config.h'.
13960 if test -n "$CONFIG_FILES"; then
13961
13962
13963 ac_cr=`echo X | tr X '\015'`
13964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13965 # But we know of no other shell where ac_cr would be empty at this
13966 # point, so we can use a bashism as a fallback.
13967 if test "x$ac_cr" = x; then
13968   eval ac_cr=\$\'\\r\'
13969 fi
13970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13972   ac_cs_awk_cr='\\r'
13973 else
13974   ac_cs_awk_cr=$ac_cr
13975 fi
13976
13977 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13978 _ACEOF
13979
13980
13981 {
13982   echo "cat >conf$$subs.awk <<_ACEOF" &&
13983   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13984   echo "_ACEOF"
13985 } >conf$$subs.sh ||
13986   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13988 ac_delim='%!_!# '
13989 for ac_last_try in false false false false false :; do
13990   . ./conf$$subs.sh ||
13991     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13992
13993   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13994   if test $ac_delim_n = $ac_delim_num; then
13995     break
13996   elif $ac_last_try; then
13997     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13998   else
13999     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14000   fi
14001 done
14002 rm -f conf$$subs.sh
14003
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14006 _ACEOF
14007 sed -n '
14008 h
14009 s/^/S["/; s/!.*/"]=/
14010 p
14011 g
14012 s/^[^!]*!//
14013 :repl
14014 t repl
14015 s/'"$ac_delim"'$//
14016 t delim
14017 :nl
14018 h
14019 s/\(.\{148\}\)..*/\1/
14020 t more1
14021 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14022 p
14023 n
14024 b repl
14025 :more1
14026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14027 p
14028 g
14029 s/.\{148\}//
14030 t nl
14031 :delim
14032 h
14033 s/\(.\{148\}\)..*/\1/
14034 t more2
14035 s/["\\]/\\&/g; s/^/"/; s/$/"/
14036 p
14037 b
14038 :more2
14039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14040 p
14041 g
14042 s/.\{148\}//
14043 t delim
14044 ' <conf$$subs.awk | sed '
14045 /^[^""]/{
14046   N
14047   s/\n//
14048 }
14049 ' >>$CONFIG_STATUS || ac_write_fail=1
14050 rm -f conf$$subs.awk
14051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14052 _ACAWK
14053 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14054   for (key in S) S_is_set[key] = 1
14055   FS = "\a"
14056
14057 }
14058 {
14059   line = $ 0
14060   nfields = split(line, field, "@")
14061   substed = 0
14062   len = length(field[1])
14063   for (i = 2; i < nfields; i++) {
14064     key = field[i]
14065     keylen = length(key)
14066     if (S_is_set[key]) {
14067       value = S[key]
14068       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14069       len += length(value) + length(field[++i])
14070       substed = 1
14071     } else
14072       len += 1 + keylen
14073   }
14074
14075   print line
14076 }
14077
14078 _ACAWK
14079 _ACEOF
14080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14082   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14083 else
14084   cat
14085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14086   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14087 _ACEOF
14088
14089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14091 # trailing colons and then remove the whole line if VPATH becomes empty
14092 # (actually we leave an empty line to preserve line numbers).
14093 if test "x$srcdir" = x.; then
14094   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14095 h
14096 s///
14097 s/^/:/
14098 s/[      ]*$/:/
14099 s/:\$(srcdir):/:/g
14100 s/:\${srcdir}:/:/g
14101 s/:@srcdir@:/:/g
14102 s/^:*//
14103 s/:*$//
14104 x
14105 s/\(=[   ]*\).*/\1/
14106 G
14107 s/\n//
14108 s/^[^=]*=[       ]*$//
14109 }'
14110 fi
14111
14112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113 fi # test -n "$CONFIG_FILES"
14114
14115 # Set up the scripts for CONFIG_HEADERS section.
14116 # No need to generate them if there are no CONFIG_HEADERS.
14117 # This happens for instance with `./config.status Makefile'.
14118 if test -n "$CONFIG_HEADERS"; then
14119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14120 BEGIN {
14121 _ACEOF
14122
14123 # Transform confdefs.h into an awk script `defines.awk', embedded as
14124 # here-document in config.status, that substitutes the proper values into
14125 # config.h.in to produce config.h.
14126
14127 # Create a delimiter string that does not exist in confdefs.h, to ease
14128 # handling of long lines.
14129 ac_delim='%!_!# '
14130 for ac_last_try in false false :; do
14131   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14132   if test -z "$ac_tt"; then
14133     break
14134   elif $ac_last_try; then
14135     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14136   else
14137     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14138   fi
14139 done
14140
14141 # For the awk script, D is an array of macro values keyed by name,
14142 # likewise P contains macro parameters if any.  Preserve backslash
14143 # newline sequences.
14144
14145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14146 sed -n '
14147 s/.\{148\}/&'"$ac_delim"'/g
14148 t rset
14149 :rset
14150 s/^[     ]*#[    ]*define[       ][      ]*/ /
14151 t def
14152 d
14153 :def
14154 s/\\$//
14155 t bsnl
14156 s/["\\]/\\&/g
14157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14158 D["\1"]=" \3"/p
14159 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14160 d
14161 :bsnl
14162 s/["\\]/\\&/g
14163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14164 D["\1"]=" \3\\\\\\n"\\/p
14165 t cont
14166 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14167 t cont
14168 d
14169 :cont
14170 n
14171 s/.\{148\}/&'"$ac_delim"'/g
14172 t clear
14173 :clear
14174 s/\\$//
14175 t bsnlc
14176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14177 d
14178 :bsnlc
14179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14180 b cont
14181 ' <confdefs.h | sed '
14182 s/'"$ac_delim"'/"\\\
14183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14184
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186   for (key in D) D_is_set[key] = 1
14187   FS = "\a"
14188 }
14189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14190   line = \$ 0
14191   split(line, arg, " ")
14192   if (arg[1] == "#") {
14193     defundef = arg[2]
14194     mac1 = arg[3]
14195   } else {
14196     defundef = substr(arg[1], 2)
14197     mac1 = arg[2]
14198   }
14199   split(mac1, mac2, "(") #)
14200   macro = mac2[1]
14201   prefix = substr(line, 1, index(line, defundef) - 1)
14202   if (D_is_set[macro]) {
14203     # Preserve the white space surrounding the "#".
14204     print prefix "define", macro P[macro] D[macro]
14205     next
14206   } else {
14207     # Replace #undef with comments.  This is necessary, for example,
14208     # in the case of _POSIX_SOURCE, which is predefined and required
14209     # on some systems where configure will not decide to define it.
14210     if (defundef == "undef") {
14211       print "/*", prefix defundef, macro, "*/"
14212       next
14213     }
14214   }
14215 }
14216 { print }
14217 _ACAWK
14218 _ACEOF
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14221 fi # test -n "$CONFIG_HEADERS"
14222
14223
14224 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14225 shift
14226 for ac_tag
14227 do
14228   case $ac_tag in
14229   :[FHLC]) ac_mode=$ac_tag; continue;;
14230   esac
14231   case $ac_mode$ac_tag in
14232   :[FHL]*:*);;
14233   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14234   :[FH]-) ac_tag=-:-;;
14235   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14236   esac
14237   ac_save_IFS=$IFS
14238   IFS=:
14239   set x $ac_tag
14240   IFS=$ac_save_IFS
14241   shift
14242   ac_file=$1
14243   shift
14244
14245   case $ac_mode in
14246   :L) ac_source=$1;;
14247   :[FH])
14248     ac_file_inputs=
14249     for ac_f
14250     do
14251       case $ac_f in
14252       -) ac_f="$ac_tmp/stdin";;
14253       *) # Look for the file first in the build tree, then in the source tree
14254          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14255          # because $ac_f cannot contain `:'.
14256          test -f "$ac_f" ||
14257            case $ac_f in
14258            [\\/$]*) false;;
14259            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14260            esac ||
14261            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14262       esac
14263       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14264       as_fn_append ac_file_inputs " '$ac_f'"
14265     done
14266
14267     # Let's still pretend it is `configure' which instantiates (i.e., don't
14268     # use $as_me), people would be surprised to read:
14269     #    /* config.h.  Generated by config.status.  */
14270     configure_input='Generated from '`
14271           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14272         `' by configure.'
14273     if test x"$ac_file" != x-; then
14274       configure_input="$ac_file.  $configure_input"
14275       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14276 $as_echo "$as_me: creating $ac_file" >&6;}
14277     fi
14278     # Neutralize special characters interpreted by sed in replacement strings.
14279     case $configure_input in #(
14280     *\&* | *\|* | *\\* )
14281        ac_sed_conf_input=`$as_echo "$configure_input" |
14282        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14283     *) ac_sed_conf_input=$configure_input;;
14284     esac
14285
14286     case $ac_tag in
14287     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14288       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14289     esac
14290     ;;
14291   esac
14292
14293   ac_dir=`$as_dirname -- "$ac_file" ||
14294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14295          X"$ac_file" : 'X\(//\)[^/]' \| \
14296          X"$ac_file" : 'X\(//\)$' \| \
14297          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14298 $as_echo X"$ac_file" |
14299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14300             s//\1/
14301             q
14302           }
14303           /^X\(\/\/\)[^/].*/{
14304             s//\1/
14305             q
14306           }
14307           /^X\(\/\/\)$/{
14308             s//\1/
14309             q
14310           }
14311           /^X\(\/\).*/{
14312             s//\1/
14313             q
14314           }
14315           s/.*/./; q'`
14316   as_dir="$ac_dir"; as_fn_mkdir_p
14317   ac_builddir=.
14318
14319 case "$ac_dir" in
14320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14321 *)
14322   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14323   # A ".." for each directory in $ac_dir_suffix.
14324   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14325   case $ac_top_builddir_sub in
14326   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14327   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14328   esac ;;
14329 esac
14330 ac_abs_top_builddir=$ac_pwd
14331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14332 # for backward compatibility:
14333 ac_top_builddir=$ac_top_build_prefix
14334
14335 case $srcdir in
14336   .)  # We are building in place.
14337     ac_srcdir=.
14338     ac_top_srcdir=$ac_top_builddir_sub
14339     ac_abs_top_srcdir=$ac_pwd ;;
14340   [\\/]* | ?:[\\/]* )  # Absolute name.
14341     ac_srcdir=$srcdir$ac_dir_suffix;
14342     ac_top_srcdir=$srcdir
14343     ac_abs_top_srcdir=$srcdir ;;
14344   *) # Relative name.
14345     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14346     ac_top_srcdir=$ac_top_build_prefix$srcdir
14347     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14348 esac
14349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14350
14351
14352   case $ac_mode in
14353   :F)
14354   #
14355   # CONFIG_FILE
14356   #
14357
14358   case $INSTALL in
14359   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14360   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14361   esac
14362   ac_MKDIR_P=$MKDIR_P
14363   case $MKDIR_P in
14364   [\\/$]* | ?:[\\/]* ) ;;
14365   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14366   esac
14367 _ACEOF
14368
14369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14370 # If the template does not know about datarootdir, expand it.
14371 # FIXME: This hack should be removed a few years after 2.60.
14372 ac_datarootdir_hack=; ac_datarootdir_seen=
14373 ac_sed_dataroot='
14374 /datarootdir/ {
14375   p
14376   q
14377 }
14378 /@datadir@/p
14379 /@docdir@/p
14380 /@infodir@/p
14381 /@localedir@/p
14382 /@mandir@/p'
14383 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14384 *datarootdir*) ac_datarootdir_seen=yes;;
14385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14386   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14387 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14388 _ACEOF
14389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14390   ac_datarootdir_hack='
14391   s&@datadir@&$datadir&g
14392   s&@docdir@&$docdir&g
14393   s&@infodir@&$infodir&g
14394   s&@localedir@&$localedir&g
14395   s&@mandir@&$mandir&g
14396   s&\\\${datarootdir}&$datarootdir&g' ;;
14397 esac
14398 _ACEOF
14399
14400 # Neutralize VPATH when `$srcdir' = `.'.
14401 # Shell code in configure.ac might set extrasub.
14402 # FIXME: do we really want to maintain this feature?
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 ac_sed_extra="$ac_vpsub
14405 $extrasub
14406 _ACEOF
14407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14408 :t
14409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14410 s|@configure_input@|$ac_sed_conf_input|;t t
14411 s&@top_builddir@&$ac_top_builddir_sub&;t t
14412 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14413 s&@srcdir@&$ac_srcdir&;t t
14414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14415 s&@top_srcdir@&$ac_top_srcdir&;t t
14416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14417 s&@builddir@&$ac_builddir&;t t
14418 s&@abs_builddir@&$ac_abs_builddir&;t t
14419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14420 s&@INSTALL@&$ac_INSTALL&;t t
14421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14422 $ac_datarootdir_hack
14423 "
14424 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14425   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14426
14427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14428   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14429   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14430       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14432 which seems to be undefined.  Please make sure it is defined" >&5
14433 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14434 which seems to be undefined.  Please make sure it is defined" >&2;}
14435
14436   rm -f "$ac_tmp/stdin"
14437   case $ac_file in
14438   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14439   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14440   esac \
14441   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14442  ;;
14443   :H)
14444   #
14445   # CONFIG_HEADER
14446   #
14447   if test x"$ac_file" != x-; then
14448     {
14449       $as_echo "/* $configure_input  */" \
14450       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14451     } >"$ac_tmp/config.h" \
14452       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14453     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14454       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14455 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14456     else
14457       rm -f "$ac_file"
14458       mv "$ac_tmp/config.h" "$ac_file" \
14459         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14460     fi
14461   else
14462     $as_echo "/* $configure_input  */" \
14463       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14464       || as_fn_error $? "could not create -" "$LINENO" 5
14465   fi
14466 # Compute "$ac_file"'s index in $config_headers.
14467 _am_arg="$ac_file"
14468 _am_stamp_count=1
14469 for _am_header in $config_headers :; do
14470   case $_am_header in
14471     $_am_arg | $_am_arg:* )
14472       break ;;
14473     * )
14474       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14475   esac
14476 done
14477 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14478 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14479          X"$_am_arg" : 'X\(//\)[^/]' \| \
14480          X"$_am_arg" : 'X\(//\)$' \| \
14481          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14482 $as_echo X"$_am_arg" |
14483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14484             s//\1/
14485             q
14486           }
14487           /^X\(\/\/\)[^/].*/{
14488             s//\1/
14489             q
14490           }
14491           /^X\(\/\/\)$/{
14492             s//\1/
14493             q
14494           }
14495           /^X\(\/\).*/{
14496             s//\1/
14497             q
14498           }
14499           s/.*/./; q'`/stamp-h$_am_stamp_count
14500  ;;
14501
14502   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14503 $as_echo "$as_me: executing $ac_file commands" >&6;}
14504  ;;
14505   esac
14506
14507
14508   case $ac_file$ac_mode in
14509     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14510   # Older Autoconf quotes --file arguments for eval, but not when files
14511   # are listed without --file.  Let's play safe and only enable the eval
14512   # if we detect the quoting.
14513   case $CONFIG_FILES in
14514   *\'*) eval set x "$CONFIG_FILES" ;;
14515   *)   set x $CONFIG_FILES ;;
14516   esac
14517   shift
14518   for mf
14519   do
14520     # Strip MF so we end up with the name of the file.
14521     mf=`echo "$mf" | sed -e 's/:.*$//'`
14522     # Check whether this is an Automake generated Makefile or not.
14523     # We used to match only the files named 'Makefile.in', but
14524     # some people rename them; so instead we look at the file content.
14525     # Grep'ing the first line is not enough: some people post-process
14526     # each Makefile.in and add a new line on top of each file to say so.
14527     # Grep'ing the whole file is not good either: AIX grep has a line
14528     # limit of 2048, but all sed's we know have understand at least 4000.
14529     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14530       dirpart=`$as_dirname -- "$mf" ||
14531 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532          X"$mf" : 'X\(//\)[^/]' \| \
14533          X"$mf" : 'X\(//\)$' \| \
14534          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14535 $as_echo X"$mf" |
14536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14537             s//\1/
14538             q
14539           }
14540           /^X\(\/\/\)[^/].*/{
14541             s//\1/
14542             q
14543           }
14544           /^X\(\/\/\)$/{
14545             s//\1/
14546             q
14547           }
14548           /^X\(\/\).*/{
14549             s//\1/
14550             q
14551           }
14552           s/.*/./; q'`
14553     else
14554       continue
14555     fi
14556     # Extract the definition of DEPDIR, am__include, and am__quote
14557     # from the Makefile without running 'make'.
14558     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14559     test -z "$DEPDIR" && continue
14560     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14561     test -z "$am__include" && continue
14562     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14563     # Find all dependency output files, they are included files with
14564     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14565     # simplest approach to changing $(DEPDIR) to its actual value in the
14566     # expansion.
14567     for file in `sed -n "
14568       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14569          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14570       # Make sure the directory exists.
14571       test -f "$dirpart/$file" && continue
14572       fdir=`$as_dirname -- "$file" ||
14573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574          X"$file" : 'X\(//\)[^/]' \| \
14575          X"$file" : 'X\(//\)$' \| \
14576          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"$file" |
14578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14579             s//\1/
14580             q
14581           }
14582           /^X\(\/\/\)[^/].*/{
14583             s//\1/
14584             q
14585           }
14586           /^X\(\/\/\)$/{
14587             s//\1/
14588             q
14589           }
14590           /^X\(\/\).*/{
14591             s//\1/
14592             q
14593           }
14594           s/.*/./; q'`
14595       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14596       # echo "creating $dirpart/$file"
14597       echo '# dummy' > "$dirpart/$file"
14598     done
14599   done
14600 }
14601  ;;
14602     "libtool":C)
14603
14604     # See if we are running on zsh, and set the options which allow our
14605     # commands through without removal of \ escapes.
14606     if test -n "${ZSH_VERSION+set}" ; then
14607       setopt NO_GLOB_SUBST
14608     fi
14609
14610     cfgfile="${ofile}T"
14611     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14612     $RM "$cfgfile"
14613
14614     cat <<_LT_EOF >> "$cfgfile"
14615 #! $SHELL
14616
14617 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14618 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14621 #
14622 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14623 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14624 #                 Foundation, Inc.
14625 #   Written by Gordon Matzigkeit, 1996
14626 #
14627 #   This file is part of GNU Libtool.
14628 #
14629 # GNU Libtool is free software; you can redistribute it and/or
14630 # modify it under the terms of the GNU General Public License as
14631 # published by the Free Software Foundation; either version 2 of
14632 # the License, or (at your option) any later version.
14633 #
14634 # As a special exception to the GNU General Public License,
14635 # if you distribute this file as part of a program or library that
14636 # is built using GNU Libtool, you may include this file under the
14637 # same distribution terms that you use for the rest of that program.
14638 #
14639 # GNU Libtool is distributed in the hope that it will be useful,
14640 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14642 # GNU General Public License for more details.
14643 #
14644 # You should have received a copy of the GNU General Public License
14645 # along with GNU Libtool; see the file COPYING.  If not, a copy
14646 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14647 # obtained by writing to the Free Software Foundation, Inc.,
14648 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14649
14650
14651 # The names of the tagged configurations supported by this script.
14652 available_tags=""
14653
14654 # ### BEGIN LIBTOOL CONFIG
14655
14656 # Which release of libtool.m4 was used?
14657 macro_version=$macro_version
14658 macro_revision=$macro_revision
14659
14660 # Whether or not to build shared libraries.
14661 build_libtool_libs=$enable_shared
14662
14663 # Whether or not to build static libraries.
14664 build_old_libs=$enable_static
14665
14666 # What type of objects to build.
14667 pic_mode=$pic_mode
14668
14669 # Whether or not to optimize for fast installation.
14670 fast_install=$enable_fast_install
14671
14672 # Shell to use when invoking shell scripts.
14673 SHELL=$lt_SHELL
14674
14675 # An echo program that protects backslashes.
14676 ECHO=$lt_ECHO
14677
14678 # The PATH separator for the build system.
14679 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14680
14681 # The host system.
14682 host_alias=$host_alias
14683 host=$host
14684 host_os=$host_os
14685
14686 # The build system.
14687 build_alias=$build_alias
14688 build=$build
14689 build_os=$build_os
14690
14691 # A sed program that does not truncate output.
14692 SED=$lt_SED
14693
14694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14695 Xsed="\$SED -e 1s/^X//"
14696
14697 # A grep program that handles long lines.
14698 GREP=$lt_GREP
14699
14700 # An ERE matcher.
14701 EGREP=$lt_EGREP
14702
14703 # A literal string matcher.
14704 FGREP=$lt_FGREP
14705
14706 # A BSD- or MS-compatible name lister.
14707 NM=$lt_NM
14708
14709 # Whether we need soft or hard links.
14710 LN_S=$lt_LN_S
14711
14712 # What is the maximum length of a command?
14713 max_cmd_len=$max_cmd_len
14714
14715 # Object file suffix (normally "o").
14716 objext=$ac_objext
14717
14718 # Executable file suffix (normally "").
14719 exeext=$exeext
14720
14721 # whether the shell understands "unset".
14722 lt_unset=$lt_unset
14723
14724 # turn spaces into newlines.
14725 SP2NL=$lt_lt_SP2NL
14726
14727 # turn newlines into spaces.
14728 NL2SP=$lt_lt_NL2SP
14729
14730 # convert \$build file names to \$host format.
14731 to_host_file_cmd=$lt_cv_to_host_file_cmd
14732
14733 # convert \$build files to toolchain format.
14734 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14735
14736 # An object symbol dumper.
14737 OBJDUMP=$lt_OBJDUMP
14738
14739 # Method to check whether dependent libraries are shared objects.
14740 deplibs_check_method=$lt_deplibs_check_method
14741
14742 # Command to use when deplibs_check_method = "file_magic".
14743 file_magic_cmd=$lt_file_magic_cmd
14744
14745 # How to find potential files when deplibs_check_method = "file_magic".
14746 file_magic_glob=$lt_file_magic_glob
14747
14748 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14749 want_nocaseglob=$lt_want_nocaseglob
14750
14751 # DLL creation program.
14752 DLLTOOL=$lt_DLLTOOL
14753
14754 # Command to associate shared and link libraries.
14755 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14756
14757 # The archiver.
14758 AR=$lt_AR
14759
14760 # Flags to create an archive.
14761 AR_FLAGS=$lt_AR_FLAGS
14762
14763 # How to feed a file listing to the archiver.
14764 archiver_list_spec=$lt_archiver_list_spec
14765
14766 # A symbol stripping program.
14767 STRIP=$lt_STRIP
14768
14769 # Commands used to install an old-style archive.
14770 RANLIB=$lt_RANLIB
14771 old_postinstall_cmds=$lt_old_postinstall_cmds
14772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14773
14774 # Whether to use a lock for old archive extraction.
14775 lock_old_archive_extraction=$lock_old_archive_extraction
14776
14777 # A C compiler.
14778 LTCC=$lt_CC
14779
14780 # LTCC compiler flags.
14781 LTCFLAGS=$lt_CFLAGS
14782
14783 # Take the output of nm and produce a listing of raw symbols and C names.
14784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14785
14786 # Transform the output of nm in a proper C declaration.
14787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14788
14789 # Transform the output of nm in a C name address pair.
14790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14791
14792 # Transform the output of nm in a C name address pair when lib prefix is needed.
14793 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14794
14795 # Specify filename containing input files for \$NM.
14796 nm_file_list_spec=$lt_nm_file_list_spec
14797
14798 # The root where to search for dependent libraries,and in which our libraries should be installed.
14799 lt_sysroot=$lt_sysroot
14800
14801 # The name of the directory that contains temporary libtool files.
14802 objdir=$objdir
14803
14804 # Used to examine libraries when file_magic_cmd begins with "file".
14805 MAGIC_CMD=$MAGIC_CMD
14806
14807 # Must we lock files when doing compilation?
14808 need_locks=$lt_need_locks
14809
14810 # Manifest tool.
14811 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14812
14813 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14814 DSYMUTIL=$lt_DSYMUTIL
14815
14816 # Tool to change global to local symbols on Mac OS X.
14817 NMEDIT=$lt_NMEDIT
14818
14819 # Tool to manipulate fat objects and archives on Mac OS X.
14820 LIPO=$lt_LIPO
14821
14822 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14823 OTOOL=$lt_OTOOL
14824
14825 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14826 OTOOL64=$lt_OTOOL64
14827
14828 # Old archive suffix (normally "a").
14829 libext=$libext
14830
14831 # Shared library suffix (normally ".so").
14832 shrext_cmds=$lt_shrext_cmds
14833
14834 # The commands to extract the exported symbol list from a shared archive.
14835 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14836
14837 # Variables whose values should be saved in libtool wrapper scripts and
14838 # restored at link time.
14839 variables_saved_for_relink=$lt_variables_saved_for_relink
14840
14841 # Do we need the "lib" prefix for modules?
14842 need_lib_prefix=$need_lib_prefix
14843
14844 # Do we need a version for libraries?
14845 need_version=$need_version
14846
14847 # Library versioning type.
14848 version_type=$version_type
14849
14850 # Shared library runtime path variable.
14851 runpath_var=$runpath_var
14852
14853 # Shared library path variable.
14854 shlibpath_var=$shlibpath_var
14855
14856 # Is shlibpath searched before the hard-coded library search path?
14857 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14858
14859 # Format of library name prefix.
14860 libname_spec=$lt_libname_spec
14861
14862 # List of archive names.  First name is the real one, the rest are links.
14863 # The last name is the one that the linker finds with -lNAME
14864 library_names_spec=$lt_library_names_spec
14865
14866 # The coded name of the library, if different from the real name.
14867 soname_spec=$lt_soname_spec
14868
14869 # Permission mode override for installation of shared libraries.
14870 install_override_mode=$lt_install_override_mode
14871
14872 # Command to use after installation of a shared archive.
14873 postinstall_cmds=$lt_postinstall_cmds
14874
14875 # Command to use after uninstallation of a shared archive.
14876 postuninstall_cmds=$lt_postuninstall_cmds
14877
14878 # Commands used to finish a libtool library installation in a directory.
14879 finish_cmds=$lt_finish_cmds
14880
14881 # As "finish_cmds", except a single script fragment to be evaled but
14882 # not shown.
14883 finish_eval=$lt_finish_eval
14884
14885 # Whether we should hardcode library paths into libraries.
14886 hardcode_into_libs=$hardcode_into_libs
14887
14888 # Compile-time system search path for libraries.
14889 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14890
14891 # Run-time system search path for libraries.
14892 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14893
14894 # Whether dlopen is supported.
14895 dlopen_support=$enable_dlopen
14896
14897 # Whether dlopen of programs is supported.
14898 dlopen_self=$enable_dlopen_self
14899
14900 # Whether dlopen of statically linked programs is supported.
14901 dlopen_self_static=$enable_dlopen_self_static
14902
14903 # Commands to strip libraries.
14904 old_striplib=$lt_old_striplib
14905 striplib=$lt_striplib
14906
14907
14908 # The linker used to build libraries.
14909 LD=$lt_LD
14910
14911 # How to create reloadable object files.
14912 reload_flag=$lt_reload_flag
14913 reload_cmds=$lt_reload_cmds
14914
14915 # Commands used to build an old-style archive.
14916 old_archive_cmds=$lt_old_archive_cmds
14917
14918 # A language specific compiler.
14919 CC=$lt_compiler
14920
14921 # Is the compiler the GNU compiler?
14922 with_gcc=$GCC
14923
14924 # Compiler flag to turn off builtin functions.
14925 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14926
14927 # Additional compiler flags for building library objects.
14928 pic_flag=$lt_lt_prog_compiler_pic
14929
14930 # How to pass a linker flag through the compiler.
14931 wl=$lt_lt_prog_compiler_wl
14932
14933 # Compiler flag to prevent dynamic linking.
14934 link_static_flag=$lt_lt_prog_compiler_static
14935
14936 # Does compiler simultaneously support -c and -o options?
14937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14938
14939 # Whether or not to add -lc for building shared libraries.
14940 build_libtool_need_lc=$archive_cmds_need_lc
14941
14942 # Whether or not to disallow shared libs when runtime libs are static.
14943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14944
14945 # Compiler flag to allow reflexive dlopens.
14946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14947
14948 # Compiler flag to generate shared objects directly from archives.
14949 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14950
14951 # Whether the compiler copes with passing no objects directly.
14952 compiler_needs_object=$lt_compiler_needs_object
14953
14954 # Create an old-style archive from a shared archive.
14955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14956
14957 # Create a temporary old-style archive to link instead of a shared archive.
14958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14959
14960 # Commands used to build a shared archive.
14961 archive_cmds=$lt_archive_cmds
14962 archive_expsym_cmds=$lt_archive_expsym_cmds
14963
14964 # Commands used to build a loadable module if different from building
14965 # a shared archive.
14966 module_cmds=$lt_module_cmds
14967 module_expsym_cmds=$lt_module_expsym_cmds
14968
14969 # Whether we are building with GNU ld or not.
14970 with_gnu_ld=$lt_with_gnu_ld
14971
14972 # Flag that allows shared libraries with undefined symbols to be built.
14973 allow_undefined_flag=$lt_allow_undefined_flag
14974
14975 # Flag that enforces no undefined symbols.
14976 no_undefined_flag=$lt_no_undefined_flag
14977
14978 # Flag to hardcode \$libdir into a binary during linking.
14979 # This must work even if \$libdir does not exist
14980 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14981
14982 # Whether we need a single "-rpath" flag with a separated argument.
14983 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14984
14985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14986 # DIR into the resulting binary.
14987 hardcode_direct=$hardcode_direct
14988
14989 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14990 # DIR into the resulting binary and the resulting library dependency is
14991 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14992 # library is relocated.
14993 hardcode_direct_absolute=$hardcode_direct_absolute
14994
14995 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14996 # into the resulting binary.
14997 hardcode_minus_L=$hardcode_minus_L
14998
14999 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15000 # into the resulting binary.
15001 hardcode_shlibpath_var=$hardcode_shlibpath_var
15002
15003 # Set to "yes" if building a shared library automatically hardcodes DIR
15004 # into the library and all subsequent libraries and executables linked
15005 # against it.
15006 hardcode_automatic=$hardcode_automatic
15007
15008 # Set to yes if linker adds runtime paths of dependent libraries
15009 # to runtime path list.
15010 inherit_rpath=$inherit_rpath
15011
15012 # Whether libtool must link a program against all its dependency libraries.
15013 link_all_deplibs=$link_all_deplibs
15014
15015 # Set to "yes" if exported symbols are required.
15016 always_export_symbols=$always_export_symbols
15017
15018 # The commands to list exported symbols.
15019 export_symbols_cmds=$lt_export_symbols_cmds
15020
15021 # Symbols that should not be listed in the preloaded symbols.
15022 exclude_expsyms=$lt_exclude_expsyms
15023
15024 # Symbols that must always be exported.
15025 include_expsyms=$lt_include_expsyms
15026
15027 # Commands necessary for linking programs (against libraries) with templates.
15028 prelink_cmds=$lt_prelink_cmds
15029
15030 # Commands necessary for finishing linking programs.
15031 postlink_cmds=$lt_postlink_cmds
15032
15033 # Specify filename containing input files.
15034 file_list_spec=$lt_file_list_spec
15035
15036 # How to hardcode a shared library path into an executable.
15037 hardcode_action=$hardcode_action
15038
15039 # ### END LIBTOOL CONFIG
15040
15041 _LT_EOF
15042
15043   case $host_os in
15044   aix3*)
15045     cat <<\_LT_EOF >> "$cfgfile"
15046 # AIX sometimes has problems with the GCC collect2 program.  For some
15047 # reason, if we set the COLLECT_NAMES environment variable, the problems
15048 # vanish in a puff of smoke.
15049 if test "X${COLLECT_NAMES+set}" != Xset; then
15050   COLLECT_NAMES=
15051   export COLLECT_NAMES
15052 fi
15053 _LT_EOF
15054     ;;
15055   esac
15056
15057
15058 ltmain="$ac_aux_dir/ltmain.sh"
15059
15060
15061   # We use sed instead of cat because bash on DJGPP gets confused if
15062   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15063   # text mode, it properly converts lines to CR/LF.  This bash problem
15064   # is reportedly fixed, but why not run on old versions too?
15065   sed '$q' "$ltmain" >> "$cfgfile" \
15066      || (rm -f "$cfgfile"; exit 1)
15067
15068   if test x"$xsi_shell" = xyes; then
15069   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15070 func_dirname ()\
15071 {\
15072 \    case ${1} in\
15073 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15074 \      *  ) func_dirname_result="${3}" ;;\
15075 \    esac\
15076 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15077   && mv -f "$cfgfile.tmp" "$cfgfile" \
15078     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15079 test 0 -eq $? || _lt_function_replace_fail=:
15080
15081
15082   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15083 func_basename ()\
15084 {\
15085 \    func_basename_result="${1##*/}"\
15086 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15087   && mv -f "$cfgfile.tmp" "$cfgfile" \
15088     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15089 test 0 -eq $? || _lt_function_replace_fail=:
15090
15091
15092   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15093 func_dirname_and_basename ()\
15094 {\
15095 \    case ${1} in\
15096 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15097 \      *  ) func_dirname_result="${3}" ;;\
15098 \    esac\
15099 \    func_basename_result="${1##*/}"\
15100 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15101   && mv -f "$cfgfile.tmp" "$cfgfile" \
15102     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15103 test 0 -eq $? || _lt_function_replace_fail=:
15104
15105
15106   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15107 func_stripname ()\
15108 {\
15109 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15110 \    # positional parameters, so assign one to ordinary parameter first.\
15111 \    func_stripname_result=${3}\
15112 \    func_stripname_result=${func_stripname_result#"${1}"}\
15113 \    func_stripname_result=${func_stripname_result%"${2}"}\
15114 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15115   && mv -f "$cfgfile.tmp" "$cfgfile" \
15116     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15117 test 0 -eq $? || _lt_function_replace_fail=:
15118
15119
15120   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15121 func_split_long_opt ()\
15122 {\
15123 \    func_split_long_opt_name=${1%%=*}\
15124 \    func_split_long_opt_arg=${1#*=}\
15125 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15126   && mv -f "$cfgfile.tmp" "$cfgfile" \
15127     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15128 test 0 -eq $? || _lt_function_replace_fail=:
15129
15130
15131   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15132 func_split_short_opt ()\
15133 {\
15134 \    func_split_short_opt_arg=${1#??}\
15135 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15136 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15137   && mv -f "$cfgfile.tmp" "$cfgfile" \
15138     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15139 test 0 -eq $? || _lt_function_replace_fail=:
15140
15141
15142   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15143 func_lo2o ()\
15144 {\
15145 \    case ${1} in\
15146 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15147 \      *)    func_lo2o_result=${1} ;;\
15148 \    esac\
15149 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15150   && mv -f "$cfgfile.tmp" "$cfgfile" \
15151     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152 test 0 -eq $? || _lt_function_replace_fail=:
15153
15154
15155   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15156 func_xform ()\
15157 {\
15158     func_xform_result=${1%.*}.lo\
15159 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15160   && mv -f "$cfgfile.tmp" "$cfgfile" \
15161     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15162 test 0 -eq $? || _lt_function_replace_fail=:
15163
15164
15165   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15166 func_arith ()\
15167 {\
15168     func_arith_result=$(( $* ))\
15169 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15170   && mv -f "$cfgfile.tmp" "$cfgfile" \
15171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15172 test 0 -eq $? || _lt_function_replace_fail=:
15173
15174
15175   sed -e '/^func_len ()$/,/^} # func_len /c\
15176 func_len ()\
15177 {\
15178     func_len_result=${#1}\
15179 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15180   && mv -f "$cfgfile.tmp" "$cfgfile" \
15181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15182 test 0 -eq $? || _lt_function_replace_fail=:
15183
15184 fi
15185
15186 if test x"$lt_shell_append" = xyes; then
15187   sed -e '/^func_append ()$/,/^} # func_append /c\
15188 func_append ()\
15189 {\
15190     eval "${1}+=\\${2}"\
15191 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15192   && mv -f "$cfgfile.tmp" "$cfgfile" \
15193     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15194 test 0 -eq $? || _lt_function_replace_fail=:
15195
15196
15197   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15198 func_append_quoted ()\
15199 {\
15200 \    func_quote_for_eval "${2}"\
15201 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15202 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15203   && mv -f "$cfgfile.tmp" "$cfgfile" \
15204     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15205 test 0 -eq $? || _lt_function_replace_fail=:
15206
15207
15208   # Save a `func_append' function call where possible by direct use of '+='
15209   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15210     && mv -f "$cfgfile.tmp" "$cfgfile" \
15211       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15212   test 0 -eq $? || _lt_function_replace_fail=:
15213 else
15214   # Save a `func_append' function call even when '+=' is not available
15215   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15216     && mv -f "$cfgfile.tmp" "$cfgfile" \
15217       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15218   test 0 -eq $? || _lt_function_replace_fail=:
15219 fi
15220
15221 if test x"$_lt_function_replace_fail" = x":"; then
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15223 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15224 fi
15225
15226
15227    mv -f "$cfgfile" "$ofile" ||
15228     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15229   chmod +x "$ofile"
15230
15231  ;;
15232
15233   esac
15234 done # for ac_tag
15235
15236
15237 as_fn_exit 0
15238 _ACEOF
15239 ac_clean_files=$ac_clean_files_save
15240
15241 test $ac_write_fail = 0 ||
15242   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15243
15244
15245 # configure is writing to config.log, and then calls config.status.
15246 # config.status does its own redirection, appending to config.log.
15247 # Unfortunately, on DOS this fails, as config.log is still kept open
15248 # by configure, so config.status won't be able to write to it; its
15249 # output is simply discarded.  So we exec the FD to /dev/null,
15250 # effectively closing config.log, so it can be properly (re)opened and
15251 # appended to by config.status.  When coming back to configure, we
15252 # need to make the FD available again.
15253 if test "$no_create" != yes; then
15254   ac_cs_success=:
15255   ac_config_status_args=
15256   test "$silent" = yes &&
15257     ac_config_status_args="$ac_config_status_args --quiet"
15258   exec 5>/dev/null
15259   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15260   exec 5>>config.log
15261   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15262   # would make configure fail if this is the last instruction.
15263   $ac_cs_success || as_fn_exit 1
15264 fi
15265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15268 fi
15269
15270