Imported Upstream version 1.2.4
[platform/upstream/json-glib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for json-glib 1.2.4.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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: http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='json-glib'
593 PACKAGE_TARNAME='json-glib'
594 PACKAGE_VERSION='1.2.4'
595 PACKAGE_STRING='json-glib 1.2.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
597 PACKAGE_URL='http://live.gnome.org/JsonGlib'
598
599 ac_unique_file="json-glib/json-glib.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 gt_needs=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 MSVC_NO_TOOLSET_SET_FALSE
642 MSVC_NO_TOOLSET_SET_TRUE
643 MSVC_BASE_NO_TOOLSET_SET_FALSE
644 MSVC_BASE_NO_TOOLSET_SET_TRUE
645 ALL_LINGUAS
646 GETTEXT_PACKAGE
647 POSUB
648 LTLIBINTL
649 LIBINTL
650 INTLLIBS
651 LTLIBICONV
652 LIBICONV
653 INTL_MACOSX_LIBS
654 XGETTEXT_EXTRA_OPTIONS
655 MSGMERGE
656 XGETTEXT_015
657 XGETTEXT
658 GMSGFMT_015
659 MSGFMT_015
660 GMSGFMT
661 MSGFMT
662 GETTEXT_MACRO_VERSION
663 USE_NLS
664 HAVE_INTROSPECTION_FALSE
665 HAVE_INTROSPECTION_TRUE
666 INTROSPECTION_MAKEFILE
667 INTROSPECTION_LIBS
668 INTROSPECTION_CFLAGS
669 INTROSPECTION_TYPELIBDIR
670 INTROSPECTION_GIRDIR
671 INTROSPECTION_GENERATE
672 INTROSPECTION_COMPILER
673 INTROSPECTION_SCANNER
674 ENABLE_MAN_FALSE
675 ENABLE_MAN_TRUE
676 XMLCATALOG
677 XML_CATALOG_FILE
678 XSLTPROC
679 GTK_DOC_USE_REBASE_FALSE
680 GTK_DOC_USE_REBASE_TRUE
681 GTK_DOC_USE_LIBTOOL_FALSE
682 GTK_DOC_USE_LIBTOOL_TRUE
683 GTK_DOC_BUILD_PDF_FALSE
684 GTK_DOC_BUILD_PDF_TRUE
685 GTK_DOC_BUILD_HTML_FALSE
686 GTK_DOC_BUILD_HTML_TRUE
687 ENABLE_GTK_DOC_FALSE
688 ENABLE_GTK_DOC_TRUE
689 HAVE_GTK_DOC_FALSE
690 HAVE_GTK_DOC_TRUE
691 GTKDOC_DEPS_LIBS
692 GTKDOC_DEPS_CFLAGS
693 HTML_DIR
694 GTKDOC_MKPDF
695 GTKDOC_REBASE
696 GTKDOC_CHECK_PATH
697 GTKDOC_CHECK
698 ENABLE_GCOV_FALSE
699 ENABLE_GCOV_TRUE
700 JSON_GCOV_LDADD
701 JSON_GCOV_CFLAGS
702 LTP_GENHTML
703 LTP
704 SHTOOL
705 installed_testdir
706 installed_test_metadir
707 ENABLE_ALWAYS_BUILD_TESTS_FALSE
708 ENABLE_ALWAYS_BUILD_TESTS_TRUE
709 ENABLE_INSTALLED_TESTS_FALSE
710 ENABLE_INSTALLED_TESTS_TRUE
711 MAINTAINER_CFLAGS
712 JSON_DEBUG_CFLAGS
713 JSON_LIBS
714 JSON_CFLAGS
715 GLIB_PREFIX
716 JSON_HIDDEN_VISIBILITY_CFLAGS
717 JSON_LT_LDFLAGS
718 OS_WIN32_FALSE
719 OS_WIN32_TRUE
720 OS_LINUX_FALSE
721 OS_LINUX_TRUE
722 JSON_RELEASE_STATUS
723 JSON_VERSION
724 JSON_MINOR_VERSION
725 JSON_MICRO_VERSION
726 JSON_MAJOR_VERSION
727 CPP
728 LT_SYS_LIBRARY_PATH
729 OTOOL64
730 OTOOL
731 LIPO
732 NMEDIT
733 DSYMUTIL
734 MANIFEST_TOOL
735 RANLIB
736 ac_ct_AR
737 AR
738 DLLTOOL
739 OBJDUMP
740 LN_S
741 NM
742 ac_ct_DUMPBIN
743 DUMPBIN
744 LD
745 FGREP
746 EGREP
747 GREP
748 SED
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 LIBTOOL
758 GLIB_COMPILE_RESOURCES
759 GLIB_MKENUMS
760 GOBJECT_QUERY
761 GLIB_GENMARSHAL
762 GLIB_LIBS
763 GLIB_CFLAGS
764 am__fastdepCC_FALSE
765 am__fastdepCC_TRUE
766 CCDEPMODE
767 am__nodep
768 AMDEPBACKSLASH
769 AMDEP_FALSE
770 AMDEP_TRUE
771 am__quote
772 am__include
773 DEPDIR
774 OBJEXT
775 EXEEXT
776 ac_ct_CC
777 CPPFLAGS
778 LDFLAGS
779 CFLAGS
780 CC
781 PKG_CONFIG_LIBDIR
782 PKG_CONFIG_PATH
783 PKG_CONFIG
784 AM_BACKSLASH
785 AM_DEFAULT_VERBOSITY
786 AM_DEFAULT_V
787 AM_V
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_silent_rules
853 enable_glibtest
854 enable_dependency_tracking
855 enable_static
856 enable_shared
857 with_pic
858 enable_fast_install
859 with_aix_soname
860 with_gnu_ld
861 with_sysroot
862 enable_libtool_lock
863 enable_Bsymbolic
864 enable_debug
865 enable_maintainer_flags
866 enable_installed_tests
867 enable_always_build_tests
868 enable_gcov
869 with_html_dir
870 enable_gtk_doc
871 enable_gtk_doc_html
872 enable_gtk_doc_pdf
873 enable_man
874 with_xml_catalog
875 enable_introspection
876 enable_nls
877 enable_rpath
878 with_libiconv_prefix
879 with_libintl_prefix
880 '
881       ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 PKG_CONFIG
885 PKG_CONFIG_PATH
886 PKG_CONFIG_LIBDIR
887 CC
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 LT_SYS_LIBRARY_PATH
893 CPP
894 JSON_CFLAGS
895 JSON_LIBS
896 GTKDOC_DEPS_CFLAGS
897 GTKDOC_DEPS_LIBS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
958
959   case $ac_option in
960   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *=)   ac_optarg= ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033       as_fn_error $? "invalid feature name: $ac_useropt"
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       as_fn_error $? "invalid package name: $ac_useropt"
1238     ac_useropt_orig=$ac_useropt
1239     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240     case $ac_user_opts in
1241       *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245          ac_unrecognized_sep=', ';;
1246     esac
1247     eval with_$ac_useropt=\$ac_optarg ;;
1248
1249   -without-* | --without-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error $? "invalid package name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval with_$ac_useropt=no ;;
1264
1265   --x)
1266     # Obsolete; use --with-x.
1267     with_x=yes ;;
1268
1269   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270   | --x-incl | --x-inc | --x-in | --x-i)
1271     ac_prev=x_includes ;;
1272   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274     x_includes=$ac_optarg ;;
1275
1276   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278     ac_prev=x_libraries ;;
1279   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281     x_libraries=$ac_optarg ;;
1282
1283   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1285     ;;
1286
1287   *=*)
1288     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289     # Reject names that are not valid shell variable names.
1290     case $ac_envvar in #(
1291       '' | [0-9]* | *[!_$as_cr_alnum]* )
1292       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293     esac
1294     eval $ac_envvar=\$ac_optarg
1295     export $ac_envvar ;;
1296
1297   *)
1298     # FIXME: should be removed in autoconf 3.0.
1299     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303     ;;
1304
1305   esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310   as_fn_error $? "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314   case $enable_option_checking in
1315     no) ;;
1316     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318   esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323                 datadir sysconfdir sharedstatedir localstatedir includedir \
1324                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325                 libdir localedir mandir
1326 do
1327   eval ac_val=\$$ac_var
1328   # Remove trailing slashes.
1329   case $ac_val in
1330     */ )
1331       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332       eval $ac_var=\$ac_val;;
1333   esac
1334   # Be sure to have absolute directory names.
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351   if test "x$build_alias" = x; then
1352     cross_compiling=maybe
1353   elif test "x$build_alias" != "x$host_alias"; then
1354     cross_compiling=yes
1355   fi
1356 fi
1357
1358 ac_tool_prefix=
1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361 test "$silent" = yes && exec 6>/dev/null
1362
1363
1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365 ac_ls_di=`ls -di .` &&
1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367   as_fn_error $? "working directory cannot be determined"
1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369   as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372 # Find the source files, if location was not specified.
1373 if test -z "$srcdir"; then
1374   ac_srcdir_defaulted=yes
1375   # Try the directory containing this script, then the parent directory.
1376   ac_confdir=`$as_dirname -- "$as_myself" ||
1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378          X"$as_myself" : 'X\(//\)[^/]' \| \
1379          X"$as_myself" : 'X\(//\)$' \| \
1380          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381 $as_echo X"$as_myself" |
1382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)[^/].*/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\/\)$/{
1391             s//\1/
1392             q
1393           }
1394           /^X\(\/\).*/{
1395             s//\1/
1396             q
1397           }
1398           s/.*/./; q'`
1399   srcdir=$ac_confdir
1400   if test ! -r "$srcdir/$ac_unique_file"; then
1401     srcdir=..
1402   fi
1403 else
1404   ac_srcdir_defaulted=no
1405 fi
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409 fi
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 ac_abs_confdir=`(
1412         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413         pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416   srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426   eval ac_env_${ac_var}_value=\$${ac_var}
1427   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435   # Omit some internal or obsolete options to make the list less imposing.
1436   # This message is too long to be a string in the A/UX 3.1 sh.
1437   cat <<_ACEOF
1438 \`configure' configures json-glib 1.2.4 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE.  See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448   -h, --help              display this help and exit
1449       --help=short        display options specific to this package
1450       --help=recursive    display the short help of all the included packages
1451   -V, --version           display version information and exit
1452   -q, --quiet, --silent   do not print \`checking ...' messages
1453       --cache-file=FILE   cache test results in FILE [disabled]
1454   -C, --config-cache      alias for \`--cache-file=config.cache'
1455   -n, --no-create         do not create output files
1456       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459   --prefix=PREFIX         install architecture-independent files in PREFIX
1460                           [$ac_default_prefix]
1461   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1462                           [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472   --bindir=DIR            user executables [EPREFIX/bin]
1473   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1474   --libexecdir=DIR        program executables [EPREFIX/libexec]
1475   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1476   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1477   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1478   --libdir=DIR            object code libraries [EPREFIX/lib]
1479   --includedir=DIR        C header files [PREFIX/include]
1480   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1481   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1482   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1483   --infodir=DIR           info documentation [DATAROOTDIR/info]
1484   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1485   --mandir=DIR            man documentation [DATAROOTDIR/man]
1486   --docdir=DIR            documentation root [DATAROOTDIR/doc/json-glib]
1487   --htmldir=DIR           html documentation [DOCDIR]
1488   --dvidir=DIR            dvi documentation [DOCDIR]
1489   --pdfdir=DIR            pdf documentation [DOCDIR]
1490   --psdir=DIR             ps documentation [DOCDIR]
1491 _ACEOF
1492
1493   cat <<\_ACEOF
1494
1495 Program names:
1496   --program-prefix=PREFIX            prepend PREFIX to installed program names
1497   --program-suffix=SUFFIX            append SUFFIX to installed program names
1498   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1499
1500 System types:
1501   --build=BUILD     configure for building on BUILD [guessed]
1502   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507   case $ac_init_help in
1508      short | recursive ) echo "Configuration of json-glib 1.2.4:";;
1509    esac
1510   cat <<\_ACEOF
1511
1512 Optional Features:
1513   --disable-option-checking  ignore unrecognized --enable/--with options
1514   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1515   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1516   --enable-silent-rules   less verbose build output (undo: "make V=1")
1517   --disable-silent-rules  verbose build output (undo: "make V=0")
1518   --disable-glibtest      do not try to compile and run a test GLIB program
1519   --enable-dependency-tracking
1520                           do not reject slow dependency extractors
1521   --disable-dependency-tracking
1522                           speeds up one-time build
1523   --enable-static[=PKGS]  build static libraries [default=no]
1524   --enable-shared[=PKGS]  build shared libraries [default=yes]
1525   --enable-fast-install[=PKGS]
1526                           optimize for fast installation [default=yes]
1527   --disable-libtool-lock  avoid locking (might break parallel builds)
1528   --disable-Bsymbolic     Avoid linking with -Bsymbolic
1529   --enable-debug=[no/minimum/yes]
1530                           turn on debugging [default=minimum]
1531   --enable-maintainer-flags=[no/yes]
1532                           Use strict compiler flags [default=no]
1533   --enable-installed-tests
1534                           Enable installation of some test cases
1535   --enable-always-build-tests
1536                           Enable always building tests during 'make all'
1537   --enable-gcov           Enable gcov
1538   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1539   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1540   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1541   --enable-man            generate man pages [default=auto]
1542   --enable-introspection=[no/auto/yes]
1543                           Enable introspection for this build
1544   --disable-nls           do not use Native Language Support
1545   --disable-rpath         do not hardcode runtime library paths
1546
1547 Optional Packages:
1548   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1549   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1550   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1551                           both]
1552   --with-aix-soname=aix|svr4|both
1553                           shared library versioning (aka "SONAME") variant to
1554                           provide on AIX, [default=aix].
1555   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1557                           compiler's sysroot if not specified).
1558   --with-html-dir=PATH    path to installed docs
1559   --with-xml-catalog=CATALOG
1560                           path to xml catalog to use
1561   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1562   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1563   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1564   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1565   --without-libintl-prefix     don't search for libintl in includedir and libdir
1566
1567 Some influential environment variables:
1568   PKG_CONFIG  path to pkg-config utility
1569   PKG_CONFIG_PATH
1570               directories to add to pkg-config's search path
1571   PKG_CONFIG_LIBDIR
1572               path overriding pkg-config's built-in search path
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   LIBS        libraries to pass to the linker, e.g. -l<library>
1578   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579               you have headers in a nonstandard directory <include dir>
1580   LT_SYS_LIBRARY_PATH
1581               User-defined run-time library search path.
1582   CPP         C preprocessor
1583   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1584   JSON_LIBS   linker flags for JSON, overriding pkg-config
1585   GTKDOC_DEPS_CFLAGS
1586               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1587   GTKDOC_DEPS_LIBS
1588               linker flags for GTKDOC_DEPS, overriding pkg-config
1589
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1592
1593 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1594 json-glib home page: <http://live.gnome.org/JsonGlib>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" ||
1603       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604       continue
1605     ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611   # A ".." for each directory in $ac_dir_suffix.
1612   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613   case $ac_top_builddir_sub in
1614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616   esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624   .)  # We are building in place.
1625     ac_srcdir=.
1626     ac_top_srcdir=$ac_top_builddir_sub
1627     ac_abs_top_srcdir=$ac_pwd ;;
1628   [\\/]* | ?:[\\/]* )  # Absolute name.
1629     ac_srcdir=$srcdir$ac_dir_suffix;
1630     ac_top_srcdir=$srcdir
1631     ac_abs_top_srcdir=$srcdir ;;
1632   *) # Relative name.
1633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634     ac_top_srcdir=$ac_top_build_prefix$srcdir
1635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639     cd "$ac_dir" || { ac_status=$?; continue; }
1640     # Check for guested configure.
1641     if test -f "$ac_srcdir/configure.gnu"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644     elif test -f "$ac_srcdir/configure"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure" --help=recursive
1647     else
1648       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649     fi || ac_status=$?
1650     cd "$ac_pwd" || { ac_status=$?; break; }
1651   done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656   cat <<\_ACEOF
1657 json-glib configure 1.2.4
1658 generated by GNU Autoconf 2.69
1659
1660 Copyright (C) 2012 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664   exit
1665 fi
1666
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1670
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext
1678   if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_compile") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest.$ac_objext; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705   as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>&5
1724   ac_status=$?
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727   { { case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_try") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; }; }; then :
1737   ac_retval=0
1738 else
1739   $as_echo "$as_me: program exited with status $ac_status" >&5
1740        $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743        ac_retval=$ac_status
1744 fi
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   rm -f conftest.$ac_objext conftest$ac_exeext
1758   if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_link") 2>conftest.err
1766   ac_status=$?
1767   if test -s conftest.err; then
1768     grep -v '^ *+' conftest.err >conftest.er1
1769     cat conftest.er1 >&5
1770     mv -f conftest.er1 conftest.err
1771   fi
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && {
1774          test -z "$ac_c_werror_flag" ||
1775          test ! -s conftest.err
1776        } && test -s conftest$ac_exeext && {
1777          test "$cross_compiling" = yes ||
1778          test -x conftest$ac_exeext
1779        }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785         ac_retval=1
1786 fi
1787   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789   # interfere with the next link command; also delete a directory that is
1790   # left behind by Apple's compiler.  We do this before executing the actions.
1791   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793   as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_link
1796
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 else
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   eval "$3=yes"
1816 else
1817   eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_compile
1827
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_cpp ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 case "(($ac_try" in
1836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837   *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842   ac_status=$?
1843   if test -s conftest.err; then
1844     grep -v '^ *+' conftest.err >conftest.er1
1845     cat conftest.er1 >&5
1846     mv -f conftest.er1 conftest.err
1847   fi
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; } > conftest.i && {
1850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851          test ! -s conftest.err
1852        }; then :
1853   ac_retval=0
1854 else
1855   $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858     ac_retval=1
1859 fi
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861   as_fn_set_status $ac_retval
1862
1863 } # ac_fn_c_try_cpp
1864
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1880 #define $2 innocuous_$2
1881
1882 /* System header to define __stub macros and hopefully few prototypes,
1883     which can conflict with char $2 (); below.
1884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885     <limits.h> exists even on freestanding compilers.  */
1886
1887 #ifdef __STDC__
1888 # include <limits.h>
1889 #else
1890 # include <assert.h>
1891 #endif
1892
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896    Use char because int might match the return type of a GCC
1897    builtin and then its argument prototype would still apply.  */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 ();
1902 /* The GNU C library defines this for functions which it implements
1903     to always fail with ENOSYS.  Some functions are actually named
1904     something starting with __ and the normal name is an alias.  */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main ()
1911 {
1912 return $2 ();
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"; then :
1918   eval "$3=yes"
1919 else
1920   eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext \
1923     conftest$ac_exeext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_func
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1934
1935 It was created by json-glib $as_me 1.2.4, which was
1936 generated by GNU Autoconf 2.69.  Invocation command line was
1937
1938   $ $0 $@
1939
1940 _ACEOF
1941 exec 5>>config.log
1942 {
1943 cat <<_ASUNAME
1944 ## --------- ##
1945 ## Platform. ##
1946 ## --------- ##
1947
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965 _ASUNAME
1966
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972     $as_echo "PATH: $as_dir"
1973   done
1974 IFS=$as_save_IFS
1975
1976 } >&5
1977
1978 cat >&5 <<_ACEOF
1979
1980
1981 ## ----------- ##
1982 ## Core tests. ##
1983 ## ----------- ##
1984
1985 _ACEOF
1986
1987
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_configure_args=
1994 ac_configure_args0=
1995 ac_configure_args1=
1996 ac_must_keep_next=false
1997 for ac_pass in 1 2
1998 do
1999   for ac_arg
2000   do
2001     case $ac_arg in
2002     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004     | -silent | --silent | --silen | --sile | --sil)
2005       continue ;;
2006     *\'*)
2007       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008     esac
2009     case $ac_pass in
2010     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011     2)
2012       as_fn_append ac_configure_args1 " '$ac_arg'"
2013       if test $ac_must_keep_next = true; then
2014         ac_must_keep_next=false # Got value, back to normal.
2015       else
2016         case $ac_arg in
2017           *=* | --config-cache | -C | -disable-* | --disable-* \
2018           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020           | -with-* | --with-* | -without-* | --without-* | --x)
2021             case "$ac_configure_args0 " in
2022               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023             esac
2024             ;;
2025           -* ) ac_must_keep_next=true ;;
2026         esac
2027       fi
2028       as_fn_append ac_configure_args " '$ac_arg'"
2029       ;;
2030     esac
2031   done
2032 done
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2035
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log.  We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042   # Save into config.log some information that might help in debugging.
2043   {
2044     echo
2045
2046     $as_echo "## ---------------- ##
2047 ## Cache variables. ##
2048 ## ---------------- ##"
2049     echo
2050     # The following way of writing the cache mishandles newlines in values,
2051 (
2052   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2053     eval ac_val=\$$ac_var
2054     case $ac_val in #(
2055     *${as_nl}*)
2056       case $ac_var in #(
2057       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2059       esac
2060       case $ac_var in #(
2061       _ | IFS | as_nl) ;; #(
2062       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2063       *) { eval $ac_var=; unset $ac_var;} ;;
2064       esac ;;
2065     esac
2066   done
2067   (set) 2>&1 |
2068     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2069     *${as_nl}ac_space=\ *)
2070       sed -n \
2071         "s/'\''/'\''\\\\'\'''\''/g;
2072           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2073       ;; #(
2074     *)
2075       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076       ;;
2077     esac |
2078     sort
2079 )
2080     echo
2081
2082     $as_echo "## ----------------- ##
2083 ## Output variables. ##
2084 ## ----------------- ##"
2085     echo
2086     for ac_var in $ac_subst_vars
2087     do
2088       eval ac_val=\$$ac_var
2089       case $ac_val in
2090       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091       esac
2092       $as_echo "$ac_var='\''$ac_val'\''"
2093     done | sort
2094     echo
2095
2096     if test -n "$ac_subst_files"; then
2097       $as_echo "## ------------------- ##
2098 ## File substitutions. ##
2099 ## ------------------- ##"
2100       echo
2101       for ac_var in $ac_subst_files
2102       do
2103         eval ac_val=\$$ac_var
2104         case $ac_val in
2105         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106         esac
2107         $as_echo "$ac_var='\''$ac_val'\''"
2108       done | sort
2109       echo
2110     fi
2111
2112     if test -s confdefs.h; then
2113       $as_echo "## ----------- ##
2114 ## confdefs.h. ##
2115 ## ----------- ##"
2116       echo
2117       cat confdefs.h
2118       echo
2119     fi
2120     test "$ac_signal" != 0 &&
2121       $as_echo "$as_me: caught signal $ac_signal"
2122     $as_echo "$as_me: exit $exit_status"
2123   } >&5
2124   rm -f core *.core core.conftest.* &&
2125     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2126     exit $exit_status
2127 ' 0
2128 for ac_signal in 1 2 13 15; do
2129   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130 done
2131 ac_signal=0
2132
2133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2134 rm -f -r conftest* confdefs.h
2135
2136 $as_echo "/* confdefs.h */" > confdefs.h
2137
2138 # Predefined preprocessor variables.
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_NAME "$PACKAGE_NAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_STRING "$PACKAGE_STRING"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_URL "$PACKAGE_URL"
2162 _ACEOF
2163
2164
2165 # Let the site file select an alternate cache file if it wants to.
2166 # Prefer an explicitly selected file to automatically selected ones.
2167 ac_site_file1=NONE
2168 ac_site_file2=NONE
2169 if test -n "$CONFIG_SITE"; then
2170   # We do not want a PATH search for config.site.
2171   case $CONFIG_SITE in #((
2172     -*)  ac_site_file1=./$CONFIG_SITE;;
2173     */*) ac_site_file1=$CONFIG_SITE;;
2174     *)   ac_site_file1=./$CONFIG_SITE;;
2175   esac
2176 elif test "x$prefix" != xNONE; then
2177   ac_site_file1=$prefix/share/config.site
2178   ac_site_file2=$prefix/etc/config.site
2179 else
2180   ac_site_file1=$ac_default_prefix/share/config.site
2181   ac_site_file2=$ac_default_prefix/etc/config.site
2182 fi
2183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2184 do
2185   test "x$ac_site_file" = xNONE && continue
2186   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189     sed 's/^/| /' "$ac_site_file" >&5
2190     . "$ac_site_file" \
2191       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2193 as_fn_error $? "failed to load site script $ac_site_file
2194 See \`config.log' for more details" "$LINENO" 5; }
2195   fi
2196 done
2197
2198 if test -r "$cache_file"; then
2199   # Some versions of bash will fail to source /dev/null (special files
2200   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2201   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2202     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2203 $as_echo "$as_me: loading cache $cache_file" >&6;}
2204     case $cache_file in
2205       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2206       *)                      . "./$cache_file";;
2207     esac
2208   fi
2209 else
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2211 $as_echo "$as_me: creating cache $cache_file" >&6;}
2212   >$cache_file
2213 fi
2214
2215 gt_needs="$gt_needs "
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221   eval ac_new_set=\$ac_env_${ac_var}_set
2222   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223   eval ac_new_val=\$ac_env_${ac_var}_value
2224   case $ac_old_set,$ac_new_set in
2225     set,)
2226       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228       ac_cache_corrupted=: ;;
2229     ,set)
2230       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232       ac_cache_corrupted=: ;;
2233     ,);;
2234     *)
2235       if test "x$ac_old_val" != "x$ac_new_val"; then
2236         # differences in whitespace do not lead to failure.
2237         ac_old_val_w=`echo x $ac_old_val`
2238         ac_new_val_w=`echo x $ac_new_val`
2239         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242           ac_cache_corrupted=:
2243         else
2244           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246           eval $ac_var=\$ac_old_val
2247         fi
2248         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2249 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2250         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2252       fi;;
2253   esac
2254   # Pass precious variables to config.status.
2255   if test "$ac_new_set" = set; then
2256     case $ac_new_val in
2257     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258     *) ac_arg=$ac_var=$ac_new_val ;;
2259     esac
2260     case " $ac_configure_args " in
2261       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2262       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263     esac
2264   fi
2265 done
2266 if $ac_cache_corrupted; then
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285 ac_config_headers="$ac_config_headers config.h"
2286
2287
2288 ac_aux_dir=
2289 for ac_dir in build "$srcdir"/build; do
2290   if test -f "$ac_dir/install-sh"; then
2291     ac_aux_dir=$ac_dir
2292     ac_install_sh="$ac_aux_dir/install-sh -c"
2293     break
2294   elif test -f "$ac_dir/install.sh"; then
2295     ac_aux_dir=$ac_dir
2296     ac_install_sh="$ac_aux_dir/install.sh -c"
2297     break
2298   elif test -f "$ac_dir/shtool"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/shtool install -c"
2301     break
2302   fi
2303 done
2304 if test -z "$ac_aux_dir"; then
2305   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2306 fi
2307
2308 # These three variables are undocumented and unsupported,
2309 # and are intended to be withdrawn in a future Autoconf release.
2310 # They can cause serious problems if a builder's source tree is in a directory
2311 # whose full name contains unusual characters.
2312 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2313 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2314 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2315
2316
2317
2318
2319 am__api_version='1.15'
2320
2321 # Find a good install program.  We prefer a C program (faster),
2322 # so one script is as good as another.  But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2327 # AIX /bin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if ${ac_cv_path_install+:} false; then :
2339   $as_echo_n "(cached) " >&6
2340 else
2341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346     # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348   ./ | .// | /[cC]/* | \
2349   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351   /usr/ucb/* ) ;;
2352   *)
2353     # OSF1 and SCO ODT 3.0 have their own names for install.
2354     # Don't use installbsd from OSF since it installs stuff as root
2355     # by default.
2356     for ac_prog in ginstall scoinst install; do
2357       for ac_exec_ext in '' $ac_executable_extensions; do
2358         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359           if test $ac_prog = install &&
2360             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361             # AIX install.  It has an incompatible calling convention.
2362             :
2363           elif test $ac_prog = install &&
2364             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # program-specific install script used by HP pwplus--don't use.
2366             :
2367           else
2368             rm -rf conftest.one conftest.two conftest.dir
2369             echo one > conftest.one
2370             echo two > conftest.two
2371             mkdir conftest.dir
2372             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373               test -s conftest.one && test -s conftest.two &&
2374               test -s conftest.dir/conftest.one &&
2375               test -s conftest.dir/conftest.two
2376             then
2377               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378               break 3
2379             fi
2380           fi
2381         fi
2382       done
2383     done
2384     ;;
2385 esac
2386
2387   done
2388 IFS=$as_save_IFS
2389
2390 rm -rf conftest.one conftest.two conftest.dir
2391
2392 fi
2393   if test "${ac_cv_path_install+set}" = set; then
2394     INSTALL=$ac_cv_path_install
2395   else
2396     # As a last resort, use the slow shell script.  Don't cache a
2397     # value for INSTALL within a source directory, because that will
2398     # break other packages using the cache if that directory is
2399     # removed, or if the value is a relative name.
2400     INSTALL=$ac_install_sh
2401   fi
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2405
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415 $as_echo_n "checking whether build environment is sane... " >&6; }
2416 # Reject unsafe characters in $srcdir or the absolute working directory
2417 # name.  Accept space and tab only in the latter.
2418 am_lf='
2419 '
2420 case `pwd` in
2421   *[\\\"\#\$\&\'\`$am_lf]*)
2422     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2423 esac
2424 case $srcdir in
2425   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2426     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2427 esac
2428
2429 # Do 'set' in a subshell so we don't clobber the current shell's
2430 # arguments.  Must try -L first in case configure is actually a
2431 # symlink; some systems play weird games with the mod time of symlinks
2432 # (eg FreeBSD returns the mod time of the symlink's containing
2433 # directory).
2434 if (
2435    am_has_slept=no
2436    for am_try in 1 2; do
2437      echo "timestamp, slept: $am_has_slept" > conftest.file
2438      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439      if test "$*" = "X"; then
2440         # -L didn't work.
2441         set X `ls -t "$srcdir/configure" conftest.file`
2442      fi
2443      if test "$*" != "X $srcdir/configure conftest.file" \
2444         && test "$*" != "X conftest.file $srcdir/configure"; then
2445
2446         # If neither matched, then we have a broken ls.  This can happen
2447         # if, for instance, CONFIG_SHELL is bash and it inherits a
2448         # broken ls alias from the environment.  This has actually
2449         # happened.  Such a system could not be considered "sane".
2450         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2451   alias in your environment" "$LINENO" 5
2452      fi
2453      if test "$2" = conftest.file || test $am_try -eq 2; then
2454        break
2455      fi
2456      # Just in case.
2457      sleep 1
2458      am_has_slept=yes
2459    done
2460    test "$2" = conftest.file
2461    )
2462 then
2463    # Ok.
2464    :
2465 else
2466    as_fn_error $? "newly created file is older than distributed files!
2467 Check your system clock" "$LINENO" 5
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2471 # If we didn't sleep, we still need to ensure time stamps of config.status and
2472 # generated files are strictly newer.
2473 am_sleep_pid=
2474 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2475   ( sleep 1 ) &
2476   am_sleep_pid=$!
2477 fi
2478
2479 rm -f conftest.file
2480
2481 test "$program_prefix" != NONE &&
2482   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483 # Use a double $ so make ignores it.
2484 test "$program_suffix" != NONE &&
2485   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486 # Double any \ or $.
2487 # By default was `s,x,x', remove it if useless.
2488 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491 # Expand $ac_aux_dir to an absolute path.
2492 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2493
2494 if test x"${MISSING+set}" != xset; then
2495   case $am_aux_dir in
2496   *\ * | *\     *)
2497     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498   *)
2499     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500   esac
2501 fi
2502 # Use eval to expand $SHELL
2503 if eval "$MISSING --is-lightweight"; then
2504   am_missing_run="$MISSING "
2505 else
2506   am_missing_run=
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2508 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2509 fi
2510
2511 if test x"${install_sh+set}" != xset; then
2512   case $am_aux_dir in
2513   *\ * | *\     *)
2514     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515   *)
2516     install_sh="\${SHELL} $am_aux_dir/install-sh"
2517   esac
2518 fi
2519
2520 # Installed binaries are usually stripped using 'strip' when the user
2521 # run "make install-strip".  However 'strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the 'STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525   if test -n "$ac_tool_prefix"; then
2526   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_STRIP+:} false; then :
2531   $as_echo_n "(cached) " >&6
2532 else
2533   if test -n "$STRIP"; then
2534   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541     for ac_exec_ext in '' $ac_executable_extensions; do
2542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548   done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556 $as_echo "$STRIP" >&6; }
2557 else
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562
2563 fi
2564 if test -z "$ac_cv_prog_STRIP"; then
2565   ac_ct_STRIP=$STRIP
2566   # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   if test -n "$ac_ct_STRIP"; then
2574   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581     for ac_exec_ext in '' $ac_executable_extensions; do
2582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583     ac_cv_prog_ac_ct_STRIP="strip"
2584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585     break 2
2586   fi
2587 done
2588   done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596 $as_echo "$ac_ct_STRIP" >&6; }
2597 else
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602   if test "x$ac_ct_STRIP" = x; then
2603     STRIP=":"
2604   else
2605     case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611     STRIP=$ac_ct_STRIP
2612   fi
2613 else
2614   STRIP="$ac_cv_prog_STRIP"
2615 fi
2616
2617 fi
2618 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622 if test -z "$MKDIR_P"; then
2623   if ${ac_cv_path_mkdir+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631     for ac_prog in mkdir gmkdir; do
2632          for ac_exec_ext in '' $ac_executable_extensions; do
2633            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2634            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635              'mkdir (GNU coreutils) '* | \
2636              'mkdir (coreutils) '* | \
2637              'mkdir (fileutils) '4.1*)
2638                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639                break 3;;
2640            esac
2641          done
2642        done
2643   done
2644 IFS=$as_save_IFS
2645
2646 fi
2647
2648   test -d ./--version && rmdir ./--version
2649   if test "${ac_cv_path_mkdir+set}" = set; then
2650     MKDIR_P="$ac_cv_path_mkdir -p"
2651   else
2652     # As a last resort, use the slow shell script.  Don't cache a
2653     # value for MKDIR_P within a source directory, because that will
2654     # break other packages using the cache if that directory is
2655     # removed, or if the value is a relative name.
2656     MKDIR_P="$ac_install_sh -d"
2657   fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660 $as_echo "$MKDIR_P" >&6; }
2661
2662 for ac_prog in gawk mawk nawk awk
2663 do
2664   # Extract the first word of "$ac_prog", so it can be a program name with args.
2665 set dummy $ac_prog; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if ${ac_cv_prog_AWK+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   if test -n "$AWK"; then
2672   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     for ac_exec_ext in '' $ac_executable_extensions; do
2680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2681     ac_cv_prog_AWK="$ac_prog"
2682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683     break 2
2684   fi
2685 done
2686   done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 AWK=$ac_cv_prog_AWK
2692 if test -n "$AWK"; then
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2694 $as_echo "$AWK" >&6; }
2695 else
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701   test -n "$AWK" && break
2702 done
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2706 set x ${MAKE-make}
2707 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2708 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   cat >conftest.make <<\_ACEOF
2712 SHELL = /bin/sh
2713 all:
2714         @echo '@@@%%%=$(MAKE)=@@@%%%'
2715 _ACEOF
2716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2718   *@@@%%%=?*=@@@%%%*)
2719     eval ac_cv_prog_make_${ac_make}_set=yes;;
2720   *)
2721     eval ac_cv_prog_make_${ac_make}_set=no;;
2722 esac
2723 rm -f conftest.make
2724 fi
2725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728   SET_MAKE=
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732   SET_MAKE="MAKE=${MAKE-make}"
2733 fi
2734
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2738   am__leading_dot=.
2739 else
2740   am__leading_dot=_
2741 fi
2742 rmdir .tst 2>/dev/null
2743
2744 # Check whether --enable-silent-rules was given.
2745 if test "${enable_silent_rules+set}" = set; then :
2746   enableval=$enable_silent_rules;
2747 fi
2748
2749 case $enable_silent_rules in # (((
2750   yes) AM_DEFAULT_VERBOSITY=0;;
2751    no) AM_DEFAULT_VERBOSITY=1;;
2752     *) AM_DEFAULT_VERBOSITY=1;;
2753 esac
2754 am_make=${MAKE-make}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2756 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2757 if ${am_cv_make_support_nested_variables+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   if $as_echo 'TRUE=$(BAR$(V))
2761 BAR0=false
2762 BAR1=true
2763 V=1
2764 am__doit:
2765         @$(TRUE)
2766 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2767   am_cv_make_support_nested_variables=yes
2768 else
2769   am_cv_make_support_nested_variables=no
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2773 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2774 if test $am_cv_make_support_nested_variables = yes; then
2775     AM_V='$(V)'
2776   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2777 else
2778   AM_V=$AM_DEFAULT_VERBOSITY
2779   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2780 fi
2781 AM_BACKSLASH='\'
2782
2783 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2784   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2785   # is not polluted with repeated "-I."
2786   am__isrc=' -I$(srcdir)'
2787   # test to see if srcdir already configured
2788   if test -f $srcdir/config.status; then
2789     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2790   fi
2791 fi
2792
2793 # test whether we have cygpath
2794 if test -z "$CYGPATH_W"; then
2795   if (cygpath --version) >/dev/null 2>/dev/null; then
2796     CYGPATH_W='cygpath -w'
2797   else
2798     CYGPATH_W=echo
2799   fi
2800 fi
2801
2802
2803 # Define the identity of the package.
2804  PACKAGE='json-glib'
2805  VERSION='1.2.4'
2806
2807
2808 # Some tools Automake needs.
2809
2810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811
2812
2813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814
2815
2816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817
2818
2819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2820
2821
2822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823
2824 # For better backward compatibility.  To be removed once Automake 1.9.x
2825 # dies out for good.  For more background, see:
2826 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2827 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2828 mkdir_p='$(MKDIR_P)'
2829
2830 # We need awk for the "check" target (and possibly the TAP driver).  The
2831 # system "awk" is bad on some platforms.
2832 # Always define AMTAR for backward compatibility.  Yes, it's still used
2833 # in the wild :-(  We should find a proper way to deprecate it ...
2834 AMTAR='$${TAR-tar}'
2835
2836
2837 # We'll loop over all known methods to create a tar archive until one works.
2838 _am_tools='gnutar plaintar pax cpio none'
2839
2840 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2841       # There is notably a 21 bits limit for the UID and the GID.  In fact,
2842       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2843       # and bug#13588).
2844       am_max_uid=2097151 # 2^21 - 1
2845       am_max_gid=$am_max_uid
2846       # The $UID and $GID variables are not portable, so we need to resort
2847       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
2848       # below are definitely unexpected, so allow the users to see them
2849       # (that is, avoid stderr redirection).
2850       am_uid=`id -u || echo unknown`
2851       am_gid=`id -g || echo unknown`
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2853 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2854       if test $am_uid -le $am_max_uid; then
2855          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857       else
2858          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2859 $as_echo "no" >&6; }
2860          _am_tools=none
2861       fi
2862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2863 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2864       if test $am_gid -le $am_max_gid; then
2865          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867       else
2868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870         _am_tools=none
2871       fi
2872
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2874 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2875
2876   # Go ahead even if we have the value already cached.  We do so because we
2877   # need to set the values for the 'am__tar' and 'am__untar' variables.
2878   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2879
2880   for _am_tool in $_am_tools; do
2881     case $_am_tool in
2882     gnutar)
2883       for _am_tar in tar gnutar gtar; do
2884         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2885    ($_am_tar --version) >&5 2>&5
2886    ac_status=$?
2887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888    (exit $ac_status); } && break
2889       done
2890       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2891       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2892       am__untar="$_am_tar -xf -"
2893       ;;
2894     plaintar)
2895       # Must skip GNU tar: if it does not support --format= it doesn't create
2896       # ustar tarball either.
2897       (tar --version) >/dev/null 2>&1 && continue
2898       am__tar='tar chf - "$$tardir"'
2899       am__tar_='tar chf - "$tardir"'
2900       am__untar='tar xf -'
2901       ;;
2902     pax)
2903       am__tar='pax -L -x ustar -w "$$tardir"'
2904       am__tar_='pax -L -x ustar -w "$tardir"'
2905       am__untar='pax -r'
2906       ;;
2907     cpio)
2908       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2909       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2910       am__untar='cpio -i -H ustar -d'
2911       ;;
2912     none)
2913       am__tar=false
2914       am__tar_=false
2915       am__untar=false
2916       ;;
2917     esac
2918
2919     # If the value was cached, stop now.  We just wanted to have am__tar
2920     # and am__untar set.
2921     test -n "${am_cv_prog_tar_ustar}" && break
2922
2923     # tar/untar a dummy directory, and stop if the command works.
2924     rm -rf conftest.dir
2925     mkdir conftest.dir
2926     echo GrepMe > conftest.dir/file
2927     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2928    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2929    ac_status=$?
2930    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931    (exit $ac_status); }
2932     rm -rf conftest.dir
2933     if test -s conftest.tar; then
2934       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2935    ($am__untar <conftest.tar) >&5 2>&5
2936    ac_status=$?
2937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); }
2939       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2940    (cat conftest.dir/file) >&5 2>&5
2941    ac_status=$?
2942    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943    (exit $ac_status); }
2944       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2945     fi
2946   done
2947   rm -rf conftest.dir
2948
2949   if ${am_cv_prog_tar_ustar+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   am_cv_prog_tar_ustar=$_am_tool
2953 fi
2954
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2956 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2957
2958
2959
2960
2961
2962
2963 # POSIX will say in a future version that running "rm -f" with no argument
2964 # is OK; and we want to be able to make that assumption in our Makefile
2965 # recipes.  So use an aggressive probe to check that the usage we want is
2966 # actually supported "in the wild" to an acceptable degree.
2967 # See automake bug#10828.
2968 # To make any issue more visible, cause the running configure to be aborted
2969 # by default if the 'rm' program in use doesn't match our expectations; the
2970 # user can still override this though.
2971 if rm -f && rm -fr && rm -rf; then : OK; else
2972   cat >&2 <<'END'
2973 Oops!
2974
2975 Your 'rm' program seems unable to run without file operands specified
2976 on the command line, even when the '-f' option is present.  This is contrary
2977 to the behaviour of most rm programs out there, and not conforming with
2978 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2979
2980 Please tell bug-automake@gnu.org about your system, including the value
2981 of your $PATH and any error possibly output before this message.  This
2982 can help us improve future automake versions.
2983
2984 END
2985   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2986     echo 'Configuration will proceed anyway, since you have set the' >&2
2987     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988     echo >&2
2989   else
2990     cat >&2 <<'END'
2991 Aborting the configuration process, to ensure you take notice of the issue.
2992
2993 You can download and install GNU coreutils to get an 'rm' implementation
2994 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2995
2996 If you want to complete the configuration process using your problematic
2997 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2998 to "yes", and re-run configure.
2999
3000 END
3001     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002   fi
3003 fi
3004
3005
3006 # Check whether --enable-silent-rules was given.
3007 if test "${enable_silent_rules+set}" = set; then :
3008   enableval=$enable_silent_rules;
3009 fi
3010
3011 case $enable_silent_rules in # (((
3012   yes) AM_DEFAULT_VERBOSITY=0;;
3013    no) AM_DEFAULT_VERBOSITY=1;;
3014     *) AM_DEFAULT_VERBOSITY=0;;
3015 esac
3016 am_make=${MAKE-make}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3018 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3019 if ${am_cv_make_support_nested_variables+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if $as_echo 'TRUE=$(BAR$(V))
3023 BAR0=false
3024 BAR1=true
3025 V=1
3026 am__doit:
3027         @$(TRUE)
3028 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3029   am_cv_make_support_nested_variables=yes
3030 else
3031   am_cv_make_support_nested_variables=no
3032 fi
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3035 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3036 if test $am_cv_make_support_nested_variables = yes; then
3037     AM_V='$(V)'
3038   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3039 else
3040   AM_V=$AM_DEFAULT_VERBOSITY
3041   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3042 fi
3043 AM_BACKSLASH='\'
3044
3045 DEPDIR="${am__leading_dot}deps"
3046
3047 ac_config_commands="$ac_config_commands depfiles"
3048
3049
3050 am_make=${MAKE-make}
3051 cat > confinc << 'END'
3052 am__doit:
3053         @echo this is the am__doit target
3054 .PHONY: am__doit
3055 END
3056 # If we don't find an include directive, just comment out the code.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3059 am__include="#"
3060 am__quote=
3061 _am_result=none
3062 # First try GNU make style include.
3063 echo "include confinc" > confmf
3064 # Ignore all kinds of additional output from 'make'.
3065 case `$am_make -s -f confmf 2> /dev/null` in #(
3066 *the\ am__doit\ target*)
3067   am__include=include
3068   am__quote=
3069   _am_result=GNU
3070   ;;
3071 esac
3072 # Now try BSD make style include.
3073 if test "$am__include" = "#"; then
3074    echo '.include "confinc"' > confmf
3075    case `$am_make -s -f confmf 2> /dev/null` in #(
3076    *the\ am__doit\ target*)
3077      am__include=.include
3078      am__quote="\""
3079      _am_result=BSD
3080      ;;
3081    esac
3082 fi
3083
3084
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3086 $as_echo "$_am_result" >&6; }
3087 rm -f confinc confmf
3088
3089 # Check whether --enable-dependency-tracking was given.
3090 if test "${enable_dependency_tracking+set}" = set; then :
3091   enableval=$enable_dependency_tracking;
3092 fi
3093
3094 if test "x$enable_dependency_tracking" != xno; then
3095   am_depcomp="$ac_aux_dir/depcomp"
3096   AMDEPBACKSLASH='\'
3097   am__nodep='_no'
3098 fi
3099  if test "x$enable_dependency_tracking" != xno; then
3100   AMDEP_TRUE=
3101   AMDEP_FALSE='#'
3102 else
3103   AMDEP_TRUE='#'
3104   AMDEP_FALSE=
3105 fi
3106
3107
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 if test -n "$ac_tool_prefix"; then
3114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$ac_cv_prog_CC"; then
3153   ac_ct_CC=$CC
3154   # Extract the first word of "gcc", so it can be a program name with args.
3155 set dummy gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$ac_ct_CC"; then
3162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_ac_ct_CC="gcc"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182 if test -n "$ac_ct_CC"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184 $as_echo "$ac_ct_CC" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190   if test "x$ac_ct_CC" = x; then
3191     CC=""
3192   else
3193     case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199     CC=$ac_ct_CC
3200   fi
3201 else
3202   CC="$ac_cv_prog_CC"
3203 fi
3204
3205 if test -z "$CC"; then
3206           if test -n "$ac_tool_prefix"; then
3207     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222     for ac_exec_ext in '' $ac_executable_extensions; do
3223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224     ac_cv_prog_CC="${ac_tool_prefix}cc"
3225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229   done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 $as_echo "$CC" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244   fi
3245 fi
3246 if test -z "$CC"; then
3247   # Extract the first word of "cc", so it can be a program name with args.
3248 set dummy cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   if test -n "$CC"; then
3255   ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257   ac_prog_rejected=no
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3266        ac_prog_rejected=yes
3267        continue
3268      fi
3269     ac_cv_prog_CC="cc"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 if test $ac_prog_rejected = yes; then
3278   # We found a bogon in the path, so make sure we never use it.
3279   set dummy $ac_cv_prog_CC
3280   shift
3281   if test $# != 0; then
3282     # We chose a different compiler from the bogus one.
3283     # However, it has the same basename, so the bogon will be chosen
3284     # first if we set CC to just the basename; use the full file name.
3285     shift
3286     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3287   fi
3288 fi
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 if test -z "$CC"; then
3303   if test -n "$ac_tool_prefix"; then
3304   for ac_prog in cl.exe
3305   do
3306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$CC"; then
3314   ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321     for ac_exec_ext in '' $ac_executable_extensions; do
3322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328   done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3337 else
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343     test -n "$CC" && break
3344   done
3345 fi
3346 if test -z "$CC"; then
3347   ac_ct_CC=$CC
3348   for ac_prog in cl.exe
3349 do
3350   # Extract the first word of "$ac_prog", so it can be a program name with args.
3351 set dummy $ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3355   $as_echo_n "(cached) " >&6
3356 else
3357   if test -n "$ac_ct_CC"; then
3358   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365     for ac_exec_ext in '' $ac_executable_extensions; do
3366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_ac_ct_CC="$ac_prog"
3368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372   done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3378 if test -n "$ac_ct_CC"; then
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3380 $as_echo "$ac_ct_CC" >&6; }
3381 else
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387   test -n "$ac_ct_CC" && break
3388 done
3389
3390   if test "x$ac_ct_CC" = x; then
3391     CC=""
3392   else
3393     case $cross_compiling:$ac_tool_warned in
3394 yes:)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3397 ac_tool_warned=yes ;;
3398 esac
3399     CC=$ac_ct_CC
3400   fi
3401 fi
3402
3403 fi
3404
3405
3406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "no acceptable C compiler found in \$PATH
3409 See \`config.log' for more details" "$LINENO" 5; }
3410
3411 # Provide some information about the compiler.
3412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3413 set X $ac_compile
3414 ac_compiler=$2
3415 for ac_option in --version -v -V -qversion; do
3416   { { ac_try="$ac_compiler $ac_option >&5"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3424   ac_status=$?
3425   if test -s conftest.err; then
3426     sed '10a\
3427 ... rest of stderr output deleted ...
3428          10q' conftest.err >conftest.er1
3429     cat conftest.er1 >&5
3430   fi
3431   rm -f conftest.er1 conftest.err
3432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433   test $ac_status = 0; }
3434 done
3435
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3451 # of exeext.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453 $as_echo_n "checking whether the C compiler works... " >&6; }
3454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3455
3456 # The possible output files:
3457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3458
3459 ac_rmfiles=
3460 for ac_file in $ac_files
3461 do
3462   case $ac_file in
3463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465   esac
3466 done
3467 rm -f $ac_rmfiles
3468
3469 if { { ac_try="$ac_link_default"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476   (eval "$ac_link_default") 2>&5
3477   ac_status=$?
3478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479   test $ac_status = 0; }; then :
3480   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3483 # so that the user can short-circuit this test for compilers unknown to
3484 # Autoconf.
3485 for ac_file in $ac_files ''
3486 do
3487   test -f "$ac_file" || continue
3488   case $ac_file in
3489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3490         ;;
3491     [ab].out )
3492         # We found the default executable, but exeext='' is most
3493         # certainly right.
3494         break;;
3495     *.* )
3496         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497         then :; else
3498            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499         fi
3500         # We set ac_cv_exeext here because the later test for it is not
3501         # safe: cross compilers may not add the suffix if given an `-o'
3502         # argument, so we may need to know it at that point already.
3503         # Even if this section looks crufty: it has the advantage of
3504         # actually working.
3505         break;;
3506     * )
3507         break;;
3508   esac
3509 done
3510 test "$ac_cv_exeext" = no && ac_cv_exeext=
3511
3512 else
3513   ac_file=''
3514 fi
3515 if test -z "$ac_file"; then :
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error 77 "C compiler cannot create executables
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3528 fi
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 ac_exeext=$ac_cv_exeext
3534
3535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { { ac_try="$ac_link"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546   (eval "$ac_link") 2>&5
3547   ac_status=$?
3548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549   test $ac_status = 0; }; then :
3550   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555   test -f "$ac_file" || continue
3556   case $ac_file in
3557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559           break;;
3560     * ) break;;
3561   esac
3562 done
3563 else
3564   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details" "$LINENO" 5; }
3568 fi
3569 rm -f conftest conftest$ac_cv_exeext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571 $as_echo "$ac_cv_exeext" >&6; }
3572
3573 rm -f conftest.$ac_ext
3574 EXEEXT=$ac_cv_exeext
3575 ac_exeext=$EXEEXT
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578 #include <stdio.h>
3579 int
3580 main ()
3581 {
3582 FILE *f = fopen ("conftest.out", "w");
3583  return ferror (f) || fclose (f) != 0;
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 ac_clean_files="$ac_clean_files conftest.out"
3590 # Check that the compiler produces executables we can run.  If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593 $as_echo_n "checking whether we are cross compiling... " >&6; }
3594 if test "$cross_compiling" != yes; then
3595   { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602   (eval "$ac_link") 2>&5
3603   ac_status=$?
3604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605   test $ac_status = 0; }
3606   if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; }; then
3617     cross_compiling=no
3618   else
3619     if test "$cross_compiling" = maybe; then
3620         cross_compiling=yes
3621     else
3622         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details" "$LINENO" 5; }
3627     fi
3628   fi
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631 $as_echo "$cross_compiling" >&6; }
3632
3633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3636 $as_echo_n "checking for suffix of object files... " >&6; }
3637 if ${ac_cv_objext+:} false; then :
3638   $as_echo_n "(cached) " >&6
3639 else
3640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h.  */
3642
3643 int
3644 main ()
3645 {
3646
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 rm -f conftest.o conftest.obj
3652 if { { ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659   (eval "$ac_compile") 2>&5
3660   ac_status=$?
3661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662   test $ac_status = 0; }; then :
3663   for ac_file in conftest.o conftest.obj conftest.*; do
3664   test -f "$ac_file" || continue;
3665   case $ac_file in
3666     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3667     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3668        break;;
3669   esac
3670 done
3671 else
3672   $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "cannot compute suffix of object files: cannot compile
3678 See \`config.log' for more details" "$LINENO" 5; }
3679 fi
3680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3683 $as_echo "$ac_cv_objext" >&6; }
3684 OBJEXT=$ac_cv_objext
3685 ac_objext=$OBJEXT
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3687 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3688 if ${ac_cv_c_compiler_gnu+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h.  */
3693
3694 int
3695 main ()
3696 {
3697 #ifndef __GNUC__
3698        choke me
3699 #endif
3700
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706   ac_compiler_gnu=yes
3707 else
3708   ac_compiler_gnu=no
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3712
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3715 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3716 if test $ac_compiler_gnu = yes; then
3717   GCC=yes
3718 else
3719   GCC=
3720 fi
3721 ac_test_CFLAGS=${CFLAGS+set}
3722 ac_save_CFLAGS=$CFLAGS
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3724 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3725 if ${ac_cv_prog_cc_g+:} false; then :
3726   $as_echo_n "(cached) " >&6
3727 else
3728   ac_save_c_werror_flag=$ac_c_werror_flag
3729    ac_c_werror_flag=yes
3730    ac_cv_prog_cc_g=no
3731    CFLAGS="-g"
3732    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h.  */
3734
3735 int
3736 main ()
3737 {
3738
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744   ac_cv_prog_cc_g=yes
3745 else
3746   CFLAGS=""
3747       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759
3760 else
3761   ac_c_werror_flag=$ac_save_c_werror_flag
3762          CFLAGS="-g"
3763          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765
3766 int
3767 main ()
3768 {
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775   ac_cv_prog_cc_g=yes
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782    ac_c_werror_flag=$ac_save_c_werror_flag
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3785 $as_echo "$ac_cv_prog_cc_g" >&6; }
3786 if test "$ac_test_CFLAGS" = set; then
3787   CFLAGS=$ac_save_CFLAGS
3788 elif test $ac_cv_prog_cc_g = yes; then
3789   if test "$GCC" = yes; then
3790     CFLAGS="-g -O2"
3791   else
3792     CFLAGS="-g"
3793   fi
3794 else
3795   if test "$GCC" = yes; then
3796     CFLAGS="-O2"
3797   else
3798     CFLAGS=
3799   fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3802 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3803 if ${ac_cv_prog_cc_c89+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   ac_cv_prog_cc_c89=no
3807 ac_save_CC=$CC
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810 #include <stdarg.h>
3811 #include <stdio.h>
3812 struct stat;
3813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3814 struct buf { int x; };
3815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3816 static char *e (p, i)
3817      char **p;
3818      int i;
3819 {
3820   return p[i];
3821 }
3822 static char *f (char * (*g) (char **, int), char **p, ...)
3823 {
3824   char *s;
3825   va_list v;
3826   va_start (v,p);
3827   s = g (p, va_arg (v,int));
3828   va_end (v);
3829   return s;
3830 }
3831
3832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3833    function prototypes and stuff, but not '\xHH' hex character constants.
3834    These don't provoke an error unfortunately, instead are silently treated
3835    as 'x'.  The following induces an error, until -std is added to get
3836    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3837    array size at least.  It's necessary to write '\x00'==0 to get something
3838    that's true only with -std.  */
3839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3840
3841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3842    inside strings and character constants.  */
3843 #define FOO(x) 'x'
3844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3845
3846 int test (int i, double x);
3847 struct s1 {int (*f) (int a);};
3848 struct s2 {int (*f) (double a);};
3849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3850 int argc;
3851 char **argv;
3852 int
3853 main ()
3854 {
3855 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3861         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3862 do
3863   CC="$ac_save_CC $ac_arg"
3864   if ac_fn_c_try_compile "$LINENO"; then :
3865   ac_cv_prog_cc_c89=$ac_arg
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext
3868   test "x$ac_cv_prog_cc_c89" != "xno" && break
3869 done
3870 rm -f conftest.$ac_ext
3871 CC=$ac_save_CC
3872
3873 fi
3874 # AC_CACHE_VAL
3875 case "x$ac_cv_prog_cc_c89" in
3876   x)
3877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878 $as_echo "none needed" >&6; } ;;
3879   xno)
3880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881 $as_echo "unsupported" >&6; } ;;
3882   *)
3883     CC="$CC $ac_cv_prog_cc_c89"
3884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3885 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886 esac
3887 if test "x$ac_cv_prog_cc_c89" != xno; then :
3888
3889 fi
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3903 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3904 if ${am_cv_prog_cc_c_o+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918   # Make sure it works both with $CC and with simple cc.
3919   # Following AC_PROG_CC_C_O, we do the test twice because some
3920   # compilers refuse to overwrite an existing .o file with -o,
3921   # though they will create one.
3922   am_cv_prog_cc_c_o=yes
3923   for am_i in 1 2; do
3924     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3925    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3926    ac_status=$?
3927    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928    (exit $ac_status); } \
3929          && test -f conftest2.$ac_objext; then
3930       : OK
3931     else
3932       am_cv_prog_cc_c_o=no
3933       break
3934     fi
3935   done
3936   rm -f core conftest*
3937   unset am_i
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3940 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3941 if test "$am_cv_prog_cc_c_o" != yes; then
3942    # Losing compiler, so override with the script.
3943    # FIXME: It is wrong to rewrite CC.
3944    # But if we don't then we get into trouble of one sort or another.
3945    # A longer-term fix would be to have automake use am__CC in this case,
3946    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3947    CC="$am_aux_dir/compile $CC"
3948 fi
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955
3956 depcc="$CC"   am_compiler_list=
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3959 $as_echo_n "checking dependency style of $depcc... " >&6; }
3960 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964   # We make a subdir and do the tests there.  Otherwise we can end up
3965   # making bogus files that we don't know about and never remove.  For
3966   # instance it was reported that on HP-UX the gcc test will end up
3967   # making a dummy file named 'D' -- because '-MD' means "put the output
3968   # in D".
3969   rm -rf conftest.dir
3970   mkdir conftest.dir
3971   # Copy depcomp to subdir because otherwise we won't find it if we're
3972   # using a relative directory.
3973   cp "$am_depcomp" conftest.dir
3974   cd conftest.dir
3975   # We will build objects and dependencies in a subdirectory because
3976   # it helps to detect inapplicable dependency modes.  For instance
3977   # both Tru64's cc and ICC support -MD to output dependencies as a
3978   # side effect of compilation, but ICC will put the dependencies in
3979   # the current directory while Tru64 will put them in the object
3980   # directory.
3981   mkdir sub
3982
3983   am_cv_CC_dependencies_compiler_type=none
3984   if test "$am_compiler_list" = ""; then
3985      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3986   fi
3987   am__universal=false
3988   case " $depcc " in #(
3989      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3990      esac
3991
3992   for depmode in $am_compiler_list; do
3993     # Setup a source with many dependencies, because some compilers
3994     # like to wrap large dependency lists on column 80 (with \), and
3995     # we should not choose a depcomp mode which is confused by this.
3996     #
3997     # We need to recreate these files for each test, as the compiler may
3998     # overwrite some of them when testing with obscure command lines.
3999     # This happens at least with the AIX C compiler.
4000     : > sub/conftest.c
4001     for i in 1 2 3 4 5 6; do
4002       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4003       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4004       # Solaris 10 /bin/sh.
4005       echo '/* dummy */' > sub/conftst$i.h
4006     done
4007     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4008
4009     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4010     # mode.  It turns out that the SunPro C++ compiler does not properly
4011     # handle '-M -o', and we need to detect this.  Also, some Intel
4012     # versions had trouble with output in subdirs.
4013     am__obj=sub/conftest.${OBJEXT-o}
4014     am__minus_obj="-o $am__obj"
4015     case $depmode in
4016     gcc)
4017       # This depmode causes a compiler race in universal mode.
4018       test "$am__universal" = false || continue
4019       ;;
4020     nosideeffect)
4021       # After this tag, mechanisms are not by side-effect, so they'll
4022       # only be used when explicitly requested.
4023       if test "x$enable_dependency_tracking" = xyes; then
4024         continue
4025       else
4026         break
4027       fi
4028       ;;
4029     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4030       # This compiler won't grok '-c -o', but also, the minuso test has
4031       # not run yet.  These depmodes are late enough in the game, and
4032       # so weak that their functioning should not be impacted.
4033       am__obj=conftest.${OBJEXT-o}
4034       am__minus_obj=
4035       ;;
4036     none) break ;;
4037     esac
4038     if depmode=$depmode \
4039        source=sub/conftest.c object=$am__obj \
4040        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4041        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4042          >/dev/null 2>conftest.err &&
4043        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4044        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4045        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4046        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4047       # icc doesn't choke on unknown options, it will just issue warnings
4048       # or remarks (even with -Werror).  So we grep stderr for any message
4049       # that says an option was ignored or not supported.
4050       # When given -MP, icc 7.0 and 7.1 complain thusly:
4051       #   icc: Command line warning: ignoring option '-M'; no argument required
4052       # The diagnosis changed in icc 8.0:
4053       #   icc: Command line remark: option '-MP' not supported
4054       if (grep 'ignoring option' conftest.err ||
4055           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4056         am_cv_CC_dependencies_compiler_type=$depmode
4057         break
4058       fi
4059     fi
4060   done
4061
4062   cd ..
4063   rm -rf conftest.dir
4064 else
4065   am_cv_CC_dependencies_compiler_type=none
4066 fi
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4070 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4072
4073  if
4074   test "x$enable_dependency_tracking" != xno \
4075   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4076   am__fastdepCC_TRUE=
4077   am__fastdepCC_FALSE='#'
4078 else
4079   am__fastdepCC_TRUE='#'
4080   am__fastdepCC_FALSE=
4081 fi
4082
4083
4084
4085 # Check whether --enable-glibtest was given.
4086 if test "${enable_glibtest+set}" = set; then :
4087   enableval=$enable_glibtest;
4088 else
4089   enable_glibtest=yes
4090 fi
4091
4092
4093   pkg_config_args=glib-2.0
4094   for module in .
4095   do
4096       case "$module" in
4097          gmodule)
4098              pkg_config_args="$pkg_config_args gmodule-2.0"
4099          ;;
4100          gmodule-no-export)
4101              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
4102          ;;
4103          gobject)
4104              pkg_config_args="$pkg_config_args gobject-2.0"
4105          ;;
4106          gthread)
4107              pkg_config_args="$pkg_config_args gthread-2.0"
4108          ;;
4109          gio*)
4110              pkg_config_args="$pkg_config_args $module-2.0"
4111          ;;
4112       esac
4113   done
4114
4115
4116
4117
4118
4119
4120
4121
4122 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4123         if test -n "$ac_tool_prefix"; then
4124   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   case $PKG_CONFIG in
4132   [\\/]* | ?:[\\/]*)
4133   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4134   ;;
4135   *)
4136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151   ;;
4152 esac
4153 fi
4154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4155 if test -n "$PKG_CONFIG"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4157 $as_echo "$PKG_CONFIG" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 fi
4165 if test -z "$ac_cv_path_PKG_CONFIG"; then
4166   ac_pt_PKG_CONFIG=$PKG_CONFIG
4167   # Extract the first word of "pkg-config", so it can be a program name with args.
4168 set dummy pkg-config; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   case $ac_pt_PKG_CONFIG in
4175   [\\/]* | ?:[\\/]*)
4176   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4177   ;;
4178   *)
4179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188     break 2
4189   fi
4190 done
4191   done
4192 IFS=$as_save_IFS
4193
4194   ;;
4195 esac
4196 fi
4197 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4198 if test -n "$ac_pt_PKG_CONFIG"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4200 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206   if test "x$ac_pt_PKG_CONFIG" = x; then
4207     PKG_CONFIG=""
4208   else
4209     case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215     PKG_CONFIG=$ac_pt_PKG_CONFIG
4216   fi
4217 else
4218   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4219 fi
4220
4221 fi
4222 if test -n "$PKG_CONFIG"; then
4223         _pkg_min_version=0.16
4224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4225 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4226         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4229         else
4230                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232                 PKG_CONFIG=""
4233         fi
4234 fi
4235
4236   no_glib=""
4237
4238   if test "x$PKG_CONFIG" = x ; then
4239     no_glib=yes
4240     PKG_CONFIG=no
4241   fi
4242
4243   min_glib_version=2.0.0
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
4245 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
4246
4247   if test x$PKG_CONFIG != xno ; then
4248     ## don't try to run the test against uninstalled libtool libs
4249     if $PKG_CONFIG --uninstalled $pkg_config_args; then
4250           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
4251           enable_glibtest=no
4252     fi
4253
4254     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
4255           :
4256     else
4257           no_glib=yes
4258     fi
4259   fi
4260
4261   if test x"$no_glib" = x ; then
4262     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
4263     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
4264     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
4265     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
4266
4267     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
4268     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
4269     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
4270            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4271     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
4272            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4273     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
4274            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4275     if test "x$enable_glibtest" = "xyes" ; then
4276       ac_save_CFLAGS="$CFLAGS"
4277       ac_save_LIBS="$LIBS"
4278       CFLAGS="$CFLAGS $GLIB_CFLAGS"
4279       LIBS="$GLIB_LIBS $LIBS"
4280       rm -f conf.glibtest
4281       if test "$cross_compiling" = yes; then :
4282   echo $ac_n "cross compiling; assumed OK... $ac_c"
4283 else
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286
4287 #include <glib.h>
4288 #include <stdio.h>
4289 #include <stdlib.h>
4290
4291 int
4292 main ()
4293 {
4294   unsigned int major, minor, micro;
4295
4296   fclose (fopen ("conf.glibtest", "w"));
4297
4298   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
4299      printf("%s, bad version string\n", "$min_glib_version");
4300      exit(1);
4301    }
4302
4303   if ((glib_major_version != $glib_config_major_version) ||
4304       (glib_minor_version != $glib_config_minor_version) ||
4305       (glib_micro_version != $glib_config_micro_version))
4306     {
4307       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4308              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4309              glib_major_version, glib_minor_version, glib_micro_version);
4310       printf ("*** was found! If pkg-config was correct, then it is best\n");
4311       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4312       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4313       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4314       printf("*** required on your system.\n");
4315       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4316       printf("*** to point to the correct configuration files\n");
4317     }
4318   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4319            (glib_minor_version != GLIB_MINOR_VERSION) ||
4320            (glib_micro_version != GLIB_MICRO_VERSION))
4321     {
4322       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4323              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4324       printf("*** library (version %d.%d.%d)\n",
4325              glib_major_version, glib_minor_version, glib_micro_version);
4326     }
4327   else
4328     {
4329       if ((glib_major_version > major) ||
4330         ((glib_major_version == major) && (glib_minor_version > minor)) ||
4331         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4332       {
4333         return 0;
4334        }
4335      else
4336       {
4337         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4338                glib_major_version, glib_minor_version, glib_micro_version);
4339         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4340                major, minor, micro);
4341         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4342         printf("***\n");
4343         printf("*** If you have already installed a sufficiently new version, this error\n");
4344         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4345         printf("*** being found. The easiest way to fix this is to remove the old version\n");
4346         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4347         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4348         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4349         printf("*** so that the correct libraries are found at run-time))\n");
4350       }
4351     }
4352   return 1;
4353 }
4354
4355 _ACEOF
4356 if ac_fn_c_try_run "$LINENO"; then :
4357
4358 else
4359   no_glib=yes
4360 fi
4361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4362   conftest.$ac_objext conftest.beam conftest.$ac_ext
4363 fi
4364
4365        CFLAGS="$ac_save_CFLAGS"
4366        LIBS="$ac_save_LIBS"
4367      fi
4368   fi
4369   if test "x$no_glib" = x ; then
4370      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4371 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4372      :
4373   else
4374      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376      if test "$PKG_CONFIG" = "no" ; then
4377        echo "*** A new enough version of pkg-config was not found."
4378        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4379      else
4380        if test -f conf.glibtest ; then
4381         :
4382        else
4383           echo "*** Could not run GLIB test program, checking why..."
4384           ac_save_CFLAGS="$CFLAGS"
4385           ac_save_LIBS="$LIBS"
4386           CFLAGS="$CFLAGS $GLIB_CFLAGS"
4387           LIBS="$LIBS $GLIB_LIBS"
4388           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h.  */
4390
4391 #include <glib.h>
4392 #include <stdio.h>
4393
4394 int
4395 main ()
4396 {
4397  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4398   ;
4399   return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_link "$LINENO"; then :
4403    echo "*** The test program compiled, but did not run. This usually means"
4404           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4405           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4406           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4407           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4408           echo "*** is required on your system"
4409           echo "***"
4410           echo "*** If you have an old version installed, it is best to remove it, although"
4411           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4412 else
4413    echo "*** The test program failed to compile or link. See the file config.log for the"
4414           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext \
4417     conftest$ac_exeext conftest.$ac_ext
4418           CFLAGS="$ac_save_CFLAGS"
4419           LIBS="$ac_save_LIBS"
4420        fi
4421      fi
4422      GLIB_CFLAGS=""
4423      GLIB_LIBS=""
4424      GLIB_GENMARSHAL=""
4425      GOBJECT_QUERY=""
4426      GLIB_MKENUMS=""
4427      GLIB_COMPILE_RESOURCES=""
4428      :
4429   fi
4430
4431
4432
4433
4434
4435
4436   rm -f conf.glibtest
4437
4438
4439
4440
4441 case `pwd` in
4442   *\ * | *\     *)
4443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4445 esac
4446
4447
4448
4449 macro_version='2.4.6'
4450 macro_revision='2.4.6'
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464 ltmain=$ac_aux_dir/ltmain.sh
4465
4466 # Make sure we can run config.sub.
4467 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471 $as_echo_n "checking build system type... " >&6; }
4472 if ${ac_cv_build+:} false; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   ac_build_alias=$build_alias
4476 test "x$ac_build_alias" = x &&
4477   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478 test "x$ac_build_alias" = x &&
4479   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4480 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4482
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485 $as_echo "$ac_cv_build" >&6; }
4486 case $ac_cv_build in
4487 *-*-*) ;;
4488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4489 esac
4490 build=$ac_cv_build
4491 ac_save_IFS=$IFS; IFS='-'
4492 set x $ac_cv_build
4493 shift
4494 build_cpu=$1
4495 build_vendor=$2
4496 shift; shift
4497 # Remember, the first character of IFS is used to create $*,
4498 # except with old shells:
4499 build_os=$*
4500 IFS=$ac_save_IFS
4501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4502
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505 $as_echo_n "checking host system type... " >&6; }
4506 if ${ac_cv_host+:} false; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   if test "x$host_alias" = x; then
4510   ac_cv_host=$ac_cv_build
4511 else
4512   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4514 fi
4515
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518 $as_echo "$ac_cv_host" >&6; }
4519 case $ac_cv_host in
4520 *-*-*) ;;
4521 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4522 esac
4523 host=$ac_cv_host
4524 ac_save_IFS=$IFS; IFS='-'
4525 set x $ac_cv_host
4526 shift
4527 host_cpu=$1
4528 host_vendor=$2
4529 shift; shift
4530 # Remember, the first character of IFS is used to create $*,
4531 # except with old shells:
4532 host_os=$*
4533 IFS=$ac_save_IFS
4534 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4535
4536
4537 # Backslashify metacharacters that are still active within
4538 # double-quoted strings.
4539 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4540
4541 # Same as above, but do not quote variable references.
4542 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4543
4544 # Sed substitution to delay expansion of an escaped shell variable in a
4545 # double_quote_subst'ed string.
4546 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4547
4548 # Sed substitution to delay expansion of an escaped single quote.
4549 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4550
4551 # Sed substitution to avoid accidental globbing in evaled expressions
4552 no_glob_subst='s/\*/\\\*/g'
4553
4554 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4555 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4559 $as_echo_n "checking how to print strings... " >&6; }
4560 # Test print first, because it will be a builtin if present.
4561 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4562    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4563   ECHO='print -r --'
4564 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4565   ECHO='printf %s\n'
4566 else
4567   # Use this function as a fallback that always works.
4568   func_fallback_echo ()
4569   {
4570     eval 'cat <<_LTECHO_EOF
4571 $1
4572 _LTECHO_EOF'
4573   }
4574   ECHO='func_fallback_echo'
4575 fi
4576
4577 # func_echo_all arg...
4578 # Invoke $ECHO with all args, space-separated.
4579 func_echo_all ()
4580 {
4581     $ECHO ""
4582 }
4583
4584 case $ECHO in
4585   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4586 $as_echo "printf" >&6; } ;;
4587   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4588 $as_echo "print -r" >&6; } ;;
4589   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4590 $as_echo "cat" >&6; } ;;
4591 esac
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4608 if ${ac_cv_path_SED+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4612      for ac_i in 1 2 3 4 5 6 7; do
4613        ac_script="$ac_script$as_nl$ac_script"
4614      done
4615      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4616      { ac_script=; unset ac_script;}
4617      if test -z "$SED"; then
4618   ac_path_SED_found=false
4619   # Loop through the user's path and test for each of PROGNAME-LIST
4620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625     for ac_prog in sed gsed; do
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4628       as_fn_executable_p "$ac_path_SED" || continue
4629 # Check for GNU ac_path_SED and select it if it is found.
4630   # Check for GNU $ac_path_SED
4631 case `"$ac_path_SED" --version 2>&1` in
4632 *GNU*)
4633   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4634 *)
4635   ac_count=0
4636   $as_echo_n 0123456789 >"conftest.in"
4637   while :
4638   do
4639     cat "conftest.in" "conftest.in" >"conftest.tmp"
4640     mv "conftest.tmp" "conftest.in"
4641     cp "conftest.in" "conftest.nl"
4642     $as_echo '' >> "conftest.nl"
4643     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645     as_fn_arith $ac_count + 1 && ac_count=$as_val
4646     if test $ac_count -gt ${ac_path_SED_max-0}; then
4647       # Best one so far, save it but keep looking for a better one
4648       ac_cv_path_SED="$ac_path_SED"
4649       ac_path_SED_max=$ac_count
4650     fi
4651     # 10*(2^10) chars as input seems more than enough
4652     test $ac_count -gt 10 && break
4653   done
4654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655 esac
4656
4657       $ac_path_SED_found && break 3
4658     done
4659   done
4660   done
4661 IFS=$as_save_IFS
4662   if test -z "$ac_cv_path_SED"; then
4663     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4664   fi
4665 else
4666   ac_cv_path_SED=$SED
4667 fi
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4671 $as_echo "$ac_cv_path_SED" >&6; }
4672  SED="$ac_cv_path_SED"
4673   rm -f conftest.sed
4674
4675 test -z "$SED" && SED=sed
4676 Xsed="$SED -e 1s/^X//"
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690 if ${ac_cv_path_GREP+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -z "$GREP"; then
4694   ac_path_GREP_found=false
4695   # Loop through the user's path and test for each of PROGNAME-LIST
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_prog in grep ggrep; do
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4704       as_fn_executable_p "$ac_path_GREP" || continue
4705 # Check for GNU ac_path_GREP and select it if it is found.
4706   # Check for GNU $ac_path_GREP
4707 case `"$ac_path_GREP" --version 2>&1` in
4708 *GNU*)
4709   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4710 *)
4711   ac_count=0
4712   $as_echo_n 0123456789 >"conftest.in"
4713   while :
4714   do
4715     cat "conftest.in" "conftest.in" >"conftest.tmp"
4716     mv "conftest.tmp" "conftest.in"
4717     cp "conftest.in" "conftest.nl"
4718     $as_echo 'GREP' >> "conftest.nl"
4719     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721     as_fn_arith $ac_count + 1 && ac_count=$as_val
4722     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723       # Best one so far, save it but keep looking for a better one
4724       ac_cv_path_GREP="$ac_path_GREP"
4725       ac_path_GREP_max=$ac_count
4726     fi
4727     # 10*(2^10) chars as input seems more than enough
4728     test $ac_count -gt 10 && break
4729   done
4730   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733       $ac_path_GREP_found && break 3
4734     done
4735   done
4736   done
4737 IFS=$as_save_IFS
4738   if test -z "$ac_cv_path_GREP"; then
4739     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740   fi
4741 else
4742   ac_cv_path_GREP=$GREP
4743 fi
4744
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747 $as_echo "$ac_cv_path_GREP" >&6; }
4748  GREP="$ac_cv_path_GREP"
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752 $as_echo_n "checking for egrep... " >&6; }
4753 if ${ac_cv_path_EGREP+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4757    then ac_cv_path_EGREP="$GREP -E"
4758    else
4759      if test -z "$EGREP"; then
4760   ac_path_EGREP_found=false
4761   # Loop through the user's path and test for each of PROGNAME-LIST
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767     for ac_prog in egrep; do
4768     for ac_exec_ext in '' $ac_executable_extensions; do
4769       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4770       as_fn_executable_p "$ac_path_EGREP" || continue
4771 # Check for GNU ac_path_EGREP and select it if it is found.
4772   # Check for GNU $ac_path_EGREP
4773 case `"$ac_path_EGREP" --version 2>&1` in
4774 *GNU*)
4775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4776 *)
4777   ac_count=0
4778   $as_echo_n 0123456789 >"conftest.in"
4779   while :
4780   do
4781     cat "conftest.in" "conftest.in" >"conftest.tmp"
4782     mv "conftest.tmp" "conftest.in"
4783     cp "conftest.in" "conftest.nl"
4784     $as_echo 'EGREP' >> "conftest.nl"
4785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787     as_fn_arith $ac_count + 1 && ac_count=$as_val
4788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789       # Best one so far, save it but keep looking for a better one
4790       ac_cv_path_EGREP="$ac_path_EGREP"
4791       ac_path_EGREP_max=$ac_count
4792     fi
4793     # 10*(2^10) chars as input seems more than enough
4794     test $ac_count -gt 10 && break
4795   done
4796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4798
4799       $ac_path_EGREP_found && break 3
4800     done
4801   done
4802   done
4803 IFS=$as_save_IFS
4804   if test -z "$ac_cv_path_EGREP"; then
4805     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4806   fi
4807 else
4808   ac_cv_path_EGREP=$EGREP
4809 fi
4810
4811    fi
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814 $as_echo "$ac_cv_path_EGREP" >&6; }
4815  EGREP="$ac_cv_path_EGREP"
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4819 $as_echo_n "checking for fgrep... " >&6; }
4820 if ${ac_cv_path_FGREP+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4824    then ac_cv_path_FGREP="$GREP -F"
4825    else
4826      if test -z "$FGREP"; then
4827   ac_path_FGREP_found=false
4828   # Loop through the user's path and test for each of PROGNAME-LIST
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_prog in fgrep; do
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4837       as_fn_executable_p "$ac_path_FGREP" || continue
4838 # Check for GNU ac_path_FGREP and select it if it is found.
4839   # Check for GNU $ac_path_FGREP
4840 case `"$ac_path_FGREP" --version 2>&1` in
4841 *GNU*)
4842   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4843 *)
4844   ac_count=0
4845   $as_echo_n 0123456789 >"conftest.in"
4846   while :
4847   do
4848     cat "conftest.in" "conftest.in" >"conftest.tmp"
4849     mv "conftest.tmp" "conftest.in"
4850     cp "conftest.in" "conftest.nl"
4851     $as_echo 'FGREP' >> "conftest.nl"
4852     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854     as_fn_arith $ac_count + 1 && ac_count=$as_val
4855     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4856       # Best one so far, save it but keep looking for a better one
4857       ac_cv_path_FGREP="$ac_path_FGREP"
4858       ac_path_FGREP_max=$ac_count
4859     fi
4860     # 10*(2^10) chars as input seems more than enough
4861     test $ac_count -gt 10 && break
4862   done
4863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864 esac
4865
4866       $ac_path_FGREP_found && break 3
4867     done
4868   done
4869   done
4870 IFS=$as_save_IFS
4871   if test -z "$ac_cv_path_FGREP"; then
4872     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873   fi
4874 else
4875   ac_cv_path_FGREP=$FGREP
4876 fi
4877
4878    fi
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4881 $as_echo "$ac_cv_path_FGREP" >&6; }
4882  FGREP="$ac_cv_path_FGREP"
4883
4884
4885 test -z "$GREP" && GREP=grep
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 # Check whether --with-gnu-ld was given.
4906 if test "${with_gnu_ld+set}" = set; then :
4907   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4908 else
4909   with_gnu_ld=no
4910 fi
4911
4912 ac_prog=ld
4913 if test yes = "$GCC"; then
4914   # Check if gcc -print-prog-name=ld gives a path.
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916 $as_echo_n "checking for ld used by $CC... " >&6; }
4917   case $host in
4918   *-*-mingw*)
4919     # gcc leaves a trailing carriage return, which upsets mingw
4920     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921   *)
4922     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4923   esac
4924   case $ac_prog in
4925     # Accept absolute paths.
4926     [\\/]* | ?:[\\/]*)
4927       re_direlt='/[^/][^/]*/\.\./'
4928       # Canonicalize the pathname of ld
4929       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4932       done
4933       test -z "$LD" && LD=$ac_prog
4934       ;;
4935   "")
4936     # If it fails, then pretend we aren't using GCC.
4937     ac_prog=ld
4938     ;;
4939   *)
4940     # If it is relative, then search for the first ld in PATH.
4941     with_gnu_ld=unknown
4942     ;;
4943   esac
4944 elif test yes = "$with_gnu_ld"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946 $as_echo_n "checking for GNU ld... " >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949 $as_echo_n "checking for non-GNU ld... " >&6; }
4950 fi
4951 if ${lt_cv_path_LD+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -z "$LD"; then
4955   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4956   for ac_dir in $PATH; do
4957     IFS=$lt_save_ifs
4958     test -z "$ac_dir" && ac_dir=.
4959     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960       lt_cv_path_LD=$ac_dir/$ac_prog
4961       # Check to see if the program is GNU ld.  I'd rather use --version,
4962       # but apparently some variants of GNU ld only accept -v.
4963       # Break only if it was the GNU/non-GNU ld that we prefer.
4964       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965       *GNU* | *'with BFD'*)
4966         test no != "$with_gnu_ld" && break
4967         ;;
4968       *)
4969         test yes != "$with_gnu_ld" && break
4970         ;;
4971       esac
4972     fi
4973   done
4974   IFS=$lt_save_ifs
4975 else
4976   lt_cv_path_LD=$LD # Let the user override the test with a path.
4977 fi
4978 fi
4979
4980 LD=$lt_cv_path_LD
4981 if test -n "$LD"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983 $as_echo "$LD" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991 if ${lt_cv_prog_gnu_ld+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4995 case `$LD -v 2>&1 </dev/null` in
4996 *GNU* | *'with BFD'*)
4997   lt_cv_prog_gnu_ld=yes
4998   ;;
4999 *)
5000   lt_cv_prog_gnu_ld=no
5001   ;;
5002 esac
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5006 with_gnu_ld=$lt_cv_prog_gnu_ld
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5017 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5018 if ${lt_cv_path_NM+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -n "$NM"; then
5022   # Let the user override the test.
5023   lt_cv_path_NM=$NM
5024 else
5025   lt_nm_to_check=${ac_tool_prefix}nm
5026   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5027     lt_nm_to_check="$lt_nm_to_check nm"
5028   fi
5029   for lt_tmp_nm in $lt_nm_to_check; do
5030     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5031     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5032       IFS=$lt_save_ifs
5033       test -z "$ac_dir" && ac_dir=.
5034       tmp_nm=$ac_dir/$lt_tmp_nm
5035       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5036         # Check to see if the nm accepts a BSD-compat flag.
5037         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5038         #   nm: unknown option "B" ignored
5039         # Tru64's nm complains that /dev/null is an invalid object file
5040         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5041         case $build_os in
5042         mingw*) lt_bad_file=conftest.nm/nofile ;;
5043         *) lt_bad_file=/dev/null ;;
5044         esac
5045         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5046         *$lt_bad_file* | *'Invalid file or object type'*)
5047           lt_cv_path_NM="$tmp_nm -B"
5048           break 2
5049           ;;
5050         *)
5051           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5052           */dev/null*)
5053             lt_cv_path_NM="$tmp_nm -p"
5054             break 2
5055             ;;
5056           *)
5057             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5058             continue # so that we can try to find one that supports BSD flags
5059             ;;
5060           esac
5061           ;;
5062         esac
5063       fi
5064     done
5065     IFS=$lt_save_ifs
5066   done
5067   : ${lt_cv_path_NM=no}
5068 fi
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5071 $as_echo "$lt_cv_path_NM" >&6; }
5072 if test no != "$lt_cv_path_NM"; then
5073   NM=$lt_cv_path_NM
5074 else
5075   # Didn't find any BSD compatible name lister, look for dumpbin.
5076   if test -n "$DUMPBIN"; then :
5077     # Let the user override the test.
5078   else
5079     if test -n "$ac_tool_prefix"; then
5080   for ac_prog in dumpbin "link -dump"
5081   do
5082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_prog_DUMPBIN+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   if test -n "$DUMPBIN"; then
5090   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 DUMPBIN=$ac_cv_prog_DUMPBIN
5110 if test -n "$DUMPBIN"; then
5111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5112 $as_echo "$DUMPBIN" >&6; }
5113 else
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118
5119     test -n "$DUMPBIN" && break
5120   done
5121 fi
5122 if test -z "$DUMPBIN"; then
5123   ac_ct_DUMPBIN=$DUMPBIN
5124   for ac_prog in dumpbin "link -dump"
5125 do
5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_DUMPBIN"; then
5134   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5154 if test -n "$ac_ct_DUMPBIN"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5156 $as_echo "$ac_ct_DUMPBIN" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162
5163   test -n "$ac_ct_DUMPBIN" && break
5164 done
5165
5166   if test "x$ac_ct_DUMPBIN" = x; then
5167     DUMPBIN=":"
5168   else
5169     case $cross_compiling:$ac_tool_warned in
5170 yes:)
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175     DUMPBIN=$ac_ct_DUMPBIN
5176   fi
5177 fi
5178
5179     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5180     *COFF*)
5181       DUMPBIN="$DUMPBIN -symbols -headers"
5182       ;;
5183     *)
5184       DUMPBIN=:
5185       ;;
5186     esac
5187   fi
5188
5189   if test : != "$DUMPBIN"; then
5190     NM=$DUMPBIN
5191   fi
5192 fi
5193 test -z "$NM" && NM=nm
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5201 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5202 if ${lt_cv_nm_interface+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   lt_cv_nm_interface="BSD nm"
5206   echo "int some_variable = 0;" > conftest.$ac_ext
5207   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5208   (eval "$ac_compile" 2>conftest.err)
5209   cat conftest.err >&5
5210   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5211   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5212   cat conftest.err >&5
5213   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5214   cat conftest.out >&5
5215   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5216     lt_cv_nm_interface="MS dumpbin"
5217   fi
5218   rm -f conftest*
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5221 $as_echo "$lt_cv_nm_interface" >&6; }
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5224 $as_echo_n "checking whether ln -s works... " >&6; }
5225 LN_S=$as_ln_s
5226 if test "$LN_S" = "ln -s"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5231 $as_echo "no, using $LN_S" >&6; }
5232 fi
5233
5234 # find the maximum length of command line arguments
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5236 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5237 if ${lt_cv_sys_max_cmd_len+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240     i=0
5241   teststring=ABCD
5242
5243   case $build_os in
5244   msdosdjgpp*)
5245     # On DJGPP, this test can blow up pretty badly due to problems in libc
5246     # (any single argument exceeding 2000 bytes causes a buffer overrun
5247     # during glob expansion).  Even if it were fixed, the result of this
5248     # check would be larger than it should be.
5249     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5250     ;;
5251
5252   gnu*)
5253     # Under GNU Hurd, this test is not required because there is
5254     # no limit to the length of command line arguments.
5255     # Libtool will interpret -1 as no limit whatsoever
5256     lt_cv_sys_max_cmd_len=-1;
5257     ;;
5258
5259   cygwin* | mingw* | cegcc*)
5260     # On Win9x/ME, this test blows up -- it succeeds, but takes
5261     # about 5 minutes as the teststring grows exponentially.
5262     # Worse, since 9x/ME are not pre-emptively multitasking,
5263     # you end up with a "frozen" computer, even though with patience
5264     # the test eventually succeeds (with a max line length of 256k).
5265     # Instead, let's just punt: use the minimum linelength reported by
5266     # all of the supported platforms: 8192 (on NT/2K/XP).
5267     lt_cv_sys_max_cmd_len=8192;
5268     ;;
5269
5270   mint*)
5271     # On MiNT this can take a long time and run out of memory.
5272     lt_cv_sys_max_cmd_len=8192;
5273     ;;
5274
5275   amigaos*)
5276     # On AmigaOS with pdksh, this test takes hours, literally.
5277     # So we just punt and use a minimum line length of 8192.
5278     lt_cv_sys_max_cmd_len=8192;
5279     ;;
5280
5281   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5282     # This has been around since 386BSD, at least.  Likely further.
5283     if test -x /sbin/sysctl; then
5284       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5285     elif test -x /usr/sbin/sysctl; then
5286       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5287     else
5288       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5289     fi
5290     # And add a safety zone
5291     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5292     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5293     ;;
5294
5295   interix*)
5296     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5297     lt_cv_sys_max_cmd_len=196608
5298     ;;
5299
5300   os2*)
5301     # The test takes a long time on OS/2.
5302     lt_cv_sys_max_cmd_len=8192
5303     ;;
5304
5305   osf*)
5306     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5307     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5308     # nice to cause kernel panics so lets avoid the loop below.
5309     # First set a reasonable default.
5310     lt_cv_sys_max_cmd_len=16384
5311     #
5312     if test -x /sbin/sysconfig; then
5313       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5314         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5315       esac
5316     fi
5317     ;;
5318   sco3.2v5*)
5319     lt_cv_sys_max_cmd_len=102400
5320     ;;
5321   sysv5* | sco5v6* | sysv4.2uw2*)
5322     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5323     if test -n "$kargmax"; then
5324       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5325     else
5326       lt_cv_sys_max_cmd_len=32768
5327     fi
5328     ;;
5329   *)
5330     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5331     if test -n "$lt_cv_sys_max_cmd_len" && \
5332        test undefined != "$lt_cv_sys_max_cmd_len"; then
5333       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335     else
5336       # Make teststring a little bigger before we do anything with it.
5337       # a 1K string should be a reasonable start.
5338       for i in 1 2 3 4 5 6 7 8; do
5339         teststring=$teststring$teststring
5340       done
5341       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5342       # If test is not a shell built-in, we'll probably end up computing a
5343       # maximum length that is only half of the actual maximum length, but
5344       # we can't tell.
5345       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5346                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5347               test 17 != "$i" # 1/2 MB should be enough
5348       do
5349         i=`expr $i + 1`
5350         teststring=$teststring$teststring
5351       done
5352       # Only check the string length outside the loop.
5353       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5354       teststring=
5355       # Add a significant safety factor because C++ compilers can tack on
5356       # massive amounts of additional arguments before passing them to the
5357       # linker.  It appears as though 1/2 is a usable value.
5358       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5359     fi
5360     ;;
5361   esac
5362
5363 fi
5364
5365 if test -n "$lt_cv_sys_max_cmd_len"; then
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5367 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5368 else
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5370 $as_echo "none" >&6; }
5371 fi
5372 max_cmd_len=$lt_cv_sys_max_cmd_len
5373
5374
5375
5376
5377
5378
5379 : ${CP="cp -f"}
5380 : ${MV="mv -f"}
5381 : ${RM="rm -f"}
5382
5383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5384   lt_unset=unset
5385 else
5386   lt_unset=false
5387 fi
5388
5389
5390
5391
5392
5393 # test EBCDIC or ASCII
5394 case `echo X|tr X '\101'` in
5395  A) # ASCII based system
5396     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5397   lt_SP2NL='tr \040 \012'
5398   lt_NL2SP='tr \015\012 \040\040'
5399   ;;
5400  *) # EBCDIC based system
5401   lt_SP2NL='tr \100 \n'
5402   lt_NL2SP='tr \r\n \100\100'
5403   ;;
5404 esac
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5415 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5416 if ${lt_cv_to_host_file_cmd+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   case $host in
5420   *-*-mingw* )
5421     case $build in
5422       *-*-mingw* ) # actually msys
5423         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5424         ;;
5425       *-*-cygwin* )
5426         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5427         ;;
5428       * ) # otherwise, assume *nix
5429         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5430         ;;
5431     esac
5432     ;;
5433   *-*-cygwin* )
5434     case $build in
5435       *-*-mingw* ) # actually msys
5436         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5437         ;;
5438       *-*-cygwin* )
5439         lt_cv_to_host_file_cmd=func_convert_file_noop
5440         ;;
5441       * ) # otherwise, assume *nix
5442         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5443         ;;
5444     esac
5445     ;;
5446   * ) # unhandled hosts (and "normal" native builds)
5447     lt_cv_to_host_file_cmd=func_convert_file_noop
5448     ;;
5449 esac
5450
5451 fi
5452
5453 to_host_file_cmd=$lt_cv_to_host_file_cmd
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5455 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5456
5457
5458
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5462 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5463 if ${lt_cv_to_tool_file_cmd+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   #assume ordinary cross tools, or native build.
5467 lt_cv_to_tool_file_cmd=func_convert_file_noop
5468 case $host in
5469   *-*-mingw* )
5470     case $build in
5471       *-*-mingw* ) # actually msys
5472         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5473         ;;
5474     esac
5475     ;;
5476 esac
5477
5478 fi
5479
5480 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5482 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5490 if ${lt_cv_ld_reload_flag+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   lt_cv_ld_reload_flag='-r'
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5497 reload_flag=$lt_cv_ld_reload_flag
5498 case $reload_flag in
5499 "" | " "*) ;;
5500 *) reload_flag=" $reload_flag" ;;
5501 esac
5502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5503 case $host_os in
5504   cygwin* | mingw* | pw32* | cegcc*)
5505     if test yes != "$GCC"; then
5506       reload_cmds=false
5507     fi
5508     ;;
5509   darwin*)
5510     if test yes = "$GCC"; then
5511       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5512     else
5513       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514     fi
5515     ;;
5516 esac
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 if test -n "$ac_tool_prefix"; then
5527   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   if test -n "$OBJDUMP"; then
5535   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566   ac_ct_OBJDUMP=$OBJDUMP
5567   # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if test -n "$ac_ct_OBJDUMP"; then
5575   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603   if test "x$ac_ct_OBJDUMP" = x; then
5604     OBJDUMP="false"
5605   else
5606     case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612     OBJDUMP=$ac_ct_OBJDUMP
5613   fi
5614 else
5615   OBJDUMP="$ac_cv_prog_OBJDUMP"
5616 fi
5617
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # 'unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # that responds to the $file_magic_cmd with a given extended regex.
5644 # If you have 'file' or equivalent on your system and you're not sure
5645 # whether 'pass_all' will *always* work, you probably want this one.
5646
5647 case $host_os in
5648 aix[4-9]*)
5649   lt_cv_deplibs_check_method=pass_all
5650   ;;
5651
5652 beos*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655
5656 bsdi[45]*)
5657   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658   lt_cv_file_magic_cmd='/usr/bin/file -L'
5659   lt_cv_file_magic_test_file=/shlib/libc.so
5660   ;;
5661
5662 cygwin*)
5663   # func_win32_libid is a shell function defined in ltmain.sh
5664   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665   lt_cv_file_magic_cmd='func_win32_libid'
5666   ;;
5667
5668 mingw* | pw32*)
5669   # Base MSYS/MinGW do not provide the 'file' command needed by
5670   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671   # unless we find 'file', for example because we are cross-compiling.
5672   if ( file / ) >/dev/null 2>&1; then
5673     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5674     lt_cv_file_magic_cmd='func_win32_libid'
5675   else
5676     # Keep this pattern in sync with the one in func_win32_libid.
5677     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5678     lt_cv_file_magic_cmd='$OBJDUMP -f'
5679   fi
5680   ;;
5681
5682 cegcc*)
5683   # use the weaker test based on 'objdump'. See mingw*.
5684   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5685   lt_cv_file_magic_cmd='$OBJDUMP -f'
5686   ;;
5687
5688 darwin* | rhapsody*)
5689   lt_cv_deplibs_check_method=pass_all
5690   ;;
5691
5692 freebsd* | dragonfly*)
5693   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5694     case $host_cpu in
5695     i*86 )
5696       # Not sure whether the presence of OpenBSD here was a mistake.
5697       # Let's accept both of them until this is cleared up.
5698       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5699       lt_cv_file_magic_cmd=/usr/bin/file
5700       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5701       ;;
5702     esac
5703   else
5704     lt_cv_deplibs_check_method=pass_all
5705   fi
5706   ;;
5707
5708 haiku*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 hpux10.20* | hpux11*)
5713   lt_cv_file_magic_cmd=/usr/bin/file
5714   case $host_cpu in
5715   ia64*)
5716     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5717     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5718     ;;
5719   hppa*64*)
5720     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]'
5721     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5722     ;;
5723   *)
5724     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5725     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5726     ;;
5727   esac
5728   ;;
5729
5730 interix[3-9]*)
5731   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5732   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5733   ;;
5734
5735 irix5* | irix6* | nonstopux*)
5736   case $LD in
5737   *-32|*"-32 ") libmagic=32-bit;;
5738   *-n32|*"-n32 ") libmagic=N32;;
5739   *-64|*"-64 ") libmagic=64-bit;;
5740   *) libmagic=never-match;;
5741   esac
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 # This must be glibc/ELF.
5746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 netbsd*)
5751   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5753   else
5754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5755   fi
5756   ;;
5757
5758 newos6*)
5759   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5760   lt_cv_file_magic_cmd=/usr/bin/file
5761   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5762   ;;
5763
5764 *nto* | *qnx*)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 openbsd* | bitrig*)
5769   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5770     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5771   else
5772     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5773   fi
5774   ;;
5775
5776 osf3* | osf4* | osf5*)
5777   lt_cv_deplibs_check_method=pass_all
5778   ;;
5779
5780 rdos*)
5781   lt_cv_deplibs_check_method=pass_all
5782   ;;
5783
5784 solaris*)
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5789   lt_cv_deplibs_check_method=pass_all
5790   ;;
5791
5792 sysv4 | sysv4.3*)
5793   case $host_vendor in
5794   motorola)
5795     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]'
5796     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5797     ;;
5798   ncr)
5799     lt_cv_deplibs_check_method=pass_all
5800     ;;
5801   sequent)
5802     lt_cv_file_magic_cmd='/bin/file'
5803     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5804     ;;
5805   sni)
5806     lt_cv_file_magic_cmd='/bin/file'
5807     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5808     lt_cv_file_magic_test_file=/lib/libc.so
5809     ;;
5810   siemens)
5811     lt_cv_deplibs_check_method=pass_all
5812     ;;
5813   pc)
5814     lt_cv_deplibs_check_method=pass_all
5815     ;;
5816   esac
5817   ;;
5818
5819 tpf*)
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822 os2*)
5823   lt_cv_deplibs_check_method=pass_all
5824   ;;
5825 esac
5826
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5829 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5830
5831 file_magic_glob=
5832 want_nocaseglob=no
5833 if test "$build" = "$host"; then
5834   case $host_os in
5835   mingw* | pw32*)
5836     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5837       want_nocaseglob=yes
5838     else
5839       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5840     fi
5841     ;;
5842   esac
5843 fi
5844
5845 file_magic_cmd=$lt_cv_file_magic_cmd
5846 deplibs_check_method=$lt_cv_deplibs_check_method
5847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_DLLTOOL+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   if test -n "$DLLTOOL"; then
5879   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886     for ac_exec_ext in '' $ac_executable_extensions; do
5887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893   done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 DLLTOOL=$ac_cv_prog_DLLTOOL
5899 if test -n "$DLLTOOL"; then
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5901 $as_echo "$DLLTOOL" >&6; }
5902 else
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907
5908 fi
5909 if test -z "$ac_cv_prog_DLLTOOL"; then
5910   ac_ct_DLLTOOL=$DLLTOOL
5911   # Extract the first word of "dlltool", so it can be a program name with args.
5912 set dummy dlltool; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$ac_ct_DLLTOOL"; then
5919   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926     for ac_exec_ext in '' $ac_executable_extensions; do
5927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933   done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5939 if test -n "$ac_ct_DLLTOOL"; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5941 $as_echo "$ac_ct_DLLTOOL" >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947   if test "x$ac_ct_DLLTOOL" = x; then
5948     DLLTOOL="false"
5949   else
5950     case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956     DLLTOOL=$ac_ct_DLLTOOL
5957   fi
5958 else
5959   DLLTOOL="$ac_cv_prog_DLLTOOL"
5960 fi
5961
5962 test -z "$DLLTOOL" && DLLTOOL=dlltool
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5974 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5975 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5976   $as_echo_n "(cached) " >&6
5977 else
5978   lt_cv_sharedlib_from_linklib_cmd='unknown'
5979
5980 case $host_os in
5981 cygwin* | mingw* | pw32* | cegcc*)
5982   # two different shell functions defined in ltmain.sh;
5983   # decide which one to use based on capabilities of $DLLTOOL
5984   case `$DLLTOOL --help 2>&1` in
5985   *--identify-strict*)
5986     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5987     ;;
5988   *)
5989     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5990     ;;
5991   esac
5992   ;;
5993 *)
5994   # fallback: assume linklib IS sharedlib
5995   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5996   ;;
5997 esac
5998
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6001 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6002 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6003 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6004
6005
6006
6007
6008
6009
6010
6011 if test -n "$ac_tool_prefix"; then
6012   for ac_prog in ar
6013   do
6014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_AR+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   if test -n "$AR"; then
6022   ac_cv_prog_AR="$AR" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029     for ac_exec_ext in '' $ac_executable_extensions; do
6030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036   done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 AR=$ac_cv_prog_AR
6042 if test -n "$AR"; then
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6044 $as_echo "$AR" >&6; }
6045 else
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051     test -n "$AR" && break
6052   done
6053 fi
6054 if test -z "$AR"; then
6055   ac_ct_AR=$AR
6056   for ac_prog in ar
6057 do
6058   # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   if test -n "$ac_ct_AR"; then
6066   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073     for ac_exec_ext in '' $ac_executable_extensions; do
6074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075     ac_cv_prog_ac_ct_AR="$ac_prog"
6076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080   done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6086 if test -n "$ac_ct_AR"; then
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6088 $as_echo "$ac_ct_AR" >&6; }
6089 else
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094
6095   test -n "$ac_ct_AR" && break
6096 done
6097
6098   if test "x$ac_ct_AR" = x; then
6099     AR="false"
6100   else
6101     case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107     AR=$ac_ct_AR
6108   fi
6109 fi
6110
6111 : ${AR=ar}
6112 : ${AR_FLAGS=cru}
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6125 $as_echo_n "checking for archiver @FILE support... " >&6; }
6126 if ${lt_cv_ar_at_file+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   lt_cv_ar_at_file=no
6130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132
6133 int
6134 main ()
6135 {
6136
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142   echo conftest.$ac_objext > conftest.lst
6143       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6144       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6145   (eval $lt_ar_try) 2>&5
6146   ac_status=$?
6147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148   test $ac_status = 0; }
6149       if test 0 -eq "$ac_status"; then
6150         # Ensure the archiver fails upon bogus file names.
6151         rm -f conftest.$ac_objext libconftest.a
6152         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6153   (eval $lt_ar_try) 2>&5
6154   ac_status=$?
6155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156   test $ac_status = 0; }
6157         if test 0 -ne "$ac_status"; then
6158           lt_cv_ar_at_file=@
6159         fi
6160       fi
6161       rm -f conftest.* libconftest.a
6162
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6168 $as_echo "$lt_cv_ar_at_file" >&6; }
6169
6170 if test no = "$lt_cv_ar_at_file"; then
6171   archiver_list_spec=
6172 else
6173   archiver_list_spec=$lt_cv_ar_at_file
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182 if test -n "$ac_tool_prefix"; then
6183   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}strip; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_STRIP+:} false; then :
6188   $as_echo_n "(cached) " >&6
6189 else
6190   if test -n "$STRIP"; then
6191   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198     for ac_exec_ext in '' $ac_executable_extensions; do
6199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205   done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 STRIP=$ac_cv_prog_STRIP
6211 if test -n "$STRIP"; then
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6213 $as_echo "$STRIP" >&6; }
6214 else
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_STRIP"; then
6222   ac_ct_STRIP=$STRIP
6223   # Extract the first word of "strip", so it can be a program name with args.
6224 set dummy strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$ac_ct_STRIP"; then
6231   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240     ac_cv_prog_ac_ct_STRIP="strip"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6251 if test -n "$ac_ct_STRIP"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6253 $as_echo "$ac_ct_STRIP" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259   if test "x$ac_ct_STRIP" = x; then
6260     STRIP=":"
6261   else
6262     case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268     STRIP=$ac_ct_STRIP
6269   fi
6270 else
6271   STRIP="$ac_cv_prog_STRIP"
6272 fi
6273
6274 test -z "$STRIP" && STRIP=:
6275
6276
6277
6278
6279
6280
6281 if test -n "$ac_tool_prefix"; then
6282   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_RANLIB+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   if test -n "$RANLIB"; then
6290   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 RANLIB=$ac_cv_prog_RANLIB
6310 if test -n "$RANLIB"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6312 $as_echo "$RANLIB" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 fi
6320 if test -z "$ac_cv_prog_RANLIB"; then
6321   ac_ct_RANLIB=$RANLIB
6322   # Extract the first word of "ranlib", so it can be a program name with args.
6323 set dummy ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$ac_ct_RANLIB"; then
6330   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339     ac_cv_prog_ac_ct_RANLIB="ranlib"
6340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344   done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6350 if test -n "$ac_ct_RANLIB"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6352 $as_echo "$ac_ct_RANLIB" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358   if test "x$ac_ct_RANLIB" = x; then
6359     RANLIB=":"
6360   else
6361     case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367     RANLIB=$ac_ct_RANLIB
6368   fi
6369 else
6370   RANLIB="$ac_cv_prog_RANLIB"
6371 fi
6372
6373 test -z "$RANLIB" && RANLIB=:
6374
6375
6376
6377
6378
6379
6380 # Determine commands to create old-style static archives.
6381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6382 old_postinstall_cmds='chmod 644 $oldlib'
6383 old_postuninstall_cmds=
6384
6385 if test -n "$RANLIB"; then
6386   case $host_os in
6387   bitrig* | openbsd*)
6388     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6389     ;;
6390   *)
6391     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6392     ;;
6393   esac
6394   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6395 fi
6396
6397 case $host_os in
6398   darwin*)
6399     lock_old_archive_extraction=yes ;;
6400   *)
6401     lock_old_archive_extraction=no ;;
6402 esac
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 # If no C compiler was specified, use CC.
6443 LTCC=${LTCC-"$CC"}
6444
6445 # If no C compiler flags were specified, use CFLAGS.
6446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6447
6448 # Allow CC to be a program name with arguments.
6449 compiler=$CC
6450
6451
6452 # Check for command to grab the raw symbol name followed by C symbol from nm.
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6454 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6455 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458
6459 # These are sane defaults that work on at least a few old systems.
6460 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6461
6462 # Character class describing NM global symbol codes.
6463 symcode='[BCDEGRST]'
6464
6465 # Regexp to match symbols that can be accessed directly from C.
6466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6467
6468 # Define system-specific variables.
6469 case $host_os in
6470 aix*)
6471   symcode='[BCDT]'
6472   ;;
6473 cygwin* | mingw* | pw32* | cegcc*)
6474   symcode='[ABCDGISTW]'
6475   ;;
6476 hpux*)
6477   if test ia64 = "$host_cpu"; then
6478     symcode='[ABCDEGRST]'
6479   fi
6480   ;;
6481 irix* | nonstopux*)
6482   symcode='[BCDEGRST]'
6483   ;;
6484 osf*)
6485   symcode='[BCDEGQRST]'
6486   ;;
6487 solaris*)
6488   symcode='[BDRT]'
6489   ;;
6490 sco3.2v5*)
6491   symcode='[DT]'
6492   ;;
6493 sysv4.2uw2*)
6494   symcode='[DT]'
6495   ;;
6496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6497   symcode='[ABDT]'
6498   ;;
6499 sysv4)
6500   symcode='[DFNSTU]'
6501   ;;
6502 esac
6503
6504 # If we're using GNU nm, then use its standard symbol codes.
6505 case `$NM -V 2>&1` in
6506 *GNU* | *'with BFD'*)
6507   symcode='[ABCDGIRSTW]' ;;
6508 esac
6509
6510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6511   # Gets list of data symbols to import.
6512   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6513   # Adjust the below global symbol transforms to fixup imported variables.
6514   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6515   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6516   lt_c_name_lib_hook="\
6517   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6518   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6519 else
6520   # Disable hooks by default.
6521   lt_cv_sys_global_symbol_to_import=
6522   lt_cdecl_hook=
6523   lt_c_name_hook=
6524   lt_c_name_lib_hook=
6525 fi
6526
6527 # Transform an extracted symbol line into a proper C declaration.
6528 # Some systems (esp. on ia64) link data and code symbols differently,
6529 # so use this general approach.
6530 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6531 $lt_cdecl_hook\
6532 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6533 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6534
6535 # Transform an extracted symbol line into symbol name and symbol address
6536 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6537 $lt_c_name_hook\
6538 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6539 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6540
6541 # Transform an extracted symbol line into symbol name with lib prefix and
6542 # symbol address.
6543 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6544 $lt_c_name_lib_hook\
6545 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6546 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6547 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6548
6549 # Handle CRLF in mingw tool chain
6550 opt_cr=
6551 case $build_os in
6552 mingw*)
6553   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6554   ;;
6555 esac
6556
6557 # Try without a prefix underscore, then with it.
6558 for ac_symprfx in "" "_"; do
6559
6560   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6561   symxfrm="\\1 $ac_symprfx\\2 \\2"
6562
6563   # Write the raw and C identifiers.
6564   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565     # Fake it for dumpbin and say T for any non-static function,
6566     # D for any global variable and I for any imported variable.
6567     # Also find C++ and __fastcall symbols from MSVC++,
6568     # which start with @ or ?.
6569     lt_cv_sys_global_symbol_pipe="$AWK '"\
6570 "     {last_section=section; section=\$ 3};"\
6571 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6572 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6573 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6574 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6575 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6576 "     \$ 0!~/External *\|/{next};"\
6577 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6578 "     {if(hide[section]) next};"\
6579 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6580 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6581 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6582 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6583 "     ' prfx=^$ac_symprfx"
6584   else
6585     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6586   fi
6587   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6588
6589   # Check to see that the pipe works correctly.
6590   pipe_works=no
6591
6592   rm -f conftest*
6593   cat > conftest.$ac_ext <<_LT_EOF
6594 #ifdef __cplusplus
6595 extern "C" {
6596 #endif
6597 char nm_test_var;
6598 void nm_test_func(void);
6599 void nm_test_func(void){}
6600 #ifdef __cplusplus
6601 }
6602 #endif
6603 int main(){nm_test_var='a';nm_test_func();return(0);}
6604 _LT_EOF
6605
6606   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607   (eval $ac_compile) 2>&5
6608   ac_status=$?
6609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610   test $ac_status = 0; }; then
6611     # Now try to grab the symbols.
6612     nlist=conftest.nm
6613     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6614   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6615   ac_status=$?
6616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617   test $ac_status = 0; } && test -s "$nlist"; then
6618       # Try sorting and uniquifying the output.
6619       if sort "$nlist" | uniq > "$nlist"T; then
6620         mv -f "$nlist"T "$nlist"
6621       else
6622         rm -f "$nlist"T
6623       fi
6624
6625       # Make sure that we snagged all the symbols we need.
6626       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6627         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6628           cat <<_LT_EOF > conftest.$ac_ext
6629 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6630 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6631 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6632    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6633 # define LT_DLSYM_CONST
6634 #elif defined __osf__
6635 /* This system does not cope well with relocations in const data.  */
6636 # define LT_DLSYM_CONST
6637 #else
6638 # define LT_DLSYM_CONST const
6639 #endif
6640
6641 #ifdef __cplusplus
6642 extern "C" {
6643 #endif
6644
6645 _LT_EOF
6646           # Now generate the symbol file.
6647           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6648
6649           cat <<_LT_EOF >> conftest.$ac_ext
6650
6651 /* The mapping between symbol names and symbols.  */
6652 LT_DLSYM_CONST struct {
6653   const char *name;
6654   void       *address;
6655 }
6656 lt__PROGRAM__LTX_preloaded_symbols[] =
6657 {
6658   { "@PROGRAM@", (void *) 0 },
6659 _LT_EOF
6660           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6661           cat <<\_LT_EOF >> conftest.$ac_ext
6662   {0, (void *) 0}
6663 };
6664
6665 /* This works around a problem in FreeBSD linker */
6666 #ifdef FREEBSD_WORKAROUND
6667 static const void *lt_preloaded_setup() {
6668   return lt__PROGRAM__LTX_preloaded_symbols;
6669 }
6670 #endif
6671
6672 #ifdef __cplusplus
6673 }
6674 #endif
6675 _LT_EOF
6676           # Now try linking the two files.
6677           mv conftest.$ac_objext conftstm.$ac_objext
6678           lt_globsym_save_LIBS=$LIBS
6679           lt_globsym_save_CFLAGS=$CFLAGS
6680           LIBS=conftstm.$ac_objext
6681           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6682           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6683   (eval $ac_link) 2>&5
6684   ac_status=$?
6685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6687             pipe_works=yes
6688           fi
6689           LIBS=$lt_globsym_save_LIBS
6690           CFLAGS=$lt_globsym_save_CFLAGS
6691         else
6692           echo "cannot find nm_test_func in $nlist" >&5
6693         fi
6694       else
6695         echo "cannot find nm_test_var in $nlist" >&5
6696       fi
6697     else
6698       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6699     fi
6700   else
6701     echo "$progname: failed program was:" >&5
6702     cat conftest.$ac_ext >&5
6703   fi
6704   rm -rf conftest* conftst*
6705
6706   # Do not use the global_symbol_pipe unless it works.
6707   if test yes = "$pipe_works"; then
6708     break
6709   else
6710     lt_cv_sys_global_symbol_pipe=
6711   fi
6712 done
6713
6714 fi
6715
6716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6717   lt_cv_sys_global_symbol_to_cdecl=
6718 fi
6719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6721 $as_echo "failed" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6724 $as_echo "ok" >&6; }
6725 fi
6726
6727 # Response file support.
6728 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6729   nm_file_list_spec='@'
6730 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6731   nm_file_list_spec='@'
6732 fi
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6771 $as_echo_n "checking for sysroot... " >&6; }
6772
6773 # Check whether --with-sysroot was given.
6774 if test "${with_sysroot+set}" = set; then :
6775   withval=$with_sysroot;
6776 else
6777   with_sysroot=no
6778 fi
6779
6780
6781 lt_sysroot=
6782 case $with_sysroot in #(
6783  yes)
6784    if test yes = "$GCC"; then
6785      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6786    fi
6787    ;; #(
6788  /*)
6789    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6790    ;; #(
6791  no|'')
6792    ;; #(
6793  *)
6794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6795 $as_echo "$with_sysroot" >&6; }
6796    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6797    ;;
6798 esac
6799
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6801 $as_echo "${lt_sysroot:-no}" >&6; }
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6808 $as_echo_n "checking for a working dd... " >&6; }
6809 if ${ac_cv_path_lt_DD+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   printf 0123456789abcdef0123456789abcdef >conftest.i
6813 cat conftest.i conftest.i >conftest2.i
6814 : ${lt_DD:=$DD}
6815 if test -z "$lt_DD"; then
6816   ac_path_lt_DD_found=false
6817   # Loop through the user's path and test for each of PROGNAME-LIST
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_prog in dd; do
6824     for ac_exec_ext in '' $ac_executable_extensions; do
6825       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6826       as_fn_executable_p "$ac_path_lt_DD" || continue
6827 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6828   cmp -s conftest.i conftest.out \
6829   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6830 fi
6831       $ac_path_lt_DD_found && break 3
6832     done
6833   done
6834   done
6835 IFS=$as_save_IFS
6836   if test -z "$ac_cv_path_lt_DD"; then
6837     :
6838   fi
6839 else
6840   ac_cv_path_lt_DD=$lt_DD
6841 fi
6842
6843 rm -f conftest.i conftest2.i conftest.out
6844 fi
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6846 $as_echo "$ac_cv_path_lt_DD" >&6; }
6847
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6850 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6851 if ${lt_cv_truncate_bin+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   printf 0123456789abcdef0123456789abcdef >conftest.i
6855 cat conftest.i conftest.i >conftest2.i
6856 lt_cv_truncate_bin=
6857 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6858   cmp -s conftest.i conftest.out \
6859   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6860 fi
6861 rm -f conftest.i conftest2.i conftest.out
6862 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6863 fi
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6865 $as_echo "$lt_cv_truncate_bin" >&6; }
6866
6867
6868
6869
6870
6871
6872
6873 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6874 func_cc_basename ()
6875 {
6876     for cc_temp in $*""; do
6877       case $cc_temp in
6878         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6879         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880         \-*) ;;
6881         *) break;;
6882       esac
6883     done
6884     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6885 }
6886
6887 # Check whether --enable-libtool-lock was given.
6888 if test "${enable_libtool_lock+set}" = set; then :
6889   enableval=$enable_libtool_lock;
6890 fi
6891
6892 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6893
6894 # Some flags need to be propagated to the compiler or linker for good
6895 # libtool support.
6896 case $host in
6897 ia64-*-hpux*)
6898   # Find out what ABI is being produced by ac_compile, and set mode
6899   # options accordingly.
6900   echo 'int i;' > conftest.$ac_ext
6901   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905   test $ac_status = 0; }; then
6906     case `/usr/bin/file conftest.$ac_objext` in
6907       *ELF-32*)
6908         HPUX_IA64_MODE=32
6909         ;;
6910       *ELF-64*)
6911         HPUX_IA64_MODE=64
6912         ;;
6913     esac
6914   fi
6915   rm -rf conftest*
6916   ;;
6917 *-*-irix6*)
6918   # Find out what ABI is being produced by ac_compile, and set linker
6919   # options accordingly.
6920   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6921   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922   (eval $ac_compile) 2>&5
6923   ac_status=$?
6924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925   test $ac_status = 0; }; then
6926     if test yes = "$lt_cv_prog_gnu_ld"; then
6927       case `/usr/bin/file conftest.$ac_objext` in
6928         *32-bit*)
6929           LD="${LD-ld} -melf32bsmip"
6930           ;;
6931         *N32*)
6932           LD="${LD-ld} -melf32bmipn32"
6933           ;;
6934         *64-bit*)
6935           LD="${LD-ld} -melf64bmip"
6936         ;;
6937       esac
6938     else
6939       case `/usr/bin/file conftest.$ac_objext` in
6940         *32-bit*)
6941           LD="${LD-ld} -32"
6942           ;;
6943         *N32*)
6944           LD="${LD-ld} -n32"
6945           ;;
6946         *64-bit*)
6947           LD="${LD-ld} -64"
6948           ;;
6949       esac
6950     fi
6951   fi
6952   rm -rf conftest*
6953   ;;
6954
6955 mips64*-*linux*)
6956   # Find out what ABI is being produced by ac_compile, and set linker
6957   # options accordingly.
6958   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6959   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6960   (eval $ac_compile) 2>&5
6961   ac_status=$?
6962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963   test $ac_status = 0; }; then
6964     emul=elf
6965     case `/usr/bin/file conftest.$ac_objext` in
6966       *32-bit*)
6967         emul="${emul}32"
6968         ;;
6969       *64-bit*)
6970         emul="${emul}64"
6971         ;;
6972     esac
6973     case `/usr/bin/file conftest.$ac_objext` in
6974       *MSB*)
6975         emul="${emul}btsmip"
6976         ;;
6977       *LSB*)
6978         emul="${emul}ltsmip"
6979         ;;
6980     esac
6981     case `/usr/bin/file conftest.$ac_objext` in
6982       *N32*)
6983         emul="${emul}n32"
6984         ;;
6985     esac
6986     LD="${LD-ld} -m $emul"
6987   fi
6988   rm -rf conftest*
6989   ;;
6990
6991 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6992 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6993   # Find out what ABI is being produced by ac_compile, and set linker
6994   # options accordingly.  Note that the listed cases only cover the
6995   # situations where additional linker options are needed (such as when
6996   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6997   # vice versa); the common cases where no linker options are needed do
6998   # not appear in the list.
6999   echo 'int i;' > conftest.$ac_ext
7000   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004   test $ac_status = 0; }; then
7005     case `/usr/bin/file conftest.o` in
7006       *32-bit*)
7007         case $host in
7008           x86_64-*kfreebsd*-gnu)
7009             LD="${LD-ld} -m elf_i386_fbsd"
7010             ;;
7011           x86_64-*linux*)
7012             case `/usr/bin/file conftest.o` in
7013               *x86-64*)
7014                 LD="${LD-ld} -m elf32_x86_64"
7015                 ;;
7016               *)
7017                 LD="${LD-ld} -m elf_i386"
7018                 ;;
7019             esac
7020             ;;
7021           powerpc64le-*linux*)
7022             LD="${LD-ld} -m elf32lppclinux"
7023             ;;
7024           powerpc64-*linux*)
7025             LD="${LD-ld} -m elf32ppclinux"
7026             ;;
7027           s390x-*linux*)
7028             LD="${LD-ld} -m elf_s390"
7029             ;;
7030           sparc64-*linux*)
7031             LD="${LD-ld} -m elf32_sparc"
7032             ;;
7033         esac
7034         ;;
7035       *64-bit*)
7036         case $host in
7037           x86_64-*kfreebsd*-gnu)
7038             LD="${LD-ld} -m elf_x86_64_fbsd"
7039             ;;
7040           x86_64-*linux*)
7041             LD="${LD-ld} -m elf_x86_64"
7042             ;;
7043           powerpcle-*linux*)
7044             LD="${LD-ld} -m elf64lppc"
7045             ;;
7046           powerpc-*linux*)
7047             LD="${LD-ld} -m elf64ppc"
7048             ;;
7049           s390*-*linux*|s390*-*tpf*)
7050             LD="${LD-ld} -m elf64_s390"
7051             ;;
7052           sparc*-*linux*)
7053             LD="${LD-ld} -m elf64_sparc"
7054             ;;
7055         esac
7056         ;;
7057     esac
7058   fi
7059   rm -rf conftest*
7060   ;;
7061
7062 *-*-sco3.2v5*)
7063   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7064   SAVE_CFLAGS=$CFLAGS
7065   CFLAGS="$CFLAGS -belf"
7066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7068 if ${lt_cv_cc_needs_belf+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076
7077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h.  */
7079
7080 int
7081 main ()
7082 {
7083
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089   lt_cv_cc_needs_belf=yes
7090 else
7091   lt_cv_cc_needs_belf=no
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext \
7094     conftest$ac_exeext conftest.$ac_ext
7095      ac_ext=c
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7103 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7104   if test yes != "$lt_cv_cc_needs_belf"; then
7105     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7106     CFLAGS=$SAVE_CFLAGS
7107   fi
7108   ;;
7109 *-*solaris*)
7110   # Find out what ABI is being produced by ac_compile, and set linker
7111   # options accordingly.
7112   echo 'int i;' > conftest.$ac_ext
7113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7114   (eval $ac_compile) 2>&5
7115   ac_status=$?
7116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7117   test $ac_status = 0; }; then
7118     case `/usr/bin/file conftest.o` in
7119     *64-bit*)
7120       case $lt_cv_prog_gnu_ld in
7121       yes*)
7122         case $host in
7123         i?86-*-solaris*|x86_64-*-solaris*)
7124           LD="${LD-ld} -m elf_x86_64"
7125           ;;
7126         sparc*-*-solaris*)
7127           LD="${LD-ld} -m elf64_sparc"
7128           ;;
7129         esac
7130         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7131         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7132           LD=${LD-ld}_sol2
7133         fi
7134         ;;
7135       *)
7136         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7137           LD="${LD-ld} -64"
7138         fi
7139         ;;
7140       esac
7141       ;;
7142     esac
7143   fi
7144   rm -rf conftest*
7145   ;;
7146 esac
7147
7148 need_locks=$enable_libtool_lock
7149
7150 if test -n "$ac_tool_prefix"; then
7151   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}mt; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   if test -n "$MANIFEST_TOOL"; then
7159   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     for ac_exec_ext in '' $ac_executable_extensions; do
7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7168     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173   done
7174 IFS=$as_save_IFS
7175
7176 fi
7177 fi
7178 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7179 if test -n "$MANIFEST_TOOL"; then
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7181 $as_echo "$MANIFEST_TOOL" >&6; }
7182 else
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7185 fi
7186
7187
7188 fi
7189 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7190   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7191   # Extract the first word of "mt", so it can be a program name with args.
7192 set dummy mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   if test -n "$ac_ct_MANIFEST_TOOL"; then
7199   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206     for ac_exec_ext in '' $ac_executable_extensions; do
7207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213   done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7219 if test -n "$ac_ct_MANIFEST_TOOL"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7221 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7228     MANIFEST_TOOL=":"
7229   else
7230     case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7237   fi
7238 else
7239   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7240 fi
7241
7242 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7244 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7245 if ${lt_cv_path_mainfest_tool+:} false; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   lt_cv_path_mainfest_tool=no
7249   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7250   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7251   cat conftest.err >&5
7252   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7253     lt_cv_path_mainfest_tool=yes
7254   fi
7255   rm -f conftest*
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7258 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7259 if test yes != "$lt_cv_path_mainfest_tool"; then
7260   MANIFEST_TOOL=:
7261 fi
7262
7263
7264
7265
7266
7267
7268   case $host_os in
7269     rhapsody* | darwin*)
7270     if test -n "$ac_tool_prefix"; then
7271   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7276   $as_echo_n "(cached) " >&6
7277 else
7278   if test -n "$DSYMUTIL"; then
7279   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284   IFS=$as_save_IFS
7285   test -z "$as_dir" && as_dir=.
7286     for ac_exec_ext in '' $ac_executable_extensions; do
7287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293   done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7299 if test -n "$DSYMUTIL"; then
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7301 $as_echo "$DSYMUTIL" >&6; }
7302 else
7303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_DSYMUTIL"; then
7310   ac_ct_DSYMUTIL=$DSYMUTIL
7311   # Extract the first word of "dsymutil", so it can be a program name with args.
7312 set dummy dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$ac_ct_DSYMUTIL"; then
7319   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7339 if test -n "$ac_ct_DSYMUTIL"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7341 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347   if test "x$ac_ct_DSYMUTIL" = x; then
7348     DSYMUTIL=":"
7349   else
7350     case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356     DSYMUTIL=$ac_ct_DSYMUTIL
7357   fi
7358 else
7359   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7360 fi
7361
7362     if test -n "$ac_tool_prefix"; then
7363   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_NMEDIT+:} false; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   if test -n "$NMEDIT"; then
7371   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376   IFS=$as_save_IFS
7377   test -z "$as_dir" && as_dir=.
7378     for ac_exec_ext in '' $ac_executable_extensions; do
7379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382     break 2
7383   fi
7384 done
7385   done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 NMEDIT=$ac_cv_prog_NMEDIT
7391 if test -n "$NMEDIT"; then
7392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7393 $as_echo "$NMEDIT" >&6; }
7394 else
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_NMEDIT"; then
7402   ac_ct_NMEDIT=$NMEDIT
7403   # Extract the first word of "nmedit", so it can be a program name with args.
7404 set dummy nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   if test -n "$ac_ct_NMEDIT"; then
7411   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418     for ac_exec_ext in '' $ac_executable_extensions; do
7419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425   done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7431 if test -n "$ac_ct_NMEDIT"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7433 $as_echo "$ac_ct_NMEDIT" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439   if test "x$ac_ct_NMEDIT" = x; then
7440     NMEDIT=":"
7441   else
7442     case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448     NMEDIT=$ac_ct_NMEDIT
7449   fi
7450 else
7451   NMEDIT="$ac_cv_prog_NMEDIT"
7452 fi
7453
7454     if test -n "$ac_tool_prefix"; then
7455   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_LIPO+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   if test -n "$LIPO"; then
7463   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470     for ac_exec_ext in '' $ac_executable_extensions; do
7471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477   done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 LIPO=$ac_cv_prog_LIPO
7483 if test -n "$LIPO"; then
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7485 $as_echo "$LIPO" >&6; }
7486 else
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_LIPO"; then
7494   ac_ct_LIPO=$LIPO
7495   # Extract the first word of "lipo", so it can be a program name with args.
7496 set dummy lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   if test -n "$ac_ct_LIPO"; then
7503   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510     for ac_exec_ext in '' $ac_executable_extensions; do
7511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512     ac_cv_prog_ac_ct_LIPO="lipo"
7513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517   done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7523 if test -n "$ac_ct_LIPO"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7525 $as_echo "$ac_ct_LIPO" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531   if test "x$ac_ct_LIPO" = x; then
7532     LIPO=":"
7533   else
7534     case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540     LIPO=$ac_ct_LIPO
7541   fi
7542 else
7543   LIPO="$ac_cv_prog_LIPO"
7544 fi
7545
7546     if test -n "$ac_tool_prefix"; then
7547   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7548 set dummy ${ac_tool_prefix}otool; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_OTOOL+:} false; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   if test -n "$OTOOL"; then
7555   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562     for ac_exec_ext in '' $ac_executable_extensions; do
7563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569   done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 OTOOL=$ac_cv_prog_OTOOL
7575 if test -n "$OTOOL"; then
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7577 $as_echo "$OTOOL" >&6; }
7578 else
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583
7584 fi
7585 if test -z "$ac_cv_prog_OTOOL"; then
7586   ac_ct_OTOOL=$OTOOL
7587   # Extract the first word of "otool", so it can be a program name with args.
7588 set dummy otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   if test -n "$ac_ct_OTOOL"; then
7595   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604     ac_cv_prog_ac_ct_OTOOL="otool"
7605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609   done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7615 if test -n "$ac_ct_OTOOL"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7617 $as_echo "$ac_ct_OTOOL" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623   if test "x$ac_ct_OTOOL" = x; then
7624     OTOOL=":"
7625   else
7626     case $cross_compiling:$ac_tool_warned in
7627 yes:)
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned=yes ;;
7631 esac
7632     OTOOL=$ac_ct_OTOOL
7633   fi
7634 else
7635   OTOOL="$ac_cv_prog_OTOOL"
7636 fi
7637
7638     if test -n "$ac_tool_prefix"; then
7639   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7640 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_OTOOL64+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   if test -n "$OTOOL64"; then
7647   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654     for ac_exec_ext in '' $ac_executable_extensions; do
7655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661   done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 OTOOL64=$ac_cv_prog_OTOOL64
7667 if test -n "$OTOOL64"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7669 $as_echo "$OTOOL64" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676 fi
7677 if test -z "$ac_cv_prog_OTOOL64"; then
7678   ac_ct_OTOOL64=$OTOOL64
7679   # Extract the first word of "otool64", so it can be a program name with args.
7680 set dummy otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7684   $as_echo_n "(cached) " >&6
7685 else
7686   if test -n "$ac_ct_OTOOL64"; then
7687   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696     ac_cv_prog_ac_ct_OTOOL64="otool64"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7707 if test -n "$ac_ct_OTOOL64"; then
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7709 $as_echo "$ac_ct_OTOOL64" >&6; }
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715   if test "x$ac_ct_OTOOL64" = x; then
7716     OTOOL64=":"
7717   else
7718     case $cross_compiling:$ac_tool_warned in
7719 yes:)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722 ac_tool_warned=yes ;;
7723 esac
7724     OTOOL64=$ac_ct_OTOOL64
7725   fi
7726 else
7727   OTOOL64="$ac_cv_prog_OTOOL64"
7728 fi
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7757 $as_echo_n "checking for -single_module linker flag... " >&6; }
7758 if ${lt_cv_apple_cc_single_mod+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   lt_cv_apple_cc_single_mod=no
7762       if test -z "$LT_MULTI_MODULE"; then
7763         # By default we will add the -single_module flag. You can override
7764         # by either setting the environment variable LT_MULTI_MODULE
7765         # non-empty at configure time, or by adding -multi_module to the
7766         # link flags.
7767         rm -rf libconftest.dylib*
7768         echo "int foo(void){return 1;}" > conftest.c
7769         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7770 -dynamiclib -Wl,-single_module conftest.c" >&5
7771         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7772           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7773         _lt_result=$?
7774         # If there is a non-empty error log, and "single_module"
7775         # appears in it, assume the flag caused a linker warning
7776         if test -s conftest.err && $GREP single_module conftest.err; then
7777           cat conftest.err >&5
7778         # Otherwise, if the output was created with a 0 exit code from
7779         # the compiler, it worked.
7780         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7781           lt_cv_apple_cc_single_mod=yes
7782         else
7783           cat conftest.err >&5
7784         fi
7785         rm -rf libconftest.dylib*
7786         rm -f conftest.*
7787       fi
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7790 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7791
7792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7793 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7794 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   lt_cv_ld_exported_symbols_list=no
7798       save_LDFLAGS=$LDFLAGS
7799       echo "_main" > conftest.sym
7800       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7801       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h.  */
7803
7804 int
7805 main ()
7806 {
7807
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 if ac_fn_c_try_link "$LINENO"; then :
7813   lt_cv_ld_exported_symbols_list=yes
7814 else
7815   lt_cv_ld_exported_symbols_list=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext \
7818     conftest$ac_exeext conftest.$ac_ext
7819         LDFLAGS=$save_LDFLAGS
7820
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7823 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7824
7825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7826 $as_echo_n "checking for -force_load linker flag... " >&6; }
7827 if ${lt_cv_ld_force_load+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   lt_cv_ld_force_load=no
7831       cat > conftest.c << _LT_EOF
7832 int forced_loaded() { return 2;}
7833 _LT_EOF
7834       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7835       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7836       echo "$AR cru libconftest.a conftest.o" >&5
7837       $AR cru libconftest.a conftest.o 2>&5
7838       echo "$RANLIB libconftest.a" >&5
7839       $RANLIB libconftest.a 2>&5
7840       cat > conftest.c << _LT_EOF
7841 int main() { return 0;}
7842 _LT_EOF
7843       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7844       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7845       _lt_result=$?
7846       if test -s conftest.err && $GREP force_load conftest.err; then
7847         cat conftest.err >&5
7848       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7849         lt_cv_ld_force_load=yes
7850       else
7851         cat conftest.err >&5
7852       fi
7853         rm -f conftest.err libconftest.a conftest conftest.c
7854         rm -rf conftest.dSYM
7855
7856 fi
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7858 $as_echo "$lt_cv_ld_force_load" >&6; }
7859     case $host_os in
7860     rhapsody* | darwin1.[012])
7861       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7862     darwin1.*)
7863       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7864     darwin*) # darwin 5.x on
7865       # if running on 10.5 or later, the deployment target defaults
7866       # to the OS version, if on x86, and 10.4, the deployment
7867       # target defaults to 10.4. Don't you love it?
7868       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7869         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7870           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7871         10.[012][,.]*)
7872           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7873         10.*)
7874           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7875       esac
7876     ;;
7877   esac
7878     if test yes = "$lt_cv_apple_cc_single_mod"; then
7879       _lt_dar_single_mod='$single_module'
7880     fi
7881     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7882       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7883     else
7884       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7885     fi
7886     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7887       _lt_dsymutil='~$DSYMUTIL $lib || :'
7888     else
7889       _lt_dsymutil=
7890     fi
7891     ;;
7892   esac
7893
7894 # func_munge_path_list VARIABLE PATH
7895 # -----------------------------------
7896 # VARIABLE is name of variable containing _space_ separated list of
7897 # directories to be munged by the contents of PATH, which is string
7898 # having a format:
7899 # "DIR[:DIR]:"
7900 #       string "DIR[ DIR]" will be prepended to VARIABLE
7901 # ":DIR[:DIR]"
7902 #       string "DIR[ DIR]" will be appended to VARIABLE
7903 # "DIRP[:DIRP]::[DIRA:]DIRA"
7904 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7905 #       "DIRA[ DIRA]" will be appended to VARIABLE
7906 # "DIR[:DIR]"
7907 #       VARIABLE will be replaced by "DIR[ DIR]"
7908 func_munge_path_list ()
7909 {
7910     case x$2 in
7911     x)
7912         ;;
7913     *:)
7914         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7915         ;;
7916     x:*)
7917         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7918         ;;
7919     *::*)
7920         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7921         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7922         ;;
7923     *)
7924         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7925         ;;
7926     esac
7927 }
7928
7929 ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7936 # On Suns, sometimes $CPP names a directory.
7937 if test -n "$CPP" && test -d "$CPP"; then
7938   CPP=
7939 fi
7940 if test -z "$CPP"; then
7941   if ${ac_cv_prog_CPP+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944       # Double quotes because CPP needs to be expanded
7945     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7946     do
7947       ac_preproc_ok=false
7948 for ac_c_preproc_warn_flag in '' yes
7949 do
7950   # Use a header file that comes with gcc, so configuring glibc
7951   # with a fresh cross-compiler works.
7952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953   # <limits.h> exists even on freestanding compilers.
7954   # On the NeXT, cc -E runs the code through the compiler's parser,
7955   # not just through cpp. "Syntax error" is here to catch this case.
7956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h.  */
7958 #ifdef __STDC__
7959 # include <limits.h>
7960 #else
7961 # include <assert.h>
7962 #endif
7963                      Syntax error
7964 _ACEOF
7965 if ac_fn_c_try_cpp "$LINENO"; then :
7966
7967 else
7968   # Broken: fails on valid input.
7969 continue
7970 fi
7971 rm -f conftest.err conftest.i conftest.$ac_ext
7972
7973   # OK, works on sane cases.  Now check whether nonexistent headers
7974   # can be detected and how.
7975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h.  */
7977 #include <ac_nonexistent.h>
7978 _ACEOF
7979 if ac_fn_c_try_cpp "$LINENO"; then :
7980   # Broken: success on invalid input.
7981 continue
7982 else
7983   # Passes both tests.
7984 ac_preproc_ok=:
7985 break
7986 fi
7987 rm -f conftest.err conftest.i conftest.$ac_ext
7988
7989 done
7990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7991 rm -f conftest.i conftest.err conftest.$ac_ext
7992 if $ac_preproc_ok; then :
7993   break
7994 fi
7995
7996     done
7997     ac_cv_prog_CPP=$CPP
7998
7999 fi
8000   CPP=$ac_cv_prog_CPP
8001 else
8002   ac_cv_prog_CPP=$CPP
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8005 $as_echo "$CPP" >&6; }
8006 ac_preproc_ok=false
8007 for ac_c_preproc_warn_flag in '' yes
8008 do
8009   # Use a header file that comes with gcc, so configuring glibc
8010   # with a fresh cross-compiler works.
8011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8012   # <limits.h> exists even on freestanding compilers.
8013   # On the NeXT, cc -E runs the code through the compiler's parser,
8014   # not just through cpp. "Syntax error" is here to catch this case.
8015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h.  */
8017 #ifdef __STDC__
8018 # include <limits.h>
8019 #else
8020 # include <assert.h>
8021 #endif
8022                      Syntax error
8023 _ACEOF
8024 if ac_fn_c_try_cpp "$LINENO"; then :
8025
8026 else
8027   # Broken: fails on valid input.
8028 continue
8029 fi
8030 rm -f conftest.err conftest.i conftest.$ac_ext
8031
8032   # OK, works on sane cases.  Now check whether nonexistent headers
8033   # can be detected and how.
8034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h.  */
8036 #include <ac_nonexistent.h>
8037 _ACEOF
8038 if ac_fn_c_try_cpp "$LINENO"; then :
8039   # Broken: success on invalid input.
8040 continue
8041 else
8042   # Passes both tests.
8043 ac_preproc_ok=:
8044 break
8045 fi
8046 rm -f conftest.err conftest.i conftest.$ac_ext
8047
8048 done
8049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8050 rm -f conftest.i conftest.err conftest.$ac_ext
8051 if $ac_preproc_ok; then :
8052
8053 else
8054   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8056 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8057 See \`config.log' for more details" "$LINENO" 5; }
8058 fi
8059
8060 ac_ext=c
8061 ac_cpp='$CPP $CPPFLAGS'
8062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8065
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8068 $as_echo_n "checking for ANSI C header files... " >&6; }
8069 if ${ac_cv_header_stdc+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 #include <stdlib.h>
8075 #include <stdarg.h>
8076 #include <string.h>
8077 #include <float.h>
8078
8079 int
8080 main ()
8081 {
8082
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088   ac_cv_header_stdc=yes
8089 else
8090   ac_cv_header_stdc=no
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093
8094 if test $ac_cv_header_stdc = yes; then
8095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h.  */
8098 #include <string.h>
8099
8100 _ACEOF
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8102   $EGREP "memchr" >/dev/null 2>&1; then :
8103
8104 else
8105   ac_cv_header_stdc=no
8106 fi
8107 rm -f conftest*
8108
8109 fi
8110
8111 if test $ac_cv_header_stdc = yes; then
8112   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then :
8120
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then :
8131   :
8132 else
8133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h.  */
8135 #include <ctype.h>
8136 #include <stdlib.h>
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8140 #else
8141 # define ISLOWER(c) \
8142                    (('a' <= (c) && (c) <= 'i') \
8143                      || ('j' <= (c) && (c) <= 'r') \
8144                      || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8146 #endif
8147
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 int
8150 main ()
8151 {
8152   int i;
8153   for (i = 0; i < 256; i++)
8154     if (XOR (islower (i), ISLOWER (i))
8155         || toupper (i) != TOUPPER (i))
8156       return 2;
8157   return 0;
8158 }
8159 _ACEOF
8160 if ac_fn_c_try_run "$LINENO"; then :
8161
8162 else
8163   ac_cv_header_stdc=no
8164 fi
8165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8166   conftest.$ac_objext conftest.beam conftest.$ac_ext
8167 fi
8168
8169 fi
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8172 $as_echo "$ac_cv_header_stdc" >&6; }
8173 if test $ac_cv_header_stdc = yes; then
8174
8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8176
8177 fi
8178
8179 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8181                   inttypes.h stdint.h unistd.h
8182 do :
8183   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8185 "
8186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8187   cat >>confdefs.h <<_ACEOF
8188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8189 _ACEOF
8190
8191 fi
8192
8193 done
8194
8195
8196 for ac_header in dlfcn.h
8197 do :
8198   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8199 "
8200 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8201   cat >>confdefs.h <<_ACEOF
8202 #define HAVE_DLFCN_H 1
8203 _ACEOF
8204
8205 fi
8206
8207 done
8208
8209
8210
8211
8212
8213 # Set options
8214 # Check whether --enable-static was given.
8215 if test "${enable_static+set}" = set; then :
8216   enableval=$enable_static; p=${PACKAGE-default}
8217     case $enableval in
8218     yes) enable_static=yes ;;
8219     no) enable_static=no ;;
8220     *)
8221      enable_static=no
8222       # Look at the argument we got.  We use all the common list separators.
8223       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8224       for pkg in $enableval; do
8225         IFS=$lt_save_ifs
8226         if test "X$pkg" = "X$p"; then
8227           enable_static=yes
8228         fi
8229       done
8230       IFS=$lt_save_ifs
8231       ;;
8232     esac
8233 else
8234   enable_static=no
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246         enable_dlopen=no
8247
8248
8249   enable_win32_dll=no
8250
8251
8252             # Check whether --enable-shared was given.
8253 if test "${enable_shared+set}" = set; then :
8254   enableval=$enable_shared; p=${PACKAGE-default}
8255     case $enableval in
8256     yes) enable_shared=yes ;;
8257     no) enable_shared=no ;;
8258     *)
8259       enable_shared=no
8260       # Look at the argument we got.  We use all the common list separators.
8261       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8262       for pkg in $enableval; do
8263         IFS=$lt_save_ifs
8264         if test "X$pkg" = "X$p"; then
8265           enable_shared=yes
8266         fi
8267       done
8268       IFS=$lt_save_ifs
8269       ;;
8270     esac
8271 else
8272   enable_shared=yes
8273 fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285 # Check whether --with-pic was given.
8286 if test "${with_pic+set}" = set; then :
8287   withval=$with_pic; lt_p=${PACKAGE-default}
8288     case $withval in
8289     yes|no) pic_mode=$withval ;;
8290     *)
8291       pic_mode=default
8292       # Look at the argument we got.  We use all the common list separators.
8293       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8294       for lt_pkg in $withval; do
8295         IFS=$lt_save_ifs
8296         if test "X$lt_pkg" = "X$lt_p"; then
8297           pic_mode=yes
8298         fi
8299       done
8300       IFS=$lt_save_ifs
8301       ;;
8302     esac
8303 else
8304   pic_mode=default
8305 fi
8306
8307
8308
8309
8310
8311
8312
8313
8314   # Check whether --enable-fast-install was given.
8315 if test "${enable_fast_install+set}" = set; then :
8316   enableval=$enable_fast_install; p=${PACKAGE-default}
8317     case $enableval in
8318     yes) enable_fast_install=yes ;;
8319     no) enable_fast_install=no ;;
8320     *)
8321       enable_fast_install=no
8322       # Look at the argument we got.  We use all the common list separators.
8323       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8324       for pkg in $enableval; do
8325         IFS=$lt_save_ifs
8326         if test "X$pkg" = "X$p"; then
8327           enable_fast_install=yes
8328         fi
8329       done
8330       IFS=$lt_save_ifs
8331       ;;
8332     esac
8333 else
8334   enable_fast_install=yes
8335 fi
8336
8337
8338
8339
8340
8341
8342
8343
8344   shared_archive_member_spec=
8345 case $host,$enable_shared in
8346 power*-*-aix[5-9]*,yes)
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8348 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8349
8350 # Check whether --with-aix-soname was given.
8351 if test "${with_aix_soname+set}" = set; then :
8352   withval=$with_aix_soname; case $withval in
8353     aix|svr4|both)
8354       ;;
8355     *)
8356       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8357       ;;
8358     esac
8359     lt_cv_with_aix_soname=$with_aix_soname
8360 else
8361   if ${lt_cv_with_aix_soname+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   lt_cv_with_aix_soname=aix
8365 fi
8366
8367     with_aix_soname=$lt_cv_with_aix_soname
8368 fi
8369
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8371 $as_echo "$with_aix_soname" >&6; }
8372   if test aix != "$with_aix_soname"; then
8373     # For the AIX way of multilib, we name the shared archive member
8374     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8375     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8376     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8377     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8378     if test 64 = "${OBJECT_MODE-32}"; then
8379       shared_archive_member_spec=shr_64
8380     else
8381       shared_archive_member_spec=shr
8382     fi
8383   fi
8384   ;;
8385 *)
8386   with_aix_soname=aix
8387   ;;
8388 esac
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399 # This can be used to rebuild libtool when needed
8400 LIBTOOL_DEPS=$ltmain
8401
8402 # Always use our own libtool.
8403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 test -z "$LN_S" && LN_S="ln -s"
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 if test -n "${ZSH_VERSION+set}"; then
8450    setopt NO_GLOB_SUBST
8451 fi
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8454 $as_echo_n "checking for objdir... " >&6; }
8455 if ${lt_cv_objdir+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   rm -f .libs 2>/dev/null
8459 mkdir .libs 2>/dev/null
8460 if test -d .libs; then
8461   lt_cv_objdir=.libs
8462 else
8463   # MS-DOS does not allow filenames that begin with a dot.
8464   lt_cv_objdir=_libs
8465 fi
8466 rmdir .libs 2>/dev/null
8467 fi
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8469 $as_echo "$lt_cv_objdir" >&6; }
8470 objdir=$lt_cv_objdir
8471
8472
8473
8474
8475
8476 cat >>confdefs.h <<_ACEOF
8477 #define LT_OBJDIR "$lt_cv_objdir/"
8478 _ACEOF
8479
8480
8481
8482
8483 case $host_os in
8484 aix3*)
8485   # AIX sometimes has problems with the GCC collect2 program.  For some
8486   # reason, if we set the COLLECT_NAMES environment variable, the problems
8487   # vanish in a puff of smoke.
8488   if test set != "${COLLECT_NAMES+set}"; then
8489     COLLECT_NAMES=
8490     export COLLECT_NAMES
8491   fi
8492   ;;
8493 esac
8494
8495 # Global variables:
8496 ofile=libtool
8497 can_build_shared=yes
8498
8499 # All known linkers require a '.a' archive for static linking (except MSVC,
8500 # which needs '.lib').
8501 libext=a
8502
8503 with_gnu_ld=$lt_cv_prog_gnu_ld
8504
8505 old_CC=$CC
8506 old_CFLAGS=$CFLAGS
8507
8508 # Set sane defaults for various variables
8509 test -z "$CC" && CC=cc
8510 test -z "$LTCC" && LTCC=$CC
8511 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8512 test -z "$LD" && LD=ld
8513 test -z "$ac_objext" && ac_objext=o
8514
8515 func_cc_basename $compiler
8516 cc_basename=$func_cc_basename_result
8517
8518
8519 # Only perform the check for file, if the check method requires it
8520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521 case $deplibs_check_method in
8522 file_magic*)
8523   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   case $MAGIC_CMD in
8530 [\\/*] |  ?:[\\/]*)
8531   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8532   ;;
8533 *)
8534   lt_save_MAGIC_CMD=$MAGIC_CMD
8535   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8536   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537   for ac_dir in $ac_dummy; do
8538     IFS=$lt_save_ifs
8539     test -z "$ac_dir" && ac_dir=.
8540     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8541       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8542       if test -n "$file_magic_test_file"; then
8543         case $deplibs_check_method in
8544         "file_magic "*)
8545           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8547           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548             $EGREP "$file_magic_regex" > /dev/null; then
8549             :
8550           else
8551             cat <<_LT_EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such.  This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem.  Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8561
8562 _LT_EOF
8563           fi ;;
8564         esac
8565       fi
8566       break
8567     fi
8568   done
8569   IFS=$lt_save_ifs
8570   MAGIC_CMD=$lt_save_MAGIC_CMD
8571   ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8576 if test -n "$MAGIC_CMD"; then
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8579 else
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584
8585
8586
8587
8588 if test -z "$lt_cv_path_MAGIC_CMD"; then
8589   if test -n "$ac_tool_prefix"; then
8590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591 $as_echo_n "checking for file... " >&6; }
8592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   case $MAGIC_CMD in
8596 [\\/*] |  ?:[\\/]*)
8597   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8598   ;;
8599 *)
8600   lt_save_MAGIC_CMD=$MAGIC_CMD
8601   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8602   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603   for ac_dir in $ac_dummy; do
8604     IFS=$lt_save_ifs
8605     test -z "$ac_dir" && ac_dir=.
8606     if test -f "$ac_dir/file"; then
8607       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8608       if test -n "$file_magic_test_file"; then
8609         case $deplibs_check_method in
8610         "file_magic "*)
8611           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8613           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614             $EGREP "$file_magic_regex" > /dev/null; then
8615             :
8616           else
8617             cat <<_LT_EOF 1>&2
8618
8619 *** Warning: the command libtool uses to detect shared libraries,
8620 *** $file_magic_cmd, produces output that libtool cannot recognize.
8621 *** The result is that libtool may fail to recognize shared libraries
8622 *** as such.  This will affect the creation of libtool libraries that
8623 *** depend on shared libraries, but programs linked with such libtool
8624 *** libraries will work regardless of this problem.  Nevertheless, you
8625 *** may want to report the problem to your system manager and/or to
8626 *** bug-libtool@gnu.org
8627
8628 _LT_EOF
8629           fi ;;
8630         esac
8631       fi
8632       break
8633     fi
8634   done
8635   IFS=$lt_save_ifs
8636   MAGIC_CMD=$lt_save_MAGIC_CMD
8637   ;;
8638 esac
8639 fi
8640
8641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8642 if test -n "$MAGIC_CMD"; then
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644 $as_echo "$MAGIC_CMD" >&6; }
8645 else
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651   else
8652     MAGIC_CMD=:
8653   fi
8654 fi
8655
8656   fi
8657   ;;
8658 esac
8659
8660 # Use C for the default configuration in the libtool script
8661
8662 lt_save_CC=$CC
8663 ac_ext=c
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8668
8669
8670 # Source file extension for C test sources.
8671 ac_ext=c
8672
8673 # Object file extension for compiled C test sources.
8674 objext=o
8675 objext=$objext
8676
8677 # Code to be used in simple compile tests
8678 lt_simple_compile_test_code="int some_variable = 0;"
8679
8680 # Code to be used in simple link tests
8681 lt_simple_link_test_code='int main(){return(0);}'
8682
8683
8684
8685
8686
8687
8688
8689 # If no C compiler was specified, use CC.
8690 LTCC=${LTCC-"$CC"}
8691
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695 # Allow CC to be a program name with arguments.
8696 compiler=$CC
8697
8698 # Save the default compiler, since it gets overwritten when the other
8699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700 compiler_DEFAULT=$CC
8701
8702 # save warnings/boilerplate of simple test code
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_compiler_boilerplate=`cat conftest.err`
8707 $RM conftest*
8708
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_linker_boilerplate=`cat conftest.err`
8713 $RM -r conftest*
8714
8715
8716 ## CAVEAT EMPTOR:
8717 ## There is no encapsulation within the following macros, do not change
8718 ## the running order or otherwise move them around unless you know exactly
8719 ## what you are doing...
8720 if test -n "$compiler"; then
8721
8722 lt_prog_compiler_no_builtin_flag=
8723
8724 if test yes = "$GCC"; then
8725   case $cc_basename in
8726   nvcc*)
8727     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8728   *)
8729     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8730   esac
8731
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   lt_cv_prog_compiler_rtti_exceptions=no
8738    ac_outfile=conftest.$ac_objext
8739    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8741    # Insert the option either (1) after the last *FLAGS variable, or
8742    # (2) before a word containing "conftest.", or (3) at the end.
8743    # Note that $ac_compile itself does not contain backslashes and begins
8744    # with a dollar sign (not a hyphen), so the echo should work correctly.
8745    # The option is referenced via a variable to avoid confusing sed.
8746    lt_compile=`echo "$ac_compile" | $SED \
8747    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749    -e 's:$: $lt_compiler_flag:'`
8750    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751    (eval "$lt_compile" 2>conftest.err)
8752    ac_status=$?
8753    cat conftest.err >&5
8754    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755    if (exit $ac_status) && test -s "$ac_outfile"; then
8756      # The compiler can only warn and ignore the option if not recognized
8757      # So say no if there are warnings other than the usual output.
8758      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761        lt_cv_prog_compiler_rtti_exceptions=yes
8762      fi
8763    fi
8764    $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8769
8770 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8771     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8772 else
8773     :
8774 fi
8775
8776 fi
8777
8778
8779
8780
8781
8782
8783   lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8786
8787
8788   if test yes = "$GCC"; then
8789     lt_prog_compiler_wl='-Wl,'
8790     lt_prog_compiler_static='-static'
8791
8792     case $host_os in
8793       aix*)
8794       # All AIX code is PIC.
8795       if test ia64 = "$host_cpu"; then
8796         # AIX 5 now supports IA64 processor
8797         lt_prog_compiler_static='-Bstatic'
8798       fi
8799       lt_prog_compiler_pic='-fPIC'
8800       ;;
8801
8802     amigaos*)
8803       case $host_cpu in
8804       powerpc)
8805             # see comment about AmigaOS4 .so support
8806             lt_prog_compiler_pic='-fPIC'
8807         ;;
8808       m68k)
8809             # FIXME: we need at least 68020 code to build shared libraries, but
8810             # adding the '-m68020' flag to GCC prevents building anything better,
8811             # like '-m68040'.
8812             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8813         ;;
8814       esac
8815       ;;
8816
8817     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8818       # PIC is the default for these OSes.
8819       ;;
8820
8821     mingw* | cygwin* | pw32* | os2* | cegcc*)
8822       # This hack is so that the source file can tell whether it is being
8823       # built for inclusion in a dll (and should export symbols for example).
8824       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8825       # (--disable-auto-import) libraries
8826       lt_prog_compiler_pic='-DDLL_EXPORT'
8827       case $host_os in
8828       os2*)
8829         lt_prog_compiler_static='$wl-static'
8830         ;;
8831       esac
8832       ;;
8833
8834     darwin* | rhapsody*)
8835       # PIC is the default on this platform
8836       # Common symbols not allowed in MH_DYLIB files
8837       lt_prog_compiler_pic='-fno-common'
8838       ;;
8839
8840     haiku*)
8841       # PIC is the default for Haiku.
8842       # The "-static" flag exists, but is broken.
8843       lt_prog_compiler_static=
8844       ;;
8845
8846     hpux*)
8847       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8848       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8849       # sets the default TLS model and affects inlining.
8850       case $host_cpu in
8851       hppa*64*)
8852         # +Z the default
8853         ;;
8854       *)
8855         lt_prog_compiler_pic='-fPIC'
8856         ;;
8857       esac
8858       ;;
8859
8860     interix[3-9]*)
8861       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8862       # Instead, we relocate shared libraries at runtime.
8863       ;;
8864
8865     msdosdjgpp*)
8866       # Just because we use GCC doesn't mean we suddenly get shared libraries
8867       # on systems that don't support them.
8868       lt_prog_compiler_can_build_shared=no
8869       enable_shared=no
8870       ;;
8871
8872     *nto* | *qnx*)
8873       # QNX uses GNU C++, but need to define -shared option too, otherwise
8874       # it will coredump.
8875       lt_prog_compiler_pic='-fPIC -shared'
8876       ;;
8877
8878     sysv4*MP*)
8879       if test -d /usr/nec; then
8880         lt_prog_compiler_pic=-Kconform_pic
8881       fi
8882       ;;
8883
8884     *)
8885       lt_prog_compiler_pic='-fPIC'
8886       ;;
8887     esac
8888
8889     case $cc_basename in
8890     nvcc*) # Cuda Compiler Driver 2.2
8891       lt_prog_compiler_wl='-Xlinker '
8892       if test -n "$lt_prog_compiler_pic"; then
8893         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8894       fi
8895       ;;
8896     esac
8897   else
8898     # PORTME Check for flag to pass linker flags through the system compiler.
8899     case $host_os in
8900     aix*)
8901       lt_prog_compiler_wl='-Wl,'
8902       if test ia64 = "$host_cpu"; then
8903         # AIX 5 now supports IA64 processor
8904         lt_prog_compiler_static='-Bstatic'
8905       else
8906         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8907       fi
8908       ;;
8909
8910     darwin* | rhapsody*)
8911       # PIC is the default on this platform
8912       # Common symbols not allowed in MH_DYLIB files
8913       lt_prog_compiler_pic='-fno-common'
8914       case $cc_basename in
8915       nagfor*)
8916         # NAG Fortran compiler
8917         lt_prog_compiler_wl='-Wl,-Wl,,'
8918         lt_prog_compiler_pic='-PIC'
8919         lt_prog_compiler_static='-Bstatic'
8920         ;;
8921       esac
8922       ;;
8923
8924     mingw* | cygwin* | pw32* | os2* | cegcc*)
8925       # This hack is so that the source file can tell whether it is being
8926       # built for inclusion in a dll (and should export symbols for example).
8927       lt_prog_compiler_pic='-DDLL_EXPORT'
8928       case $host_os in
8929       os2*)
8930         lt_prog_compiler_static='$wl-static'
8931         ;;
8932       esac
8933       ;;
8934
8935     hpux9* | hpux10* | hpux11*)
8936       lt_prog_compiler_wl='-Wl,'
8937       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8938       # not for PA HP-UX.
8939       case $host_cpu in
8940       hppa*64*|ia64*)
8941         # +Z the default
8942         ;;
8943       *)
8944         lt_prog_compiler_pic='+Z'
8945         ;;
8946       esac
8947       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8948       lt_prog_compiler_static='$wl-a ${wl}archive'
8949       ;;
8950
8951     irix5* | irix6* | nonstopux*)
8952       lt_prog_compiler_wl='-Wl,'
8953       # PIC (with -KPIC) is the default.
8954       lt_prog_compiler_static='-non_shared'
8955       ;;
8956
8957     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8958       case $cc_basename in
8959       # old Intel for x86_64, which still supported -KPIC.
8960       ecc*)
8961         lt_prog_compiler_wl='-Wl,'
8962         lt_prog_compiler_pic='-KPIC'
8963         lt_prog_compiler_static='-static'
8964         ;;
8965       # icc used to be incompatible with GCC.
8966       # ICC 10 doesn't accept -KPIC any more.
8967       icc* | ifort*)
8968         lt_prog_compiler_wl='-Wl,'
8969         lt_prog_compiler_pic='-fPIC'
8970         lt_prog_compiler_static='-static'
8971         ;;
8972       # Lahey Fortran 8.1.
8973       lf95*)
8974         lt_prog_compiler_wl='-Wl,'
8975         lt_prog_compiler_pic='--shared'
8976         lt_prog_compiler_static='--static'
8977         ;;
8978       nagfor*)
8979         # NAG Fortran compiler
8980         lt_prog_compiler_wl='-Wl,-Wl,,'
8981         lt_prog_compiler_pic='-PIC'
8982         lt_prog_compiler_static='-Bstatic'
8983         ;;
8984       tcc*)
8985         # Fabrice Bellard et al's Tiny C Compiler
8986         lt_prog_compiler_wl='-Wl,'
8987         lt_prog_compiler_pic='-fPIC'
8988         lt_prog_compiler_static='-static'
8989         ;;
8990       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8991         # Portland Group compilers (*not* the Pentium gcc compiler,
8992         # which looks to be a dead project)
8993         lt_prog_compiler_wl='-Wl,'
8994         lt_prog_compiler_pic='-fpic'
8995         lt_prog_compiler_static='-Bstatic'
8996         ;;
8997       ccc*)
8998         lt_prog_compiler_wl='-Wl,'
8999         # All Alpha code is PIC.
9000         lt_prog_compiler_static='-non_shared'
9001         ;;
9002       xl* | bgxl* | bgf* | mpixl*)
9003         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9004         lt_prog_compiler_wl='-Wl,'
9005         lt_prog_compiler_pic='-qpic'
9006         lt_prog_compiler_static='-qstaticlink'
9007         ;;
9008       *)
9009         case `$CC -V 2>&1 | sed 5q` in
9010         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9011           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9012           lt_prog_compiler_pic='-KPIC'
9013           lt_prog_compiler_static='-Bstatic'
9014           lt_prog_compiler_wl=''
9015           ;;
9016         *Sun\ F* | *Sun*Fortran*)
9017           lt_prog_compiler_pic='-KPIC'
9018           lt_prog_compiler_static='-Bstatic'
9019           lt_prog_compiler_wl='-Qoption ld '
9020           ;;
9021         *Sun\ C*)
9022           # Sun C 5.9
9023           lt_prog_compiler_pic='-KPIC'
9024           lt_prog_compiler_static='-Bstatic'
9025           lt_prog_compiler_wl='-Wl,'
9026           ;;
9027         *Intel*\ [CF]*Compiler*)
9028           lt_prog_compiler_wl='-Wl,'
9029           lt_prog_compiler_pic='-fPIC'
9030           lt_prog_compiler_static='-static'
9031           ;;
9032         *Portland\ Group*)
9033           lt_prog_compiler_wl='-Wl,'
9034           lt_prog_compiler_pic='-fpic'
9035           lt_prog_compiler_static='-Bstatic'
9036           ;;
9037         esac
9038         ;;
9039       esac
9040       ;;
9041
9042     newsos6)
9043       lt_prog_compiler_pic='-KPIC'
9044       lt_prog_compiler_static='-Bstatic'
9045       ;;
9046
9047     *nto* | *qnx*)
9048       # QNX uses GNU C++, but need to define -shared option too, otherwise
9049       # it will coredump.
9050       lt_prog_compiler_pic='-fPIC -shared'
9051       ;;
9052
9053     osf3* | osf4* | osf5*)
9054       lt_prog_compiler_wl='-Wl,'
9055       # All OSF/1 code is PIC.
9056       lt_prog_compiler_static='-non_shared'
9057       ;;
9058
9059     rdos*)
9060       lt_prog_compiler_static='-non_shared'
9061       ;;
9062
9063     solaris*)
9064       lt_prog_compiler_pic='-KPIC'
9065       lt_prog_compiler_static='-Bstatic'
9066       case $cc_basename in
9067       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9068         lt_prog_compiler_wl='-Qoption ld ';;
9069       *)
9070         lt_prog_compiler_wl='-Wl,';;
9071       esac
9072       ;;
9073
9074     sunos4*)
9075       lt_prog_compiler_wl='-Qoption ld '
9076       lt_prog_compiler_pic='-PIC'
9077       lt_prog_compiler_static='-Bstatic'
9078       ;;
9079
9080     sysv4 | sysv4.2uw2* | sysv4.3*)
9081       lt_prog_compiler_wl='-Wl,'
9082       lt_prog_compiler_pic='-KPIC'
9083       lt_prog_compiler_static='-Bstatic'
9084       ;;
9085
9086     sysv4*MP*)
9087       if test -d /usr/nec; then
9088         lt_prog_compiler_pic='-Kconform_pic'
9089         lt_prog_compiler_static='-Bstatic'
9090       fi
9091       ;;
9092
9093     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9094       lt_prog_compiler_wl='-Wl,'
9095       lt_prog_compiler_pic='-KPIC'
9096       lt_prog_compiler_static='-Bstatic'
9097       ;;
9098
9099     unicos*)
9100       lt_prog_compiler_wl='-Wl,'
9101       lt_prog_compiler_can_build_shared=no
9102       ;;
9103
9104     uts4*)
9105       lt_prog_compiler_pic='-pic'
9106       lt_prog_compiler_static='-Bstatic'
9107       ;;
9108
9109     *)
9110       lt_prog_compiler_can_build_shared=no
9111       ;;
9112     esac
9113   fi
9114
9115 case $host_os in
9116   # For platforms that do not support PIC, -DPIC is meaningless:
9117   *djgpp*)
9118     lt_prog_compiler_pic=
9119     ;;
9120   *)
9121     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9122     ;;
9123 esac
9124
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9126 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9127 if ${lt_cv_prog_compiler_pic+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9133 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9134 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9135
9136 #
9137 # Check to make sure the PIC flag actually works.
9138 #
9139 if test -n "$lt_prog_compiler_pic"; then
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9141 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9142 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9143   $as_echo_n "(cached) " >&6
9144 else
9145   lt_cv_prog_compiler_pic_works=no
9146    ac_outfile=conftest.$ac_objext
9147    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9149    # Insert the option either (1) after the last *FLAGS variable, or
9150    # (2) before a word containing "conftest.", or (3) at the end.
9151    # Note that $ac_compile itself does not contain backslashes and begins
9152    # with a dollar sign (not a hyphen), so the echo should work correctly.
9153    # The option is referenced via a variable to avoid confusing sed.
9154    lt_compile=`echo "$ac_compile" | $SED \
9155    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157    -e 's:$: $lt_compiler_flag:'`
9158    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159    (eval "$lt_compile" 2>conftest.err)
9160    ac_status=$?
9161    cat conftest.err >&5
9162    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163    if (exit $ac_status) && test -s "$ac_outfile"; then
9164      # The compiler can only warn and ignore the option if not recognized
9165      # So say no if there are warnings other than the usual output.
9166      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9167      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9168      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9169        lt_cv_prog_compiler_pic_works=yes
9170      fi
9171    fi
9172    $RM conftest*
9173
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9176 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9177
9178 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9179     case $lt_prog_compiler_pic in
9180      "" | " "*) ;;
9181      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9182      esac
9183 else
9184     lt_prog_compiler_pic=
9185      lt_prog_compiler_can_build_shared=no
9186 fi
9187
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200 #
9201 # Check to make sure the static flag actually works.
9202 #
9203 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9206 if ${lt_cv_prog_compiler_static_works+:} false; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209   lt_cv_prog_compiler_static_works=no
9210    save_LDFLAGS=$LDFLAGS
9211    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9212    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9213    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9214      # The linker can only warn and ignore the option if not recognized
9215      # So say no if there are warnings
9216      if test -s conftest.err; then
9217        # Append any errors to the config.log.
9218        cat conftest.err 1>&5
9219        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9220        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221        if diff conftest.exp conftest.er2 >/dev/null; then
9222          lt_cv_prog_compiler_static_works=yes
9223        fi
9224      else
9225        lt_cv_prog_compiler_static_works=yes
9226      fi
9227    fi
9228    $RM -r conftest*
9229    LDFLAGS=$save_LDFLAGS
9230
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9233 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9234
9235 if test yes = "$lt_cv_prog_compiler_static_works"; then
9236     :
9237 else
9238     lt_prog_compiler_static=
9239 fi
9240
9241
9242
9243
9244
9245
9246
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9249 if ${lt_cv_prog_compiler_c_o+:} false; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   lt_cv_prog_compiler_c_o=no
9253    $RM -r conftest 2>/dev/null
9254    mkdir conftest
9255    cd conftest
9256    mkdir out
9257    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9258
9259    lt_compiler_flag="-o out/conftest2.$ac_objext"
9260    # Insert the option either (1) after the last *FLAGS variable, or
9261    # (2) before a word containing "conftest.", or (3) at the end.
9262    # Note that $ac_compile itself does not contain backslashes and begins
9263    # with a dollar sign (not a hyphen), so the echo should work correctly.
9264    lt_compile=`echo "$ac_compile" | $SED \
9265    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267    -e 's:$: $lt_compiler_flag:'`
9268    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9269    (eval "$lt_compile" 2>out/conftest.err)
9270    ac_status=$?
9271    cat out/conftest.err >&5
9272    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9274    then
9275      # The compiler can only warn and ignore the option if not recognized
9276      # So say no if there are warnings
9277      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9278      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9279      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9280        lt_cv_prog_compiler_c_o=yes
9281      fi
9282    fi
9283    chmod u+w . 2>&5
9284    $RM conftest*
9285    # SGI C++ compiler will create directory out/ii_files/ for
9286    # template instantiation
9287    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9288    $RM out/* && rmdir out
9289    cd ..
9290    $RM -r conftest
9291    $RM conftest*
9292
9293 fi
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9296
9297
9298
9299
9300
9301
9302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9304 if ${lt_cv_prog_compiler_c_o+:} false; then :
9305   $as_echo_n "(cached) " >&6
9306 else
9307   lt_cv_prog_compiler_c_o=no
9308    $RM -r conftest 2>/dev/null
9309    mkdir conftest
9310    cd conftest
9311    mkdir out
9312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9313
9314    lt_compiler_flag="-o out/conftest2.$ac_objext"
9315    # Insert the option either (1) after the last *FLAGS variable, or
9316    # (2) before a word containing "conftest.", or (3) at the end.
9317    # Note that $ac_compile itself does not contain backslashes and begins
9318    # with a dollar sign (not a hyphen), so the echo should work correctly.
9319    lt_compile=`echo "$ac_compile" | $SED \
9320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322    -e 's:$: $lt_compiler_flag:'`
9323    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9324    (eval "$lt_compile" 2>out/conftest.err)
9325    ac_status=$?
9326    cat out/conftest.err >&5
9327    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9329    then
9330      # The compiler can only warn and ignore the option if not recognized
9331      # So say no if there are warnings
9332      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9333      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9334      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9335        lt_cv_prog_compiler_c_o=yes
9336      fi
9337    fi
9338    chmod u+w . 2>&5
9339    $RM conftest*
9340    # SGI C++ compiler will create directory out/ii_files/ for
9341    # template instantiation
9342    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9343    $RM out/* && rmdir out
9344    cd ..
9345    $RM -r conftest
9346    $RM conftest*
9347
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9351
9352
9353
9354
9355 hard_links=nottested
9356 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9357   # do not overwrite the value of need_locks provided by the user
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9359 $as_echo_n "checking if we can lock with hard links... " >&6; }
9360   hard_links=yes
9361   $RM conftest*
9362   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9363   touch conftest.a
9364   ln conftest.a conftest.b 2>&5 || hard_links=no
9365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9367 $as_echo "$hard_links" >&6; }
9368   if test no = "$hard_links"; then
9369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9370 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9371     need_locks=warn
9372   fi
9373 else
9374   need_locks=no
9375 fi
9376
9377
9378
9379
9380
9381
9382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9384
9385   runpath_var=
9386   allow_undefined_flag=
9387   always_export_symbols=no
9388   archive_cmds=
9389   archive_expsym_cmds=
9390   compiler_needs_object=no
9391   enable_shared_with_static_runtimes=no
9392   export_dynamic_flag_spec=
9393   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9394   hardcode_automatic=no
9395   hardcode_direct=no
9396   hardcode_direct_absolute=no
9397   hardcode_libdir_flag_spec=
9398   hardcode_libdir_separator=
9399   hardcode_minus_L=no
9400   hardcode_shlibpath_var=unsupported
9401   inherit_rpath=no
9402   link_all_deplibs=unknown
9403   module_cmds=
9404   module_expsym_cmds=
9405   old_archive_from_new_cmds=
9406   old_archive_from_expsyms_cmds=
9407   thread_safe_flag_spec=
9408   whole_archive_flag_spec=
9409   # include_expsyms should be a list of space-separated symbols to be *always*
9410   # included in the symbol list
9411   include_expsyms=
9412   # exclude_expsyms can be an extended regexp of symbols to exclude
9413   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9414   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9415   # as well as any symbol that contains 'd'.
9416   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9417   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9418   # platforms (ab)use it in PIC code, but their linkers get confused if
9419   # the symbol is explicitly referenced.  Since portable code cannot
9420   # rely on this symbol name, it's probably fine to never include it in
9421   # preloaded symbol tables.
9422   # Exclude shared library initialization/finalization symbols.
9423   extract_expsyms_cmds=
9424
9425   case $host_os in
9426   cygwin* | mingw* | pw32* | cegcc*)
9427     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9428     # When not using gcc, we currently assume that we are using
9429     # Microsoft Visual C++.
9430     if test yes != "$GCC"; then
9431       with_gnu_ld=no
9432     fi
9433     ;;
9434   interix*)
9435     # we just hope/assume this is gcc and not c89 (= MSVC++)
9436     with_gnu_ld=yes
9437     ;;
9438   openbsd* | bitrig*)
9439     with_gnu_ld=no
9440     ;;
9441   esac
9442
9443   ld_shlibs=yes
9444
9445   # On some targets, GNU ld is compatible enough with the native linker
9446   # that we're better off using the native interface for both.
9447   lt_use_gnu_ld_interface=no
9448   if test yes = "$with_gnu_ld"; then
9449     case $host_os in
9450       aix*)
9451         # The AIX port of GNU ld has always aspired to compatibility
9452         # with the native linker.  However, as the warning in the GNU ld
9453         # block says, versions before 2.19.5* couldn't really create working
9454         # shared libraries, regardless of the interface used.
9455         case `$LD -v 2>&1` in
9456           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9457           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9458           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9459           *)
9460             lt_use_gnu_ld_interface=yes
9461             ;;
9462         esac
9463         ;;
9464       *)
9465         lt_use_gnu_ld_interface=yes
9466         ;;
9467     esac
9468   fi
9469
9470   if test yes = "$lt_use_gnu_ld_interface"; then
9471     # If archive_cmds runs LD, not CC, wlarc should be empty
9472     wlarc='$wl'
9473
9474     # Set some defaults for GNU ld with shared library support. These
9475     # are reset later if shared libraries are not supported. Putting them
9476     # here allows them to be overridden if necessary.
9477     runpath_var=LD_RUN_PATH
9478     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9479     export_dynamic_flag_spec='$wl--export-dynamic'
9480     # ancient GNU ld didn't support --whole-archive et. al.
9481     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9482       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9483     else
9484       whole_archive_flag_spec=
9485     fi
9486     supports_anon_versioning=no
9487     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9488       *GNU\ gold*) supports_anon_versioning=yes ;;
9489       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9490       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9491       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9492       *\ 2.11.*) ;; # other 2.11 versions
9493       *) supports_anon_versioning=yes ;;
9494     esac
9495
9496     # See if GNU ld supports shared libraries.
9497     case $host_os in
9498     aix[3-9]*)
9499       # On AIX/PPC, the GNU linker is very broken
9500       if test ia64 != "$host_cpu"; then
9501         ld_shlibs=no
9502         cat <<_LT_EOF 1>&2
9503
9504 *** Warning: the GNU linker, at least up to release 2.19, is reported
9505 *** to be unable to reliably create shared libraries on AIX.
9506 *** Therefore, libtool is disabling shared libraries support.  If you
9507 *** really care for shared libraries, you may want to install binutils
9508 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9509 *** You will then need to restart the configuration process.
9510
9511 _LT_EOF
9512       fi
9513       ;;
9514
9515     amigaos*)
9516       case $host_cpu in
9517       powerpc)
9518             # see comment about AmigaOS4 .so support
9519             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9520             archive_expsym_cmds=''
9521         ;;
9522       m68k)
9523             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)'
9524             hardcode_libdir_flag_spec='-L$libdir'
9525             hardcode_minus_L=yes
9526         ;;
9527       esac
9528       ;;
9529
9530     beos*)
9531       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9532         allow_undefined_flag=unsupported
9533         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9534         # support --undefined.  This deserves some investigation.  FIXME
9535         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9536       else
9537         ld_shlibs=no
9538       fi
9539       ;;
9540
9541     cygwin* | mingw* | pw32* | cegcc*)
9542       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9543       # as there is no search path for DLLs.
9544       hardcode_libdir_flag_spec='-L$libdir'
9545       export_dynamic_flag_spec='$wl--export-all-symbols'
9546       allow_undefined_flag=unsupported
9547       always_export_symbols=no
9548       enable_shared_with_static_runtimes=yes
9549       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'
9550       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9551
9552       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9553         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9554         # If the export-symbols file already is a .def file, use it as
9555         # is; otherwise, prepend EXPORTS...
9556         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9557           cp $export_symbols $output_objdir/$soname.def;
9558         else
9559           echo EXPORTS > $output_objdir/$soname.def;
9560           cat $export_symbols >> $output_objdir/$soname.def;
9561         fi~
9562         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9563       else
9564         ld_shlibs=no
9565       fi
9566       ;;
9567
9568     haiku*)
9569       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9570       link_all_deplibs=yes
9571       ;;
9572
9573     os2*)
9574       hardcode_libdir_flag_spec='-L$libdir'
9575       hardcode_minus_L=yes
9576       allow_undefined_flag=unsupported
9577       shrext_cmds=.dll
9578       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9579         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9580         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9581         $ECHO EXPORTS >> $output_objdir/$libname.def~
9582         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9583         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9584         emximp -o $lib $output_objdir/$libname.def'
9585       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9586         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9587         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9588         $ECHO EXPORTS >> $output_objdir/$libname.def~
9589         prefix_cmds="$SED"~
9590         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9591           prefix_cmds="$prefix_cmds -e 1d";
9592         fi~
9593         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9594         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9595         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9596         emximp -o $lib $output_objdir/$libname.def'
9597       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9598       enable_shared_with_static_runtimes=yes
9599       ;;
9600
9601     interix[3-9]*)
9602       hardcode_direct=no
9603       hardcode_shlibpath_var=no
9604       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9605       export_dynamic_flag_spec='$wl-E'
9606       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9607       # Instead, shared libraries are loaded at an image base (0x10000000 by
9608       # default) and relocated if they conflict, which is a slow very memory
9609       # consuming and fragmenting process.  To avoid this, we pick a random,
9610       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9611       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9612       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9613       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'
9614       ;;
9615
9616     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9617       tmp_diet=no
9618       if test linux-dietlibc = "$host_os"; then
9619         case $cc_basename in
9620           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9621         esac
9622       fi
9623       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9624          && test no = "$tmp_diet"
9625       then
9626         tmp_addflag=' $pic_flag'
9627         tmp_sharedflag='-shared'
9628         case $cc_basename,$host_cpu in
9629         pgcc*)                          # Portland Group C compiler
9630           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'
9631           tmp_addflag=' $pic_flag'
9632           ;;
9633         pgf77* | pgf90* | pgf95* | pgfortran*)
9634                                         # Portland Group f77 and f90 compilers
9635           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'
9636           tmp_addflag=' $pic_flag -Mnomain' ;;
9637         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9638           tmp_addflag=' -i_dynamic' ;;
9639         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9640           tmp_addflag=' -i_dynamic -nofor_main' ;;
9641         ifc* | ifort*)                  # Intel Fortran compiler
9642           tmp_addflag=' -nofor_main' ;;
9643         lf95*)                          # Lahey Fortran 8.1
9644           whole_archive_flag_spec=
9645           tmp_sharedflag='--shared' ;;
9646         nagfor*)                        # NAGFOR 5.3
9647           tmp_sharedflag='-Wl,-shared' ;;
9648         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9649           tmp_sharedflag='-qmkshrobj'
9650           tmp_addflag= ;;
9651         nvcc*)  # Cuda Compiler Driver 2.2
9652           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'
9653           compiler_needs_object=yes
9654           ;;
9655         esac
9656         case `$CC -V 2>&1 | sed 5q` in
9657         *Sun\ C*)                       # Sun C 5.9
9658           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'
9659           compiler_needs_object=yes
9660           tmp_sharedflag='-G' ;;
9661         *Sun\ F*)                       # Sun Fortran 8.3
9662           tmp_sharedflag='-G' ;;
9663         esac
9664         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9665
9666         if test yes = "$supports_anon_versioning"; then
9667           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669             echo "local: *; };" >> $output_objdir/$libname.ver~
9670             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9671         fi
9672
9673         case $cc_basename in
9674         tcc*)
9675           export_dynamic_flag_spec='-rdynamic'
9676           ;;
9677         xlf* | bgf* | bgxlf* | mpixlf*)
9678           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9679           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9680           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9681           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9682           if test yes = "$supports_anon_versioning"; then
9683             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9684               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9685               echo "local: *; };" >> $output_objdir/$libname.ver~
9686               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9687           fi
9688           ;;
9689         esac
9690       else
9691         ld_shlibs=no
9692       fi
9693       ;;
9694
9695     netbsd*)
9696       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9697         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9698         wlarc=
9699       else
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       fi
9703       ;;
9704
9705     solaris*)
9706       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9707         ld_shlibs=no
9708         cat <<_LT_EOF 1>&2
9709
9710 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9711 *** create shared libraries on Solaris systems.  Therefore, libtool
9712 *** is disabling shared libraries support.  We urge you to upgrade GNU
9713 *** binutils to release 2.9.1 or newer.  Another option is to modify
9714 *** your PATH or compiler configuration so that the native linker is
9715 *** used, and then restart.
9716
9717 _LT_EOF
9718       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9719         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9721       else
9722         ld_shlibs=no
9723       fi
9724       ;;
9725
9726     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9727       case `$LD -v 2>&1` in
9728         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9729         ld_shlibs=no
9730         cat <<_LT_EOF 1>&2
9731
9732 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9733 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9734 *** is disabling shared libraries support.  We urge you to upgrade GNU
9735 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9736 *** your PATH or compiler configuration so that the native linker is
9737 *** used, and then restart.
9738
9739 _LT_EOF
9740         ;;
9741         *)
9742           # For security reasons, it is highly recommended that you always
9743           # use absolute paths for naming shared libraries, and exclude the
9744           # DT_RUNPATH tag from executables and libraries.  But doing so
9745           # requires that you compile everything twice, which is a pain.
9746           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9747             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9748             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9749             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9750           else
9751             ld_shlibs=no
9752           fi
9753         ;;
9754       esac
9755       ;;
9756
9757     sunos4*)
9758       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759       wlarc=
9760       hardcode_direct=yes
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     *)
9765       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9766         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9767         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9768       else
9769         ld_shlibs=no
9770       fi
9771       ;;
9772     esac
9773
9774     if test no = "$ld_shlibs"; then
9775       runpath_var=
9776       hardcode_libdir_flag_spec=
9777       export_dynamic_flag_spec=
9778       whole_archive_flag_spec=
9779     fi
9780   else
9781     # PORTME fill in a description of your system's linker (not GNU ld)
9782     case $host_os in
9783     aix3*)
9784       allow_undefined_flag=unsupported
9785       always_export_symbols=yes
9786       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'
9787       # Note: this linker hardcodes the directories in LIBPATH if there
9788       # are no directories specified by -L.
9789       hardcode_minus_L=yes
9790       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9791         # Neither direct hardcoding nor static linking is supported with a
9792         # broken collect2.
9793         hardcode_direct=unsupported
9794       fi
9795       ;;
9796
9797     aix[4-9]*)
9798       if test ia64 = "$host_cpu"; then
9799         # On IA64, the linker does run time linking by default, so we don't
9800         # have to do anything special.
9801         aix_use_runtimelinking=no
9802         exp_sym_flag='-Bexport'
9803         no_entry_flag=
9804       else
9805         # If we're using GNU nm, then we don't want the "-C" option.
9806         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9807         # Without the "-l" option, or with the "-B" option, AIX nm treats
9808         # weak defined symbols like other global defined symbols, whereas
9809         # GNU nm marks them as "W".
9810         # While the 'weak' keyword is ignored in the Export File, we need
9811         # it in the Import File for the 'aix-soname' feature, so we have
9812         # to replace the "-B" option with "-P" for AIX nm.
9813         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9814           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9815         else
9816           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9817         fi
9818         aix_use_runtimelinking=no
9819
9820         # Test if we are trying to use run time linking or normal
9821         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9822         # have runtime linking enabled, and use it for executables.
9823         # For shared libraries, we enable/disable runtime linking
9824         # depending on the kind of the shared library created -
9825         # when "with_aix_soname,aix_use_runtimelinking" is:
9826         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9827         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9828         #            lib.a           static archive
9829         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9830         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9831         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9832         #            lib.a(lib.so.V) shared, rtl:no
9833         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9834         #            lib.a           static archive
9835         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9836           for ld_flag in $LDFLAGS; do
9837           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9838             aix_use_runtimelinking=yes
9839             break
9840           fi
9841           done
9842           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9843             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9844             # so we don't have lib.a shared libs to link our executables.
9845             # We have to force runtime linking in this case.
9846             aix_use_runtimelinking=yes
9847             LDFLAGS="$LDFLAGS -Wl,-brtl"
9848           fi
9849           ;;
9850         esac
9851
9852         exp_sym_flag='-bexport'
9853         no_entry_flag='-bnoentry'
9854       fi
9855
9856       # When large executables or shared objects are built, AIX ld can
9857       # have problems creating the table of contents.  If linking a library
9858       # or program results in "error TOC overflow" add -mminimal-toc to
9859       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9860       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9861
9862       archive_cmds=''
9863       hardcode_direct=yes
9864       hardcode_direct_absolute=yes
9865       hardcode_libdir_separator=':'
9866       link_all_deplibs=yes
9867       file_list_spec='$wl-f,'
9868       case $with_aix_soname,$aix_use_runtimelinking in
9869       aix,*) ;; # traditional, no import file
9870       svr4,* | *,yes) # use import file
9871         # The Import File defines what to hardcode.
9872         hardcode_direct=no
9873         hardcode_direct_absolute=no
9874         ;;
9875       esac
9876
9877       if test yes = "$GCC"; then
9878         case $host_os in aix4.[012]|aix4.[012].*)
9879         # We only want to do this on AIX 4.2 and lower, the check
9880         # below for broken collect2 doesn't work under 4.3+
9881           collect2name=`$CC -print-prog-name=collect2`
9882           if test -f "$collect2name" &&
9883            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9884           then
9885           # We have reworked collect2
9886           :
9887           else
9888           # We have old collect2
9889           hardcode_direct=unsupported
9890           # It fails to find uninstalled libraries when the uninstalled
9891           # path is not listed in the libpath.  Setting hardcode_minus_L
9892           # to unsupported forces relinking
9893           hardcode_minus_L=yes
9894           hardcode_libdir_flag_spec='-L$libdir'
9895           hardcode_libdir_separator=
9896           fi
9897           ;;
9898         esac
9899         shared_flag='-shared'
9900         if test yes = "$aix_use_runtimelinking"; then
9901           shared_flag="$shared_flag "'$wl-G'
9902         fi
9903         # Need to ensure runtime linking is disabled for the traditional
9904         # shared library, or the linker may eventually find shared libraries
9905         # /with/ Import File - we do not want to mix them.
9906         shared_flag_aix='-shared'
9907         shared_flag_svr4='-shared $wl-G'
9908       else
9909         # not using gcc
9910         if test ia64 = "$host_cpu"; then
9911         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9912         # chokes on -Wl,-G. The following line is correct:
9913           shared_flag='-G'
9914         else
9915           if test yes = "$aix_use_runtimelinking"; then
9916             shared_flag='$wl-G'
9917           else
9918             shared_flag='$wl-bM:SRE'
9919           fi
9920           shared_flag_aix='$wl-bM:SRE'
9921           shared_flag_svr4='$wl-G'
9922         fi
9923       fi
9924
9925       export_dynamic_flag_spec='$wl-bexpall'
9926       # It seems that -bexpall does not export symbols beginning with
9927       # underscore (_), so it is better to generate a list of symbols to export.
9928       always_export_symbols=yes
9929       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9930         # Warning - without using the other runtime loading flags (-brtl),
9931         # -berok will link without error, but may produce a broken library.
9932         allow_undefined_flag='-berok'
9933         # Determine the default libpath from the value encoded in an
9934         # empty executable.
9935         if test set = "${lt_cv_aix_libpath+set}"; then
9936   aix_libpath=$lt_cv_aix_libpath
9937 else
9938   if ${lt_cv_aix_libpath_+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h.  */
9943
9944 int
9945 main ()
9946 {
9947
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953
9954   lt_aix_libpath_sed='
9955       /Import File Strings/,/^$/ {
9956           /^0/ {
9957               s/^0  *\([^ ]*\) *$/\1/
9958               p
9959           }
9960       }'
9961   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962   # Check for a 64-bit object if we didn't find anything.
9963   if test -z "$lt_cv_aix_libpath_"; then
9964     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9965   fi
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext \
9968     conftest$ac_exeext conftest.$ac_ext
9969   if test -z "$lt_cv_aix_libpath_"; then
9970     lt_cv_aix_libpath_=/usr/lib:/lib
9971   fi
9972
9973 fi
9974
9975   aix_libpath=$lt_cv_aix_libpath_
9976 fi
9977
9978         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9979         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9980       else
9981         if test ia64 = "$host_cpu"; then
9982           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9983           allow_undefined_flag="-z nodefs"
9984           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"
9985         else
9986          # Determine the default libpath from the value encoded in an
9987          # empty executable.
9988          if test set = "${lt_cv_aix_libpath+set}"; then
9989   aix_libpath=$lt_cv_aix_libpath
9990 else
9991   if ${lt_cv_aix_libpath_+:} false; then :
9992   $as_echo_n "(cached) " >&6
9993 else
9994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h.  */
9996
9997 int
9998 main ()
9999 {
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006
10007   lt_aix_libpath_sed='
10008       /Import File Strings/,/^$/ {
10009           /^0/ {
10010               s/^0  *\([^ ]*\) *$/\1/
10011               p
10012           }
10013       }'
10014   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10015   # Check for a 64-bit object if we didn't find anything.
10016   if test -z "$lt_cv_aix_libpath_"; then
10017     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018   fi
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext \
10021     conftest$ac_exeext conftest.$ac_ext
10022   if test -z "$lt_cv_aix_libpath_"; then
10023     lt_cv_aix_libpath_=/usr/lib:/lib
10024   fi
10025
10026 fi
10027
10028   aix_libpath=$lt_cv_aix_libpath_
10029 fi
10030
10031          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10032           # Warning - without using the other run time loading flags,
10033           # -berok will link without error, but may produce a broken library.
10034           no_undefined_flag=' $wl-bernotok'
10035           allow_undefined_flag=' $wl-berok'
10036           if test yes = "$with_gnu_ld"; then
10037             # We only use this code for GNU lds that support --whole-archive.
10038             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10039           else
10040             # Exported symbols can be pulled into shared objects from archives
10041             whole_archive_flag_spec='$convenience'
10042           fi
10043           archive_cmds_need_lc=yes
10044           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10045           # -brtl affects multiple linker settings, -berok does not and is overridden later
10046           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10047           if test svr4 != "$with_aix_soname"; then
10048             # This is similar to how AIX traditionally builds its shared libraries.
10049             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10050           fi
10051           if test aix != "$with_aix_soname"; then
10052             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10053           else
10054             # used by -dlpreopen to get the symbols
10055             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10056           fi
10057           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10058         fi
10059       fi
10060       ;;
10061
10062     amigaos*)
10063       case $host_cpu in
10064       powerpc)
10065             # see comment about AmigaOS4 .so support
10066             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10067             archive_expsym_cmds=''
10068         ;;
10069       m68k)
10070             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)'
10071             hardcode_libdir_flag_spec='-L$libdir'
10072             hardcode_minus_L=yes
10073         ;;
10074       esac
10075       ;;
10076
10077     bsdi[45]*)
10078       export_dynamic_flag_spec=-rdynamic
10079       ;;
10080
10081     cygwin* | mingw* | pw32* | cegcc*)
10082       # When not using gcc, we currently assume that we are using
10083       # Microsoft Visual C++.
10084       # hardcode_libdir_flag_spec is actually meaningless, as there is
10085       # no search path for DLLs.
10086       case $cc_basename in
10087       cl*)
10088         # Native MSVC
10089         hardcode_libdir_flag_spec=' '
10090         allow_undefined_flag=unsupported
10091         always_export_symbols=yes
10092         file_list_spec='@'
10093         # Tell ltmain to make .lib files, not .a files.
10094         libext=lib
10095         # Tell ltmain to make .dll files, not .so files.
10096         shrext_cmds=.dll
10097         # FIXME: Setting linknames here is a bad hack.
10098         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10099         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10100             cp "$export_symbols" "$output_objdir/$soname.def";
10101             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10102           else
10103             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10104           fi~
10105           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10106           linknames='
10107         # The linker will not automatically build a static lib if we build a DLL.
10108         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10109         enable_shared_with_static_runtimes=yes
10110         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10111         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10112         # Don't use ranlib
10113         old_postinstall_cmds='chmod 644 $oldlib'
10114         postlink_cmds='lt_outputfile="@OUTPUT@"~
10115           lt_tool_outputfile="@TOOL_OUTPUT@"~
10116           case $lt_outputfile in
10117             *.exe|*.EXE) ;;
10118             *)
10119               lt_outputfile=$lt_outputfile.exe
10120               lt_tool_outputfile=$lt_tool_outputfile.exe
10121               ;;
10122           esac~
10123           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10124             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10125             $RM "$lt_outputfile.manifest";
10126           fi'
10127         ;;
10128       *)
10129         # Assume MSVC wrapper
10130         hardcode_libdir_flag_spec=' '
10131         allow_undefined_flag=unsupported
10132         # Tell ltmain to make .lib files, not .a files.
10133         libext=lib
10134         # Tell ltmain to make .dll files, not .so files.
10135         shrext_cmds=.dll
10136         # FIXME: Setting linknames here is a bad hack.
10137         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10138         # The linker will automatically build a .lib file if we build a DLL.
10139         old_archive_from_new_cmds='true'
10140         # FIXME: Should let the user specify the lib program.
10141         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10142         enable_shared_with_static_runtimes=yes
10143         ;;
10144       esac
10145       ;;
10146
10147     darwin* | rhapsody*)
10148
10149
10150   archive_cmds_need_lc=no
10151   hardcode_direct=no
10152   hardcode_automatic=yes
10153   hardcode_shlibpath_var=unsupported
10154   if test yes = "$lt_cv_ld_force_load"; then
10155     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\"`'
10156
10157   else
10158     whole_archive_flag_spec=''
10159   fi
10160   link_all_deplibs=yes
10161   allow_undefined_flag=$_lt_dar_allow_undefined
10162   case $cc_basename in
10163      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10164      *) _lt_dar_can_shared=$GCC ;;
10165   esac
10166   if test yes = "$_lt_dar_can_shared"; then
10167     output_verbose_link_cmd=func_echo_all
10168     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10169     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10170     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"
10171     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"
10172
10173   else
10174   ld_shlibs=no
10175   fi
10176
10177       ;;
10178
10179     dgux*)
10180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181       hardcode_libdir_flag_spec='-L$libdir'
10182       hardcode_shlibpath_var=no
10183       ;;
10184
10185     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186     # support.  Future versions do this automatically, but an explicit c++rt0.o
10187     # does not break anything, and helps significantly (at the cost of a little
10188     # extra space).
10189     freebsd2.2*)
10190       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191       hardcode_libdir_flag_spec='-R$libdir'
10192       hardcode_direct=yes
10193       hardcode_shlibpath_var=no
10194       ;;
10195
10196     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10197     freebsd2.*)
10198       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199       hardcode_direct=yes
10200       hardcode_minus_L=yes
10201       hardcode_shlibpath_var=no
10202       ;;
10203
10204     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205     freebsd* | dragonfly*)
10206       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_direct=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     hpux9*)
10213       if test yes = "$GCC"; then
10214         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10215       else
10216         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10217       fi
10218       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10219       hardcode_libdir_separator=:
10220       hardcode_direct=yes
10221
10222       # hardcode_minus_L: Not really in the search PATH,
10223       # but as the default location of the library.
10224       hardcode_minus_L=yes
10225       export_dynamic_flag_spec='$wl-E'
10226       ;;
10227
10228     hpux10*)
10229       if test yes,no = "$GCC,$with_gnu_ld"; then
10230         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231       else
10232         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10233       fi
10234       if test no = "$with_gnu_ld"; then
10235         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10236         hardcode_libdir_separator=:
10237         hardcode_direct=yes
10238         hardcode_direct_absolute=yes
10239         export_dynamic_flag_spec='$wl-E'
10240         # hardcode_minus_L: Not really in the search PATH,
10241         # but as the default location of the library.
10242         hardcode_minus_L=yes
10243       fi
10244       ;;
10245
10246     hpux11*)
10247       if test yes,no = "$GCC,$with_gnu_ld"; then
10248         case $host_cpu in
10249         hppa*64*)
10250           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10251           ;;
10252         ia64*)
10253           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10254           ;;
10255         *)
10256           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257           ;;
10258         esac
10259       else
10260         case $host_cpu in
10261         hppa*64*)
10262           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10263           ;;
10264         ia64*)
10265           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10266           ;;
10267         *)
10268
10269           # Older versions of the 11.00 compiler do not understand -b yet
10270           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10271           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10272 $as_echo_n "checking if $CC understands -b... " >&6; }
10273 if ${lt_cv_prog_compiler__b+:} false; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   lt_cv_prog_compiler__b=no
10277    save_LDFLAGS=$LDFLAGS
10278    LDFLAGS="$LDFLAGS -b"
10279    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10280    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10281      # The linker can only warn and ignore the option if not recognized
10282      # So say no if there are warnings
10283      if test -s conftest.err; then
10284        # Append any errors to the config.log.
10285        cat conftest.err 1>&5
10286        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10287        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10288        if diff conftest.exp conftest.er2 >/dev/null; then
10289          lt_cv_prog_compiler__b=yes
10290        fi
10291      else
10292        lt_cv_prog_compiler__b=yes
10293      fi
10294    fi
10295    $RM -r conftest*
10296    LDFLAGS=$save_LDFLAGS
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10300 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10301
10302 if test yes = "$lt_cv_prog_compiler__b"; then
10303     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10304 else
10305     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10306 fi
10307
10308           ;;
10309         esac
10310       fi
10311       if test no = "$with_gnu_ld"; then
10312         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10313         hardcode_libdir_separator=:
10314
10315         case $host_cpu in
10316         hppa*64*|ia64*)
10317           hardcode_direct=no
10318           hardcode_shlibpath_var=no
10319           ;;
10320         *)
10321           hardcode_direct=yes
10322           hardcode_direct_absolute=yes
10323           export_dynamic_flag_spec='$wl-E'
10324
10325           # hardcode_minus_L: Not really in the search PATH,
10326           # but as the default location of the library.
10327           hardcode_minus_L=yes
10328           ;;
10329         esac
10330       fi
10331       ;;
10332
10333     irix5* | irix6* | nonstopux*)
10334       if test yes = "$GCC"; then
10335         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'
10336         # Try to use the -exported_symbol ld option, if it does not
10337         # work, assume that -exports_file does not work either and
10338         # implicitly export all symbols.
10339         # This should be the same for all languages, so no per-tag cache variable.
10340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10341 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10342 if ${lt_cv_irix_exported_symbol+:} false; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   save_LDFLAGS=$LDFLAGS
10346            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10347            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h.  */
10349 int foo (void) { return 0; }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"; then :
10352   lt_cv_irix_exported_symbol=yes
10353 else
10354   lt_cv_irix_exported_symbol=no
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext \
10357     conftest$ac_exeext conftest.$ac_ext
10358            LDFLAGS=$save_LDFLAGS
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10361 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10362         if test yes = "$lt_cv_irix_exported_symbol"; then
10363           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'
10364         fi
10365       else
10366         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'
10367         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'
10368       fi
10369       archive_cmds_need_lc='no'
10370       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10371       hardcode_libdir_separator=:
10372       inherit_rpath=yes
10373       link_all_deplibs=yes
10374       ;;
10375
10376     linux*)
10377       case $cc_basename in
10378       tcc*)
10379         # Fabrice Bellard et al's Tiny C Compiler
10380         ld_shlibs=yes
10381         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382         ;;
10383       esac
10384       ;;
10385
10386     netbsd*)
10387       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10388         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10389       else
10390         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10391       fi
10392       hardcode_libdir_flag_spec='-R$libdir'
10393       hardcode_direct=yes
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     newsos6)
10398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399       hardcode_direct=yes
10400       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10401       hardcode_libdir_separator=:
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     *nto* | *qnx*)
10406       ;;
10407
10408     openbsd* | bitrig*)
10409       if test -f /usr/libexec/ld.so; then
10410         hardcode_direct=yes
10411         hardcode_shlibpath_var=no
10412         hardcode_direct_absolute=yes
10413         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10414           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10415           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10416           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10417           export_dynamic_flag_spec='$wl-E'
10418         else
10419           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10420           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10421         fi
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     os2*)
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_minus_L=yes
10430       allow_undefined_flag=unsupported
10431       shrext_cmds=.dll
10432       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10433         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10434         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10435         $ECHO EXPORTS >> $output_objdir/$libname.def~
10436         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10437         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10438         emximp -o $lib $output_objdir/$libname.def'
10439       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10440         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10441         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10442         $ECHO EXPORTS >> $output_objdir/$libname.def~
10443         prefix_cmds="$SED"~
10444         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10445           prefix_cmds="$prefix_cmds -e 1d";
10446         fi~
10447         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10448         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10449         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10450         emximp -o $lib $output_objdir/$libname.def'
10451       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10452       enable_shared_with_static_runtimes=yes
10453       ;;
10454
10455     osf3*)
10456       if test yes = "$GCC"; then
10457         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10458         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'
10459       else
10460         allow_undefined_flag=' -expect_unresolved \*'
10461         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'
10462       fi
10463       archive_cmds_need_lc='no'
10464       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10465       hardcode_libdir_separator=:
10466       ;;
10467
10468     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10469       if test yes = "$GCC"; then
10470         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10471         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'
10472         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10473       else
10474         allow_undefined_flag=' -expect_unresolved \*'
10475         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'
10476         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~
10477           $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'
10478
10479         # Both c and cxx compiler support -rpath directly
10480         hardcode_libdir_flag_spec='-rpath $libdir'
10481       fi
10482       archive_cmds_need_lc='no'
10483       hardcode_libdir_separator=:
10484       ;;
10485
10486     solaris*)
10487       no_undefined_flag=' -z defs'
10488       if test yes = "$GCC"; then
10489         wlarc='$wl'
10490         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10491         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10492           $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'
10493       else
10494         case `$CC -V 2>&1` in
10495         *"Compilers 5.0"*)
10496           wlarc=''
10497           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10499             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10500           ;;
10501         *)
10502           wlarc='$wl'
10503           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10504           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10505             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10506           ;;
10507         esac
10508       fi
10509       hardcode_libdir_flag_spec='-R$libdir'
10510       hardcode_shlibpath_var=no
10511       case $host_os in
10512       solaris2.[0-5] | solaris2.[0-5].*) ;;
10513       *)
10514         # The compiler driver will combine and reorder linker options,
10515         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10516         # but is careful enough not to reorder.
10517         # Supported since Solaris 2.6 (maybe 2.5.1?)
10518         if test yes = "$GCC"; then
10519           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10520         else
10521           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10522         fi
10523         ;;
10524       esac
10525       link_all_deplibs=yes
10526       ;;
10527
10528     sunos4*)
10529       if test sequent = "$host_vendor"; then
10530         # Use $CC to link under sequent, because it throws in some extra .o
10531         # files that make .init and .fini sections work.
10532         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533       else
10534         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10535       fi
10536       hardcode_libdir_flag_spec='-L$libdir'
10537       hardcode_direct=yes
10538       hardcode_minus_L=yes
10539       hardcode_shlibpath_var=no
10540       ;;
10541
10542     sysv4)
10543       case $host_vendor in
10544         sni)
10545           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546           hardcode_direct=yes # is this really true???
10547         ;;
10548         siemens)
10549           ## LD is ld it makes a PLAMLIB
10550           ## CC just makes a GrossModule.
10551           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10552           reload_cmds='$CC -r -o $output$reload_objs'
10553           hardcode_direct=no
10554         ;;
10555         motorola)
10556           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10558         ;;
10559       esac
10560       runpath_var='LD_RUN_PATH'
10561       hardcode_shlibpath_var=no
10562       ;;
10563
10564     sysv4.3*)
10565       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566       hardcode_shlibpath_var=no
10567       export_dynamic_flag_spec='-Bexport'
10568       ;;
10569
10570     sysv4*MP*)
10571       if test -d /usr/nec; then
10572         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573         hardcode_shlibpath_var=no
10574         runpath_var=LD_RUN_PATH
10575         hardcode_runpath_var=yes
10576         ld_shlibs=yes
10577       fi
10578       ;;
10579
10580     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10581       no_undefined_flag='$wl-z,text'
10582       archive_cmds_need_lc=no
10583       hardcode_shlibpath_var=no
10584       runpath_var='LD_RUN_PATH'
10585
10586       if test yes = "$GCC"; then
10587         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589       else
10590         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592       fi
10593       ;;
10594
10595     sysv5* | sco3.2v5* | sco5v6*)
10596       # Note: We CANNOT use -z defs as we might desire, because we do not
10597       # link with -lc, and that would cause any symbols used from libc to
10598       # always be unresolved, which means just about no library would
10599       # ever link correctly.  If we're not using GNU ld we use -z text
10600       # though, which does catch some bad symbols but isn't as heavy-handed
10601       # as -z defs.
10602       no_undefined_flag='$wl-z,text'
10603       allow_undefined_flag='$wl-z,nodefs'
10604       archive_cmds_need_lc=no
10605       hardcode_shlibpath_var=no
10606       hardcode_libdir_flag_spec='$wl-R,$libdir'
10607       hardcode_libdir_separator=':'
10608       link_all_deplibs=yes
10609       export_dynamic_flag_spec='$wl-Bexport'
10610       runpath_var='LD_RUN_PATH'
10611
10612       if test yes = "$GCC"; then
10613         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615       else
10616         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618       fi
10619       ;;
10620
10621     uts4*)
10622       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623       hardcode_libdir_flag_spec='-L$libdir'
10624       hardcode_shlibpath_var=no
10625       ;;
10626
10627     *)
10628       ld_shlibs=no
10629       ;;
10630     esac
10631
10632     if test sni = "$host_vendor"; then
10633       case $host in
10634       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10635         export_dynamic_flag_spec='$wl-Blargedynsym'
10636         ;;
10637       esac
10638     fi
10639   fi
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10642 $as_echo "$ld_shlibs" >&6; }
10643 test no = "$ld_shlibs" && can_build_shared=no
10644
10645 with_gnu_ld=$with_gnu_ld
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661 #
10662 # Do we need to explicitly link libc?
10663 #
10664 case "x$archive_cmds_need_lc" in
10665 x|xyes)
10666   # Assume -lc should be added
10667   archive_cmds_need_lc=yes
10668
10669   if test yes,yes = "$GCC,$enable_shared"; then
10670     case $archive_cmds in
10671     *'~'*)
10672       # FIXME: we may have to deal with multi-command sequences.
10673       ;;
10674     '$CC '*)
10675       # Test whether the compiler implicitly links with -lc since on some
10676       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10677       # to ld, don't add -lc before -lgcc.
10678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10679 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10680 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10681   $as_echo_n "(cached) " >&6
10682 else
10683   $RM conftest*
10684         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10685
10686         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10687   (eval $ac_compile) 2>&5
10688   ac_status=$?
10689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10690   test $ac_status = 0; } 2>conftest.err; then
10691           soname=conftest
10692           lib=conftest
10693           libobjs=conftest.$ac_objext
10694           deplibs=
10695           wl=$lt_prog_compiler_wl
10696           pic_flag=$lt_prog_compiler_pic
10697           compiler_flags=-v
10698           linker_flags=-v
10699           verstring=
10700           output_objdir=.
10701           libname=conftest
10702           lt_save_allow_undefined_flag=$allow_undefined_flag
10703           allow_undefined_flag=
10704           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10705   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10706   ac_status=$?
10707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10708   test $ac_status = 0; }
10709           then
10710             lt_cv_archive_cmds_need_lc=no
10711           else
10712             lt_cv_archive_cmds_need_lc=yes
10713           fi
10714           allow_undefined_flag=$lt_save_allow_undefined_flag
10715         else
10716           cat conftest.err 1>&5
10717         fi
10718         $RM conftest*
10719
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10722 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10723       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10724       ;;
10725     esac
10726   fi
10727   ;;
10728 esac
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
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10883
10884 if test yes = "$GCC"; then
10885   case $host_os in
10886     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10887     *) lt_awk_arg='/^libraries:/' ;;
10888   esac
10889   case $host_os in
10890     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10891     *) lt_sed_strip_eq='s|=/|/|g' ;;
10892   esac
10893   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10894   case $lt_search_path_spec in
10895   *\;*)
10896     # if the path contains ";" then we assume it to be the separator
10897     # otherwise default to the standard path separator (i.e. ":") - it is
10898     # assumed that no part of a normal pathname contains ";" but that should
10899     # okay in the real world where ";" in dirpaths is itself problematic.
10900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10901     ;;
10902   *)
10903     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10904     ;;
10905   esac
10906   # Ok, now we have the path, separated by spaces, we can step through it
10907   # and add multilib dir if necessary...
10908   lt_tmp_lt_search_path_spec=
10909   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10910   # ...but if some path component already ends with the multilib dir we assume
10911   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10912   case "$lt_multi_os_dir; $lt_search_path_spec " in
10913   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10914     lt_multi_os_dir=
10915     ;;
10916   esac
10917   for lt_sys_path in $lt_search_path_spec; do
10918     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10919       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10920     elif test -n "$lt_multi_os_dir"; then
10921       test -d "$lt_sys_path" && \
10922         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10923     fi
10924   done
10925   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10926 BEGIN {RS = " "; FS = "/|\n";} {
10927   lt_foo = "";
10928   lt_count = 0;
10929   for (lt_i = NF; lt_i > 0; lt_i--) {
10930     if ($lt_i != "" && $lt_i != ".") {
10931       if ($lt_i == "..") {
10932         lt_count++;
10933       } else {
10934         if (lt_count == 0) {
10935           lt_foo = "/" $lt_i lt_foo;
10936         } else {
10937           lt_count--;
10938         }
10939       }
10940     }
10941   }
10942   if (lt_foo != "") { lt_freq[lt_foo]++; }
10943   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10944 }'`
10945   # AWK program above erroneously prepends '/' to C:/dos/paths
10946   # for these hosts.
10947   case $host_os in
10948     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10949       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10950   esac
10951   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10952 else
10953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10954 fi
10955 library_names_spec=
10956 libname_spec='lib$name'
10957 soname_spec=
10958 shrext_cmds=.so
10959 postinstall_cmds=
10960 postuninstall_cmds=
10961 finish_cmds=
10962 finish_eval=
10963 shlibpath_var=
10964 shlibpath_overrides_runpath=unknown
10965 version_type=none
10966 dynamic_linker="$host_os ld.so"
10967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10968 need_lib_prefix=unknown
10969 hardcode_into_libs=no
10970
10971 # when you set need_version to no, make sure it does not cause -set_version
10972 # flags to be left without arguments
10973 need_version=unknown
10974
10975
10976
10977 case $host_os in
10978 aix3*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10981   shlibpath_var=LIBPATH
10982
10983   # AIX 3 has no versioning support, so we append a major version to the name.
10984   soname_spec='$libname$release$shared_ext$major'
10985   ;;
10986
10987 aix[4-9]*)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   hardcode_into_libs=yes
10992   if test ia64 = "$host_cpu"; then
10993     # AIX 5 supports IA64
10994     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10995     shlibpath_var=LD_LIBRARY_PATH
10996   else
10997     # With GCC up to 2.95.x, collect2 would create an import file
10998     # for dependence libraries.  The import file would start with
10999     # the line '#! .'.  This would cause the generated library to
11000     # depend on '.', always an invalid library.  This was fixed in
11001     # development snapshots of GCC prior to 3.0.
11002     case $host_os in
11003       aix4 | aix4.[01] | aix4.[01].*)
11004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11005            echo ' yes '
11006            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11007         :
11008       else
11009         can_build_shared=no
11010       fi
11011       ;;
11012     esac
11013     # Using Import Files as archive members, it is possible to support
11014     # filename-based versioning of shared library archives on AIX. While
11015     # this would work for both with and without runtime linking, it will
11016     # prevent static linking of such archives. So we do filename-based
11017     # shared library versioning with .so extension only, which is used
11018     # when both runtime linking and shared linking is enabled.
11019     # Unfortunately, runtime linking may impact performance, so we do
11020     # not want this to be the default eventually. Also, we use the
11021     # versioned .so libs for executables only if there is the -brtl
11022     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11023     # To allow for filename-based versioning support, we need to create
11024     # libNAME.so.V as an archive file, containing:
11025     # *) an Import File, referring to the versioned filename of the
11026     #    archive as well as the shared archive member, telling the
11027     #    bitwidth (32 or 64) of that shared object, and providing the
11028     #    list of exported symbols of that shared object, eventually
11029     #    decorated with the 'weak' keyword
11030     # *) the shared object with the F_LOADONLY flag set, to really avoid
11031     #    it being seen by the linker.
11032     # At run time we better use the real file rather than another symlink,
11033     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11034
11035     case $with_aix_soname,$aix_use_runtimelinking in
11036     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11037     # soname into executable. Probably we can add versioning support to
11038     # collect2, so additional links can be useful in future.
11039     aix,yes) # traditional libtool
11040       dynamic_linker='AIX unversionable lib.so'
11041       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11042       # instead of lib<name>.a to let people know that these are not
11043       # typical AIX shared libraries.
11044       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045       ;;
11046     aix,no) # traditional AIX only
11047       dynamic_linker='AIX lib.a(lib.so.V)'
11048       # We preserve .a as extension for shared libraries through AIX4.2
11049       # and later when we are not doing run time linking.
11050       library_names_spec='$libname$release.a $libname.a'
11051       soname_spec='$libname$release$shared_ext$major'
11052       ;;
11053     svr4,*) # full svr4 only
11054       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11055       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11056       # We do not specify a path in Import Files, so LIBPATH fires.
11057       shlibpath_overrides_runpath=yes
11058       ;;
11059     *,yes) # both, prefer svr4
11060       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11061       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11062       # unpreferred sharedlib libNAME.a needs extra handling
11063       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11064       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11065       # We do not specify a path in Import Files, so LIBPATH fires.
11066       shlibpath_overrides_runpath=yes
11067       ;;
11068     *,no) # both, prefer aix
11069       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11070       library_names_spec='$libname$release.a $libname.a'
11071       soname_spec='$libname$release$shared_ext$major'
11072       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11073       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11074       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11075       ;;
11076     esac
11077     shlibpath_var=LIBPATH
11078   fi
11079   ;;
11080
11081 amigaos*)
11082   case $host_cpu in
11083   powerpc)
11084     # Since July 2007 AmigaOS4 officially supports .so libraries.
11085     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11086     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087     ;;
11088   m68k)
11089     library_names_spec='$libname.ixlibrary $libname.a'
11090     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11091     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11092     ;;
11093   esac
11094   ;;
11095
11096 beos*)
11097   library_names_spec='$libname$shared_ext'
11098   dynamic_linker="$host_os ld.so"
11099   shlibpath_var=LIBRARY_PATH
11100   ;;
11101
11102 bsdi[45]*)
11103   version_type=linux # correct to gnu/linux during the next big refactor
11104   need_version=no
11105   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106   soname_spec='$libname$release$shared_ext$major'
11107   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11110   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11111   # the default ld.so.conf also contains /usr/contrib/lib and
11112   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11113   # libtool to hard-code these into programs
11114   ;;
11115
11116 cygwin* | mingw* | pw32* | cegcc*)
11117   version_type=windows
11118   shrext_cmds=.dll
11119   need_version=no
11120   need_lib_prefix=no
11121
11122   case $GCC,$cc_basename in
11123   yes,*)
11124     # gcc
11125     library_names_spec='$libname.dll.a'
11126     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11127     postinstall_cmds='base_file=`basename \$file`~
11128       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11129       dldir=$destdir/`dirname \$dlpath`~
11130       test -d \$dldir || mkdir -p \$dldir~
11131       $install_prog $dir/$dlname \$dldir/$dlname~
11132       chmod a+x \$dldir/$dlname~
11133       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11134         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11135       fi'
11136     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11137       dlpath=$dir/\$dldll~
11138        $RM \$dlpath'
11139     shlibpath_overrides_runpath=yes
11140
11141     case $host_os in
11142     cygwin*)
11143       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11144       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11145
11146       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11147       ;;
11148     mingw* | cegcc*)
11149       # MinGW DLLs use traditional 'lib' prefix
11150       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11151       ;;
11152     pw32*)
11153       # pw32 DLLs use 'pw' prefix rather than 'lib'
11154       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11155       ;;
11156     esac
11157     dynamic_linker='Win32 ld.exe'
11158     ;;
11159
11160   *,cl*)
11161     # Native MSVC
11162     libname_spec='$name'
11163     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11164     library_names_spec='$libname.dll.lib'
11165
11166     case $build_os in
11167     mingw*)
11168       sys_lib_search_path_spec=
11169       lt_save_ifs=$IFS
11170       IFS=';'
11171       for lt_path in $LIB
11172       do
11173         IFS=$lt_save_ifs
11174         # Let DOS variable expansion print the short 8.3 style file name.
11175         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11176         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11177       done
11178       IFS=$lt_save_ifs
11179       # Convert to MSYS style.
11180       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11181       ;;
11182     cygwin*)
11183       # Convert to unix form, then to dos form, then back to unix form
11184       # but this time dos style (no spaces!) so that the unix form looks
11185       # like /cygdrive/c/PROGRA~1:/cygdr...
11186       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11187       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11188       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11189       ;;
11190     *)
11191       sys_lib_search_path_spec=$LIB
11192       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11193         # It is most probably a Windows format PATH.
11194         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11195       else
11196         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11197       fi
11198       # FIXME: find the short name or the path components, as spaces are
11199       # common. (e.g. "Program Files" -> "PROGRA~1")
11200       ;;
11201     esac
11202
11203     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11204     postinstall_cmds='base_file=`basename \$file`~
11205       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11206       dldir=$destdir/`dirname \$dlpath`~
11207       test -d \$dldir || mkdir -p \$dldir~
11208       $install_prog $dir/$dlname \$dldir/$dlname'
11209     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210       dlpath=$dir/\$dldll~
11211        $RM \$dlpath'
11212     shlibpath_overrides_runpath=yes
11213     dynamic_linker='Win32 link.exe'
11214     ;;
11215
11216   *)
11217     # Assume MSVC wrapper
11218     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11219     dynamic_linker='Win32 ld.exe'
11220     ;;
11221   esac
11222   # FIXME: first we should search . and the directory the executable is in
11223   shlibpath_var=PATH
11224   ;;
11225
11226 darwin* | rhapsody*)
11227   dynamic_linker="$host_os dyld"
11228   version_type=darwin
11229   need_lib_prefix=no
11230   need_version=no
11231   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11232   soname_spec='$libname$release$major$shared_ext'
11233   shlibpath_overrides_runpath=yes
11234   shlibpath_var=DYLD_LIBRARY_PATH
11235   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11236
11237   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11238   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11239   ;;
11240
11241 dgux*)
11242   version_type=linux # correct to gnu/linux during the next big refactor
11243   need_lib_prefix=no
11244   need_version=no
11245   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246   soname_spec='$libname$release$shared_ext$major'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   ;;
11249
11250 freebsd* | dragonfly*)
11251   # DragonFly does not have aout.  When/if they implement a new
11252   # versioning mechanism, adjust this.
11253   if test -x /usr/bin/objformat; then
11254     objformat=`/usr/bin/objformat`
11255   else
11256     case $host_os in
11257     freebsd[23].*) objformat=aout ;;
11258     *) objformat=elf ;;
11259     esac
11260   fi
11261   version_type=freebsd-$objformat
11262   case $version_type in
11263     freebsd-elf*)
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       need_version=no
11267       need_lib_prefix=no
11268       ;;
11269     freebsd-*)
11270       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11271       need_version=yes
11272       ;;
11273   esac
11274   shlibpath_var=LD_LIBRARY_PATH
11275   case $host_os in
11276   freebsd2.*)
11277     shlibpath_overrides_runpath=yes
11278     ;;
11279   freebsd3.[01]* | freebsdelf3.[01]*)
11280     shlibpath_overrides_runpath=yes
11281     hardcode_into_libs=yes
11282     ;;
11283   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11284   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11285     shlibpath_overrides_runpath=no
11286     hardcode_into_libs=yes
11287     ;;
11288   *) # from 4.6 on, and DragonFly
11289     shlibpath_overrides_runpath=yes
11290     hardcode_into_libs=yes
11291     ;;
11292   esac
11293   ;;
11294
11295 haiku*)
11296   version_type=linux # correct to gnu/linux during the next big refactor
11297   need_lib_prefix=no
11298   need_version=no
11299   dynamic_linker="$host_os runtime_loader"
11300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301   soname_spec='$libname$release$shared_ext$major'
11302   shlibpath_var=LIBRARY_PATH
11303   shlibpath_overrides_runpath=no
11304   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11305   hardcode_into_libs=yes
11306   ;;
11307
11308 hpux9* | hpux10* | hpux11*)
11309   # Give a soname corresponding to the major version so that dld.sl refuses to
11310   # link against other versions.
11311   version_type=sunos
11312   need_lib_prefix=no
11313   need_version=no
11314   case $host_cpu in
11315   ia64*)
11316     shrext_cmds='.so'
11317     hardcode_into_libs=yes
11318     dynamic_linker="$host_os dld.so"
11319     shlibpath_var=LD_LIBRARY_PATH
11320     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11321     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322     soname_spec='$libname$release$shared_ext$major'
11323     if test 32 = "$HPUX_IA64_MODE"; then
11324       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11325       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11326     else
11327       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11328       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11329     fi
11330     ;;
11331   hppa*64*)
11332     shrext_cmds='.sl'
11333     hardcode_into_libs=yes
11334     dynamic_linker="$host_os dld.sl"
11335     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11338     soname_spec='$libname$release$shared_ext$major'
11339     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11340     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11341     ;;
11342   *)
11343     shrext_cmds='.sl'
11344     dynamic_linker="$host_os dld.sl"
11345     shlibpath_var=SHLIB_PATH
11346     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11347     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348     soname_spec='$libname$release$shared_ext$major'
11349     ;;
11350   esac
11351   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11352   postinstall_cmds='chmod 555 $lib'
11353   # or fails outright, so override atomically:
11354   install_override_mode=555
11355   ;;
11356
11357 interix[3-9]*)
11358   version_type=linux # correct to gnu/linux during the next big refactor
11359   need_lib_prefix=no
11360   need_version=no
11361   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11362   soname_spec='$libname$release$shared_ext$major'
11363   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11364   shlibpath_var=LD_LIBRARY_PATH
11365   shlibpath_overrides_runpath=no
11366   hardcode_into_libs=yes
11367   ;;
11368
11369 irix5* | irix6* | nonstopux*)
11370   case $host_os in
11371     nonstopux*) version_type=nonstopux ;;
11372     *)
11373         if test yes = "$lt_cv_prog_gnu_ld"; then
11374                 version_type=linux # correct to gnu/linux during the next big refactor
11375         else
11376                 version_type=irix
11377         fi ;;
11378   esac
11379   need_lib_prefix=no
11380   need_version=no
11381   soname_spec='$libname$release$shared_ext$major'
11382   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11383   case $host_os in
11384   irix5* | nonstopux*)
11385     libsuff= shlibsuff=
11386     ;;
11387   *)
11388     case $LD in # libtool.m4 will add one of these switches to LD
11389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11390       libsuff= shlibsuff= libmagic=32-bit;;
11391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11392       libsuff=32 shlibsuff=N32 libmagic=N32;;
11393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11395     *) libsuff= shlibsuff= libmagic=never-match;;
11396     esac
11397     ;;
11398   esac
11399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11400   shlibpath_overrides_runpath=no
11401   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11402   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11403   hardcode_into_libs=yes
11404   ;;
11405
11406 # No shared lib support for Linux oldld, aout, or coff.
11407 linux*oldld* | linux*aout* | linux*coff*)
11408   dynamic_linker=no
11409   ;;
11410
11411 linux*android*)
11412   version_type=none # Android doesn't support versioned libraries.
11413   need_lib_prefix=no
11414   need_version=no
11415   library_names_spec='$libname$release$shared_ext'
11416   soname_spec='$libname$release$shared_ext'
11417   finish_cmds=
11418   shlibpath_var=LD_LIBRARY_PATH
11419   shlibpath_overrides_runpath=yes
11420
11421   # This implies no fast_install, which is unacceptable.
11422   # Some rework will be needed to allow for fast_install
11423   # before this can be enabled.
11424   hardcode_into_libs=yes
11425
11426   dynamic_linker='Android linker'
11427   # Don't embed -rpath directories since the linker doesn't support them.
11428   hardcode_libdir_flag_spec='-L$libdir'
11429   ;;
11430
11431 # This must be glibc/ELF.
11432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11433   version_type=linux # correct to gnu/linux during the next big refactor
11434   need_lib_prefix=no
11435   need_version=no
11436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437   soname_spec='$libname$release$shared_ext$major'
11438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=no
11441
11442   # Some binutils ld are patched to set DT_RUNPATH
11443   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   lt_cv_shlibpath_overrides_runpath=no
11447     save_LDFLAGS=$LDFLAGS
11448     save_libdir=$libdir
11449     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11450          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h.  */
11453
11454 int
11455 main ()
11456 {
11457
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11464   lt_cv_shlibpath_overrides_runpath=yes
11465 fi
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468     conftest$ac_exeext conftest.$ac_ext
11469     LDFLAGS=$save_LDFLAGS
11470     libdir=$save_libdir
11471
11472 fi
11473
11474   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11475
11476   # This implies no fast_install, which is unacceptable.
11477   # Some rework will be needed to allow for fast_install
11478   # before this can be enabled.
11479   hardcode_into_libs=yes
11480
11481   # Add ABI-specific directories to the system library path.
11482   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11483
11484   # Ideally, we could use ldconfig to report *all* directores which are
11485   # searched for libraries, however this is still not possible.  Aside from not
11486   # being certain /sbin/ldconfig is available, command
11487   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11488   # even though it is searched at run-time.  Try to do the best guess by
11489   # appending ld.so.conf contents (and includes) to the search path.
11490   if test -f /etc/ld.so.conf; then
11491     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' ' '`
11492     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11493   fi
11494
11495   # We used to test for /lib/ld.so.1 and disable shared libraries on
11496   # powerpc, because MkLinux only supported shared libraries with the
11497   # GNU dynamic linker.  Since this was broken with cross compilers,
11498   # most powerpc-linux boxes support dynamic linking these days and
11499   # people can always --disable-shared, the test was removed, and we
11500   # assume the GNU/Linux dynamic linker is in use.
11501   dynamic_linker='GNU/Linux ld.so'
11502   ;;
11503
11504 netbsd*)
11505   version_type=sunos
11506   need_lib_prefix=no
11507   need_version=no
11508   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11509     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11510     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11511     dynamic_linker='NetBSD (a.out) ld.so'
11512   else
11513     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11514     soname_spec='$libname$release$shared_ext$major'
11515     dynamic_linker='NetBSD ld.elf_so'
11516   fi
11517   shlibpath_var=LD_LIBRARY_PATH
11518   shlibpath_overrides_runpath=yes
11519   hardcode_into_libs=yes
11520   ;;
11521
11522 newsos6)
11523   version_type=linux # correct to gnu/linux during the next big refactor
11524   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525   shlibpath_var=LD_LIBRARY_PATH
11526   shlibpath_overrides_runpath=yes
11527   ;;
11528
11529 *nto* | *qnx*)
11530   version_type=qnx
11531   need_lib_prefix=no
11532   need_version=no
11533   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534   soname_spec='$libname$release$shared_ext$major'
11535   shlibpath_var=LD_LIBRARY_PATH
11536   shlibpath_overrides_runpath=no
11537   hardcode_into_libs=yes
11538   dynamic_linker='ldqnx.so'
11539   ;;
11540
11541 openbsd* | bitrig*)
11542   version_type=sunos
11543   sys_lib_dlsearch_path_spec=/usr/lib
11544   need_lib_prefix=no
11545   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11546     need_version=no
11547   else
11548     need_version=yes
11549   fi
11550   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11551   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   shlibpath_overrides_runpath=yes
11554   ;;
11555
11556 os2*)
11557   libname_spec='$name'
11558   version_type=windows
11559   shrext_cmds=.dll
11560   need_version=no
11561   need_lib_prefix=no
11562   # OS/2 can only load a DLL with a base name of 8 characters or less.
11563   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11564     v=$($ECHO $release$versuffix | tr -d .-);
11565     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11566     $ECHO $n$v`$shared_ext'
11567   library_names_spec='${libname}_dll.$libext'
11568   dynamic_linker='OS/2 ld.exe'
11569   shlibpath_var=BEGINLIBPATH
11570   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11571   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11572   postinstall_cmds='base_file=`basename \$file`~
11573     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11574     dldir=$destdir/`dirname \$dlpath`~
11575     test -d \$dldir || mkdir -p \$dldir~
11576     $install_prog $dir/$dlname \$dldir/$dlname~
11577     chmod a+x \$dldir/$dlname~
11578     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11580     fi'
11581   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11582     dlpath=$dir/\$dldll~
11583     $RM \$dlpath'
11584   ;;
11585
11586 osf3* | osf4* | osf5*)
11587   version_type=osf
11588   need_lib_prefix=no
11589   need_version=no
11590   soname_spec='$libname$release$shared_ext$major'
11591   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592   shlibpath_var=LD_LIBRARY_PATH
11593   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11595   ;;
11596
11597 rdos*)
11598   dynamic_linker=no
11599   ;;
11600
11601 solaris*)
11602   version_type=linux # correct to gnu/linux during the next big refactor
11603   need_lib_prefix=no
11604   need_version=no
11605   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11606   soname_spec='$libname$release$shared_ext$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   shlibpath_overrides_runpath=yes
11609   hardcode_into_libs=yes
11610   # ldd complains unless libraries are executable
11611   postinstall_cmds='chmod +x $lib'
11612   ;;
11613
11614 sunos4*)
11615   version_type=sunos
11616   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11617   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620   if test yes = "$with_gnu_ld"; then
11621     need_lib_prefix=no
11622   fi
11623   need_version=yes
11624   ;;
11625
11626 sysv4 | sysv4.3*)
11627   version_type=linux # correct to gnu/linux during the next big refactor
11628   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629   soname_spec='$libname$release$shared_ext$major'
11630   shlibpath_var=LD_LIBRARY_PATH
11631   case $host_vendor in
11632     sni)
11633       shlibpath_overrides_runpath=no
11634       need_lib_prefix=no
11635       runpath_var=LD_RUN_PATH
11636       ;;
11637     siemens)
11638       need_lib_prefix=no
11639       ;;
11640     motorola)
11641       need_lib_prefix=no
11642       need_version=no
11643       shlibpath_overrides_runpath=no
11644       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11645       ;;
11646   esac
11647   ;;
11648
11649 sysv4*MP*)
11650   if test -d /usr/nec; then
11651     version_type=linux # correct to gnu/linux during the next big refactor
11652     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11653     soname_spec='$libname$shared_ext.$major'
11654     shlibpath_var=LD_LIBRARY_PATH
11655   fi
11656   ;;
11657
11658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11659   version_type=sco
11660   need_lib_prefix=no
11661   need_version=no
11662   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11663   soname_spec='$libname$release$shared_ext$major'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=yes
11666   hardcode_into_libs=yes
11667   if test yes = "$with_gnu_ld"; then
11668     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11669   else
11670     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11671     case $host_os in
11672       sco3.2v5*)
11673         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11674         ;;
11675     esac
11676   fi
11677   sys_lib_dlsearch_path_spec='/usr/lib'
11678   ;;
11679
11680 tpf*)
11681   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11682   version_type=linux # correct to gnu/linux during the next big refactor
11683   need_lib_prefix=no
11684   need_version=no
11685   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   shlibpath_overrides_runpath=no
11688   hardcode_into_libs=yes
11689   ;;
11690
11691 uts4*)
11692   version_type=linux # correct to gnu/linux during the next big refactor
11693   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11694   soname_spec='$libname$release$shared_ext$major'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   ;;
11697
11698 *)
11699   dynamic_linker=no
11700   ;;
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test no = "$dynamic_linker" && can_build_shared=no
11705
11706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707 if test yes = "$GCC"; then
11708   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 fi
11710
11711 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11712   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11713 fi
11714
11715 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11716   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11717 fi
11718
11719 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11720 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11721
11722 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11723 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11724
11725 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11726 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11826 hardcode_action=
11827 if test -n "$hardcode_libdir_flag_spec" ||
11828    test -n "$runpath_var" ||
11829    test yes = "$hardcode_automatic"; then
11830
11831   # We can hardcode non-existent directories.
11832   if test no != "$hardcode_direct" &&
11833      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11834      # have to relink, otherwise we might link with an installed library
11835      # when we should be linking with a yet-to-be-installed one
11836      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11837      test no != "$hardcode_minus_L"; then
11838     # Linking always hardcodes the temporary library directory.
11839     hardcode_action=relink
11840   else
11841     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11842     hardcode_action=immediate
11843   fi
11844 else
11845   # We cannot hardcode anything, or else we can only hardcode existing
11846   # directories.
11847   hardcode_action=unsupported
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11850 $as_echo "$hardcode_action" >&6; }
11851
11852 if test relink = "$hardcode_action" ||
11853    test yes = "$inherit_rpath"; then
11854   # Fast installation is not supported
11855   enable_fast_install=no
11856 elif test yes = "$shlibpath_overrides_runpath" ||
11857      test no = "$enable_shared"; then
11858   # Fast installation is not necessary
11859   enable_fast_install=needless
11860 fi
11861
11862
11863
11864
11865
11866
11867   if test yes != "$enable_dlopen"; then
11868   enable_dlopen=unknown
11869   enable_dlopen_self=unknown
11870   enable_dlopen_self_static=unknown
11871 else
11872   lt_cv_dlopen=no
11873   lt_cv_dlopen_libs=
11874
11875   case $host_os in
11876   beos*)
11877     lt_cv_dlopen=load_add_on
11878     lt_cv_dlopen_libs=
11879     lt_cv_dlopen_self=yes
11880     ;;
11881
11882   mingw* | pw32* | cegcc*)
11883     lt_cv_dlopen=LoadLibrary
11884     lt_cv_dlopen_libs=
11885     ;;
11886
11887   cygwin*)
11888     lt_cv_dlopen=dlopen
11889     lt_cv_dlopen_libs=
11890     ;;
11891
11892   darwin*)
11893     # if libdl is installed we need to link against it
11894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldl  $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char dlopen ();
11911 int
11912 main ()
11913 {
11914 return dlopen ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920   ac_cv_lib_dl_dlopen=yes
11921 else
11922   ac_cv_lib_dl_dlopen=no
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext \
11925     conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11932 else
11933
11934     lt_cv_dlopen=dyld
11935     lt_cv_dlopen_libs=
11936     lt_cv_dlopen_self=yes
11937
11938 fi
11939
11940     ;;
11941
11942   tpf*)
11943     # Don't try to run any link tests for TPF.  We know it's impossible
11944     # because TPF is a cross-compiler, and we know how we open DSOs.
11945     lt_cv_dlopen=dlopen
11946     lt_cv_dlopen_libs=
11947     lt_cv_dlopen_self=no
11948     ;;
11949
11950   *)
11951     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11952 if test "x$ac_cv_func_shl_load" = xyes; then :
11953   lt_cv_dlopen=shl_load
11954 else
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11957 if ${ac_cv_lib_dld_shl_load+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-ldld  $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h.  */
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966    Use char because int might match the return type of a GCC
11967    builtin and then its argument prototype would still apply.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char shl_load ();
11972 int
11973 main ()
11974 {
11975 return shl_load ();
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981   ac_cv_lib_dld_shl_load=yes
11982 else
11983   ac_cv_lib_dld_shl_load=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986     conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11990 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11991 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11992   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11993 else
11994   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11995 if test "x$ac_cv_func_dlopen" = xyes; then :
11996   lt_cv_dlopen=dlopen
11997 else
11998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12000 if ${ac_cv_lib_dl_dlopen+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-ldl  $LIBS"
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h.  */
12007
12008 /* Override any GCC internal prototype to avoid an error.
12009    Use char because int might match the return type of a GCC
12010    builtin and then its argument prototype would still apply.  */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char dlopen ();
12015 int
12016 main ()
12017 {
12018 return dlopen ();
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024   ac_cv_lib_dl_dlopen=yes
12025 else
12026   ac_cv_lib_dl_dlopen=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029     conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12034 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12035   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12036 else
12037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12038 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12039 if ${ac_cv_lib_svld_dlopen+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lsvld  $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h.  */
12046
12047 /* Override any GCC internal prototype to avoid an error.
12048    Use char because int might match the return type of a GCC
12049    builtin and then its argument prototype would still apply.  */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char dlopen ();
12054 int
12055 main ()
12056 {
12057 return dlopen ();
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063   ac_cv_lib_svld_dlopen=yes
12064 else
12065   ac_cv_lib_svld_dlopen=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068     conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12073 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12074   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12075 else
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12078 if ${ac_cv_lib_dld_dld_link+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   ac_check_lib_save_LIBS=$LIBS
12082 LIBS="-ldld  $LIBS"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h.  */
12085
12086 /* Override any GCC internal prototype to avoid an error.
12087    Use char because int might match the return type of a GCC
12088    builtin and then its argument prototype would still apply.  */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 char dld_link ();
12093 int
12094 main ()
12095 {
12096 return dld_link ();
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102   ac_cv_lib_dld_dld_link=yes
12103 else
12104   ac_cv_lib_dld_dld_link=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext \
12107     conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12111 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12112 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12113   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12114 fi
12115
12116
12117 fi
12118
12119
12120 fi
12121
12122
12123 fi
12124
12125
12126 fi
12127
12128
12129 fi
12130
12131     ;;
12132   esac
12133
12134   if test no = "$lt_cv_dlopen"; then
12135     enable_dlopen=no
12136   else
12137     enable_dlopen=yes
12138   fi
12139
12140   case $lt_cv_dlopen in
12141   dlopen)
12142     save_CPPFLAGS=$CPPFLAGS
12143     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12144
12145     save_LDFLAGS=$LDFLAGS
12146     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12147
12148     save_LIBS=$LIBS
12149     LIBS="$lt_cv_dlopen_libs $LIBS"
12150
12151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12152 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12153 if ${lt_cv_dlopen_self+:} false; then :
12154   $as_echo_n "(cached) " >&6
12155 else
12156           if test yes = "$cross_compiling"; then :
12157   lt_cv_dlopen_self=cross
12158 else
12159   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160   lt_status=$lt_dlunknown
12161   cat > conftest.$ac_ext <<_LT_EOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164
12165 #if HAVE_DLFCN_H
12166 #include <dlfcn.h>
12167 #endif
12168
12169 #include <stdio.h>
12170
12171 #ifdef RTLD_GLOBAL
12172 #  define LT_DLGLOBAL           RTLD_GLOBAL
12173 #else
12174 #  ifdef DL_GLOBAL
12175 #    define LT_DLGLOBAL         DL_GLOBAL
12176 #  else
12177 #    define LT_DLGLOBAL         0
12178 #  endif
12179 #endif
12180
12181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182    find out it does not work in some platform. */
12183 #ifndef LT_DLLAZY_OR_NOW
12184 #  ifdef RTLD_LAZY
12185 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12186 #  else
12187 #    ifdef DL_LAZY
12188 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12189 #    else
12190 #      ifdef RTLD_NOW
12191 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12192 #      else
12193 #        ifdef DL_NOW
12194 #          define LT_DLLAZY_OR_NOW      DL_NOW
12195 #        else
12196 #          define LT_DLLAZY_OR_NOW      0
12197 #        endif
12198 #      endif
12199 #    endif
12200 #  endif
12201 #endif
12202
12203 /* When -fvisibility=hidden is used, assume the code has been annotated
12204    correspondingly for the symbols needed.  */
12205 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12206 int fnord () __attribute__((visibility("default")));
12207 #endif
12208
12209 int fnord () { return 42; }
12210 int main ()
12211 {
12212   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12213   int status = $lt_dlunknown;
12214
12215   if (self)
12216     {
12217       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12218       else
12219         {
12220           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12221           else puts (dlerror ());
12222         }
12223       /* dlclose (self); */
12224     }
12225   else
12226     puts (dlerror ());
12227
12228   return status;
12229 }
12230 _LT_EOF
12231   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12232   (eval $ac_link) 2>&5
12233   ac_status=$?
12234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12235   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12236     (./conftest; exit; ) >&5 2>/dev/null
12237     lt_status=$?
12238     case x$lt_status in
12239       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12240       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12241       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12242     esac
12243   else :
12244     # compilation failed
12245     lt_cv_dlopen_self=no
12246   fi
12247 fi
12248 rm -fr conftest*
12249
12250
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12253 $as_echo "$lt_cv_dlopen_self" >&6; }
12254
12255     if test yes = "$lt_cv_dlopen_self"; then
12256       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12257       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12258 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12259 if ${lt_cv_dlopen_self_static+:} false; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262           if test yes = "$cross_compiling"; then :
12263   lt_cv_dlopen_self_static=cross
12264 else
12265   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12266   lt_status=$lt_dlunknown
12267   cat > conftest.$ac_ext <<_LT_EOF
12268 #line $LINENO "configure"
12269 #include "confdefs.h"
12270
12271 #if HAVE_DLFCN_H
12272 #include <dlfcn.h>
12273 #endif
12274
12275 #include <stdio.h>
12276
12277 #ifdef RTLD_GLOBAL
12278 #  define LT_DLGLOBAL           RTLD_GLOBAL
12279 #else
12280 #  ifdef DL_GLOBAL
12281 #    define LT_DLGLOBAL         DL_GLOBAL
12282 #  else
12283 #    define LT_DLGLOBAL         0
12284 #  endif
12285 #endif
12286
12287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12288    find out it does not work in some platform. */
12289 #ifndef LT_DLLAZY_OR_NOW
12290 #  ifdef RTLD_LAZY
12291 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12292 #  else
12293 #    ifdef DL_LAZY
12294 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12295 #    else
12296 #      ifdef RTLD_NOW
12297 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12298 #      else
12299 #        ifdef DL_NOW
12300 #          define LT_DLLAZY_OR_NOW      DL_NOW
12301 #        else
12302 #          define LT_DLLAZY_OR_NOW      0
12303 #        endif
12304 #      endif
12305 #    endif
12306 #  endif
12307 #endif
12308
12309 /* When -fvisibility=hidden is used, assume the code has been annotated
12310    correspondingly for the symbols needed.  */
12311 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12312 int fnord () __attribute__((visibility("default")));
12313 #endif
12314
12315 int fnord () { return 42; }
12316 int main ()
12317 {
12318   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12319   int status = $lt_dlunknown;
12320
12321   if (self)
12322     {
12323       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12324       else
12325         {
12326           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12327           else puts (dlerror ());
12328         }
12329       /* dlclose (self); */
12330     }
12331   else
12332     puts (dlerror ());
12333
12334   return status;
12335 }
12336 _LT_EOF
12337   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12338   (eval $ac_link) 2>&5
12339   ac_status=$?
12340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12342     (./conftest; exit; ) >&5 2>/dev/null
12343     lt_status=$?
12344     case x$lt_status in
12345       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12346       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12347       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12348     esac
12349   else :
12350     # compilation failed
12351     lt_cv_dlopen_self_static=no
12352   fi
12353 fi
12354 rm -fr conftest*
12355
12356
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12360     fi
12361
12362     CPPFLAGS=$save_CPPFLAGS
12363     LDFLAGS=$save_LDFLAGS
12364     LIBS=$save_LIBS
12365     ;;
12366   esac
12367
12368   case $lt_cv_dlopen_self in
12369   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12370   *) enable_dlopen_self=unknown ;;
12371   esac
12372
12373   case $lt_cv_dlopen_self_static in
12374   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12375   *) enable_dlopen_self_static=unknown ;;
12376   esac
12377 fi
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395 striplib=
12396 old_striplib=
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12399 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12400   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12401   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12404 else
12405 # FIXME - insert some real tests, host_os isn't really good enough
12406   case $host_os in
12407   darwin*)
12408     if test -n "$STRIP"; then
12409       striplib="$STRIP -x"
12410       old_striplib="$STRIP -S"
12411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413     else
12414       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416     fi
12417     ;;
12418   *)
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421     ;;
12422   esac
12423 fi
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436   # Report what library types will actually be built
12437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12440 $as_echo "$can_build_shared" >&6; }
12441
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12443 $as_echo_n "checking whether to build shared libraries... " >&6; }
12444   test no = "$can_build_shared" && enable_shared=no
12445
12446   # On AIX, shared libraries and static libraries use the same namespace, and
12447   # are all built from PIC.
12448   case $host_os in
12449   aix3*)
12450     test yes = "$enable_shared" && enable_static=no
12451     if test -n "$RANLIB"; then
12452       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12453       postinstall_cmds='$RANLIB $lib'
12454     fi
12455     ;;
12456
12457   aix[4-9]*)
12458     if test ia64 != "$host_cpu"; then
12459       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12460       yes,aix,yes) ;;                   # shared object as lib.so file only
12461       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12462       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12463       esac
12464     fi
12465     ;;
12466   esac
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12468 $as_echo "$enable_shared" >&6; }
12469
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12471 $as_echo_n "checking whether to build static libraries... " >&6; }
12472   # Make sure either enable_shared or enable_static is yes.
12473   test yes = "$enable_shared" || enable_static=yes
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12475 $as_echo "$enable_static" >&6; }
12476
12477
12478
12479
12480 fi
12481 ac_ext=c
12482 ac_cpp='$CPP $CPPFLAGS'
12483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12486
12487 CC=$lt_save_CC
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503         ac_config_commands="$ac_config_commands libtool"
12504
12505
12506
12507
12508 # Only expand once:
12509
12510
12511
12512 # Honor aclocal flags
12513 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
12514
12515
12516 JSON_MAJOR_VERSION=1
12517 JSON_MINOR_VERSION=2
12518 JSON_MICRO_VERSION=4
12519 JSON_VERSION=1.2.4
12520 JSON_RELEASE_STATUS=release
12521
12522
12523
12524
12525
12526
12527 JSON_LT_CURRENT=200
12528 JSON_LT_REVISION=4
12529 JSON_LT_AGE=200
12530 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
12531 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
12532
12533
12534 platform_linux=no
12535 platform_win32=no
12536
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
12539 $as_echo_n "checking if building for some Win32 platform... " >&6; }
12540 case $host in #(
12541   *-*-mingw*|*-*-cygwin*) :
12542
12543           JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
12544           platform_win32=yes
12545          ;; #(
12546   *-*-linux*) :
12547
12548           platform_linux=yes
12549          ;; #(
12550   *) :
12551
12552  ;;
12553 esac
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
12555 $as_echo "$platform_win32" >&6; }
12556
12557  if test "$platform_linux" = "yes"; then
12558   OS_LINUX_TRUE=
12559   OS_LINUX_FALSE='#'
12560 else
12561   OS_LINUX_TRUE='#'
12562   OS_LINUX_FALSE=
12563 fi
12564
12565  if test "$platform_win32" = "yes"; then
12566   OS_WIN32_TRUE=
12567   OS_WIN32_FALSE='#'
12568 else
12569   OS_WIN32_TRUE='#'
12570   OS_WIN32_FALSE=
12571 fi
12572
12573
12574 # Check for -Bsymbolic-functions to avoid intra-library PLT jumps
12575 # Check whether --enable-Bsymbolic was given.
12576 if test "${enable_Bsymbolic+set}" = set; then :
12577   enableval=$enable_Bsymbolic;
12578 else
12579
12580                 saved_LDFLAGS="${LDFLAGS}"
12581                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
12582 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
12583                 LDFLAGS=-Wl,-Bsymbolic-functions
12584                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586
12587 int
12588 main ()
12589 {
12590 int main (void) { return 0; }
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 if ac_fn_c_try_link "$LINENO"; then :
12596
12597                               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; }
12599                               enable_Bsymbolic=yes
12600
12601 else
12602
12603                               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605                               enable_Bsymbolic=no
12606
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext \
12609     conftest$ac_exeext conftest.$ac_ext
12610                 LDFLAGS="${saved_LDFLAGS}"
12611
12612 fi
12613
12614
12615 if test "x$enable_Bsymbolic" = "xyes"; then :
12616   JSON_LINK_FLAGS=-Wl,-Bsymbolic-functions
12617 fi
12618 JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS $JSON_LINK_FLAGS"
12619
12620
12621
12622
12623 JSON_HIDDEN_VISIBILITY_CFLAGS=""
12624 case "$host" in
12625   *-*-mingw*)
12626
12627 $as_echo "#define _JSON_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
12628
12629     CFLAGS="${CFLAGS} -fvisibility=hidden"
12630     ;;
12631   *)
12632         SAVED_CFLAGS="${CFLAGS}"
12633     CFLAGS="-fvisibility=hidden"
12634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
12635 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
12636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h.  */
12638
12639 int
12640 main ()
12641 {
12642 int main (void) { return 0; }
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 if ac_fn_c_try_compile "$LINENO"; then :
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650                    enable_fvisibility_hidden=yes
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654                    enable_fvisibility_hidden=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657     CFLAGS="${SAVED_CFLAGS}"
12658
12659     if test "${enable_fvisibility_hidden}" = "yes"; then :
12660
12661
12662 $as_echo "#define _JSON_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
12663
12664       JSON_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
12665
12666 fi
12667     ;;
12668 esac
12669
12670
12671
12672 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
12673
12674
12675
12676 pkg_failed=no
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
12678 $as_echo_n "checking for JSON... " >&6; }
12679
12680 if test -n "$JSON_CFLAGS"; then
12681     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
12682  elif test -n "$PKG_CONFIG"; then
12683     if test -n "$PKG_CONFIG" && \
12684     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.37.6 gio-2.0\""; } >&5
12685   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.37.6 gio-2.0") 2>&5
12686   ac_status=$?
12687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688   test $ac_status = 0; }; then
12689   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.37.6 gio-2.0" 2>/dev/null`
12690                       test "x$?" != "x0" && pkg_failed=yes
12691 else
12692   pkg_failed=yes
12693 fi
12694  else
12695     pkg_failed=untried
12696 fi
12697 if test -n "$JSON_LIBS"; then
12698     pkg_cv_JSON_LIBS="$JSON_LIBS"
12699  elif test -n "$PKG_CONFIG"; then
12700     if test -n "$PKG_CONFIG" && \
12701     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.37.6 gio-2.0\""; } >&5
12702   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.37.6 gio-2.0") 2>&5
12703   ac_status=$?
12704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12705   test $ac_status = 0; }; then
12706   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>/dev/null`
12707                       test "x$?" != "x0" && pkg_failed=yes
12708 else
12709   pkg_failed=yes
12710 fi
12711  else
12712     pkg_failed=untried
12713 fi
12714
12715
12716
12717 if test $pkg_failed = yes; then
12718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720
12721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12722         _pkg_short_errors_supported=yes
12723 else
12724         _pkg_short_errors_supported=no
12725 fi
12726         if test $_pkg_short_errors_supported = yes; then
12727                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>&1`
12728         else
12729                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 >= 2.37.6 gio-2.0" 2>&1`
12730         fi
12731         # Put the nasty error message in config.log where it belongs
12732         echo "$JSON_PKG_ERRORS" >&5
12733
12734         as_fn_error $? "Package requirements (gobject-2.0 >= 2.37.6 gio-2.0) were not met:
12735
12736 $JSON_PKG_ERRORS
12737
12738 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12739 installed software in a non-standard prefix.
12740
12741 Alternatively, you may set the environment variables JSON_CFLAGS
12742 and JSON_LIBS to avoid the need to call pkg-config.
12743 See the pkg-config man page for more details." "$LINENO" 5
12744 elif test $pkg_failed = untried; then
12745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12749 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12750 is in your PATH or set the PKG_CONFIG environment variable to the full
12751 path to pkg-config.
12752
12753 Alternatively, you may set the environment variables JSON_CFLAGS
12754 and JSON_LIBS to avoid the need to call pkg-config.
12755 See the pkg-config man page for more details.
12756
12757 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12758 See \`config.log' for more details" "$LINENO" 5; }
12759 else
12760         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
12761         JSON_LIBS=$pkg_cv_JSON_LIBS
12762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 $as_echo "yes" >&6; }
12764
12765 fi
12766
12767
12768
12769
12770 # Check whether --enable-debug was given.
12771 if test "${enable_debug+set}" = set; then :
12772   enableval=$enable_debug;
12773 else
12774   enable_debug=minimum
12775 fi
12776
12777
12778 case $enable_debug in #(
12779   yes) :
12780
12781           test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
12782           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
12783          ;; #(
12784   minimum) :
12785
12786           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
12787          ;; #(
12788   no) :
12789
12790           JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
12791          ;; #(
12792   *) :
12793     as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
12794  ;;
12795 esac
12796
12797
12798
12799
12800 # use strict compiler flags only on development releases
12801
12802 # Check whether --enable-maintainer-flags was given.
12803 if test "${enable_maintainer_flags+set}" = set; then :
12804   enableval=$enable_maintainer_flags;
12805 else
12806   enable_maintainer_flags=no
12807 fi
12808
12809
12810 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
12811
12812
12813   list="-Wall -Wshadow -Wcast-align
12814                             -Wno-uninitialized -Wformat -Wformat-security
12815                             -Wno-strict-aliasing -Winit-self
12816                             -Wempty-body -Wdeclaration-after-statement
12817                             -Wno-strict-aliasing"
12818   flags_supported=""
12819   flags_unsupported=""
12820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
12821 $as_echo_n "checking for supported compiler flags... " >&6; }
12822   for each in $list
12823   do
12824     save_CFLAGS="$CFLAGS"
12825     CFLAGS="$CFLAGS $each"
12826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828
12829 int
12830 main ()
12831 {
12832
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838   flag_ok=yes
12839 else
12840   flag_ok=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843     CFLAGS="$save_CFLAGS"
12844
12845     if test "X$flag_ok" = Xyes ; then
12846       flags_supported="$flags_supported $each"
12847     else
12848       flags_unsupported="$flags_unsupported $each"
12849     fi
12850   done
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
12852 $as_echo "$flags_supported" >&6; }
12853   if test "X$flags_unsupported" != X ; then
12854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
12855 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
12856   fi
12857   MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
12858
12859
12860
12861 fi
12862 MAINTAINER_CFLAGS="${MAINTAINER_CFLAGS#*  }"
12863
12864
12865
12866
12867   # Check whether --enable-installed-tests was given.
12868 if test "${enable_installed_tests+set}" = set; then :
12869   enableval=$enable_installed_tests; case ${enableval} in
12870                   yes) ENABLE_INSTALLED_TESTS="1"  ;;
12871                   no)  ENABLE_INSTALLED_TESTS="" ;;
12872                   *) as_fn_error $? "bad value ${enableval} for --enable-installed-tests" "$LINENO" 5 ;;
12873                  esac
12874 fi
12875
12876    if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12877   ENABLE_INSTALLED_TESTS_TRUE=
12878   ENABLE_INSTALLED_TESTS_FALSE='#'
12879 else
12880   ENABLE_INSTALLED_TESTS_TRUE='#'
12881   ENABLE_INSTALLED_TESTS_FALSE=
12882 fi
12883
12884   # Check whether --enable-always-build-tests was given.
12885 if test "${enable_always_build_tests+set}" = set; then :
12886   enableval=$enable_always_build_tests; case ${enableval} in
12887                   yes) ENABLE_ALWAYS_BUILD_TESTS="1"  ;;
12888                   no)  ENABLE_ALWAYS_BUILD_TESTS="" ;;
12889                   *) as_fn_error $? "bad value ${enableval} for --enable-always-build-tests" "$LINENO" 5 ;;
12890                  esac
12891 fi
12892
12893    if test "$ENABLE_ALWAYS_BUILD_TESTS" = "1"; then
12894   ENABLE_ALWAYS_BUILD_TESTS_TRUE=
12895   ENABLE_ALWAYS_BUILD_TESTS_FALSE='#'
12896 else
12897   ENABLE_ALWAYS_BUILD_TESTS_TRUE='#'
12898   ENABLE_ALWAYS_BUILD_TESTS_FALSE=
12899 fi
12900
12901   if test "$ENABLE_INSTALLED_TESTS" = "1"; then
12902     installed_test_metadir=${datadir}/installed-tests/json-glib
12903
12904     installed_testdir=${libexecdir}/installed-tests/json-glib
12905
12906   fi
12907
12908
12909
12910 # Check whether --enable-gcov was given.
12911 if test "${enable_gcov+set}" = set; then :
12912   enableval=$enable_gcov; use_gcov=$enableval
12913 else
12914   use_gcov=no
12915 fi
12916
12917
12918 if test "x$use_gcov" = "xyes"; then :
12919
12920                 if test "$GCC" != "yes"; then :
12921   as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
12922 fi
12923
12924                 # Extract the first word of "shtool", so it can be a program name with args.
12925 set dummy shtool; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_prog_SHTOOL+:} false; then :
12929   $as_echo_n "(cached) " >&6
12930 else
12931   if test -n "$SHTOOL"; then
12932   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12936 do
12937   IFS=$as_save_IFS
12938   test -z "$as_dir" && as_dir=.
12939     for ac_exec_ext in '' $ac_executable_extensions; do
12940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12941     ac_cv_prog_SHTOOL="shtool"
12942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943     break 2
12944   fi
12945 done
12946   done
12947 IFS=$as_save_IFS
12948
12949 fi
12950 fi
12951 SHTOOL=$ac_cv_prog_SHTOOL
12952 if test -n "$SHTOOL"; then
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
12954 $as_echo "$SHTOOL" >&6; }
12955 else
12956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12958 fi
12959
12960
12961         case `$SHTOOL path $CC` in #(
12962   *ccache*) :
12963     gcc_ccache=yes ;; #(
12964   *) :
12965     gcc_ccache=no ;;
12966 esac
12967
12968         if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
12969           as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
12970         fi
12971
12972         ltp_version_list="1.6 1.7 1.8 1.9 1.10"
12973         # Extract the first word of "lcov", so it can be a program name with args.
12974 set dummy lcov; ac_word=$2
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976 $as_echo_n "checking for $ac_word... " >&6; }
12977 if ${ac_cv_prog_LTP+:} false; then :
12978   $as_echo_n "(cached) " >&6
12979 else
12980   if test -n "$LTP"; then
12981   ac_cv_prog_LTP="$LTP" # Let the user override the test.
12982 else
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12985 do
12986   IFS=$as_save_IFS
12987   test -z "$as_dir" && as_dir=.
12988     for ac_exec_ext in '' $ac_executable_extensions; do
12989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12990     ac_cv_prog_LTP="lcov"
12991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12992     break 2
12993   fi
12994 done
12995   done
12996 IFS=$as_save_IFS
12997
12998 fi
12999 fi
13000 LTP=$ac_cv_prog_LTP
13001 if test -n "$LTP"; then
13002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
13003 $as_echo "$LTP" >&6; }
13004 else
13005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13007 fi
13008
13009
13010         # Extract the first word of "genhtml", so it can be a program name with args.
13011 set dummy genhtml; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   if test -n "$LTP_GENHTML"; then
13018   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023   IFS=$as_save_IFS
13024   test -z "$as_dir" && as_dir=.
13025     for ac_exec_ext in '' $ac_executable_extensions; do
13026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027     ac_cv_prog_LTP_GENHTML="genhtml"
13028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029     break 2
13030   fi
13031 done
13032   done
13033 IFS=$as_save_IFS
13034
13035 fi
13036 fi
13037 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
13038 if test -n "$LTP_GENHTML"; then
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
13040 $as_echo "$LTP_GENHTML" >&6; }
13041 else
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045
13046
13047
13048         if test "$LTP"; then
13049           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
13050 $as_echo_n "checking for ltp version... " >&6; }
13051 if ${json_cv_ltp_version+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054
13055                            json_cv_ltp_version=invalid
13056                            ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
13057                            for ltp_check_version in $ltp_version_list; do
13058                              if test "$ltp_version" = "$ltp_check_version"; then
13059                                json_cv_ltp_version="$ltp_check_version (ok)"
13060                              fi
13061                            done
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $json_cv_ltp_version" >&5
13065 $as_echo "$json_cv_ltp_version" >&6; }
13066         else
13067           ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
13068           as_fn_error $? "$ltp_msg" "$LINENO" 5
13069         fi
13070
13071         case $json_cv_ltp_version in
13072           ""|invalid)
13073           ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
13074           as_fn_error $? "$ltp_msg" "$LINENO" 5
13075           LTP="exit 0;"
13076           ;;
13077         esac
13078
13079         if test -z "$LTP_GENHTML"; then
13080           as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
13081         fi
13082
13083
13084 $as_echo "#define HAVE_GCOV 1" >>confdefs.h
13085
13086
13087
13088         CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13089         JSON_CFLAGS=`echo "$JSON_CFLAGS" | $SED -e 's/-O[0-9]*//g'`
13090
13091
13092                 JSON_GCOV_CFLAGS="-O0 -fprofile-arcs -ftest-coverage"
13093         JSON_GCOV_LDADD="-lgcov"
13094
13095
13096
13097
13098         JSON_CFLAGS="$JSON_CFLAGS $CLUTTER_GCOV_CFLAGS"
13099         JSON_LIBS="$JSON_LIBS $CLUTTER_GCOV_LDADD"
13100
13101 fi
13102
13103  if test "x$use_gcov" = "xyes"; then
13104   ENABLE_GCOV_TRUE=
13105   ENABLE_GCOV_FALSE='#'
13106 else
13107   ENABLE_GCOV_TRUE='#'
13108   ENABLE_GCOV_FALSE=
13109 fi
13110
13111
13112
13113
13114
13115
13116   gtk_doc_requires="gtk-doc >= 1.20"
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
13118 $as_echo_n "checking for gtk-doc... " >&6; }
13119   if test -n "$PKG_CONFIG" && \
13120     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
13121   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
13122   ac_status=$?
13123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124   test $ac_status = 0; }; then
13125   have_gtk_doc=yes
13126 else
13127   have_gtk_doc=no
13128 fi
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
13130 $as_echo "$have_gtk_doc" >&6; }
13131
13132   if test "$have_gtk_doc" = "no"; then
13133       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13134   You will not be able to create source packages with 'make dist'
13135   because $gtk_doc_requires is not found." >&5
13136 $as_echo "$as_me: WARNING:
13137   You will not be able to create source packages with 'make dist'
13138   because $gtk_doc_requires is not found." >&2;}
13139   fi
13140
13141             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13142 set dummy gtkdoc-check; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144 $as_echo_n "checking for $ac_word... " >&6; }
13145 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148   if test -n "$GTKDOC_CHECK"; then
13149   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13150 else
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13153 do
13154   IFS=$as_save_IFS
13155   test -z "$as_dir" && as_dir=.
13156     for ac_exec_ext in '' $ac_executable_extensions; do
13157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160     break 2
13161   fi
13162 done
13163   done
13164 IFS=$as_save_IFS
13165
13166 fi
13167 fi
13168 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13169 if test -n "$GTKDOC_CHECK"; then
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13171 $as_echo "$GTKDOC_CHECK" >&6; }
13172 else
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13175 fi
13176
13177
13178   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13179 set dummy gtkdoc-check; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   case $GTKDOC_CHECK_PATH in
13186   [\\/]* | ?:[\\/]*)
13187   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13188   ;;
13189   *)
13190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13192 do
13193   IFS=$as_save_IFS
13194   test -z "$as_dir" && as_dir=.
13195     for ac_exec_ext in '' $ac_executable_extensions; do
13196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199     break 2
13200   fi
13201 done
13202   done
13203 IFS=$as_save_IFS
13204
13205   ;;
13206 esac
13207 fi
13208 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13209 if test -n "$GTKDOC_CHECK_PATH"; then
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13211 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13212 else
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216
13217
13218   for ac_prog in gtkdoc-rebase
13219 do
13220   # Extract the first word of "$ac_prog", so it can be a program name with args.
13221 set dummy $ac_prog; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   case $GTKDOC_REBASE in
13228   [\\/]* | ?:[\\/]*)
13229   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13230   ;;
13231   *)
13232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13234 do
13235   IFS=$as_save_IFS
13236   test -z "$as_dir" && as_dir=.
13237     for ac_exec_ext in '' $ac_executable_extensions; do
13238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241     break 2
13242   fi
13243 done
13244   done
13245 IFS=$as_save_IFS
13246
13247   ;;
13248 esac
13249 fi
13250 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13251 if test -n "$GTKDOC_REBASE"; then
13252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13253 $as_echo "$GTKDOC_REBASE" >&6; }
13254 else
13255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257 fi
13258
13259
13260   test -n "$GTKDOC_REBASE" && break
13261 done
13262 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13263
13264   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13265 set dummy gtkdoc-mkpdf; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   case $GTKDOC_MKPDF in
13272   [\\/]* | ?:[\\/]*)
13273   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13274   ;;
13275   *)
13276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279   IFS=$as_save_IFS
13280   test -z "$as_dir" && as_dir=.
13281     for ac_exec_ext in '' $ac_executable_extensions; do
13282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285     break 2
13286   fi
13287 done
13288   done
13289 IFS=$as_save_IFS
13290
13291   ;;
13292 esac
13293 fi
13294 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13295 if test -n "$GTKDOC_MKPDF"; then
13296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13297 $as_echo "$GTKDOC_MKPDF" >&6; }
13298 else
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13301 fi
13302
13303
13304
13305
13306 # Check whether --with-html-dir was given.
13307 if test "${with_html_dir+set}" = set; then :
13308   withval=$with_html_dir;
13309 else
13310   with_html_dir='${datadir}/gtk-doc/html'
13311 fi
13312
13313   HTML_DIR="$with_html_dir"
13314
13315
13316     # Check whether --enable-gtk-doc was given.
13317 if test "${enable_gtk_doc+set}" = set; then :
13318   enableval=$enable_gtk_doc;
13319 else
13320   enable_gtk_doc=no
13321 fi
13322
13323
13324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13325 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13327 $as_echo "$enable_gtk_doc" >&6; }
13328
13329   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
13330     as_fn_error $? "
13331   You must have $gtk_doc_requires installed to build documentation for
13332   $PACKAGE_NAME. Please install gtk-doc or disable building the
13333   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
13334   fi
13335
13336     if test "x$PACKAGE_NAME" != "xglib"; then
13337
13338 pkg_failed=no
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13340 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13341
13342 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13343     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13344  elif test -n "$PKG_CONFIG"; then
13345     if test -n "$PKG_CONFIG" && \
13346     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13347   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13348   ac_status=$?
13349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13350   test $ac_status = 0; }; then
13351   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13352                       test "x$?" != "x0" && pkg_failed=yes
13353 else
13354   pkg_failed=yes
13355 fi
13356  else
13357     pkg_failed=untried
13358 fi
13359 if test -n "$GTKDOC_DEPS_LIBS"; then
13360     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13361  elif test -n "$PKG_CONFIG"; then
13362     if test -n "$PKG_CONFIG" && \
13363     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
13364   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13365   ac_status=$?
13366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13367   test $ac_status = 0; }; then
13368   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13369                       test "x$?" != "x0" && pkg_failed=yes
13370 else
13371   pkg_failed=yes
13372 fi
13373  else
13374     pkg_failed=untried
13375 fi
13376
13377
13378
13379 if test $pkg_failed = yes; then
13380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13382
13383 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13384         _pkg_short_errors_supported=yes
13385 else
13386         _pkg_short_errors_supported=no
13387 fi
13388         if test $_pkg_short_errors_supported = yes; then
13389                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13390         else
13391                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13392         fi
13393         # Put the nasty error message in config.log where it belongs
13394         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13395
13396         :
13397 elif test $pkg_failed = untried; then
13398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400         :
13401 else
13402         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13403         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13406
13407 fi
13408   fi
13409
13410     # Check whether --enable-gtk-doc-html was given.
13411 if test "${enable_gtk_doc_html+set}" = set; then :
13412   enableval=$enable_gtk_doc_html;
13413 else
13414   enable_gtk_doc_html=yes
13415 fi
13416
13417     # Check whether --enable-gtk-doc-pdf was given.
13418 if test "${enable_gtk_doc_pdf+set}" = set; then :
13419   enableval=$enable_gtk_doc_pdf;
13420 else
13421   enable_gtk_doc_pdf=no
13422 fi
13423
13424
13425   if test -z "$GTKDOC_MKPDF"; then
13426     enable_gtk_doc_pdf=no
13427   fi
13428
13429   if test -z "$AM_DEFAULT_VERBOSITY"; then
13430     AM_DEFAULT_VERBOSITY=1
13431   fi
13432
13433
13434    if test x$have_gtk_doc = xyes; then
13435   HAVE_GTK_DOC_TRUE=
13436   HAVE_GTK_DOC_FALSE='#'
13437 else
13438   HAVE_GTK_DOC_TRUE='#'
13439   HAVE_GTK_DOC_FALSE=
13440 fi
13441
13442    if test x$enable_gtk_doc = xyes; then
13443   ENABLE_GTK_DOC_TRUE=
13444   ENABLE_GTK_DOC_FALSE='#'
13445 else
13446   ENABLE_GTK_DOC_TRUE='#'
13447   ENABLE_GTK_DOC_FALSE=
13448 fi
13449
13450    if test x$enable_gtk_doc_html = xyes; then
13451   GTK_DOC_BUILD_HTML_TRUE=
13452   GTK_DOC_BUILD_HTML_FALSE='#'
13453 else
13454   GTK_DOC_BUILD_HTML_TRUE='#'
13455   GTK_DOC_BUILD_HTML_FALSE=
13456 fi
13457
13458    if test x$enable_gtk_doc_pdf = xyes; then
13459   GTK_DOC_BUILD_PDF_TRUE=
13460   GTK_DOC_BUILD_PDF_FALSE='#'
13461 else
13462   GTK_DOC_BUILD_PDF_TRUE='#'
13463   GTK_DOC_BUILD_PDF_FALSE=
13464 fi
13465
13466    if test -n "$LIBTOOL"; then
13467   GTK_DOC_USE_LIBTOOL_TRUE=
13468   GTK_DOC_USE_LIBTOOL_FALSE='#'
13469 else
13470   GTK_DOC_USE_LIBTOOL_TRUE='#'
13471   GTK_DOC_USE_LIBTOOL_FALSE=
13472 fi
13473
13474    if test -n "$GTKDOC_REBASE"; then
13475   GTK_DOC_USE_REBASE_TRUE=
13476   GTK_DOC_USE_REBASE_FALSE='#'
13477 else
13478   GTK_DOC_USE_REBASE_TRUE='#'
13479   GTK_DOC_USE_REBASE_FALSE=
13480 fi
13481
13482
13483
13484 # Check whether --enable-man, was given.
13485 if test "${enable_man+set}" = set; then :
13486   enableval=$enable_man;
13487 fi
13488
13489
13490 if test "$enable_man" != no; then :
13491
13492   # Extract the first word of "xsltproc", so it can be a program name with args.
13493 set dummy xsltproc; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if ${ac_cv_path_XSLTPROC+:} false; then :
13497   $as_echo_n "(cached) " >&6
13498 else
13499   case $XSLTPROC in
13500   [\\/]* | ?:[\\/]*)
13501   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13502   ;;
13503   *)
13504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507   IFS=$as_save_IFS
13508   test -z "$as_dir" && as_dir=.
13509     for ac_exec_ext in '' $ac_executable_extensions; do
13510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13511     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513     break 2
13514   fi
13515 done
13516   done
13517 IFS=$as_save_IFS
13518
13519   ;;
13520 esac
13521 fi
13522 XSLTPROC=$ac_cv_path_XSLTPROC
13523 if test -n "$XSLTPROC"; then
13524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13525 $as_echo "$XSLTPROC" >&6; }
13526 else
13527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13529 fi
13530
13531
13532   if test -z "$XSLTPROC"; then :
13533
13534     if test "$enable_man" = yes; then :
13535
13536       as_fn_error $? "xsltproc is required for --enable-man" "$LINENO" 5
13537
13538 fi
13539     enable_man=no
13540
13541 fi
13542
13543 fi
13544
13545
13546   # check for the presence of the XML catalog
13547
13548 # Check whether --with-xml-catalog was given.
13549 if test "${with_xml_catalog+set}" = set; then :
13550   withval=$with_xml_catalog;
13551 else
13552   with_xml_catalog=/etc/xml/catalog
13553 fi
13554
13555   jh_found_xmlcatalog=true
13556   XML_CATALOG_FILE="$with_xml_catalog"
13557
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
13559 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
13560   if test -f "$XML_CATALOG_FILE"; then
13561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13562 $as_echo "found" >&6; }
13563   else
13564     jh_found_xmlcatalog=false
13565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13566 $as_echo "not found" >&6; }
13567   fi
13568
13569   # check for the xmlcatalog program
13570   # Extract the first word of "xmlcatalog", so it can be a program name with args.
13571 set dummy xmlcatalog; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_path_XMLCATALOG+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   case $XMLCATALOG in
13578   [\\/]* | ?:[\\/]*)
13579   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
13580   ;;
13581   *)
13582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585   IFS=$as_save_IFS
13586   test -z "$as_dir" && as_dir=.
13587     for ac_exec_ext in '' $ac_executable_extensions; do
13588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
13590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591     break 2
13592   fi
13593 done
13594   done
13595 IFS=$as_save_IFS
13596
13597   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
13598   ;;
13599 esac
13600 fi
13601 XMLCATALOG=$ac_cv_path_XMLCATALOG
13602 if test -n "$XMLCATALOG"; then
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
13604 $as_echo "$XMLCATALOG" >&6; }
13605 else
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609
13610
13611   if test "x$XMLCATALOG" = xno; then
13612     jh_found_xmlcatalog=false
13613   fi
13614
13615   if $jh_found_xmlcatalog; then
13616     :
13617   else
13618     :
13619   fi
13620
13621 if  test "$enable_man" != no ; then :
13622
13623
13624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
13625 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
13626   if $jh_found_xmlcatalog && \
13627      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
13628   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
13629   ac_status=$?
13630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631   test $ac_status = 0; }; then
13632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13633 $as_echo "found" >&6; }
13634     have_docbook_dtd=yes
13635   else
13636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13637 $as_echo "not found" >&6; }
13638     have_docbook_dtd=no
13639   fi
13640
13641   if test "$have_docbook_dtd" != yes; then :
13642
13643     if test "$enable_man" = yes ; then :
13644
13645       as_fn_error $? "DocBook DTD is required for --enable-man" "$LINENO" 5
13646
13647 fi
13648     enable_man=no
13649
13650 fi
13651
13652 fi
13653
13654 if test "$enable_man" != no; then :
13655
13656
13657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
13658 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
13659   if $jh_found_xmlcatalog && \
13660      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
13661   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
13662   ac_status=$?
13663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664   test $ac_status = 0; }; then
13665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13666 $as_echo "found" >&6; }
13667     have_docbook_style=yes
13668   else
13669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13670 $as_echo "not found" >&6; }
13671     have_docbook_style=no
13672   fi
13673
13674   if  test "$have_docbook_dtd" != yes ; then :
13675
13676     if  test "$enable_man" = yes ; then :
13677
13678       as_fn_error $? "DocBook XSL Stylesheets are required for --enable-man" "$LINENO" 5
13679
13680 fi
13681     enable_man=no
13682
13683 fi
13684
13685 fi
13686
13687  if test "$enable_man" != no; then
13688   ENABLE_MAN_TRUE=
13689   ENABLE_MAN_FALSE='#'
13690 else
13691   ENABLE_MAN_TRUE='#'
13692   ENABLE_MAN_FALSE=
13693 fi
13694
13695
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate man pages" >&5
13697 $as_echo_n "checking whether to generate man pages... " >&6; }
13698 if  test "$enable_man" != no ; then :
13699
13700   enable_man=yes
13701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703
13704 else
13705
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707 $as_echo "no" >&6; }
13708
13709 fi
13710
13711
13712
13713
13714
13715                 # Check whether --enable-introspection was given.
13716 if test "${enable_introspection+set}" = set; then :
13717   enableval=$enable_introspection;
13718 else
13719   enable_introspection=auto
13720 fi
13721
13722
13723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
13724 $as_echo_n "checking for gobject-introspection... " >&6; }
13725
13726         case $enable_introspection in #(
13727   no) :
13728             found_introspection="no (disabled, use --enable-introspection to enable)"
13729      ;; #(
13730       yes) :
13731             if test -n "$PKG_CONFIG" && \
13732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
13733   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
13734   ac_status=$?
13735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736   test $ac_status = 0; }; then
13737   :
13738 else
13739   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
13740 fi
13741         if test -n "$PKG_CONFIG" && \
13742     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13743   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13744   ac_status=$?
13745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746   test $ac_status = 0; }; then
13747   found_introspection=yes
13748 else
13749   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build json-glib" "$LINENO" 5
13750 fi
13751      ;; #(
13752       auto) :
13753             if test -n "$PKG_CONFIG" && \
13754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
13755   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
13756   ac_status=$?
13757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758   test $ac_status = 0; }; then
13759   found_introspection=yes
13760 else
13761   found_introspection=no
13762 fi
13763                 enable_introspection=$found_introspection
13764      ;; #(
13765   *) :
13766                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
13767      ;;
13768 esac
13769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
13770 $as_echo "$found_introspection" >&6; }
13771
13772     INTROSPECTION_SCANNER=
13773     INTROSPECTION_COMPILER=
13774     INTROSPECTION_GENERATE=
13775     INTROSPECTION_GIRDIR=
13776     INTROSPECTION_TYPELIBDIR=
13777     if test "x$found_introspection" = "xyes"; then
13778        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
13779        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
13780        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
13781        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
13782        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
13783        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
13784        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
13785        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
13786     fi
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796      if test "x$found_introspection" = "xyes"; then
13797   HAVE_INTROSPECTION_TRUE=
13798   HAVE_INTROSPECTION_FALSE='#'
13799 else
13800   HAVE_INTROSPECTION_TRUE='#'
13801   HAVE_INTROSPECTION_FALSE=
13802 fi
13803
13804
13805
13806
13807
13808
13809
13810 mkdir_p="$MKDIR_P"
13811 case $mkdir_p in
13812   [\\/$]* | ?:[\\/]*) ;;
13813   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13814 esac
13815
13816
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13818 $as_echo_n "checking whether NLS is requested... " >&6; }
13819     # Check whether --enable-nls was given.
13820 if test "${enable_nls+set}" = set; then :
13821   enableval=$enable_nls; USE_NLS=$enableval
13822 else
13823   USE_NLS=yes
13824 fi
13825
13826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13827 $as_echo "$USE_NLS" >&6; }
13828
13829
13830
13831
13832       GETTEXT_MACRO_VERSION=0.18
13833
13834
13835
13836
13837 # Prepare PATH_SEPARATOR.
13838 # The user is always right.
13839 if test "${PATH_SEPARATOR+set}" != set; then
13840   echo "#! /bin/sh" >conf$$.sh
13841   echo  "exit 0"   >>conf$$.sh
13842   chmod +x conf$$.sh
13843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13844     PATH_SEPARATOR=';'
13845   else
13846     PATH_SEPARATOR=:
13847   fi
13848   rm -f conf$$.sh
13849 fi
13850
13851 # Find out how to test for executable files. Don't use a zero-byte file,
13852 # as systems may use methods other than mode bits to determine executability.
13853 cat >conf$$.file <<_ASEOF
13854 #! /bin/sh
13855 exit 0
13856 _ASEOF
13857 chmod +x conf$$.file
13858 if test -x conf$$.file >/dev/null 2>&1; then
13859   ac_executable_p="test -x"
13860 else
13861   ac_executable_p="test -f"
13862 fi
13863 rm -f conf$$.file
13864
13865 # Extract the first word of "msgfmt", so it can be a program name with args.
13866 set dummy msgfmt; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if ${ac_cv_path_MSGFMT+:} false; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   case "$MSGFMT" in
13873   [\\/]* | ?:[\\/]*)
13874     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13875     ;;
13876   *)
13877     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13878     for ac_dir in $PATH; do
13879       IFS="$ac_save_IFS"
13880       test -z "$ac_dir" && ac_dir=.
13881       for ac_exec_ext in '' $ac_executable_extensions; do
13882         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13883           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13884           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13885      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13886             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13887             break 2
13888           fi
13889         fi
13890       done
13891     done
13892     IFS="$ac_save_IFS"
13893   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13894     ;;
13895 esac
13896 fi
13897 MSGFMT="$ac_cv_path_MSGFMT"
13898 if test "$MSGFMT" != ":"; then
13899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13900 $as_echo "$MSGFMT" >&6; }
13901 else
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 $as_echo "no" >&6; }
13904 fi
13905
13906   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13907 set dummy gmsgfmt; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if ${ac_cv_path_GMSGFMT+:} false; then :
13911   $as_echo_n "(cached) " >&6
13912 else
13913   case $GMSGFMT in
13914   [\\/]* | ?:[\\/]*)
13915   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13916   ;;
13917   *)
13918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13920 do
13921   IFS=$as_save_IFS
13922   test -z "$as_dir" && as_dir=.
13923     for ac_exec_ext in '' $ac_executable_extensions; do
13924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13925     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13927     break 2
13928   fi
13929 done
13930   done
13931 IFS=$as_save_IFS
13932
13933   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13934   ;;
13935 esac
13936 fi
13937 GMSGFMT=$ac_cv_path_GMSGFMT
13938 if test -n "$GMSGFMT"; then
13939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13940 $as_echo "$GMSGFMT" >&6; }
13941 else
13942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13944 fi
13945
13946
13947
13948     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13949     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13950     *) MSGFMT_015=$MSGFMT ;;
13951   esac
13952
13953   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13954     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13955     *) GMSGFMT_015=$GMSGFMT ;;
13956   esac
13957
13958
13959
13960 # Prepare PATH_SEPARATOR.
13961 # The user is always right.
13962 if test "${PATH_SEPARATOR+set}" != set; then
13963   echo "#! /bin/sh" >conf$$.sh
13964   echo  "exit 0"   >>conf$$.sh
13965   chmod +x conf$$.sh
13966   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13967     PATH_SEPARATOR=';'
13968   else
13969     PATH_SEPARATOR=:
13970   fi
13971   rm -f conf$$.sh
13972 fi
13973
13974 # Find out how to test for executable files. Don't use a zero-byte file,
13975 # as systems may use methods other than mode bits to determine executability.
13976 cat >conf$$.file <<_ASEOF
13977 #! /bin/sh
13978 exit 0
13979 _ASEOF
13980 chmod +x conf$$.file
13981 if test -x conf$$.file >/dev/null 2>&1; then
13982   ac_executable_p="test -x"
13983 else
13984   ac_executable_p="test -f"
13985 fi
13986 rm -f conf$$.file
13987
13988 # Extract the first word of "xgettext", so it can be a program name with args.
13989 set dummy xgettext; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_path_XGETTEXT+:} false; then :
13993   $as_echo_n "(cached) " >&6
13994 else
13995   case "$XGETTEXT" in
13996   [\\/]* | ?:[\\/]*)
13997     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13998     ;;
13999   *)
14000     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14001     for ac_dir in $PATH; do
14002       IFS="$ac_save_IFS"
14003       test -z "$ac_dir" && ac_dir=.
14004       for ac_exec_ext in '' $ac_executable_extensions; do
14005         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14006           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14007           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14008      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14009             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14010             break 2
14011           fi
14012         fi
14013       done
14014     done
14015     IFS="$ac_save_IFS"
14016   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14017     ;;
14018 esac
14019 fi
14020 XGETTEXT="$ac_cv_path_XGETTEXT"
14021 if test "$XGETTEXT" != ":"; then
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14023 $as_echo "$XGETTEXT" >&6; }
14024 else
14025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14027 fi
14028
14029     rm -f messages.po
14030
14031     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14032     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14033     *) XGETTEXT_015=$XGETTEXT ;;
14034   esac
14035
14036
14037
14038 # Prepare PATH_SEPARATOR.
14039 # The user is always right.
14040 if test "${PATH_SEPARATOR+set}" != set; then
14041   echo "#! /bin/sh" >conf$$.sh
14042   echo  "exit 0"   >>conf$$.sh
14043   chmod +x conf$$.sh
14044   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14045     PATH_SEPARATOR=';'
14046   else
14047     PATH_SEPARATOR=:
14048   fi
14049   rm -f conf$$.sh
14050 fi
14051
14052 # Find out how to test for executable files. Don't use a zero-byte file,
14053 # as systems may use methods other than mode bits to determine executability.
14054 cat >conf$$.file <<_ASEOF
14055 #! /bin/sh
14056 exit 0
14057 _ASEOF
14058 chmod +x conf$$.file
14059 if test -x conf$$.file >/dev/null 2>&1; then
14060   ac_executable_p="test -x"
14061 else
14062   ac_executable_p="test -f"
14063 fi
14064 rm -f conf$$.file
14065
14066 # Extract the first word of "msgmerge", so it can be a program name with args.
14067 set dummy msgmerge; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069 $as_echo_n "checking for $ac_word... " >&6; }
14070 if ${ac_cv_path_MSGMERGE+:} false; then :
14071   $as_echo_n "(cached) " >&6
14072 else
14073   case "$MSGMERGE" in
14074   [\\/]* | ?:[\\/]*)
14075     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14076     ;;
14077   *)
14078     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14079     for ac_dir in $PATH; do
14080       IFS="$ac_save_IFS"
14081       test -z "$ac_dir" && ac_dir=.
14082       for ac_exec_ext in '' $ac_executable_extensions; do
14083         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14084           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14085           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14086             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14087             break 2
14088           fi
14089         fi
14090       done
14091     done
14092     IFS="$ac_save_IFS"
14093   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14094     ;;
14095 esac
14096 fi
14097 MSGMERGE="$ac_cv_path_MSGMERGE"
14098 if test "$MSGMERGE" != ":"; then
14099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14100 $as_echo "$MSGMERGE" >&6; }
14101 else
14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14104 fi
14105
14106
14107         test -n "$localedir" || localedir='${datadir}/locale'
14108
14109
14110     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14111
14112
14113   ac_config_commands="$ac_config_commands po-directories"
14114
14115
14116
14117       if test "X$prefix" = "XNONE"; then
14118     acl_final_prefix="$ac_default_prefix"
14119   else
14120     acl_final_prefix="$prefix"
14121   fi
14122   if test "X$exec_prefix" = "XNONE"; then
14123     acl_final_exec_prefix='${prefix}'
14124   else
14125     acl_final_exec_prefix="$exec_prefix"
14126   fi
14127   acl_save_prefix="$prefix"
14128   prefix="$acl_final_prefix"
14129   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14130   prefix="$acl_save_prefix"
14131
14132
14133 # Check whether --with-gnu-ld was given.
14134 if test "${with_gnu_ld+set}" = set; then :
14135   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14136 else
14137   with_gnu_ld=no
14138 fi
14139
14140 # Prepare PATH_SEPARATOR.
14141 # The user is always right.
14142 if test "${PATH_SEPARATOR+set}" != set; then
14143   echo "#! /bin/sh" >conf$$.sh
14144   echo  "exit 0"   >>conf$$.sh
14145   chmod +x conf$$.sh
14146   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14147     PATH_SEPARATOR=';'
14148   else
14149     PATH_SEPARATOR=:
14150   fi
14151   rm -f conf$$.sh
14152 fi
14153 ac_prog=ld
14154 if test "$GCC" = yes; then
14155   # Check if gcc -print-prog-name=ld gives a path.
14156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14157 $as_echo_n "checking for ld used by GCC... " >&6; }
14158   case $host in
14159   *-*-mingw*)
14160     # gcc leaves a trailing carriage return which upsets mingw
14161     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14162   *)
14163     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14164   esac
14165   case $ac_prog in
14166     # Accept absolute paths.
14167     [\\/]* | [A-Za-z]:[\\/]*)
14168       re_direlt='/[^/][^/]*/\.\./'
14169       # Canonicalize the path of ld
14170       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14171       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14172         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14173       done
14174       test -z "$LD" && LD="$ac_prog"
14175       ;;
14176   "")
14177     # If it fails, then pretend we aren't using GCC.
14178     ac_prog=ld
14179     ;;
14180   *)
14181     # If it is relative, then search for the first ld in PATH.
14182     with_gnu_ld=unknown
14183     ;;
14184   esac
14185 elif test "$with_gnu_ld" = yes; then
14186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14187 $as_echo_n "checking for GNU ld... " >&6; }
14188 else
14189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14190 $as_echo_n "checking for non-GNU ld... " >&6; }
14191 fi
14192 if ${acl_cv_path_LD+:} false; then :
14193   $as_echo_n "(cached) " >&6
14194 else
14195   if test -z "$LD"; then
14196   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14197   for ac_dir in $PATH; do
14198     test -z "$ac_dir" && ac_dir=.
14199     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14200       acl_cv_path_LD="$ac_dir/$ac_prog"
14201       # Check to see if the program is GNU ld.  I'd rather use --version,
14202       # but apparently some GNU ld's only accept -v.
14203       # Break only if it was the GNU/non-GNU ld that we prefer.
14204       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14205       *GNU* | *'with BFD'*)
14206         test "$with_gnu_ld" != no && break ;;
14207       *)
14208         test "$with_gnu_ld" != yes && break ;;
14209       esac
14210     fi
14211   done
14212   IFS="$ac_save_ifs"
14213 else
14214   acl_cv_path_LD="$LD" # Let the user override the test with a path.
14215 fi
14216 fi
14217
14218 LD="$acl_cv_path_LD"
14219 if test -n "$LD"; then
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14221 $as_echo "$LD" >&6; }
14222 else
14223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; }
14225 fi
14226 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14228 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14229 if ${acl_cv_prog_gnu_ld+:} false; then :
14230   $as_echo_n "(cached) " >&6
14231 else
14232   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14233 case `$LD -v 2>&1 </dev/null` in
14234 *GNU* | *'with BFD'*)
14235   acl_cv_prog_gnu_ld=yes ;;
14236 *)
14237   acl_cv_prog_gnu_ld=no ;;
14238 esac
14239 fi
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14241 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14242 with_gnu_ld=$acl_cv_prog_gnu_ld
14243
14244
14245
14246
14247                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14248 $as_echo_n "checking for shared library run path origin... " >&6; }
14249 if ${acl_cv_rpath+:} false; then :
14250   $as_echo_n "(cached) " >&6
14251 else
14252
14253     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14254     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14255     . ./conftest.sh
14256     rm -f ./conftest.sh
14257     acl_cv_rpath=done
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14261 $as_echo "$acl_cv_rpath" >&6; }
14262   wl="$acl_cv_wl"
14263   acl_libext="$acl_cv_libext"
14264   acl_shlibext="$acl_cv_shlibext"
14265   acl_libname_spec="$acl_cv_libname_spec"
14266   acl_library_names_spec="$acl_cv_library_names_spec"
14267   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14268   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14269   acl_hardcode_direct="$acl_cv_hardcode_direct"
14270   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14271     # Check whether --enable-rpath was given.
14272 if test "${enable_rpath+set}" = set; then :
14273   enableval=$enable_rpath; :
14274 else
14275   enable_rpath=yes
14276 fi
14277
14278
14279
14280
14281   acl_libdirstem=lib
14282   acl_libdirstem2=
14283   case "$host_os" in
14284     solaris*)
14285                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14286 $as_echo_n "checking for 64-bit host... " >&6; }
14287 if ${gl_cv_solaris_64bit+:} false; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h.  */
14292
14293 #ifdef _LP64
14294 sixtyfour bits
14295 #endif
14296
14297 _ACEOF
14298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
14300   gl_cv_solaris_64bit=yes
14301 else
14302   gl_cv_solaris_64bit=no
14303 fi
14304 rm -f conftest*
14305
14306
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14309 $as_echo "$gl_cv_solaris_64bit" >&6; }
14310       if test $gl_cv_solaris_64bit = yes; then
14311         acl_libdirstem=lib/64
14312         case "$host_cpu" in
14313           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14314           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14315         esac
14316       fi
14317       ;;
14318     *)
14319       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14320       if test -n "$searchpath"; then
14321         acl_save_IFS="${IFS=    }"; IFS=":"
14322         for searchdir in $searchpath; do
14323           if test -d "$searchdir"; then
14324             case "$searchdir" in
14325               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14326               */../ | */.. )
14327                 # Better ignore directories of this form. They are misleading.
14328                 ;;
14329               *) searchdir=`cd "$searchdir" && pwd`
14330                  case "$searchdir" in
14331                    */lib64 ) acl_libdirstem=lib64 ;;
14332                  esac ;;
14333             esac
14334           fi
14335         done
14336         IFS="$acl_save_IFS"
14337       fi
14338       ;;
14339   esac
14340   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353     use_additional=yes
14354
14355   acl_save_prefix="$prefix"
14356   prefix="$acl_final_prefix"
14357   acl_save_exec_prefix="$exec_prefix"
14358   exec_prefix="$acl_final_exec_prefix"
14359
14360     eval additional_includedir=\"$includedir\"
14361     eval additional_libdir=\"$libdir\"
14362
14363   exec_prefix="$acl_save_exec_prefix"
14364   prefix="$acl_save_prefix"
14365
14366
14367 # Check whether --with-libiconv-prefix was given.
14368 if test "${with_libiconv_prefix+set}" = set; then :
14369   withval=$with_libiconv_prefix;
14370     if test "X$withval" = "Xno"; then
14371       use_additional=no
14372     else
14373       if test "X$withval" = "X"; then
14374
14375   acl_save_prefix="$prefix"
14376   prefix="$acl_final_prefix"
14377   acl_save_exec_prefix="$exec_prefix"
14378   exec_prefix="$acl_final_exec_prefix"
14379
14380           eval additional_includedir=\"$includedir\"
14381           eval additional_libdir=\"$libdir\"
14382
14383   exec_prefix="$acl_save_exec_prefix"
14384   prefix="$acl_save_prefix"
14385
14386       else
14387         additional_includedir="$withval/include"
14388         additional_libdir="$withval/$acl_libdirstem"
14389         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14390            && ! test -d "$withval/$acl_libdirstem"; then
14391           additional_libdir="$withval/$acl_libdirstem2"
14392         fi
14393       fi
14394     fi
14395
14396 fi
14397
14398       LIBICONV=
14399   LTLIBICONV=
14400   INCICONV=
14401   LIBICONV_PREFIX=
14402       HAVE_LIBICONV=
14403   rpathdirs=
14404   ltrpathdirs=
14405   names_already_handled=
14406   names_next_round='iconv '
14407   while test -n "$names_next_round"; do
14408     names_this_round="$names_next_round"
14409     names_next_round=
14410     for name in $names_this_round; do
14411       already_handled=
14412       for n in $names_already_handled; do
14413         if test "$n" = "$name"; then
14414           already_handled=yes
14415           break
14416         fi
14417       done
14418       if test -z "$already_handled"; then
14419         names_already_handled="$names_already_handled $name"
14420                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14421         eval value=\"\$HAVE_LIB$uppername\"
14422         if test -n "$value"; then
14423           if test "$value" = yes; then
14424             eval value=\"\$LIB$uppername\"
14425             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14426             eval value=\"\$LTLIB$uppername\"
14427             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14428           else
14429                                     :
14430           fi
14431         else
14432                               found_dir=
14433           found_la=
14434           found_so=
14435           found_a=
14436           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14437           if test -n "$acl_shlibext"; then
14438             shrext=".$acl_shlibext"             # typically: shrext=.so
14439           else
14440             shrext=
14441           fi
14442           if test $use_additional = yes; then
14443             dir="$additional_libdir"
14444                                     if test -n "$acl_shlibext"; then
14445               if test -f "$dir/$libname$shrext"; then
14446                 found_dir="$dir"
14447                 found_so="$dir/$libname$shrext"
14448               else
14449                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14450                   ver=`(cd "$dir" && \
14451                         for f in "$libname$shrext".*; do echo "$f"; done \
14452                         | sed -e "s,^$libname$shrext\\\\.,," \
14453                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14454                         | sed 1q ) 2>/dev/null`
14455                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14456                     found_dir="$dir"
14457                     found_so="$dir/$libname$shrext.$ver"
14458                   fi
14459                 else
14460                   eval library_names=\"$acl_library_names_spec\"
14461                   for f in $library_names; do
14462                     if test -f "$dir/$f"; then
14463                       found_dir="$dir"
14464                       found_so="$dir/$f"
14465                       break
14466                     fi
14467                   done
14468                 fi
14469               fi
14470             fi
14471                         if test "X$found_dir" = "X"; then
14472               if test -f "$dir/$libname.$acl_libext"; then
14473                 found_dir="$dir"
14474                 found_a="$dir/$libname.$acl_libext"
14475               fi
14476             fi
14477             if test "X$found_dir" != "X"; then
14478               if test -f "$dir/$libname.la"; then
14479                 found_la="$dir/$libname.la"
14480               fi
14481             fi
14482           fi
14483           if test "X$found_dir" = "X"; then
14484             for x in $LDFLAGS $LTLIBICONV; do
14485
14486   acl_save_prefix="$prefix"
14487   prefix="$acl_final_prefix"
14488   acl_save_exec_prefix="$exec_prefix"
14489   exec_prefix="$acl_final_exec_prefix"
14490   eval x=\"$x\"
14491   exec_prefix="$acl_save_exec_prefix"
14492   prefix="$acl_save_prefix"
14493
14494               case "$x" in
14495                 -L*)
14496                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14497                                     if test -n "$acl_shlibext"; then
14498                     if test -f "$dir/$libname$shrext"; then
14499                       found_dir="$dir"
14500                       found_so="$dir/$libname$shrext"
14501                     else
14502                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14503                         ver=`(cd "$dir" && \
14504                               for f in "$libname$shrext".*; do echo "$f"; done \
14505                               | sed -e "s,^$libname$shrext\\\\.,," \
14506                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14507                               | sed 1q ) 2>/dev/null`
14508                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14509                           found_dir="$dir"
14510                           found_so="$dir/$libname$shrext.$ver"
14511                         fi
14512                       else
14513                         eval library_names=\"$acl_library_names_spec\"
14514                         for f in $library_names; do
14515                           if test -f "$dir/$f"; then
14516                             found_dir="$dir"
14517                             found_so="$dir/$f"
14518                             break
14519                           fi
14520                         done
14521                       fi
14522                     fi
14523                   fi
14524                                     if test "X$found_dir" = "X"; then
14525                     if test -f "$dir/$libname.$acl_libext"; then
14526                       found_dir="$dir"
14527                       found_a="$dir/$libname.$acl_libext"
14528                     fi
14529                   fi
14530                   if test "X$found_dir" != "X"; then
14531                     if test -f "$dir/$libname.la"; then
14532                       found_la="$dir/$libname.la"
14533                     fi
14534                   fi
14535                   ;;
14536               esac
14537               if test "X$found_dir" != "X"; then
14538                 break
14539               fi
14540             done
14541           fi
14542           if test "X$found_dir" != "X"; then
14543                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14544             if test "X$found_so" != "X"; then
14545                                                         if test "$enable_rpath" = no \
14546                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14547                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14548                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14549               else
14550                                                                                 haveit=
14551                 for x in $ltrpathdirs; do
14552                   if test "X$x" = "X$found_dir"; then
14553                     haveit=yes
14554                     break
14555                   fi
14556                 done
14557                 if test -z "$haveit"; then
14558                   ltrpathdirs="$ltrpathdirs $found_dir"
14559                 fi
14560                                 if test "$acl_hardcode_direct" = yes; then
14561                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14562                 else
14563                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14564                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14565                                                             haveit=
14566                     for x in $rpathdirs; do
14567                       if test "X$x" = "X$found_dir"; then
14568                         haveit=yes
14569                         break
14570                       fi
14571                     done
14572                     if test -z "$haveit"; then
14573                       rpathdirs="$rpathdirs $found_dir"
14574                     fi
14575                   else
14576                                                                                 haveit=
14577                     for x in $LDFLAGS $LIBICONV; do
14578
14579   acl_save_prefix="$prefix"
14580   prefix="$acl_final_prefix"
14581   acl_save_exec_prefix="$exec_prefix"
14582   exec_prefix="$acl_final_exec_prefix"
14583   eval x=\"$x\"
14584   exec_prefix="$acl_save_exec_prefix"
14585   prefix="$acl_save_prefix"
14586
14587                       if test "X$x" = "X-L$found_dir"; then
14588                         haveit=yes
14589                         break
14590                       fi
14591                     done
14592                     if test -z "$haveit"; then
14593                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14594                     fi
14595                     if test "$acl_hardcode_minus_L" != no; then
14596                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14597                     else
14598                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14599                     fi
14600                   fi
14601                 fi
14602               fi
14603             else
14604               if test "X$found_a" != "X"; then
14605                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14606               else
14607                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14608               fi
14609             fi
14610                         additional_includedir=
14611             case "$found_dir" in
14612               */$acl_libdirstem | */$acl_libdirstem/)
14613                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14614                 if test "$name" = 'iconv'; then
14615                   LIBICONV_PREFIX="$basedir"
14616                 fi
14617                 additional_includedir="$basedir/include"
14618                 ;;
14619               */$acl_libdirstem2 | */$acl_libdirstem2/)
14620                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14621                 if test "$name" = 'iconv'; then
14622                   LIBICONV_PREFIX="$basedir"
14623                 fi
14624                 additional_includedir="$basedir/include"
14625                 ;;
14626             esac
14627             if test "X$additional_includedir" != "X"; then
14628                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14629                 haveit=
14630                 if test "X$additional_includedir" = "X/usr/local/include"; then
14631                   if test -n "$GCC"; then
14632                     case $host_os in
14633                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14634                     esac
14635                   fi
14636                 fi
14637                 if test -z "$haveit"; then
14638                   for x in $CPPFLAGS $INCICONV; do
14639
14640   acl_save_prefix="$prefix"
14641   prefix="$acl_final_prefix"
14642   acl_save_exec_prefix="$exec_prefix"
14643   exec_prefix="$acl_final_exec_prefix"
14644   eval x=\"$x\"
14645   exec_prefix="$acl_save_exec_prefix"
14646   prefix="$acl_save_prefix"
14647
14648                     if test "X$x" = "X-I$additional_includedir"; then
14649                       haveit=yes
14650                       break
14651                     fi
14652                   done
14653                   if test -z "$haveit"; then
14654                     if test -d "$additional_includedir"; then
14655                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14656                     fi
14657                   fi
14658                 fi
14659               fi
14660             fi
14661                         if test -n "$found_la"; then
14662                                                         save_libdir="$libdir"
14663               case "$found_la" in
14664                 */* | *\\*) . "$found_la" ;;
14665                 *) . "./$found_la" ;;
14666               esac
14667               libdir="$save_libdir"
14668                             for dep in $dependency_libs; do
14669                 case "$dep" in
14670                   -L*)
14671                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14672                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14673                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14674                       haveit=
14675                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14676                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14677                         if test -n "$GCC"; then
14678                           case $host_os in
14679                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14680                           esac
14681                         fi
14682                       fi
14683                       if test -z "$haveit"; then
14684                         haveit=
14685                         for x in $LDFLAGS $LIBICONV; do
14686
14687   acl_save_prefix="$prefix"
14688   prefix="$acl_final_prefix"
14689   acl_save_exec_prefix="$exec_prefix"
14690   exec_prefix="$acl_final_exec_prefix"
14691   eval x=\"$x\"
14692   exec_prefix="$acl_save_exec_prefix"
14693   prefix="$acl_save_prefix"
14694
14695                           if test "X$x" = "X-L$additional_libdir"; then
14696                             haveit=yes
14697                             break
14698                           fi
14699                         done
14700                         if test -z "$haveit"; then
14701                           if test -d "$additional_libdir"; then
14702                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14703                           fi
14704                         fi
14705                         haveit=
14706                         for x in $LDFLAGS $LTLIBICONV; do
14707
14708   acl_save_prefix="$prefix"
14709   prefix="$acl_final_prefix"
14710   acl_save_exec_prefix="$exec_prefix"
14711   exec_prefix="$acl_final_exec_prefix"
14712   eval x=\"$x\"
14713   exec_prefix="$acl_save_exec_prefix"
14714   prefix="$acl_save_prefix"
14715
14716                           if test "X$x" = "X-L$additional_libdir"; then
14717                             haveit=yes
14718                             break
14719                           fi
14720                         done
14721                         if test -z "$haveit"; then
14722                           if test -d "$additional_libdir"; then
14723                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14724                           fi
14725                         fi
14726                       fi
14727                     fi
14728                     ;;
14729                   -R*)
14730                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14731                     if test "$enable_rpath" != no; then
14732                                                                   haveit=
14733                       for x in $rpathdirs; do
14734                         if test "X$x" = "X$dir"; then
14735                           haveit=yes
14736                           break
14737                         fi
14738                       done
14739                       if test -z "$haveit"; then
14740                         rpathdirs="$rpathdirs $dir"
14741                       fi
14742                                                                   haveit=
14743                       for x in $ltrpathdirs; do
14744                         if test "X$x" = "X$dir"; then
14745                           haveit=yes
14746                           break
14747                         fi
14748                       done
14749                       if test -z "$haveit"; then
14750                         ltrpathdirs="$ltrpathdirs $dir"
14751                       fi
14752                     fi
14753                     ;;
14754                   -l*)
14755                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14756                     ;;
14757                   *.la)
14758                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14759                     ;;
14760                   *)
14761                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14762                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14763                     ;;
14764                 esac
14765               done
14766             fi
14767           else
14768                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14769             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14770           fi
14771         fi
14772       fi
14773     done
14774   done
14775   if test "X$rpathdirs" != "X"; then
14776     if test -n "$acl_hardcode_libdir_separator"; then
14777                         alldirs=
14778       for found_dir in $rpathdirs; do
14779         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14780       done
14781             acl_save_libdir="$libdir"
14782       libdir="$alldirs"
14783       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14784       libdir="$acl_save_libdir"
14785       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14786     else
14787             for found_dir in $rpathdirs; do
14788         acl_save_libdir="$libdir"
14789         libdir="$found_dir"
14790         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14791         libdir="$acl_save_libdir"
14792         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14793       done
14794     fi
14795   fi
14796   if test "X$ltrpathdirs" != "X"; then
14797             for found_dir in $ltrpathdirs; do
14798       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14799     done
14800   fi
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14833 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14834 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14835   $as_echo_n "(cached) " >&6
14836 else
14837   gt_save_LIBS="$LIBS"
14838      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14839      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841 #include <CoreFoundation/CFPreferences.h>
14842 int
14843 main ()
14844 {
14845 CFPreferencesCopyAppValue(NULL, NULL)
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851   gt_cv_func_CFPreferencesCopyAppValue=yes
14852 else
14853   gt_cv_func_CFPreferencesCopyAppValue=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856     conftest$ac_exeext conftest.$ac_ext
14857      LIBS="$gt_save_LIBS"
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14860 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14861   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14862
14863 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14864
14865   fi
14866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14867 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14868 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14869   $as_echo_n "(cached) " >&6
14870 else
14871   gt_save_LIBS="$LIBS"
14872      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h.  */
14875 #include <CoreFoundation/CFLocale.h>
14876 int
14877 main ()
14878 {
14879 CFLocaleCopyCurrent();
14880   ;
14881   return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"; then :
14885   gt_cv_func_CFLocaleCopyCurrent=yes
14886 else
14887   gt_cv_func_CFLocaleCopyCurrent=no
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext \
14890     conftest$ac_exeext conftest.$ac_ext
14891      LIBS="$gt_save_LIBS"
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14894 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14895   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14896
14897 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14898
14899   fi
14900   INTL_MACOSX_LIBS=
14901   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14902     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14903   fi
14904
14905
14906
14907
14908
14909
14910   LIBINTL=
14911   LTLIBINTL=
14912   POSUB=
14913
14914     case " $gt_needs " in
14915     *" need-formatstring-macros "*) gt_api_version=3 ;;
14916     *" need-ngettext "*) gt_api_version=2 ;;
14917     *) gt_api_version=1 ;;
14918   esac
14919   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14920   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14921
14922     if test "$USE_NLS" = "yes"; then
14923     gt_use_preinstalled_gnugettext=no
14924
14925
14926         if test $gt_api_version -ge 3; then
14927           gt_revision_test_code='
14928 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14929 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14930 #endif
14931 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14932 '
14933         else
14934           gt_revision_test_code=
14935         fi
14936         if test $gt_api_version -ge 2; then
14937           gt_expression_test_code=' + * ngettext ("", "", 0)'
14938         else
14939           gt_expression_test_code=
14940         fi
14941
14942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14943 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14944 if eval \${$gt_func_gnugettext_libc+:} false; then :
14945   $as_echo_n "(cached) " >&6
14946 else
14947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h.  */
14949 #include <libintl.h>
14950 $gt_revision_test_code
14951 extern int _nl_msg_cat_cntr;
14952 extern int *_nl_domain_bindings;
14953 int
14954 main ()
14955 {
14956 bindtextdomain ("", "");
14957 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 if ac_fn_c_try_link "$LINENO"; then :
14963   eval "$gt_func_gnugettext_libc=yes"
14964 else
14965   eval "$gt_func_gnugettext_libc=no"
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext \
14968     conftest$ac_exeext conftest.$ac_ext
14969 fi
14970 eval ac_res=\$$gt_func_gnugettext_libc
14971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14972 $as_echo "$ac_res" >&6; }
14973
14974         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14975
14976
14977
14978
14979
14980           am_save_CPPFLAGS="$CPPFLAGS"
14981
14982   for element in $INCICONV; do
14983     haveit=
14984     for x in $CPPFLAGS; do
14985
14986   acl_save_prefix="$prefix"
14987   prefix="$acl_final_prefix"
14988   acl_save_exec_prefix="$exec_prefix"
14989   exec_prefix="$acl_final_exec_prefix"
14990   eval x=\"$x\"
14991   exec_prefix="$acl_save_exec_prefix"
14992   prefix="$acl_save_prefix"
14993
14994       if test "X$x" = "X$element"; then
14995         haveit=yes
14996         break
14997       fi
14998     done
14999     if test -z "$haveit"; then
15000       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15001     fi
15002   done
15003
15004
15005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15006 $as_echo_n "checking for iconv... " >&6; }
15007 if ${am_cv_func_iconv+:} false; then :
15008   $as_echo_n "(cached) " >&6
15009 else
15010
15011     am_cv_func_iconv="no, consider installing GNU libiconv"
15012     am_cv_lib_iconv=no
15013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h.  */
15015 #include <stdlib.h>
15016 #include <iconv.h>
15017 int
15018 main ()
15019 {
15020 iconv_t cd = iconv_open("","");
15021        iconv(cd,NULL,NULL,NULL,NULL);
15022        iconv_close(cd);
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 if ac_fn_c_try_link "$LINENO"; then :
15028   am_cv_func_iconv=yes
15029 fi
15030 rm -f core conftest.err conftest.$ac_objext \
15031     conftest$ac_exeext conftest.$ac_ext
15032     if test "$am_cv_func_iconv" != yes; then
15033       am_save_LIBS="$LIBS"
15034       LIBS="$LIBS $LIBICONV"
15035       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037 #include <stdlib.h>
15038 #include <iconv.h>
15039 int
15040 main ()
15041 {
15042 iconv_t cd = iconv_open("","");
15043          iconv(cd,NULL,NULL,NULL,NULL);
15044          iconv_close(cd);
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050   am_cv_lib_iconv=yes
15051         am_cv_func_iconv=yes
15052 fi
15053 rm -f core conftest.err conftest.$ac_objext \
15054     conftest$ac_exeext conftest.$ac_ext
15055       LIBS="$am_save_LIBS"
15056     fi
15057
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15060 $as_echo "$am_cv_func_iconv" >&6; }
15061   if test "$am_cv_func_iconv" = yes; then
15062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15063 $as_echo_n "checking for working iconv... " >&6; }
15064 if ${am_cv_func_iconv_works+:} false; then :
15065   $as_echo_n "(cached) " >&6
15066 else
15067
15068             am_save_LIBS="$LIBS"
15069       if test $am_cv_lib_iconv = yes; then
15070         LIBS="$LIBS $LIBICONV"
15071       fi
15072       if test "$cross_compiling" = yes; then :
15073   case "$host_os" in
15074            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15075            *)            am_cv_func_iconv_works="guessing yes" ;;
15076          esac
15077 else
15078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h.  */
15080
15081 #include <iconv.h>
15082 #include <string.h>
15083 int main ()
15084 {
15085   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15086      returns.  */
15087   {
15088     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15089     if (cd_utf8_to_88591 != (iconv_t)(-1))
15090       {
15091         static const char input[] = "\342\202\254"; /* EURO SIGN */
15092         char buf[10];
15093         const char *inptr = input;
15094         size_t inbytesleft = strlen (input);
15095         char *outptr = buf;
15096         size_t outbytesleft = sizeof (buf);
15097         size_t res = iconv (cd_utf8_to_88591,
15098                             (char **) &inptr, &inbytesleft,
15099                             &outptr, &outbytesleft);
15100         if (res == 0)
15101           return 1;
15102       }
15103   }
15104   /* Test against Solaris 10 bug: Failures are not distinguishable from
15105      successful returns.  */
15106   {
15107     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15108     if (cd_ascii_to_88591 != (iconv_t)(-1))
15109       {
15110         static const char input[] = "\263";
15111         char buf[10];
15112         const char *inptr = input;
15113         size_t inbytesleft = strlen (input);
15114         char *outptr = buf;
15115         size_t outbytesleft = sizeof (buf);
15116         size_t res = iconv (cd_ascii_to_88591,
15117                             (char **) &inptr, &inbytesleft,
15118                             &outptr, &outbytesleft);
15119         if (res == 0)
15120           return 1;
15121       }
15122   }
15123 #if 0 /* This bug could be worked around by the caller.  */
15124   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15125   {
15126     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15127     if (cd_88591_to_utf8 != (iconv_t)(-1))
15128       {
15129         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15130         char buf[50];
15131         const char *inptr = input;
15132         size_t inbytesleft = strlen (input);
15133         char *outptr = buf;
15134         size_t outbytesleft = sizeof (buf);
15135         size_t res = iconv (cd_88591_to_utf8,
15136                             (char **) &inptr, &inbytesleft,
15137                             &outptr, &outbytesleft);
15138         if ((int)res > 0)
15139           return 1;
15140       }
15141   }
15142 #endif
15143   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15144      provided.  */
15145   if (/* Try standardized names.  */
15146       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15147       /* Try IRIX, OSF/1 names.  */
15148       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15149       /* Try AIX names.  */
15150       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15151       /* Try HP-UX names.  */
15152       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15153     return 1;
15154   return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_run "$LINENO"; then :
15158   am_cv_func_iconv_works=yes
15159 else
15160   am_cv_func_iconv_works=no
15161 fi
15162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15163   conftest.$ac_objext conftest.beam conftest.$ac_ext
15164 fi
15165
15166       LIBS="$am_save_LIBS"
15167
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15170 $as_echo "$am_cv_func_iconv_works" >&6; }
15171     case "$am_cv_func_iconv_works" in
15172       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15173       *)   am_func_iconv=yes ;;
15174     esac
15175   else
15176     am_func_iconv=no am_cv_lib_iconv=no
15177   fi
15178   if test "$am_func_iconv" = yes; then
15179
15180 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15181
15182   fi
15183   if test "$am_cv_lib_iconv" = yes; then
15184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15185 $as_echo_n "checking how to link with libiconv... " >&6; }
15186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15187 $as_echo "$LIBICONV" >&6; }
15188   else
15189             CPPFLAGS="$am_save_CPPFLAGS"
15190     LIBICONV=
15191     LTLIBICONV=
15192   fi
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204     use_additional=yes
15205
15206   acl_save_prefix="$prefix"
15207   prefix="$acl_final_prefix"
15208   acl_save_exec_prefix="$exec_prefix"
15209   exec_prefix="$acl_final_exec_prefix"
15210
15211     eval additional_includedir=\"$includedir\"
15212     eval additional_libdir=\"$libdir\"
15213
15214   exec_prefix="$acl_save_exec_prefix"
15215   prefix="$acl_save_prefix"
15216
15217
15218 # Check whether --with-libintl-prefix was given.
15219 if test "${with_libintl_prefix+set}" = set; then :
15220   withval=$with_libintl_prefix;
15221     if test "X$withval" = "Xno"; then
15222       use_additional=no
15223     else
15224       if test "X$withval" = "X"; then
15225
15226   acl_save_prefix="$prefix"
15227   prefix="$acl_final_prefix"
15228   acl_save_exec_prefix="$exec_prefix"
15229   exec_prefix="$acl_final_exec_prefix"
15230
15231           eval additional_includedir=\"$includedir\"
15232           eval additional_libdir=\"$libdir\"
15233
15234   exec_prefix="$acl_save_exec_prefix"
15235   prefix="$acl_save_prefix"
15236
15237       else
15238         additional_includedir="$withval/include"
15239         additional_libdir="$withval/$acl_libdirstem"
15240         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15241            && ! test -d "$withval/$acl_libdirstem"; then
15242           additional_libdir="$withval/$acl_libdirstem2"
15243         fi
15244       fi
15245     fi
15246
15247 fi
15248
15249       LIBINTL=
15250   LTLIBINTL=
15251   INCINTL=
15252   LIBINTL_PREFIX=
15253       HAVE_LIBINTL=
15254   rpathdirs=
15255   ltrpathdirs=
15256   names_already_handled=
15257   names_next_round='intl '
15258   while test -n "$names_next_round"; do
15259     names_this_round="$names_next_round"
15260     names_next_round=
15261     for name in $names_this_round; do
15262       already_handled=
15263       for n in $names_already_handled; do
15264         if test "$n" = "$name"; then
15265           already_handled=yes
15266           break
15267         fi
15268       done
15269       if test -z "$already_handled"; then
15270         names_already_handled="$names_already_handled $name"
15271                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15272         eval value=\"\$HAVE_LIB$uppername\"
15273         if test -n "$value"; then
15274           if test "$value" = yes; then
15275             eval value=\"\$LIB$uppername\"
15276             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15277             eval value=\"\$LTLIB$uppername\"
15278             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15279           else
15280                                     :
15281           fi
15282         else
15283                               found_dir=
15284           found_la=
15285           found_so=
15286           found_a=
15287           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15288           if test -n "$acl_shlibext"; then
15289             shrext=".$acl_shlibext"             # typically: shrext=.so
15290           else
15291             shrext=
15292           fi
15293           if test $use_additional = yes; then
15294             dir="$additional_libdir"
15295                                     if test -n "$acl_shlibext"; then
15296               if test -f "$dir/$libname$shrext"; then
15297                 found_dir="$dir"
15298                 found_so="$dir/$libname$shrext"
15299               else
15300                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15301                   ver=`(cd "$dir" && \
15302                         for f in "$libname$shrext".*; do echo "$f"; done \
15303                         | sed -e "s,^$libname$shrext\\\\.,," \
15304                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15305                         | sed 1q ) 2>/dev/null`
15306                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15307                     found_dir="$dir"
15308                     found_so="$dir/$libname$shrext.$ver"
15309                   fi
15310                 else
15311                   eval library_names=\"$acl_library_names_spec\"
15312                   for f in $library_names; do
15313                     if test -f "$dir/$f"; then
15314                       found_dir="$dir"
15315                       found_so="$dir/$f"
15316                       break
15317                     fi
15318                   done
15319                 fi
15320               fi
15321             fi
15322                         if test "X$found_dir" = "X"; then
15323               if test -f "$dir/$libname.$acl_libext"; then
15324                 found_dir="$dir"
15325                 found_a="$dir/$libname.$acl_libext"
15326               fi
15327             fi
15328             if test "X$found_dir" != "X"; then
15329               if test -f "$dir/$libname.la"; then
15330                 found_la="$dir/$libname.la"
15331               fi
15332             fi
15333           fi
15334           if test "X$found_dir" = "X"; then
15335             for x in $LDFLAGS $LTLIBINTL; do
15336
15337   acl_save_prefix="$prefix"
15338   prefix="$acl_final_prefix"
15339   acl_save_exec_prefix="$exec_prefix"
15340   exec_prefix="$acl_final_exec_prefix"
15341   eval x=\"$x\"
15342   exec_prefix="$acl_save_exec_prefix"
15343   prefix="$acl_save_prefix"
15344
15345               case "$x" in
15346                 -L*)
15347                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15348                                     if test -n "$acl_shlibext"; then
15349                     if test -f "$dir/$libname$shrext"; then
15350                       found_dir="$dir"
15351                       found_so="$dir/$libname$shrext"
15352                     else
15353                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15354                         ver=`(cd "$dir" && \
15355                               for f in "$libname$shrext".*; do echo "$f"; done \
15356                               | sed -e "s,^$libname$shrext\\\\.,," \
15357                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15358                               | sed 1q ) 2>/dev/null`
15359                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15360                           found_dir="$dir"
15361                           found_so="$dir/$libname$shrext.$ver"
15362                         fi
15363                       else
15364                         eval library_names=\"$acl_library_names_spec\"
15365                         for f in $library_names; do
15366                           if test -f "$dir/$f"; then
15367                             found_dir="$dir"
15368                             found_so="$dir/$f"
15369                             break
15370                           fi
15371                         done
15372                       fi
15373                     fi
15374                   fi
15375                                     if test "X$found_dir" = "X"; then
15376                     if test -f "$dir/$libname.$acl_libext"; then
15377                       found_dir="$dir"
15378                       found_a="$dir/$libname.$acl_libext"
15379                     fi
15380                   fi
15381                   if test "X$found_dir" != "X"; then
15382                     if test -f "$dir/$libname.la"; then
15383                       found_la="$dir/$libname.la"
15384                     fi
15385                   fi
15386                   ;;
15387               esac
15388               if test "X$found_dir" != "X"; then
15389                 break
15390               fi
15391             done
15392           fi
15393           if test "X$found_dir" != "X"; then
15394                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15395             if test "X$found_so" != "X"; then
15396                                                         if test "$enable_rpath" = no \
15397                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15398                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15399                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15400               else
15401                                                                                 haveit=
15402                 for x in $ltrpathdirs; do
15403                   if test "X$x" = "X$found_dir"; then
15404                     haveit=yes
15405                     break
15406                   fi
15407                 done
15408                 if test -z "$haveit"; then
15409                   ltrpathdirs="$ltrpathdirs $found_dir"
15410                 fi
15411                                 if test "$acl_hardcode_direct" = yes; then
15412                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15413                 else
15414                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15415                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15416                                                             haveit=
15417                     for x in $rpathdirs; do
15418                       if test "X$x" = "X$found_dir"; then
15419                         haveit=yes
15420                         break
15421                       fi
15422                     done
15423                     if test -z "$haveit"; then
15424                       rpathdirs="$rpathdirs $found_dir"
15425                     fi
15426                   else
15427                                                                                 haveit=
15428                     for x in $LDFLAGS $LIBINTL; do
15429
15430   acl_save_prefix="$prefix"
15431   prefix="$acl_final_prefix"
15432   acl_save_exec_prefix="$exec_prefix"
15433   exec_prefix="$acl_final_exec_prefix"
15434   eval x=\"$x\"
15435   exec_prefix="$acl_save_exec_prefix"
15436   prefix="$acl_save_prefix"
15437
15438                       if test "X$x" = "X-L$found_dir"; then
15439                         haveit=yes
15440                         break
15441                       fi
15442                     done
15443                     if test -z "$haveit"; then
15444                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15445                     fi
15446                     if test "$acl_hardcode_minus_L" != no; then
15447                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15448                     else
15449                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15450                     fi
15451                   fi
15452                 fi
15453               fi
15454             else
15455               if test "X$found_a" != "X"; then
15456                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15457               else
15458                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15459               fi
15460             fi
15461                         additional_includedir=
15462             case "$found_dir" in
15463               */$acl_libdirstem | */$acl_libdirstem/)
15464                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15465                 if test "$name" = 'intl'; then
15466                   LIBINTL_PREFIX="$basedir"
15467                 fi
15468                 additional_includedir="$basedir/include"
15469                 ;;
15470               */$acl_libdirstem2 | */$acl_libdirstem2/)
15471                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15472                 if test "$name" = 'intl'; then
15473                   LIBINTL_PREFIX="$basedir"
15474                 fi
15475                 additional_includedir="$basedir/include"
15476                 ;;
15477             esac
15478             if test "X$additional_includedir" != "X"; then
15479                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15480                 haveit=
15481                 if test "X$additional_includedir" = "X/usr/local/include"; then
15482                   if test -n "$GCC"; then
15483                     case $host_os in
15484                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15485                     esac
15486                   fi
15487                 fi
15488                 if test -z "$haveit"; then
15489                   for x in $CPPFLAGS $INCINTL; do
15490
15491   acl_save_prefix="$prefix"
15492   prefix="$acl_final_prefix"
15493   acl_save_exec_prefix="$exec_prefix"
15494   exec_prefix="$acl_final_exec_prefix"
15495   eval x=\"$x\"
15496   exec_prefix="$acl_save_exec_prefix"
15497   prefix="$acl_save_prefix"
15498
15499                     if test "X$x" = "X-I$additional_includedir"; then
15500                       haveit=yes
15501                       break
15502                     fi
15503                   done
15504                   if test -z "$haveit"; then
15505                     if test -d "$additional_includedir"; then
15506                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15507                     fi
15508                   fi
15509                 fi
15510               fi
15511             fi
15512                         if test -n "$found_la"; then
15513                                                         save_libdir="$libdir"
15514               case "$found_la" in
15515                 */* | *\\*) . "$found_la" ;;
15516                 *) . "./$found_la" ;;
15517               esac
15518               libdir="$save_libdir"
15519                             for dep in $dependency_libs; do
15520                 case "$dep" in
15521                   -L*)
15522                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15523                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15524                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15525                       haveit=
15526                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15527                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15528                         if test -n "$GCC"; then
15529                           case $host_os in
15530                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15531                           esac
15532                         fi
15533                       fi
15534                       if test -z "$haveit"; then
15535                         haveit=
15536                         for x in $LDFLAGS $LIBINTL; do
15537
15538   acl_save_prefix="$prefix"
15539   prefix="$acl_final_prefix"
15540   acl_save_exec_prefix="$exec_prefix"
15541   exec_prefix="$acl_final_exec_prefix"
15542   eval x=\"$x\"
15543   exec_prefix="$acl_save_exec_prefix"
15544   prefix="$acl_save_prefix"
15545
15546                           if test "X$x" = "X-L$additional_libdir"; then
15547                             haveit=yes
15548                             break
15549                           fi
15550                         done
15551                         if test -z "$haveit"; then
15552                           if test -d "$additional_libdir"; then
15553                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15554                           fi
15555                         fi
15556                         haveit=
15557                         for x in $LDFLAGS $LTLIBINTL; do
15558
15559   acl_save_prefix="$prefix"
15560   prefix="$acl_final_prefix"
15561   acl_save_exec_prefix="$exec_prefix"
15562   exec_prefix="$acl_final_exec_prefix"
15563   eval x=\"$x\"
15564   exec_prefix="$acl_save_exec_prefix"
15565   prefix="$acl_save_prefix"
15566
15567                           if test "X$x" = "X-L$additional_libdir"; then
15568                             haveit=yes
15569                             break
15570                           fi
15571                         done
15572                         if test -z "$haveit"; then
15573                           if test -d "$additional_libdir"; then
15574                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15575                           fi
15576                         fi
15577                       fi
15578                     fi
15579                     ;;
15580                   -R*)
15581                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15582                     if test "$enable_rpath" != no; then
15583                                                                   haveit=
15584                       for x in $rpathdirs; do
15585                         if test "X$x" = "X$dir"; then
15586                           haveit=yes
15587                           break
15588                         fi
15589                       done
15590                       if test -z "$haveit"; then
15591                         rpathdirs="$rpathdirs $dir"
15592                       fi
15593                                                                   haveit=
15594                       for x in $ltrpathdirs; do
15595                         if test "X$x" = "X$dir"; then
15596                           haveit=yes
15597                           break
15598                         fi
15599                       done
15600                       if test -z "$haveit"; then
15601                         ltrpathdirs="$ltrpathdirs $dir"
15602                       fi
15603                     fi
15604                     ;;
15605                   -l*)
15606                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15607                     ;;
15608                   *.la)
15609                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15610                     ;;
15611                   *)
15612                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15613                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15614                     ;;
15615                 esac
15616               done
15617             fi
15618           else
15619                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15620             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15621           fi
15622         fi
15623       fi
15624     done
15625   done
15626   if test "X$rpathdirs" != "X"; then
15627     if test -n "$acl_hardcode_libdir_separator"; then
15628                         alldirs=
15629       for found_dir in $rpathdirs; do
15630         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15631       done
15632             acl_save_libdir="$libdir"
15633       libdir="$alldirs"
15634       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15635       libdir="$acl_save_libdir"
15636       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15637     else
15638             for found_dir in $rpathdirs; do
15639         acl_save_libdir="$libdir"
15640         libdir="$found_dir"
15641         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15642         libdir="$acl_save_libdir"
15643         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15644       done
15645     fi
15646   fi
15647   if test "X$ltrpathdirs" != "X"; then
15648             for found_dir in $ltrpathdirs; do
15649       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15650     done
15651   fi
15652
15653
15654
15655
15656
15657
15658           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15659 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15660 if eval \${$gt_func_gnugettext_libintl+:} false; then :
15661   $as_echo_n "(cached) " >&6
15662 else
15663   gt_save_CPPFLAGS="$CPPFLAGS"
15664             CPPFLAGS="$CPPFLAGS $INCINTL"
15665             gt_save_LIBS="$LIBS"
15666             LIBS="$LIBS $LIBINTL"
15667                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h.  */
15669 #include <libintl.h>
15670 $gt_revision_test_code
15671 extern int _nl_msg_cat_cntr;
15672 extern
15673 #ifdef __cplusplus
15674 "C"
15675 #endif
15676 const char *_nl_expand_alias (const char *);
15677 int
15678 main ()
15679 {
15680 bindtextdomain ("", "");
15681 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 if ac_fn_c_try_link "$LINENO"; then :
15687   eval "$gt_func_gnugettext_libintl=yes"
15688 else
15689   eval "$gt_func_gnugettext_libintl=no"
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext \
15692     conftest$ac_exeext conftest.$ac_ext
15693                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15694               LIBS="$LIBS $LIBICONV"
15695               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h.  */
15697 #include <libintl.h>
15698 $gt_revision_test_code
15699 extern int _nl_msg_cat_cntr;
15700 extern
15701 #ifdef __cplusplus
15702 "C"
15703 #endif
15704 const char *_nl_expand_alias (const char *);
15705 int
15706 main ()
15707 {
15708 bindtextdomain ("", "");
15709 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 if ac_fn_c_try_link "$LINENO"; then :
15715   LIBINTL="$LIBINTL $LIBICONV"
15716                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15717                 eval "$gt_func_gnugettext_libintl=yes"
15718
15719 fi
15720 rm -f core conftest.err conftest.$ac_objext \
15721     conftest$ac_exeext conftest.$ac_ext
15722             fi
15723             CPPFLAGS="$gt_save_CPPFLAGS"
15724             LIBS="$gt_save_LIBS"
15725 fi
15726 eval ac_res=\$$gt_func_gnugettext_libintl
15727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15728 $as_echo "$ac_res" >&6; }
15729         fi
15730
15731                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15732            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15733                 && test "$PACKAGE" != gettext-runtime \
15734                 && test "$PACKAGE" != gettext-tools; }; then
15735           gt_use_preinstalled_gnugettext=yes
15736         else
15737                     LIBINTL=
15738           LTLIBINTL=
15739           INCINTL=
15740         fi
15741
15742
15743
15744     if test -n "$INTL_MACOSX_LIBS"; then
15745       if test "$gt_use_preinstalled_gnugettext" = "yes" \
15746          || test "$nls_cv_use_gnu_gettext" = "yes"; then
15747                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15748         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15749       fi
15750     fi
15751
15752     if test "$gt_use_preinstalled_gnugettext" = "yes" \
15753        || test "$nls_cv_use_gnu_gettext" = "yes"; then
15754
15755 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15756
15757     else
15758       USE_NLS=no
15759     fi
15760   fi
15761
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15763 $as_echo_n "checking whether to use NLS... " >&6; }
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15765 $as_echo "$USE_NLS" >&6; }
15766   if test "$USE_NLS" = "yes"; then
15767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15768 $as_echo_n "checking where the gettext function comes from... " >&6; }
15769     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15770       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15771         gt_source="external libintl"
15772       else
15773         gt_source="libc"
15774       fi
15775     else
15776       gt_source="included intl directory"
15777     fi
15778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15779 $as_echo "$gt_source" >&6; }
15780   fi
15781
15782   if test "$USE_NLS" = "yes"; then
15783
15784     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15785       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15787 $as_echo_n "checking how to link with libintl... " >&6; }
15788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15789 $as_echo "$LIBINTL" >&6; }
15790
15791   for element in $INCINTL; do
15792     haveit=
15793     for x in $CPPFLAGS; do
15794
15795   acl_save_prefix="$prefix"
15796   prefix="$acl_final_prefix"
15797   acl_save_exec_prefix="$exec_prefix"
15798   exec_prefix="$acl_final_exec_prefix"
15799   eval x=\"$x\"
15800   exec_prefix="$acl_save_exec_prefix"
15801   prefix="$acl_save_prefix"
15802
15803       if test "X$x" = "X$element"; then
15804         haveit=yes
15805         break
15806       fi
15807     done
15808     if test -z "$haveit"; then
15809       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15810     fi
15811   done
15812
15813       fi
15814
15815
15816 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15817
15818
15819 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15820
15821     fi
15822
15823         POSUB=po
15824   fi
15825
15826
15827
15828     INTLLIBS="$LIBINTL"
15829
15830
15831
15832
15833
15834
15835
15836 GETTEXT_PACKAGE="json-glib-1.0"
15837
15838
15839 cat >>confdefs.h <<_ACEOF
15840 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15841 _ACEOF
15842
15843
15844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
15845 $as_echo_n "checking for linguas... " >&6; }
15846  podir="$srcdir/po"
15847  linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
15848  if test -f "$podir/LINGUAS.ignore"; then
15849    ALL_LINGUAS="";
15850    ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
15851                        -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
15852    for lang in $linguas; do
15853      if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
15854        ALL_LINGUAS="$ALL_LINGUAS $lang";
15855      fi;
15856    done;
15857  else
15858    ALL_LINGUAS="$linguas";
15859  fi;
15860
15861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
15862 $as_echo "$ALL_LINGUAS" >&6; }
15863
15864
15865  if test x$MSVC_BASE_TOOLSET = x; then
15866   MSVC_BASE_NO_TOOLSET_SET_TRUE=
15867   MSVC_BASE_NO_TOOLSET_SET_FALSE='#'
15868 else
15869   MSVC_BASE_NO_TOOLSET_SET_TRUE='#'
15870   MSVC_BASE_NO_TOOLSET_SET_FALSE=
15871 fi
15872
15873  if test x$MSVC_TOOLSET = x; then
15874   MSVC_NO_TOOLSET_SET_TRUE=
15875   MSVC_NO_TOOLSET_SET_FALSE='#'
15876 else
15877   MSVC_NO_TOOLSET_SET_TRUE='#'
15878   MSVC_NO_TOOLSET_SET_FALSE=
15879 fi
15880
15881
15882
15883
15884
15885
15886 ac_config_files="$ac_config_files Makefile build/Makefile build/autotools/Makefile build/win32/Makefile build/win32/config.h.win32 build/win32/vs9/Makefile build/win32/vs9/json-glib-version-paths.vsprops build/win32/vs10/Makefile build/win32/vs10/json-glib-version-paths.props build/win32/vs11/Makefile build/win32/vs12/Makefile build/win32/vs14/Makefile build/win32/vs15/Makefile json-glib/Makefile json-glib/json-glib.pc json-glib/json-version.h json-glib/tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml po/Makefile.in"
15887
15888
15889 cat >confcache <<\_ACEOF
15890 # This file is a shell script that caches the results of configure
15891 # tests run on this system so they can be shared between configure
15892 # scripts and configure runs, see configure's option --config-cache.
15893 # It is not useful on other systems.  If it contains results you don't
15894 # want to keep, you may remove or edit it.
15895 #
15896 # config.status only pays attention to the cache file if you give it
15897 # the --recheck option to rerun configure.
15898 #
15899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15901 # following values.
15902
15903 _ACEOF
15904
15905 # The following way of writing the cache mishandles newlines in values,
15906 # but we know of no workaround that is simple, portable, and efficient.
15907 # So, we kill variables containing newlines.
15908 # Ultrix sh set writes to stderr and can't be redirected directly,
15909 # and sets the high bit in the cache file unless we assign to the vars.
15910 (
15911   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15912     eval ac_val=\$$ac_var
15913     case $ac_val in #(
15914     *${as_nl}*)
15915       case $ac_var in #(
15916       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15918       esac
15919       case $ac_var in #(
15920       _ | IFS | as_nl) ;; #(
15921       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15922       *) { eval $ac_var=; unset $ac_var;} ;;
15923       esac ;;
15924     esac
15925   done
15926
15927   (set) 2>&1 |
15928     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15929     *${as_nl}ac_space=\ *)
15930       # `set' does not quote correctly, so add quotes: double-quote
15931       # substitution turns \\\\ into \\, and sed turns \\ into \.
15932       sed -n \
15933         "s/'/'\\\\''/g;
15934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15935       ;; #(
15936     *)
15937       # `set' quotes correctly as required by POSIX, so do not add quotes.
15938       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15939       ;;
15940     esac |
15941     sort
15942 ) |
15943   sed '
15944      /^ac_cv_env_/b end
15945      t clear
15946      :clear
15947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15948      t end
15949      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15950      :end' >>confcache
15951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15952   if test -w "$cache_file"; then
15953     if test "x$cache_file" != "x/dev/null"; then
15954       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15955 $as_echo "$as_me: updating cache $cache_file" >&6;}
15956       if test ! -f "$cache_file" || test -h "$cache_file"; then
15957         cat confcache >"$cache_file"
15958       else
15959         case $cache_file in #(
15960         */* | ?:*)
15961           mv -f confcache "$cache_file"$$ &&
15962           mv -f "$cache_file"$$ "$cache_file" ;; #(
15963         *)
15964           mv -f confcache "$cache_file" ;;
15965         esac
15966       fi
15967     fi
15968   else
15969     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15970 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15971   fi
15972 fi
15973 rm -f confcache
15974
15975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15976 # Let make expand exec_prefix.
15977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15978
15979 DEFS=-DHAVE_CONFIG_H
15980
15981 ac_libobjs=
15982 ac_ltlibobjs=
15983 U=
15984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15985   # 1. Remove the extension, and $U if already installed.
15986   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15987   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15988   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15989   #    will be set to the directory where LIBOBJS objects are built.
15990   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15991   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15992 done
15993 LIBOBJS=$ac_libobjs
15994
15995 LTLIBOBJS=$ac_ltlibobjs
15996
15997
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15999 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16000    if test -n "$am_sleep_pid"; then
16001      # Hide warnings about reused PIDs.
16002      wait $am_sleep_pid 2>/dev/null
16003    fi
16004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16005 $as_echo "done" >&6; }
16006  if test -n "$EXEEXT"; then
16007   am__EXEEXT_TRUE=
16008   am__EXEEXT_FALSE='#'
16009 else
16010   am__EXEEXT_TRUE='#'
16011   am__EXEEXT_FALSE=
16012 fi
16013
16014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16015   as_fn_error $? "conditional \"AMDEP\" was never defined.
16016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017 fi
16018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16019   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16021 fi
16022 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
16023   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
16024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16025 fi
16026 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16027   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16029 fi
16030 if test -z "${ENABLE_INSTALLED_TESTS_TRUE}" && test -z "${ENABLE_INSTALLED_TESTS_FALSE}"; then
16031   as_fn_error $? "conditional \"ENABLE_INSTALLED_TESTS\" was never defined.
16032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16033 fi
16034 if test -z "${ENABLE_ALWAYS_BUILD_TESTS_TRUE}" && test -z "${ENABLE_ALWAYS_BUILD_TESTS_FALSE}"; then
16035   as_fn_error $? "conditional \"ENABLE_ALWAYS_BUILD_TESTS\" was never defined.
16036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16037 fi
16038 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
16039   as_fn_error $? "conditional \"ENABLE_GCOV\" was never defined.
16040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16041 fi
16042 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
16043   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
16044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16045 fi
16046 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
16047   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
16048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049 fi
16050 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
16051   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
16052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053 fi
16054 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
16055   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
16056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16057 fi
16058 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
16059   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
16060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061 fi
16062 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
16063   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
16064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16065 fi
16066 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
16067   as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
16068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16069 fi
16070 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
16071   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
16072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16073 fi
16074 if test -z "${MSVC_BASE_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_BASE_NO_TOOLSET_SET_FALSE}"; then
16075   as_fn_error $? "conditional \"MSVC_BASE_NO_TOOLSET_SET\" was never defined.
16076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16077 fi
16078 if test -z "${MSVC_NO_TOOLSET_SET_TRUE}" && test -z "${MSVC_NO_TOOLSET_SET_FALSE}"; then
16079   as_fn_error $? "conditional \"MSVC_NO_TOOLSET_SET\" was never defined.
16080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16081 fi
16082
16083 : "${CONFIG_STATUS=./config.status}"
16084 ac_write_fail=0
16085 ac_clean_files_save=$ac_clean_files
16086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16089 as_write_fail=0
16090 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16091 #! $SHELL
16092 # Generated by $as_me.
16093 # Run this file to recreate the current configuration.
16094 # Compiler output produced by configure, useful for debugging
16095 # configure, is in config.log if it exists.
16096
16097 debug=false
16098 ac_cs_recheck=false
16099 ac_cs_silent=false
16100
16101 SHELL=\${CONFIG_SHELL-$SHELL}
16102 export SHELL
16103 _ASEOF
16104 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16105 ## -------------------- ##
16106 ## M4sh Initialization. ##
16107 ## -------------------- ##
16108
16109 # Be more Bourne compatible
16110 DUALCASE=1; export DUALCASE # for MKS sh
16111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16112   emulate sh
16113   NULLCMD=:
16114   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16115   # is contrary to our usage.  Disable this feature.
16116   alias -g '${1+"$@"}'='"$@"'
16117   setopt NO_GLOB_SUBST
16118 else
16119   case `(set -o) 2>/dev/null` in #(
16120   *posix*) :
16121     set -o posix ;; #(
16122   *) :
16123      ;;
16124 esac
16125 fi
16126
16127
16128 as_nl='
16129 '
16130 export as_nl
16131 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16132 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16135 # Prefer a ksh shell builtin over an external printf program on Solaris,
16136 # but without wasting forks for bash or zsh.
16137 if test -z "$BASH_VERSION$ZSH_VERSION" \
16138     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16139   as_echo='print -r --'
16140   as_echo_n='print -rn --'
16141 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16142   as_echo='printf %s\n'
16143   as_echo_n='printf %s'
16144 else
16145   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16146     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16147     as_echo_n='/usr/ucb/echo -n'
16148   else
16149     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16150     as_echo_n_body='eval
16151       arg=$1;
16152       case $arg in #(
16153       *"$as_nl"*)
16154         expr "X$arg" : "X\\(.*\\)$as_nl";
16155         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16156       esac;
16157       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16158     '
16159     export as_echo_n_body
16160     as_echo_n='sh -c $as_echo_n_body as_echo'
16161   fi
16162   export as_echo_body
16163   as_echo='sh -c $as_echo_body as_echo'
16164 fi
16165
16166 # The user is always right.
16167 if test "${PATH_SEPARATOR+set}" != set; then
16168   PATH_SEPARATOR=:
16169   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16170     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16171       PATH_SEPARATOR=';'
16172   }
16173 fi
16174
16175
16176 # IFS
16177 # We need space, tab and new line, in precisely that order.  Quoting is
16178 # there to prevent editors from complaining about space-tab.
16179 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16180 # splitting by setting IFS to empty value.)
16181 IFS=" ""        $as_nl"
16182
16183 # Find who we are.  Look in the path if we contain no directory separator.
16184 as_myself=
16185 case $0 in #((
16186   *[\\/]* ) as_myself=$0 ;;
16187   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16189 do
16190   IFS=$as_save_IFS
16191   test -z "$as_dir" && as_dir=.
16192     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16193   done
16194 IFS=$as_save_IFS
16195
16196      ;;
16197 esac
16198 # We did not find ourselves, most probably we were run as `sh COMMAND'
16199 # in which case we are not to be found in the path.
16200 if test "x$as_myself" = x; then
16201   as_myself=$0
16202 fi
16203 if test ! -f "$as_myself"; then
16204   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16205   exit 1
16206 fi
16207
16208 # Unset variables that we do not need and which cause bugs (e.g. in
16209 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16210 # suppresses any "Segmentation fault" message there.  '((' could
16211 # trigger a bug in pdksh 5.2.14.
16212 for as_var in BASH_ENV ENV MAIL MAILPATH
16213 do eval test x\${$as_var+set} = xset \
16214   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16215 done
16216 PS1='$ '
16217 PS2='> '
16218 PS4='+ '
16219
16220 # NLS nuisances.
16221 LC_ALL=C
16222 export LC_ALL
16223 LANGUAGE=C
16224 export LANGUAGE
16225
16226 # CDPATH.
16227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16228
16229
16230 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16231 # ----------------------------------------
16232 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16233 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16234 # script with STATUS, using 1 if that was 0.
16235 as_fn_error ()
16236 {
16237   as_status=$1; test $as_status -eq 0 && as_status=1
16238   if test "$4"; then
16239     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16240     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16241   fi
16242   $as_echo "$as_me: error: $2" >&2
16243   as_fn_exit $as_status
16244 } # as_fn_error
16245
16246
16247 # as_fn_set_status STATUS
16248 # -----------------------
16249 # Set $? to STATUS, without forking.
16250 as_fn_set_status ()
16251 {
16252   return $1
16253 } # as_fn_set_status
16254
16255 # as_fn_exit STATUS
16256 # -----------------
16257 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16258 as_fn_exit ()
16259 {
16260   set +e
16261   as_fn_set_status $1
16262   exit $1
16263 } # as_fn_exit
16264
16265 # as_fn_unset VAR
16266 # ---------------
16267 # Portably unset VAR.
16268 as_fn_unset ()
16269 {
16270   { eval $1=; unset $1;}
16271 }
16272 as_unset=as_fn_unset
16273 # as_fn_append VAR VALUE
16274 # ----------------------
16275 # Append the text in VALUE to the end of the definition contained in VAR. Take
16276 # advantage of any shell optimizations that allow amortized linear growth over
16277 # repeated appends, instead of the typical quadratic growth present in naive
16278 # implementations.
16279 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16280   eval 'as_fn_append ()
16281   {
16282     eval $1+=\$2
16283   }'
16284 else
16285   as_fn_append ()
16286   {
16287     eval $1=\$$1\$2
16288   }
16289 fi # as_fn_append
16290
16291 # as_fn_arith ARG...
16292 # ------------------
16293 # Perform arithmetic evaluation on the ARGs, and store the result in the
16294 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16295 # must be portable across $(()) and expr.
16296 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16297   eval 'as_fn_arith ()
16298   {
16299     as_val=$(( $* ))
16300   }'
16301 else
16302   as_fn_arith ()
16303   {
16304     as_val=`expr "$@" || test $? -eq 1`
16305   }
16306 fi # as_fn_arith
16307
16308
16309 if expr a : '\(a\)' >/dev/null 2>&1 &&
16310    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16311   as_expr=expr
16312 else
16313   as_expr=false
16314 fi
16315
16316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16317   as_basename=basename
16318 else
16319   as_basename=false
16320 fi
16321
16322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16323   as_dirname=dirname
16324 else
16325   as_dirname=false
16326 fi
16327
16328 as_me=`$as_basename -- "$0" ||
16329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16330          X"$0" : 'X\(//\)$' \| \
16331          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16332 $as_echo X/"$0" |
16333     sed '/^.*\/\([^/][^/]*\)\/*$/{
16334             s//\1/
16335             q
16336           }
16337           /^X\/\(\/\/\)$/{
16338             s//\1/
16339             q
16340           }
16341           /^X\/\(\/\).*/{
16342             s//\1/
16343             q
16344           }
16345           s/.*/./; q'`
16346
16347 # Avoid depending upon Character Ranges.
16348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16351 as_cr_digits='0123456789'
16352 as_cr_alnum=$as_cr_Letters$as_cr_digits
16353
16354 ECHO_C= ECHO_N= ECHO_T=
16355 case `echo -n x` in #(((((
16356 -n*)
16357   case `echo 'xy\c'` in
16358   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16359   xy)  ECHO_C='\c';;
16360   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16361        ECHO_T=' ';;
16362   esac;;
16363 *)
16364   ECHO_N='-n';;
16365 esac
16366
16367 rm -f conf$$ conf$$.exe conf$$.file
16368 if test -d conf$$.dir; then
16369   rm -f conf$$.dir/conf$$.file
16370 else
16371   rm -f conf$$.dir
16372   mkdir conf$$.dir 2>/dev/null
16373 fi
16374 if (echo >conf$$.file) 2>/dev/null; then
16375   if ln -s conf$$.file conf$$ 2>/dev/null; then
16376     as_ln_s='ln -s'
16377     # ... but there are two gotchas:
16378     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16379     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16380     # In both cases, we have to default to `cp -pR'.
16381     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16382       as_ln_s='cp -pR'
16383   elif ln conf$$.file conf$$ 2>/dev/null; then
16384     as_ln_s=ln
16385   else
16386     as_ln_s='cp -pR'
16387   fi
16388 else
16389   as_ln_s='cp -pR'
16390 fi
16391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16392 rmdir conf$$.dir 2>/dev/null
16393
16394
16395 # as_fn_mkdir_p
16396 # -------------
16397 # Create "$as_dir" as a directory, including parents if necessary.
16398 as_fn_mkdir_p ()
16399 {
16400
16401   case $as_dir in #(
16402   -*) as_dir=./$as_dir;;
16403   esac
16404   test -d "$as_dir" || eval $as_mkdir_p || {
16405     as_dirs=
16406     while :; do
16407       case $as_dir in #(
16408       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16409       *) as_qdir=$as_dir;;
16410       esac
16411       as_dirs="'$as_qdir' $as_dirs"
16412       as_dir=`$as_dirname -- "$as_dir" ||
16413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16414          X"$as_dir" : 'X\(//\)[^/]' \| \
16415          X"$as_dir" : 'X\(//\)$' \| \
16416          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16417 $as_echo X"$as_dir" |
16418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16419             s//\1/
16420             q
16421           }
16422           /^X\(\/\/\)[^/].*/{
16423             s//\1/
16424             q
16425           }
16426           /^X\(\/\/\)$/{
16427             s//\1/
16428             q
16429           }
16430           /^X\(\/\).*/{
16431             s//\1/
16432             q
16433           }
16434           s/.*/./; q'`
16435       test -d "$as_dir" && break
16436     done
16437     test -z "$as_dirs" || eval "mkdir $as_dirs"
16438   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16439
16440
16441 } # as_fn_mkdir_p
16442 if mkdir -p . 2>/dev/null; then
16443   as_mkdir_p='mkdir -p "$as_dir"'
16444 else
16445   test -d ./-p && rmdir ./-p
16446   as_mkdir_p=false
16447 fi
16448
16449
16450 # as_fn_executable_p FILE
16451 # -----------------------
16452 # Test if FILE is an executable regular file.
16453 as_fn_executable_p ()
16454 {
16455   test -f "$1" && test -x "$1"
16456 } # as_fn_executable_p
16457 as_test_x='test -x'
16458 as_executable_p=as_fn_executable_p
16459
16460 # Sed expression to map a string onto a valid CPP name.
16461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16462
16463 # Sed expression to map a string onto a valid variable name.
16464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16465
16466
16467 exec 6>&1
16468 ## ----------------------------------- ##
16469 ## Main body of $CONFIG_STATUS script. ##
16470 ## ----------------------------------- ##
16471 _ASEOF
16472 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16473
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # Save the log message, to keep $0 and so on meaningful, and to
16476 # report actual input values of CONFIG_FILES etc. instead of their
16477 # values after options handling.
16478 ac_log="
16479 This file was extended by json-glib $as_me 1.2.4, which was
16480 generated by GNU Autoconf 2.69.  Invocation command line was
16481
16482   CONFIG_FILES    = $CONFIG_FILES
16483   CONFIG_HEADERS  = $CONFIG_HEADERS
16484   CONFIG_LINKS    = $CONFIG_LINKS
16485   CONFIG_COMMANDS = $CONFIG_COMMANDS
16486   $ $0 $@
16487
16488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16489 "
16490
16491 _ACEOF
16492
16493 case $ac_config_files in *"
16494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16495 esac
16496
16497 case $ac_config_headers in *"
16498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16499 esac
16500
16501
16502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16503 # Files that config.status was made for.
16504 config_files="$ac_config_files"
16505 config_headers="$ac_config_headers"
16506 config_commands="$ac_config_commands"
16507
16508 _ACEOF
16509
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 ac_cs_usage="\
16512 \`$as_me' instantiates files and other configuration actions
16513 from templates according to the current configuration.  Unless the files
16514 and actions are specified as TAGs, all are instantiated by default.
16515
16516 Usage: $0 [OPTION]... [TAG]...
16517
16518   -h, --help       print this help, then exit
16519   -V, --version    print version number and configuration settings, then exit
16520       --config     print configuration, then exit
16521   -q, --quiet, --silent
16522                    do not print progress messages
16523   -d, --debug      don't remove temporary files
16524       --recheck    update $as_me by reconfiguring in the same conditions
16525       --file=FILE[:TEMPLATE]
16526                    instantiate the configuration file FILE
16527       --header=FILE[:TEMPLATE]
16528                    instantiate the configuration header FILE
16529
16530 Configuration files:
16531 $config_files
16532
16533 Configuration headers:
16534 $config_headers
16535
16536 Configuration commands:
16537 $config_commands
16538
16539 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
16540 json-glib home page: <http://live.gnome.org/JsonGlib>."
16541
16542 _ACEOF
16543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16545 ac_cs_version="\\
16546 json-glib config.status 1.2.4
16547 configured by $0, generated by GNU Autoconf 2.69,
16548   with options \\"\$ac_cs_config\\"
16549
16550 Copyright (C) 2012 Free Software Foundation, Inc.
16551 This config.status script is free software; the Free Software Foundation
16552 gives unlimited permission to copy, distribute and modify it."
16553
16554 ac_pwd='$ac_pwd'
16555 srcdir='$srcdir'
16556 INSTALL='$INSTALL'
16557 MKDIR_P='$MKDIR_P'
16558 AWK='$AWK'
16559 test -n "\$AWK" || AWK=awk
16560 _ACEOF
16561
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # The default lists apply if the user does not specify any file.
16564 ac_need_defaults=:
16565 while test $# != 0
16566 do
16567   case $1 in
16568   --*=?*)
16569     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16570     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16571     ac_shift=:
16572     ;;
16573   --*=)
16574     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16575     ac_optarg=
16576     ac_shift=:
16577     ;;
16578   *)
16579     ac_option=$1
16580     ac_optarg=$2
16581     ac_shift=shift
16582     ;;
16583   esac
16584
16585   case $ac_option in
16586   # Handling of the options.
16587   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16588     ac_cs_recheck=: ;;
16589   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16590     $as_echo "$ac_cs_version"; exit ;;
16591   --config | --confi | --conf | --con | --co | --c )
16592     $as_echo "$ac_cs_config"; exit ;;
16593   --debug | --debu | --deb | --de | --d | -d )
16594     debug=: ;;
16595   --file | --fil | --fi | --f )
16596     $ac_shift
16597     case $ac_optarg in
16598     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16599     '') as_fn_error $? "missing file argument" ;;
16600     esac
16601     as_fn_append CONFIG_FILES " '$ac_optarg'"
16602     ac_need_defaults=false;;
16603   --header | --heade | --head | --hea )
16604     $ac_shift
16605     case $ac_optarg in
16606     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16607     esac
16608     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16609     ac_need_defaults=false;;
16610   --he | --h)
16611     # Conflict between --help and --header
16612     as_fn_error $? "ambiguous option: \`$1'
16613 Try \`$0 --help' for more information.";;
16614   --help | --hel | -h )
16615     $as_echo "$ac_cs_usage"; exit ;;
16616   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16617   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16618     ac_cs_silent=: ;;
16619
16620   # This is an error.
16621   -*) as_fn_error $? "unrecognized option: \`$1'
16622 Try \`$0 --help' for more information." ;;
16623
16624   *) as_fn_append ac_config_targets " $1"
16625      ac_need_defaults=false ;;
16626
16627   esac
16628   shift
16629 done
16630
16631 ac_configure_extra_args=
16632
16633 if $ac_cs_silent; then
16634   exec 6>/dev/null
16635   ac_configure_extra_args="$ac_configure_extra_args --silent"
16636 fi
16637
16638 _ACEOF
16639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16640 if \$ac_cs_recheck; then
16641   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16642   shift
16643   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16644   CONFIG_SHELL='$SHELL'
16645   export CONFIG_SHELL
16646   exec "\$@"
16647 fi
16648
16649 _ACEOF
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651 exec 5>>config.log
16652 {
16653   echo
16654   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16655 ## Running $as_me. ##
16656 _ASBOX
16657   $as_echo "$ac_log"
16658 } >&5
16659
16660 _ACEOF
16661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16662 #
16663 # INIT-COMMANDS
16664 #
16665 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16666
16667
16668 # The HP-UX ksh and POSIX shell print the target directory to stdout
16669 # if CDPATH is set.
16670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16671
16672 sed_quote_subst='$sed_quote_subst'
16673 double_quote_subst='$double_quote_subst'
16674 delay_variable_subst='$delay_variable_subst'
16675 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16676 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16677 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16678 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16679 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16680 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16681 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16682 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16683 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16684 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16685 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16686 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16687 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16688 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16689 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16690 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16691 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16692 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16693 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16694 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16695 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16696 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16697 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16698 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16699 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16700 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16701 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16702 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16703 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16704 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16705 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16706 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16707 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16708 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16709 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16710 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16711 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16712 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16713 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16714 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16715 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16716 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16717 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16718 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16719 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16720 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16721 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16722 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16723 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16724 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16725 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16726 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16727 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16728 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16729 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16730 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16731 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16733 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"`'
16734 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16735 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16736 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16737 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16738 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16739 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16740 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16741 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16742 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16743 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16744 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16745 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16746 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16747 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16748 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16749 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16750 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16751 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16752 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16753 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16754 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16755 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16756 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16757 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16758 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16759 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16760 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16761 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16762 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16763 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16764 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16765 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16766 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16767 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16768 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16769 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16770 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16771 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16772 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16773 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16774 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16775 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16776 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16777 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16778 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16779 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16780 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16781 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16782 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16783 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16784 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16785 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16786 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16787 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16788 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16789 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16790 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16791 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16792 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16793 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16794 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16795 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16796 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16797 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16798 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16799 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16800 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16801 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16802 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16803 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16804 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16805 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16806 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16807 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16808 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16809 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16810
16811 LTCC='$LTCC'
16812 LTCFLAGS='$LTCFLAGS'
16813 compiler='$compiler_DEFAULT'
16814
16815 # A function that is used when there is no print builtin or printf.
16816 func_fallback_echo ()
16817 {
16818   eval 'cat <<_LTECHO_EOF
16819 \$1
16820 _LTECHO_EOF'
16821 }
16822
16823 # Quote evaled strings.
16824 for var in SHELL \
16825 ECHO \
16826 PATH_SEPARATOR \
16827 SED \
16828 GREP \
16829 EGREP \
16830 FGREP \
16831 LD \
16832 NM \
16833 LN_S \
16834 lt_SP2NL \
16835 lt_NL2SP \
16836 reload_flag \
16837 OBJDUMP \
16838 deplibs_check_method \
16839 file_magic_cmd \
16840 file_magic_glob \
16841 want_nocaseglob \
16842 DLLTOOL \
16843 sharedlib_from_linklib_cmd \
16844 AR \
16845 AR_FLAGS \
16846 archiver_list_spec \
16847 STRIP \
16848 RANLIB \
16849 CC \
16850 CFLAGS \
16851 compiler \
16852 lt_cv_sys_global_symbol_pipe \
16853 lt_cv_sys_global_symbol_to_cdecl \
16854 lt_cv_sys_global_symbol_to_import \
16855 lt_cv_sys_global_symbol_to_c_name_address \
16856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16857 lt_cv_nm_interface \
16858 nm_file_list_spec \
16859 lt_cv_truncate_bin \
16860 lt_prog_compiler_no_builtin_flag \
16861 lt_prog_compiler_pic \
16862 lt_prog_compiler_wl \
16863 lt_prog_compiler_static \
16864 lt_cv_prog_compiler_c_o \
16865 need_locks \
16866 MANIFEST_TOOL \
16867 DSYMUTIL \
16868 NMEDIT \
16869 LIPO \
16870 OTOOL \
16871 OTOOL64 \
16872 shrext_cmds \
16873 export_dynamic_flag_spec \
16874 whole_archive_flag_spec \
16875 compiler_needs_object \
16876 with_gnu_ld \
16877 allow_undefined_flag \
16878 no_undefined_flag \
16879 hardcode_libdir_flag_spec \
16880 hardcode_libdir_separator \
16881 exclude_expsyms \
16882 include_expsyms \
16883 file_list_spec \
16884 variables_saved_for_relink \
16885 libname_spec \
16886 library_names_spec \
16887 soname_spec \
16888 install_override_mode \
16889 finish_eval \
16890 old_striplib \
16891 striplib; do
16892     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16893     *[\\\\\\\`\\"\\\$]*)
16894       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16895       ;;
16896     *)
16897       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16898       ;;
16899     esac
16900 done
16901
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16906 old_archive_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16910 archive_cmds \
16911 archive_expsym_cmds \
16912 module_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16915 prelink_cmds \
16916 postlink_cmds \
16917 postinstall_cmds \
16918 postuninstall_cmds \
16919 finish_cmds \
16920 sys_lib_search_path_spec \
16921 configure_time_dlsearch_path \
16922 configure_time_lt_sys_library_path; do
16923     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16924     *[\\\\\\\`\\"\\\$]*)
16925       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16926       ;;
16927     *)
16928       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16929       ;;
16930     esac
16931 done
16932
16933 ac_aux_dir='$ac_aux_dir'
16934
16935 # See if we are running on zsh, and set the options that allow our
16936 # commands through without removal of \ escapes INIT.
16937 if test -n "\${ZSH_VERSION+set}"; then
16938    setopt NO_GLOB_SUBST
16939 fi
16940
16941
16942     PACKAGE='$PACKAGE'
16943     VERSION='$VERSION'
16944     RM='$RM'
16945     ofile='$ofile'
16946
16947
16948
16949 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16950     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16951     # from automake < 1.5.
16952     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16953     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16954     LINGUAS="${LINGUAS-%UNSET%}"
16955
16956
16957 _ACEOF
16958
16959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16960
16961 # Handling of arguments.
16962 for ac_config_target in $ac_config_targets
16963 do
16964   case $ac_config_target in
16965     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16966     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16967     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16968     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16969     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16970     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
16971     "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
16972     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
16973     "build/win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES build/win32/config.h.win32" ;;
16974     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
16975     "build/win32/vs9/json-glib-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/json-glib-version-paths.vsprops" ;;
16976     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
16977     "build/win32/vs10/json-glib-version-paths.props") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/json-glib-version-paths.props" ;;
16978     "build/win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs11/Makefile" ;;
16979     "build/win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs12/Makefile" ;;
16980     "build/win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs14/Makefile" ;;
16981     "build/win32/vs15/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs15/Makefile" ;;
16982     "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
16983     "json-glib/json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib/json-glib.pc" ;;
16984     "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
16985     "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
16986     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16987     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
16988     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
16989     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16990
16991   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16992   esac
16993 done
16994
16995
16996 # If the user did not use the arguments to specify the items to instantiate,
16997 # then the envvar interface is used.  Set only those that are not.
16998 # We use the long form for the default assignment because of an extremely
16999 # bizarre bug on SunOS 4.1.3.
17000 if $ac_need_defaults; then
17001   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17002   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17003   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17004 fi
17005
17006 # Have a temporary directory for convenience.  Make it in the build tree
17007 # simply because there is no reason against having it here, and in addition,
17008 # creating and moving files from /tmp can sometimes cause problems.
17009 # Hook for its removal unless debugging.
17010 # Note that there is a small window in which the directory will not be cleaned:
17011 # after its creation but before its name has been assigned to `$tmp'.
17012 $debug ||
17013 {
17014   tmp= ac_tmp=
17015   trap 'exit_status=$?
17016   : "${ac_tmp:=$tmp}"
17017   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17018 ' 0
17019   trap 'as_fn_exit 1' 1 2 13 15
17020 }
17021 # Create a (secure) tmp directory for tmp files.
17022
17023 {
17024   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17025   test -d "$tmp"
17026 }  ||
17027 {
17028   tmp=./conf$$-$RANDOM
17029   (umask 077 && mkdir "$tmp")
17030 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17031 ac_tmp=$tmp
17032
17033 # Set up the scripts for CONFIG_FILES section.
17034 # No need to generate them if there are no CONFIG_FILES.
17035 # This happens for instance with `./config.status config.h'.
17036 if test -n "$CONFIG_FILES"; then
17037
17038
17039 ac_cr=`echo X | tr X '\015'`
17040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17041 # But we know of no other shell where ac_cr would be empty at this
17042 # point, so we can use a bashism as a fallback.
17043 if test "x$ac_cr" = x; then
17044   eval ac_cr=\$\'\\r\'
17045 fi
17046 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17048   ac_cs_awk_cr='\\r'
17049 else
17050   ac_cs_awk_cr=$ac_cr
17051 fi
17052
17053 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17054 _ACEOF
17055
17056
17057 {
17058   echo "cat >conf$$subs.awk <<_ACEOF" &&
17059   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17060   echo "_ACEOF"
17061 } >conf$$subs.sh ||
17062   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17064 ac_delim='%!_!# '
17065 for ac_last_try in false false false false false :; do
17066   . ./conf$$subs.sh ||
17067     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17068
17069   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17070   if test $ac_delim_n = $ac_delim_num; then
17071     break
17072   elif $ac_last_try; then
17073     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17074   else
17075     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17076   fi
17077 done
17078 rm -f conf$$subs.sh
17079
17080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17081 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17082 _ACEOF
17083 sed -n '
17084 h
17085 s/^/S["/; s/!.*/"]=/
17086 p
17087 g
17088 s/^[^!]*!//
17089 :repl
17090 t repl
17091 s/'"$ac_delim"'$//
17092 t delim
17093 :nl
17094 h
17095 s/\(.\{148\}\)..*/\1/
17096 t more1
17097 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17098 p
17099 n
17100 b repl
17101 :more1
17102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17103 p
17104 g
17105 s/.\{148\}//
17106 t nl
17107 :delim
17108 h
17109 s/\(.\{148\}\)..*/\1/
17110 t more2
17111 s/["\\]/\\&/g; s/^/"/; s/$/"/
17112 p
17113 b
17114 :more2
17115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17116 p
17117 g
17118 s/.\{148\}//
17119 t delim
17120 ' <conf$$subs.awk | sed '
17121 /^[^""]/{
17122   N
17123   s/\n//
17124 }
17125 ' >>$CONFIG_STATUS || ac_write_fail=1
17126 rm -f conf$$subs.awk
17127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17128 _ACAWK
17129 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17130   for (key in S) S_is_set[key] = 1
17131   FS = "\a"
17132
17133 }
17134 {
17135   line = $ 0
17136   nfields = split(line, field, "@")
17137   substed = 0
17138   len = length(field[1])
17139   for (i = 2; i < nfields; i++) {
17140     key = field[i]
17141     keylen = length(key)
17142     if (S_is_set[key]) {
17143       value = S[key]
17144       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17145       len += length(value) + length(field[++i])
17146       substed = 1
17147     } else
17148       len += 1 + keylen
17149   }
17150
17151   print line
17152 }
17153
17154 _ACAWK
17155 _ACEOF
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17158   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17159 else
17160   cat
17161 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17162   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17163 _ACEOF
17164
17165 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17166 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17167 # trailing colons and then remove the whole line if VPATH becomes empty
17168 # (actually we leave an empty line to preserve line numbers).
17169 if test "x$srcdir" = x.; then
17170   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17171 h
17172 s///
17173 s/^/:/
17174 s/[      ]*$/:/
17175 s/:\$(srcdir):/:/g
17176 s/:\${srcdir}:/:/g
17177 s/:@srcdir@:/:/g
17178 s/^:*//
17179 s/:*$//
17180 x
17181 s/\(=[   ]*\).*/\1/
17182 G
17183 s/\n//
17184 s/^[^=]*=[       ]*$//
17185 }'
17186 fi
17187
17188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17189 fi # test -n "$CONFIG_FILES"
17190
17191 # Set up the scripts for CONFIG_HEADERS section.
17192 # No need to generate them if there are no CONFIG_HEADERS.
17193 # This happens for instance with `./config.status Makefile'.
17194 if test -n "$CONFIG_HEADERS"; then
17195 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17196 BEGIN {
17197 _ACEOF
17198
17199 # Transform confdefs.h into an awk script `defines.awk', embedded as
17200 # here-document in config.status, that substitutes the proper values into
17201 # config.h.in to produce config.h.
17202
17203 # Create a delimiter string that does not exist in confdefs.h, to ease
17204 # handling of long lines.
17205 ac_delim='%!_!# '
17206 for ac_last_try in false false :; do
17207   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17208   if test -z "$ac_tt"; then
17209     break
17210   elif $ac_last_try; then
17211     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17212   else
17213     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17214   fi
17215 done
17216
17217 # For the awk script, D is an array of macro values keyed by name,
17218 # likewise P contains macro parameters if any.  Preserve backslash
17219 # newline sequences.
17220
17221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17222 sed -n '
17223 s/.\{148\}/&'"$ac_delim"'/g
17224 t rset
17225 :rset
17226 s/^[     ]*#[    ]*define[       ][      ]*/ /
17227 t def
17228 d
17229 :def
17230 s/\\$//
17231 t bsnl
17232 s/["\\]/\\&/g
17233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17234 D["\1"]=" \3"/p
17235 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17236 d
17237 :bsnl
17238 s/["\\]/\\&/g
17239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17240 D["\1"]=" \3\\\\\\n"\\/p
17241 t cont
17242 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17243 t cont
17244 d
17245 :cont
17246 n
17247 s/.\{148\}/&'"$ac_delim"'/g
17248 t clear
17249 :clear
17250 s/\\$//
17251 t bsnlc
17252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17253 d
17254 :bsnlc
17255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17256 b cont
17257 ' <confdefs.h | sed '
17258 s/'"$ac_delim"'/"\\\
17259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17260
17261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17262   for (key in D) D_is_set[key] = 1
17263   FS = "\a"
17264 }
17265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17266   line = \$ 0
17267   split(line, arg, " ")
17268   if (arg[1] == "#") {
17269     defundef = arg[2]
17270     mac1 = arg[3]
17271   } else {
17272     defundef = substr(arg[1], 2)
17273     mac1 = arg[2]
17274   }
17275   split(mac1, mac2, "(") #)
17276   macro = mac2[1]
17277   prefix = substr(line, 1, index(line, defundef) - 1)
17278   if (D_is_set[macro]) {
17279     # Preserve the white space surrounding the "#".
17280     print prefix "define", macro P[macro] D[macro]
17281     next
17282   } else {
17283     # Replace #undef with comments.  This is necessary, for example,
17284     # in the case of _POSIX_SOURCE, which is predefined and required
17285     # on some systems where configure will not decide to define it.
17286     if (defundef == "undef") {
17287       print "/*", prefix defundef, macro, "*/"
17288       next
17289     }
17290   }
17291 }
17292 { print }
17293 _ACAWK
17294 _ACEOF
17295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17296   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17297 fi # test -n "$CONFIG_HEADERS"
17298
17299
17300 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17301 shift
17302 for ac_tag
17303 do
17304   case $ac_tag in
17305   :[FHLC]) ac_mode=$ac_tag; continue;;
17306   esac
17307   case $ac_mode$ac_tag in
17308   :[FHL]*:*);;
17309   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17310   :[FH]-) ac_tag=-:-;;
17311   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17312   esac
17313   ac_save_IFS=$IFS
17314   IFS=:
17315   set x $ac_tag
17316   IFS=$ac_save_IFS
17317   shift
17318   ac_file=$1
17319   shift
17320
17321   case $ac_mode in
17322   :L) ac_source=$1;;
17323   :[FH])
17324     ac_file_inputs=
17325     for ac_f
17326     do
17327       case $ac_f in
17328       -) ac_f="$ac_tmp/stdin";;
17329       *) # Look for the file first in the build tree, then in the source tree
17330          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17331          # because $ac_f cannot contain `:'.
17332          test -f "$ac_f" ||
17333            case $ac_f in
17334            [\\/$]*) false;;
17335            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17336            esac ||
17337            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17338       esac
17339       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17340       as_fn_append ac_file_inputs " '$ac_f'"
17341     done
17342
17343     # Let's still pretend it is `configure' which instantiates (i.e., don't
17344     # use $as_me), people would be surprised to read:
17345     #    /* config.h.  Generated by config.status.  */
17346     configure_input='Generated from '`
17347           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17348         `' by configure.'
17349     if test x"$ac_file" != x-; then
17350       configure_input="$ac_file.  $configure_input"
17351       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17352 $as_echo "$as_me: creating $ac_file" >&6;}
17353     fi
17354     # Neutralize special characters interpreted by sed in replacement strings.
17355     case $configure_input in #(
17356     *\&* | *\|* | *\\* )
17357        ac_sed_conf_input=`$as_echo "$configure_input" |
17358        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17359     *) ac_sed_conf_input=$configure_input;;
17360     esac
17361
17362     case $ac_tag in
17363     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17364       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17365     esac
17366     ;;
17367   esac
17368
17369   ac_dir=`$as_dirname -- "$ac_file" ||
17370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17371          X"$ac_file" : 'X\(//\)[^/]' \| \
17372          X"$ac_file" : 'X\(//\)$' \| \
17373          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17374 $as_echo X"$ac_file" |
17375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17376             s//\1/
17377             q
17378           }
17379           /^X\(\/\/\)[^/].*/{
17380             s//\1/
17381             q
17382           }
17383           /^X\(\/\/\)$/{
17384             s//\1/
17385             q
17386           }
17387           /^X\(\/\).*/{
17388             s//\1/
17389             q
17390           }
17391           s/.*/./; q'`
17392   as_dir="$ac_dir"; as_fn_mkdir_p
17393   ac_builddir=.
17394
17395 case "$ac_dir" in
17396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17397 *)
17398   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17399   # A ".." for each directory in $ac_dir_suffix.
17400   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17401   case $ac_top_builddir_sub in
17402   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17403   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17404   esac ;;
17405 esac
17406 ac_abs_top_builddir=$ac_pwd
17407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17408 # for backward compatibility:
17409 ac_top_builddir=$ac_top_build_prefix
17410
17411 case $srcdir in
17412   .)  # We are building in place.
17413     ac_srcdir=.
17414     ac_top_srcdir=$ac_top_builddir_sub
17415     ac_abs_top_srcdir=$ac_pwd ;;
17416   [\\/]* | ?:[\\/]* )  # Absolute name.
17417     ac_srcdir=$srcdir$ac_dir_suffix;
17418     ac_top_srcdir=$srcdir
17419     ac_abs_top_srcdir=$srcdir ;;
17420   *) # Relative name.
17421     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17422     ac_top_srcdir=$ac_top_build_prefix$srcdir
17423     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17424 esac
17425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17426
17427
17428   case $ac_mode in
17429   :F)
17430   #
17431   # CONFIG_FILE
17432   #
17433
17434   case $INSTALL in
17435   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17436   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17437   esac
17438   ac_MKDIR_P=$MKDIR_P
17439   case $MKDIR_P in
17440   [\\/$]* | ?:[\\/]* ) ;;
17441   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17442   esac
17443 _ACEOF
17444
17445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17446 # If the template does not know about datarootdir, expand it.
17447 # FIXME: This hack should be removed a few years after 2.60.
17448 ac_datarootdir_hack=; ac_datarootdir_seen=
17449 ac_sed_dataroot='
17450 /datarootdir/ {
17451   p
17452   q
17453 }
17454 /@datadir@/p
17455 /@docdir@/p
17456 /@infodir@/p
17457 /@localedir@/p
17458 /@mandir@/p'
17459 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17460 *datarootdir*) ac_datarootdir_seen=yes;;
17461 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17463 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17464 _ACEOF
17465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17466   ac_datarootdir_hack='
17467   s&@datadir@&$datadir&g
17468   s&@docdir@&$docdir&g
17469   s&@infodir@&$infodir&g
17470   s&@localedir@&$localedir&g
17471   s&@mandir@&$mandir&g
17472   s&\\\${datarootdir}&$datarootdir&g' ;;
17473 esac
17474 _ACEOF
17475
17476 # Neutralize VPATH when `$srcdir' = `.'.
17477 # Shell code in configure.ac might set extrasub.
17478 # FIXME: do we really want to maintain this feature?
17479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17480 ac_sed_extra="$ac_vpsub
17481 $extrasub
17482 _ACEOF
17483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17484 :t
17485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17486 s|@configure_input@|$ac_sed_conf_input|;t t
17487 s&@top_builddir@&$ac_top_builddir_sub&;t t
17488 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17489 s&@srcdir@&$ac_srcdir&;t t
17490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17491 s&@top_srcdir@&$ac_top_srcdir&;t t
17492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17493 s&@builddir@&$ac_builddir&;t t
17494 s&@abs_builddir@&$ac_abs_builddir&;t t
17495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17496 s&@INSTALL@&$ac_INSTALL&;t t
17497 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17498 $ac_datarootdir_hack
17499 "
17500 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17501   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17502
17503 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17504   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17505   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17506       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17508 which seems to be undefined.  Please make sure it is defined" >&5
17509 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17510 which seems to be undefined.  Please make sure it is defined" >&2;}
17511
17512   rm -f "$ac_tmp/stdin"
17513   case $ac_file in
17514   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17515   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17516   esac \
17517   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17518  ;;
17519   :H)
17520   #
17521   # CONFIG_HEADER
17522   #
17523   if test x"$ac_file" != x-; then
17524     {
17525       $as_echo "/* $configure_input  */" \
17526       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17527     } >"$ac_tmp/config.h" \
17528       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17529     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17530       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17531 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17532     else
17533       rm -f "$ac_file"
17534       mv "$ac_tmp/config.h" "$ac_file" \
17535         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17536     fi
17537   else
17538     $as_echo "/* $configure_input  */" \
17539       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17540       || as_fn_error $? "could not create -" "$LINENO" 5
17541   fi
17542 # Compute "$ac_file"'s index in $config_headers.
17543 _am_arg="$ac_file"
17544 _am_stamp_count=1
17545 for _am_header in $config_headers :; do
17546   case $_am_header in
17547     $_am_arg | $_am_arg:* )
17548       break ;;
17549     * )
17550       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17551   esac
17552 done
17553 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17554 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17555          X"$_am_arg" : 'X\(//\)[^/]' \| \
17556          X"$_am_arg" : 'X\(//\)$' \| \
17557          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17558 $as_echo X"$_am_arg" |
17559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17560             s//\1/
17561             q
17562           }
17563           /^X\(\/\/\)[^/].*/{
17564             s//\1/
17565             q
17566           }
17567           /^X\(\/\/\)$/{
17568             s//\1/
17569             q
17570           }
17571           /^X\(\/\).*/{
17572             s//\1/
17573             q
17574           }
17575           s/.*/./; q'`/stamp-h$_am_stamp_count
17576  ;;
17577
17578   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17579 $as_echo "$as_me: executing $ac_file commands" >&6;}
17580  ;;
17581   esac
17582
17583
17584   case $ac_file$ac_mode in
17585     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17586   # Older Autoconf quotes --file arguments for eval, but not when files
17587   # are listed without --file.  Let's play safe and only enable the eval
17588   # if we detect the quoting.
17589   case $CONFIG_FILES in
17590   *\'*) eval set x "$CONFIG_FILES" ;;
17591   *)   set x $CONFIG_FILES ;;
17592   esac
17593   shift
17594   for mf
17595   do
17596     # Strip MF so we end up with the name of the file.
17597     mf=`echo "$mf" | sed -e 's/:.*$//'`
17598     # Check whether this is an Automake generated Makefile or not.
17599     # We used to match only the files named 'Makefile.in', but
17600     # some people rename them; so instead we look at the file content.
17601     # Grep'ing the first line is not enough: some people post-process
17602     # each Makefile.in and add a new line on top of each file to say so.
17603     # Grep'ing the whole file is not good either: AIX grep has a line
17604     # limit of 2048, but all sed's we know have understand at least 4000.
17605     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17606       dirpart=`$as_dirname -- "$mf" ||
17607 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17608          X"$mf" : 'X\(//\)[^/]' \| \
17609          X"$mf" : 'X\(//\)$' \| \
17610          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17611 $as_echo X"$mf" |
17612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17613             s//\1/
17614             q
17615           }
17616           /^X\(\/\/\)[^/].*/{
17617             s//\1/
17618             q
17619           }
17620           /^X\(\/\/\)$/{
17621             s//\1/
17622             q
17623           }
17624           /^X\(\/\).*/{
17625             s//\1/
17626             q
17627           }
17628           s/.*/./; q'`
17629     else
17630       continue
17631     fi
17632     # Extract the definition of DEPDIR, am__include, and am__quote
17633     # from the Makefile without running 'make'.
17634     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17635     test -z "$DEPDIR" && continue
17636     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17637     test -z "$am__include" && continue
17638     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17639     # Find all dependency output files, they are included files with
17640     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17641     # simplest approach to changing $(DEPDIR) to its actual value in the
17642     # expansion.
17643     for file in `sed -n "
17644       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17645          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17646       # Make sure the directory exists.
17647       test -f "$dirpart/$file" && continue
17648       fdir=`$as_dirname -- "$file" ||
17649 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17650          X"$file" : 'X\(//\)[^/]' \| \
17651          X"$file" : 'X\(//\)$' \| \
17652          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17653 $as_echo X"$file" |
17654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17655             s//\1/
17656             q
17657           }
17658           /^X\(\/\/\)[^/].*/{
17659             s//\1/
17660             q
17661           }
17662           /^X\(\/\/\)$/{
17663             s//\1/
17664             q
17665           }
17666           /^X\(\/\).*/{
17667             s//\1/
17668             q
17669           }
17670           s/.*/./; q'`
17671       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17672       # echo "creating $dirpart/$file"
17673       echo '# dummy' > "$dirpart/$file"
17674     done
17675   done
17676 }
17677  ;;
17678     "libtool":C)
17679
17680     # See if we are running on zsh, and set the options that allow our
17681     # commands through without removal of \ escapes.
17682     if test -n "${ZSH_VERSION+set}"; then
17683       setopt NO_GLOB_SUBST
17684     fi
17685
17686     cfgfile=${ofile}T
17687     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17688     $RM "$cfgfile"
17689
17690     cat <<_LT_EOF >> "$cfgfile"
17691 #! $SHELL
17692 # Generated automatically by $as_me ($PACKAGE) $VERSION
17693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17695
17696 # Provide generalized library-building support services.
17697 # Written by Gordon Matzigkeit, 1996
17698
17699 # Copyright (C) 2014 Free Software Foundation, Inc.
17700 # This is free software; see the source for copying conditions.  There is NO
17701 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17702
17703 # GNU Libtool is free software; you can redistribute it and/or modify
17704 # it under the terms of the GNU General Public License as published by
17705 # the Free Software Foundation; either version 2 of of the License, or
17706 # (at your option) any later version.
17707 #
17708 # As a special exception to the GNU General Public License, if you
17709 # distribute this file as part of a program or library that is built
17710 # using GNU Libtool, you may include this file under the  same
17711 # distribution terms that you use for the rest of that program.
17712 #
17713 # GNU Libtool is distributed in the hope that it will be useful, but
17714 # WITHOUT ANY WARRANTY; without even the implied warranty of
17715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17716 # GNU General Public License for more details.
17717 #
17718 # You should have received a copy of the GNU General Public License
17719 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17720
17721
17722 # The names of the tagged configurations supported by this script.
17723 available_tags=''
17724
17725 # Configured defaults for sys_lib_dlsearch_path munging.
17726 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17727
17728 # ### BEGIN LIBTOOL CONFIG
17729
17730 # Which release of libtool.m4 was used?
17731 macro_version=$macro_version
17732 macro_revision=$macro_revision
17733
17734 # Whether or not to build static libraries.
17735 build_old_libs=$enable_static
17736
17737 # Whether or not to build shared libraries.
17738 build_libtool_libs=$enable_shared
17739
17740 # What type of objects to build.
17741 pic_mode=$pic_mode
17742
17743 # Whether or not to optimize for fast installation.
17744 fast_install=$enable_fast_install
17745
17746 # Shared archive member basename,for filename based shared library versioning on AIX.
17747 shared_archive_member_spec=$shared_archive_member_spec
17748
17749 # Shell to use when invoking shell scripts.
17750 SHELL=$lt_SHELL
17751
17752 # An echo program that protects backslashes.
17753 ECHO=$lt_ECHO
17754
17755 # The PATH separator for the build system.
17756 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17757
17758 # The host system.
17759 host_alias=$host_alias
17760 host=$host
17761 host_os=$host_os
17762
17763 # The build system.
17764 build_alias=$build_alias
17765 build=$build
17766 build_os=$build_os
17767
17768 # A sed program that does not truncate output.
17769 SED=$lt_SED
17770
17771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17772 Xsed="\$SED -e 1s/^X//"
17773
17774 # A grep program that handles long lines.
17775 GREP=$lt_GREP
17776
17777 # An ERE matcher.
17778 EGREP=$lt_EGREP
17779
17780 # A literal string matcher.
17781 FGREP=$lt_FGREP
17782
17783 # A BSD- or MS-compatible name lister.
17784 NM=$lt_NM
17785
17786 # Whether we need soft or hard links.
17787 LN_S=$lt_LN_S
17788
17789 # What is the maximum length of a command?
17790 max_cmd_len=$max_cmd_len
17791
17792 # Object file suffix (normally "o").
17793 objext=$ac_objext
17794
17795 # Executable file suffix (normally "").
17796 exeext=$exeext
17797
17798 # whether the shell understands "unset".
17799 lt_unset=$lt_unset
17800
17801 # turn spaces into newlines.
17802 SP2NL=$lt_lt_SP2NL
17803
17804 # turn newlines into spaces.
17805 NL2SP=$lt_lt_NL2SP
17806
17807 # convert \$build file names to \$host format.
17808 to_host_file_cmd=$lt_cv_to_host_file_cmd
17809
17810 # convert \$build files to toolchain format.
17811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17812
17813 # An object symbol dumper.
17814 OBJDUMP=$lt_OBJDUMP
17815
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17818
17819 # Command to use when deplibs_check_method = "file_magic".
17820 file_magic_cmd=$lt_file_magic_cmd
17821
17822 # How to find potential files when deplibs_check_method = "file_magic".
17823 file_magic_glob=$lt_file_magic_glob
17824
17825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17826 want_nocaseglob=$lt_want_nocaseglob
17827
17828 # DLL creation program.
17829 DLLTOOL=$lt_DLLTOOL
17830
17831 # Command to associate shared and link libraries.
17832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17833
17834 # The archiver.
17835 AR=$lt_AR
17836
17837 # Flags to create an archive.
17838 AR_FLAGS=$lt_AR_FLAGS
17839
17840 # How to feed a file listing to the archiver.
17841 archiver_list_spec=$lt_archiver_list_spec
17842
17843 # A symbol stripping program.
17844 STRIP=$lt_STRIP
17845
17846 # Commands used to install an old-style archive.
17847 RANLIB=$lt_RANLIB
17848 old_postinstall_cmds=$lt_old_postinstall_cmds
17849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17850
17851 # Whether to use a lock for old archive extraction.
17852 lock_old_archive_extraction=$lock_old_archive_extraction
17853
17854 # A C compiler.
17855 LTCC=$lt_CC
17856
17857 # LTCC compiler flags.
17858 LTCFLAGS=$lt_CFLAGS
17859
17860 # Take the output of nm and produce a listing of raw symbols and C names.
17861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17862
17863 # Transform the output of nm in a proper C declaration.
17864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17865
17866 # Transform the output of nm into a list of symbols to manually relocate.
17867 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17868
17869 # Transform the output of nm in a C name address pair.
17870 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17871
17872 # Transform the output of nm in a C name address pair when lib prefix is needed.
17873 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17874
17875 # The name lister interface.
17876 nm_interface=$lt_lt_cv_nm_interface
17877
17878 # Specify filename containing input files for \$NM.
17879 nm_file_list_spec=$lt_nm_file_list_spec
17880
17881 # The root where to search for dependent libraries,and where our libraries should be installed.
17882 lt_sysroot=$lt_sysroot
17883
17884 # Command to truncate a binary pipe.
17885 lt_truncate_bin=$lt_lt_cv_truncate_bin
17886
17887 # The name of the directory that contains temporary libtool files.
17888 objdir=$objdir
17889
17890 # Used to examine libraries when file_magic_cmd begins with "file".
17891 MAGIC_CMD=$MAGIC_CMD
17892
17893 # Must we lock files when doing compilation?
17894 need_locks=$lt_need_locks
17895
17896 # Manifest tool.
17897 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17898
17899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17900 DSYMUTIL=$lt_DSYMUTIL
17901
17902 # Tool to change global to local symbols on Mac OS X.
17903 NMEDIT=$lt_NMEDIT
17904
17905 # Tool to manipulate fat objects and archives on Mac OS X.
17906 LIPO=$lt_LIPO
17907
17908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17909 OTOOL=$lt_OTOOL
17910
17911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17912 OTOOL64=$lt_OTOOL64
17913
17914 # Old archive suffix (normally "a").
17915 libext=$libext
17916
17917 # Shared library suffix (normally ".so").
17918 shrext_cmds=$lt_shrext_cmds
17919
17920 # The commands to extract the exported symbol list from a shared archive.
17921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17922
17923 # Variables whose values should be saved in libtool wrapper scripts and
17924 # restored at link time.
17925 variables_saved_for_relink=$lt_variables_saved_for_relink
17926
17927 # Do we need the "lib" prefix for modules?
17928 need_lib_prefix=$need_lib_prefix
17929
17930 # Do we need a version for libraries?
17931 need_version=$need_version
17932
17933 # Library versioning type.
17934 version_type=$version_type
17935
17936 # Shared library runtime path variable.
17937 runpath_var=$runpath_var
17938
17939 # Shared library path variable.
17940 shlibpath_var=$shlibpath_var
17941
17942 # Is shlibpath searched before the hard-coded library search path?
17943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17944
17945 # Format of library name prefix.
17946 libname_spec=$lt_libname_spec
17947
17948 # List of archive names.  First name is the real one, the rest are links.
17949 # The last name is the one that the linker finds with -lNAME
17950 library_names_spec=$lt_library_names_spec
17951
17952 # The coded name of the library, if different from the real name.
17953 soname_spec=$lt_soname_spec
17954
17955 # Permission mode override for installation of shared libraries.
17956 install_override_mode=$lt_install_override_mode
17957
17958 # Command to use after installation of a shared archive.
17959 postinstall_cmds=$lt_postinstall_cmds
17960
17961 # Command to use after uninstallation of a shared archive.
17962 postuninstall_cmds=$lt_postuninstall_cmds
17963
17964 # Commands used to finish a libtool library installation in a directory.
17965 finish_cmds=$lt_finish_cmds
17966
17967 # As "finish_cmds", except a single script fragment to be evaled but
17968 # not shown.
17969 finish_eval=$lt_finish_eval
17970
17971 # Whether we should hardcode library paths into libraries.
17972 hardcode_into_libs=$hardcode_into_libs
17973
17974 # Compile-time system search path for libraries.
17975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17976
17977 # Detected run-time system search path for libraries.
17978 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17979
17980 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17981 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17982
17983 # Whether dlopen is supported.
17984 dlopen_support=$enable_dlopen
17985
17986 # Whether dlopen of programs is supported.
17987 dlopen_self=$enable_dlopen_self
17988
17989 # Whether dlopen of statically linked programs is supported.
17990 dlopen_self_static=$enable_dlopen_self_static
17991
17992 # Commands to strip libraries.
17993 old_striplib=$lt_old_striplib
17994 striplib=$lt_striplib
17995
17996
17997 # The linker used to build libraries.
17998 LD=$lt_LD
17999
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag
18002 reload_cmds=$lt_reload_cmds
18003
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds
18006
18007 # A language specific compiler.
18008 CC=$lt_compiler
18009
18010 # Is the compiler the GNU compiler?
18011 with_gcc=$GCC
18012
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18015
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic
18018
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl
18021
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static
18024
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18027
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc
18030
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18033
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18036
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18039
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object
18042
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18045
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18048
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds
18051 archive_expsym_cmds=$lt_archive_expsym_cmds
18052
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds
18056 module_expsym_cmds=$lt_module_expsym_cmds
18057
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld
18060
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag
18063
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag
18066
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18070
18071 # Whether we need a single "-rpath" flag with a separated argument.
18072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18073
18074 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18075 # DIR into the resulting binary.
18076 hardcode_direct=$hardcode_direct
18077
18078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18079 # DIR into the resulting binary and the resulting library dependency is
18080 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18081 # library is relocated.
18082 hardcode_direct_absolute=$hardcode_direct_absolute
18083
18084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18085 # into the resulting binary.
18086 hardcode_minus_L=$hardcode_minus_L
18087
18088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_shlibpath_var=$hardcode_shlibpath_var
18091
18092 # Set to "yes" if building a shared library automatically hardcodes DIR
18093 # into the library and all subsequent libraries and executables linked
18094 # against it.
18095 hardcode_automatic=$hardcode_automatic
18096
18097 # Set to yes if linker adds runtime paths of dependent libraries
18098 # to runtime path list.
18099 inherit_rpath=$inherit_rpath
18100
18101 # Whether libtool must link a program against all its dependency libraries.
18102 link_all_deplibs=$link_all_deplibs
18103
18104 # Set to "yes" if exported symbols are required.
18105 always_export_symbols=$always_export_symbols
18106
18107 # The commands to list exported symbols.
18108 export_symbols_cmds=$lt_export_symbols_cmds
18109
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms
18112
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms
18115
18116 # Commands necessary for linking programs (against libraries) with templates.
18117 prelink_cmds=$lt_prelink_cmds
18118
18119 # Commands necessary for finishing linking programs.
18120 postlink_cmds=$lt_postlink_cmds
18121
18122 # Specify filename containing input files.
18123 file_list_spec=$lt_file_list_spec
18124
18125 # How to hardcode a shared library path into an executable.
18126 hardcode_action=$hardcode_action
18127
18128 # ### END LIBTOOL CONFIG
18129
18130 _LT_EOF
18131
18132     cat <<'_LT_EOF' >> "$cfgfile"
18133
18134 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18135
18136 # func_munge_path_list VARIABLE PATH
18137 # -----------------------------------
18138 # VARIABLE is name of variable containing _space_ separated list of
18139 # directories to be munged by the contents of PATH, which is string
18140 # having a format:
18141 # "DIR[:DIR]:"
18142 #       string "DIR[ DIR]" will be prepended to VARIABLE
18143 # ":DIR[:DIR]"
18144 #       string "DIR[ DIR]" will be appended to VARIABLE
18145 # "DIRP[:DIRP]::[DIRA:]DIRA"
18146 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18147 #       "DIRA[ DIRA]" will be appended to VARIABLE
18148 # "DIR[:DIR]"
18149 #       VARIABLE will be replaced by "DIR[ DIR]"
18150 func_munge_path_list ()
18151 {
18152     case x$2 in
18153     x)
18154         ;;
18155     *:)
18156         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18157         ;;
18158     x:*)
18159         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18160         ;;
18161     *::*)
18162         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18163         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18164         ;;
18165     *)
18166         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18167         ;;
18168     esac
18169 }
18170
18171
18172 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18173 func_cc_basename ()
18174 {
18175     for cc_temp in $*""; do
18176       case $cc_temp in
18177         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18178         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18179         \-*) ;;
18180         *) break;;
18181       esac
18182     done
18183     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18184 }
18185
18186
18187 # ### END FUNCTIONS SHARED WITH CONFIGURE
18188
18189 _LT_EOF
18190
18191   case $host_os in
18192   aix3*)
18193     cat <<\_LT_EOF >> "$cfgfile"
18194 # AIX sometimes has problems with the GCC collect2 program.  For some
18195 # reason, if we set the COLLECT_NAMES environment variable, the problems
18196 # vanish in a puff of smoke.
18197 if test set != "${COLLECT_NAMES+set}"; then
18198   COLLECT_NAMES=
18199   export COLLECT_NAMES
18200 fi
18201 _LT_EOF
18202     ;;
18203   esac
18204
18205
18206 ltmain=$ac_aux_dir/ltmain.sh
18207
18208
18209   # We use sed instead of cat because bash on DJGPP gets confused if
18210   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18211   # text mode, it properly converts lines to CR/LF.  This bash problem
18212   # is reportedly fixed, but why not run on old versions too?
18213   sed '$q' "$ltmain" >> "$cfgfile" \
18214      || (rm -f "$cfgfile"; exit 1)
18215
18216    mv -f "$cfgfile" "$ofile" ||
18217     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18218   chmod +x "$ofile"
18219
18220  ;;
18221     "po-directories":C)
18222     for ac_file in $CONFIG_FILES; do
18223       # Support "outfile[:infile[:infile...]]"
18224       case "$ac_file" in
18225         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18226       esac
18227       # PO directories have a Makefile.in generated from Makefile.in.in.
18228       case "$ac_file" in */Makefile.in)
18229         # Adjust a relative srcdir.
18230         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18231         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18232         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18233         # In autoconf-2.13 it is called $ac_given_srcdir.
18234         # In autoconf-2.50 it is called $srcdir.
18235         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18236         case "$ac_given_srcdir" in
18237           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18238           /*) top_srcdir="$ac_given_srcdir" ;;
18239           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18240         esac
18241         # Treat a directory as a PO directory if and only if it has a
18242         # POTFILES.in file. This allows packages to have multiple PO
18243         # directories under different names or in different locations.
18244         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18245           rm -f "$ac_dir/POTFILES"
18246           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18247           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18248           POMAKEFILEDEPS="POTFILES.in"
18249           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18250           # on $ac_dir but don't depend on user-specified configuration
18251           # parameters.
18252           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18253             # The LINGUAS file contains the set of available languages.
18254             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18255               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18256             fi
18257             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18258             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18259             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18260             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18261           else
18262             # The set of available languages was given in configure.in.
18263             # Hide the ALL_LINGUAS assigment from automake < 1.5.
18264             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18265           fi
18266           # Compute POFILES
18267           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18268           # Compute UPDATEPOFILES
18269           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18270           # Compute DUMMYPOFILES
18271           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18272           # Compute GMOFILES
18273           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18274           case "$ac_given_srcdir" in
18275             .) srcdirpre= ;;
18276             *) srcdirpre='$(srcdir)/' ;;
18277           esac
18278           POFILES=
18279           UPDATEPOFILES=
18280           DUMMYPOFILES=
18281           GMOFILES=
18282           for lang in $ALL_LINGUAS; do
18283             POFILES="$POFILES $srcdirpre$lang.po"
18284             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18285             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18286             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18287           done
18288           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18289           # environment variable.
18290           INST_LINGUAS=
18291           if test -n "$ALL_LINGUAS"; then
18292             for presentlang in $ALL_LINGUAS; do
18293               useit=no
18294               if test "%UNSET%" != "$LINGUAS"; then
18295                 desiredlanguages="$LINGUAS"
18296               else
18297                 desiredlanguages="$ALL_LINGUAS"
18298               fi
18299               for desiredlang in $desiredlanguages; do
18300                 # Use the presentlang catalog if desiredlang is
18301                 #   a. equal to presentlang, or
18302                 #   b. a variant of presentlang (because in this case,
18303                 #      presentlang can be used as a fallback for messages
18304                 #      which are not translated in the desiredlang catalog).
18305                 case "$desiredlang" in
18306                   "$presentlang"*) useit=yes;;
18307                 esac
18308               done
18309               if test $useit = yes; then
18310                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18311               fi
18312             done
18313           fi
18314           CATALOGS=
18315           if test -n "$INST_LINGUAS"; then
18316             for lang in $INST_LINGUAS; do
18317               CATALOGS="$CATALOGS $lang.gmo"
18318             done
18319           fi
18320           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18321           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18322           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18323             if test -f "$f"; then
18324               case "$f" in
18325                 *.orig | *.bak | *~) ;;
18326                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18327               esac
18328             fi
18329           done
18330         fi
18331         ;;
18332       esac
18333     done ;;
18334
18335   esac
18336 done # for ac_tag
18337
18338
18339 as_fn_exit 0
18340 _ACEOF
18341 ac_clean_files=$ac_clean_files_save
18342
18343 test $ac_write_fail = 0 ||
18344   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18345
18346
18347 # configure is writing to config.log, and then calls config.status.
18348 # config.status does its own redirection, appending to config.log.
18349 # Unfortunately, on DOS this fails, as config.log is still kept open
18350 # by configure, so config.status won't be able to write to it; its
18351 # output is simply discarded.  So we exec the FD to /dev/null,
18352 # effectively closing config.log, so it can be properly (re)opened and
18353 # appended to by config.status.  When coming back to configure, we
18354 # need to make the FD available again.
18355 if test "$no_create" != yes; then
18356   ac_cs_success=:
18357   ac_config_status_args=
18358   test "$silent" = yes &&
18359     ac_config_status_args="$ac_config_status_args --quiet"
18360   exec 5>/dev/null
18361   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18362   exec 5>>config.log
18363   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18364   # would make configure fail if this is the last instruction.
18365   $ac_cs_success || as_fn_exit 1
18366 fi
18367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18368   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18370 fi
18371
18372
18373
18374 echo ""
18375 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
18376 echo ""
18377 echo " • Prefix: ${prefix}"
18378 echo ""
18379 echo " • Debug level: ${enable_debug}"
18380 echo " • Compiler flags: ${CFLAGS} ${MAINTAINER_CFLAGS}"
18381 echo ""
18382 echo " • API reference: ${enable_gtk_doc}"
18383 echo " • Manual pages: ${enable_man}"
18384 echo ""
18385 echo " • Install tests: ${ENABLE_INSTALLED_TESTS}"
18386 echo " • Build introspection data: ${enable_introspection}"
18387 echo " • Enable test coverage: ${use_gcov}"
18388 echo ""