Tizen 2.1 base
[platform/upstream/glib2.0.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.32.3.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='glib'
573 PACKAGE_TARNAME='glib'
574 PACKAGE_VERSION='2.32.3'
575 PACKAGE_STRING='glib 2.32.3'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib'
577 PACKAGE_URL=''
578
579 ac_unique_file="glib/glib.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 gio_INCLUDES
621 gmodule_INCLUDES
622 gobject_INCLUDES
623 gthread_INCLUDES
624 glib_INCLUDES
625 config_h_INCLUDES
626 GLIB_LINK_FLAGS
627 HAVE_DBUS1_FALSE
628 HAVE_DBUS1_TRUE
629 DBUS1_LIBS
630 DBUS1_CFLAGS
631 LTP_GENHTML
632 LTP
633 SHTOOL
634 ABS_TAPSET_DIR
635 ENABLE_SYSTEMTAP_FALSE
636 ENABLE_SYSTEMTAP_TRUE
637 ENABLE_DTRACE_FALSE
638 ENABLE_DTRACE_TRUE
639 DTRACE
640 ENABLE_MAN_FALSE
641 ENABLE_MAN_TRUE
642 XMLCATALOG
643 XML_CATALOG_FILE
644 XSLTPROC
645 GTK_DOC_USE_REBASE_FALSE
646 GTK_DOC_USE_REBASE_TRUE
647 GTK_DOC_USE_LIBTOOL_FALSE
648 GTK_DOC_USE_LIBTOOL_TRUE
649 GTK_DOC_BUILD_PDF_FALSE
650 GTK_DOC_BUILD_PDF_TRUE
651 GTK_DOC_BUILD_HTML_FALSE
652 GTK_DOC_BUILD_HTML_TRUE
653 ENABLE_GTK_DOC_FALSE
654 ENABLE_GTK_DOC_TRUE
655 GTKDOC_DEPS_LIBS
656 GTKDOC_DEPS_CFLAGS
657 HTML_DIR
658 GTKDOC_MKPDF
659 GTKDOC_REBASE
660 GTKDOC_CHECK
661 GLIB_COMPILE_RESOURCES
662 GLIB_COMPILE_SCHEMAS
663 GLIB_GENMARSHAL
664 CROSS_COMPILING_FALSE
665 CROSS_COMPILING_TRUE
666 G_LIBS_EXTRA
667 PCRE_WARN_CFLAGS
668 PCRE_REQUIRES
669 PCRE_LIBS
670 PCRE_CFLAGS
671 USE_SYSTEM_PCRE_FALSE
672 USE_SYSTEM_PCRE_TRUE
673 HAVE_EVENTFD_FALSE
674 HAVE_EVENTFD_TRUE
675 G_THREAD_LIBS_EXTRA
676 G_THREAD_LIBS_FOR_GTHREAD
677 G_THREAD_LIBS
678 G_THREAD_CFLAGS
679 GTHREAD_COMPILE_IMPL_DEFINES
680 PLATFORM_WIN32_FALSE
681 PLATFORM_WIN32_TRUE
682 ENABLE_TIMELOOP_FALSE
683 ENABLE_TIMELOOP_TRUE
684 PLATFORMDEP
685 LIBELF_LIBS
686 LIBELF_CFLAGS
687 XATTR_LIBS
688 HAVE_FAM_FALSE
689 HAVE_FAM_TRUE
690 FAM_LIBS
691 HAVE_FEN_FALSE
692 HAVE_FEN_TRUE
693 HAVE_INOTIFY_FALSE
694 HAVE_INOTIFY_TRUE
695 SELINUX_LIBS
696 GIO_MODULE_DIR
697 GIO
698 GSPAWN
699 GLIB_DEBUG_FLAGS
700 G_MODULE_NEED_USCORE
701 G_MODULE_BROKEN_RTLD_GLOBAL
702 G_MODULE_HAVE_DLERROR
703 G_MODULE_LDFLAGS
704 G_MODULE_PLUGIN_LIBS
705 G_MODULE_LIBS_EXTRA
706 G_MODULE_LIBS
707 G_MODULE_IMPL
708 G_MODULE_SUPPORTED
709 HAVE_GOOD_PRINTF_FALSE
710 HAVE_GOOD_PRINTF_TRUE
711 HAVE_NETLINK_FALSE
712 HAVE_NETLINK_TRUE
713 NETWORK_LIBS
714 HAVE_SUNSTUDIO_VISIBILITY_FALSE
715 HAVE_SUNSTUDIO_VISIBILITY_TRUE
716 HAVE_GNUC_VISIBILITY_FALSE
717 HAVE_GNUC_VISIBILITY_TRUE
718 ALLOCA
719 OS_WIN32_AND_DLL_COMPILATION_FALSE
720 OS_WIN32_AND_DLL_COMPILATION_TRUE
721 GLIB_WIN32_STATIC_COMPILATION_DEFINE
722 CXXCPP
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 MANIFEST_TOOL
729 ac_ct_AR
730 AR
731 LN_S
732 ac_ct_DUMPBIN
733 DUMPBIN
734 LD
735 FGREP
736 SED
737 LIBTOOL
738 OBJDUMP
739 DLLTOOL
740 AS
741 ICONV_LIBS
742 GETTEXT_PACKAGE
743 MKINSTALLDIRS
744 POSUB
745 POFILES
746 PO_IN_DATADIR_FALSE
747 PO_IN_DATADIR_TRUE
748 INTLLIBS
749 INSTOBJEXT
750 GMOFILES
751 DATADIRNAME
752 CATOBJEXT
753 CATALOGS
754 XGETTEXT
755 GMSGFMT
756 MSGFMT_OPTS
757 MSGFMT
758 USE_NLS
759 CONFIG_STATUS_DEPENDENCIES
760 LIBFFI_LIBS
761 LIBFFI_CFLAGS
762 ZLIB_LIBS
763 ZLIB_CFLAGS
764 pkgpyexecdir
765 pyexecdir
766 pkgpythondir
767 pythondir
768 PYTHON_PLATFORM
769 PYTHON_EXEC_PREFIX
770 PYTHON_PREFIX
771 PYTHON_VERSION
772 PYTHON
773 PERL_PATH
774 REBUILD
775 INDENT
776 PERL
777 GLIB_EXTRA_CFLAGS
778 PKG_CONFIG_LIBDIR
779 PKG_CONFIG_PATH
780 PKG_CONFIG
781 HAVE_CXX_FALSE
782 HAVE_CXX_TRUE
783 am__fastdepCXX_FALSE
784 am__fastdepCXX_TRUE
785 CXXDEPMODE
786 CXXFLAGS
787 ac_ct_CXX
788 CXX
789 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
790 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
791 ABS_GLIB_RUNTIME_LIBDIR
792 GLIB_RUNTIME_LIBDIR
793 GLIBC21
794 EGREP
795 GREP
796 LIBTOOL_EXPORT_OPTIONS
797 MS_LIB_AVAILABLE_FALSE
798 MS_LIB_AVAILABLE_TRUE
799 ms_librarian
800 RANLIB
801 NM
802 WINDRES
803 OS_COCOA_FALSE
804 OS_COCOA_TRUE
805 OS_CARBON_FALSE
806 OS_CARBON_TRUE
807 OS_LINUX_FALSE
808 OS_LINUX_TRUE
809 OS_UNIX_FALSE
810 OS_UNIX_TRUE
811 OS_WIN32_X64_FALSE
812 OS_WIN32_X64_TRUE
813 OS_WIN32_FALSE
814 OS_WIN32_TRUE
815 LIB_EXE_MACHINE_FLAG
816 host_os
817 host_vendor
818 host_cpu
819 host
820 build_os
821 build_vendor
822 build_cpu
823 build
824 HAVE_GCC_FALSE
825 HAVE_GCC_TRUE
826 CPP
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 am__nodep
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__quote
835 am__include
836 DEPDIR
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 LT_CURRENT_MINUS_AGE
845 LT_AGE
846 LT_REVISION
847 LT_CURRENT
848 LT_RELEASE
849 GLIB_BINARY_AGE
850 GLIB_INTERFACE_AGE
851 GLIB_VERSION
852 GLIB_MICRO_VERSION
853 GLIB_MINOR_VERSION
854 GLIB_MAJOR_VERSION
855 AM_BACKSLASH
856 AM_DEFAULT_VERBOSITY
857 AM_DEFAULT_V
858 AM_V
859 MAINT
860 MAINTAINER_MODE_FALSE
861 MAINTAINER_MODE_TRUE
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 target_alias
886 host_alias
887 build_alias
888 LIBS
889 ECHO_T
890 ECHO_N
891 ECHO_C
892 DEFS
893 mandir
894 localedir
895 libdir
896 psdir
897 pdfdir
898 dvidir
899 htmldir
900 infodir
901 docdir
902 oldincludedir
903 includedir
904 localstatedir
905 sharedstatedir
906 sysconfdir
907 datadir
908 datarootdir
909 libexecdir
910 sbindir
911 bindir
912 program_transform_name
913 prefix
914 exec_prefix
915 PACKAGE_URL
916 PACKAGE_BUGREPORT
917 PACKAGE_STRING
918 PACKAGE_VERSION
919 PACKAGE_TARNAME
920 PACKAGE_NAME
921 PATH_SEPARATOR
922 SHELL'
923 ac_subst_files=''
924 ac_user_opts='
925 enable_option_checking
926 enable_maintainer_mode
927 enable_silent_rules
928 enable_dependency_tracking
929 enable_debug
930 enable_gc_friendly
931 enable_mem_pools
932 enable_rebuilds
933 with_runtime_libdir
934 enable_largefile
935 with_libiconv
936 enable_iconv_cache
937 enable_static
938 enable_shared
939 with_pic
940 enable_fast_install
941 with_gnu_ld
942 with_sysroot
943 enable_libtool_lock
944 enable_included_printf
945 with_gio_module_dir
946 enable_selinux
947 enable_fam
948 enable_xattr
949 with_threads
950 with_pcre
951 with_html_dir
952 enable_gtk_doc
953 enable_gtk_doc_html
954 enable_gtk_doc_pdf
955 enable_man
956 with_xml_catalog
957 enable_dtrace
958 enable_systemtap
959 with_tapset_install_dir
960 enable_gcov
961 enable_Bsymbolic
962 '
963       ac_precious_vars='build_alias
964 host_alias
965 target_alias
966 CC
967 CFLAGS
968 LDFLAGS
969 LIBS
970 CPPFLAGS
971 CPP
972 CXX
973 CXXFLAGS
974 CCC
975 PKG_CONFIG
976 PKG_CONFIG_PATH
977 PKG_CONFIG_LIBDIR
978 PYTHON
979 ZLIB_CFLAGS
980 ZLIB_LIBS
981 LIBFFI_CFLAGS
982 LIBFFI_LIBS
983 CXXCPP
984 LIBELF_CFLAGS
985 LIBELF_LIBS
986 PCRE_CFLAGS
987 PCRE_LIBS
988 GTKDOC_DEPS_CFLAGS
989 GTKDOC_DEPS_LIBS
990 DBUS1_CFLAGS
991 DBUS1_LIBS'
992
993
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1015
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1041
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1045 do
1046   # If the previous option needs an argument, assign it.
1047   if test -n "$ac_prev"; then
1048     eval $ac_prev=\$ac_option
1049     ac_prev=
1050     continue
1051   fi
1052
1053   case $ac_option in
1054   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055   *=)   ac_optarg= ;;
1056   *)    ac_optarg=yes ;;
1057   esac
1058
1059   # Accept the important Cygnus configure options, so we can diagnose typos.
1060
1061   case $ac_dashdash$ac_option in
1062   --)
1063     ac_dashdash=yes ;;
1064
1065   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066     ac_prev=bindir ;;
1067   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068     bindir=$ac_optarg ;;
1069
1070   -build | --build | --buil | --bui | --bu)
1071     ac_prev=build_alias ;;
1072   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073     build_alias=$ac_optarg ;;
1074
1075   -cache-file | --cache-file | --cache-fil | --cache-fi \
1076   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077     ac_prev=cache_file ;;
1078   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080     cache_file=$ac_optarg ;;
1081
1082   --config-cache | -C)
1083     cache_file=config.cache ;;
1084
1085   -datadir | --datadir | --datadi | --datad)
1086     ac_prev=datadir ;;
1087   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088     datadir=$ac_optarg ;;
1089
1090   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091   | --dataroo | --dataro | --datar)
1092     ac_prev=datarootdir ;;
1093   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095     datarootdir=$ac_optarg ;;
1096
1097   -disable-* | --disable-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error $? "invalid feature name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "enable_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval enable_$ac_useropt=no ;;
1112
1113   -docdir | --docdir | --docdi | --doc | --do)
1114     ac_prev=docdir ;;
1115   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116     docdir=$ac_optarg ;;
1117
1118   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119     ac_prev=dvidir ;;
1120   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121     dvidir=$ac_optarg ;;
1122
1123   -enable-* | --enable-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid feature name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "enable_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval enable_$ac_useropt=\$ac_optarg ;;
1138
1139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141   | --exec | --exe | --ex)
1142     ac_prev=exec_prefix ;;
1143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145   | --exec=* | --exe=* | --ex=*)
1146     exec_prefix=$ac_optarg ;;
1147
1148   -gas | --gas | --ga | --g)
1149     # Obsolete; use --with-gas.
1150     with_gas=yes ;;
1151
1152   -help | --help | --hel | --he | -h)
1153     ac_init_help=long ;;
1154   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155     ac_init_help=recursive ;;
1156   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157     ac_init_help=short ;;
1158
1159   -host | --host | --hos | --ho)
1160     ac_prev=host_alias ;;
1161   -host=* | --host=* | --hos=* | --ho=*)
1162     host_alias=$ac_optarg ;;
1163
1164   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165     ac_prev=htmldir ;;
1166   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167   | --ht=*)
1168     htmldir=$ac_optarg ;;
1169
1170   -includedir | --includedir | --includedi | --included | --include \
1171   | --includ | --inclu | --incl | --inc)
1172     ac_prev=includedir ;;
1173   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174   | --includ=* | --inclu=* | --incl=* | --inc=*)
1175     includedir=$ac_optarg ;;
1176
1177   -infodir | --infodir | --infodi | --infod | --info | --inf)
1178     ac_prev=infodir ;;
1179   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180     infodir=$ac_optarg ;;
1181
1182   -libdir | --libdir | --libdi | --libd)
1183     ac_prev=libdir ;;
1184   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185     libdir=$ac_optarg ;;
1186
1187   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188   | --libexe | --libex | --libe)
1189     ac_prev=libexecdir ;;
1190   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191   | --libexe=* | --libex=* | --libe=*)
1192     libexecdir=$ac_optarg ;;
1193
1194   -localedir | --localedir | --localedi | --localed | --locale)
1195     ac_prev=localedir ;;
1196   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197     localedir=$ac_optarg ;;
1198
1199   -localstatedir | --localstatedir | --localstatedi | --localstated \
1200   | --localstate | --localstat | --localsta | --localst | --locals)
1201     ac_prev=localstatedir ;;
1202   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204     localstatedir=$ac_optarg ;;
1205
1206   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207     ac_prev=mandir ;;
1208   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209     mandir=$ac_optarg ;;
1210
1211   -nfp | --nfp | --nf)
1212     # Obsolete; use --without-fp.
1213     with_fp=no ;;
1214
1215   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216   | --no-cr | --no-c | -n)
1217     no_create=yes ;;
1218
1219   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221     no_recursion=yes ;;
1222
1223   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225   | --oldin | --oldi | --old | --ol | --o)
1226     ac_prev=oldincludedir ;;
1227   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230     oldincludedir=$ac_optarg ;;
1231
1232   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233     ac_prev=prefix ;;
1234   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235     prefix=$ac_optarg ;;
1236
1237   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238   | --program-pre | --program-pr | --program-p)
1239     ac_prev=program_prefix ;;
1240   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242     program_prefix=$ac_optarg ;;
1243
1244   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245   | --program-suf | --program-su | --program-s)
1246     ac_prev=program_suffix ;;
1247   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249     program_suffix=$ac_optarg ;;
1250
1251   -program-transform-name | --program-transform-name \
1252   | --program-transform-nam | --program-transform-na \
1253   | --program-transform-n | --program-transform- \
1254   | --program-transform | --program-transfor \
1255   | --program-transfo | --program-transf \
1256   | --program-trans | --program-tran \
1257   | --progr-tra | --program-tr | --program-t)
1258     ac_prev=program_transform_name ;;
1259   -program-transform-name=* | --program-transform-name=* \
1260   | --program-transform-nam=* | --program-transform-na=* \
1261   | --program-transform-n=* | --program-transform-=* \
1262   | --program-transform=* | --program-transfor=* \
1263   | --program-transfo=* | --program-transf=* \
1264   | --program-trans=* | --program-tran=* \
1265   | --progr-tra=* | --program-tr=* | --program-t=*)
1266     program_transform_name=$ac_optarg ;;
1267
1268   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269     ac_prev=pdfdir ;;
1270   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271     pdfdir=$ac_optarg ;;
1272
1273   -psdir | --psdir | --psdi | --psd | --ps)
1274     ac_prev=psdir ;;
1275   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276     psdir=$ac_optarg ;;
1277
1278   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279   | -silent | --silent | --silen | --sile | --sil)
1280     silent=yes ;;
1281
1282   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283     ac_prev=sbindir ;;
1284   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285   | --sbi=* | --sb=*)
1286     sbindir=$ac_optarg ;;
1287
1288   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290   | --sharedst | --shareds | --shared | --share | --shar \
1291   | --sha | --sh)
1292     ac_prev=sharedstatedir ;;
1293   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296   | --sha=* | --sh=*)
1297     sharedstatedir=$ac_optarg ;;
1298
1299   -site | --site | --sit)
1300     ac_prev=site ;;
1301   -site=* | --site=* | --sit=*)
1302     site=$ac_optarg ;;
1303
1304   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305     ac_prev=srcdir ;;
1306   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307     srcdir=$ac_optarg ;;
1308
1309   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310   | --syscon | --sysco | --sysc | --sys | --sy)
1311     ac_prev=sysconfdir ;;
1312   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314     sysconfdir=$ac_optarg ;;
1315
1316   -target | --target | --targe | --targ | --tar | --ta | --t)
1317     ac_prev=target_alias ;;
1318   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319     target_alias=$ac_optarg ;;
1320
1321   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322     verbose=yes ;;
1323
1324   -version | --version | --versio | --versi | --vers | -V)
1325     ac_init_version=: ;;
1326
1327   -with-* | --with-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid package name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "with_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval with_$ac_useropt=\$ac_optarg ;;
1342
1343   -without-* | --without-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error $? "invalid package name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval with_$ac_useropt=no ;;
1358
1359   --x)
1360     # Obsolete; use --with-x.
1361     with_x=yes ;;
1362
1363   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364   | --x-incl | --x-inc | --x-in | --x-i)
1365     ac_prev=x_includes ;;
1366   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368     x_includes=$ac_optarg ;;
1369
1370   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372     ac_prev=x_libraries ;;
1373   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375     x_libraries=$ac_optarg ;;
1376
1377   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1379     ;;
1380
1381   *=*)
1382     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383     # Reject names that are not valid shell variable names.
1384     case $ac_envvar in #(
1385       '' | [0-9]* | *[!_$as_cr_alnum]* )
1386       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387     esac
1388     eval $ac_envvar=\$ac_optarg
1389     export $ac_envvar ;;
1390
1391   *)
1392     # FIXME: should be removed in autoconf 3.0.
1393     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397     ;;
1398
1399   esac
1400 done
1401
1402 if test -n "$ac_prev"; then
1403   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404   as_fn_error $? "missing argument to $ac_option"
1405 fi
1406
1407 if test -n "$ac_unrecognized_opts"; then
1408   case $enable_option_checking in
1409     no) ;;
1410     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412   esac
1413 fi
1414
1415 # Check all directory arguments for consistency.
1416 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417                 datadir sysconfdir sharedstatedir localstatedir includedir \
1418                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419                 libdir localedir mandir
1420 do
1421   eval ac_val=\$$ac_var
1422   # Remove trailing slashes.
1423   case $ac_val in
1424     */ )
1425       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426       eval $ac_var=\$ac_val;;
1427   esac
1428   # Be sure to have absolute directory names.
1429   case $ac_val in
1430     [\\/$]* | ?:[\\/]* )  continue;;
1431     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432   esac
1433   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 done
1435
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1442
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445   if test "x$build_alias" = x; then
1446     cross_compiling=maybe
1447     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1448     If a cross compiler is detected then cross compile mode will be used" >&2
1449   elif test "x$build_alias" != "x$host_alias"; then
1450     cross_compiling=yes
1451   fi
1452 fi
1453
1454 ac_tool_prefix=
1455 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457 test "$silent" = yes && exec 6>/dev/null
1458
1459
1460 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di=`ls -di .` &&
1462 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463   as_fn_error $? "working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465   as_fn_error $? "pwd does not report name of working directory"
1466
1467
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470   ac_srcdir_defaulted=yes
1471   # Try the directory containing this script, then the parent directory.
1472   ac_confdir=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474          X"$as_myself" : 'X\(//\)[^/]' \| \
1475          X"$as_myself" : 'X\(//\)$' \| \
1476          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 $as_echo X"$as_myself" |
1478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479             s//\1/
1480             q
1481           }
1482           /^X\(\/\/\)[^/].*/{
1483             s//\1/
1484             q
1485           }
1486           /^X\(\/\/\)$/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\).*/{
1491             s//\1/
1492             q
1493           }
1494           s/.*/./; q'`
1495   srcdir=$ac_confdir
1496   if test ! -r "$srcdir/$ac_unique_file"; then
1497     srcdir=..
1498   fi
1499 else
1500   ac_srcdir_defaulted=no
1501 fi
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1505 fi
1506 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1507 ac_abs_confdir=`(
1508         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1509         pwd)`
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512   srcdir=.
1513 fi
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1517 case $srcdir in
1518 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519 esac
1520 for ac_var in $ac_precious_vars; do
1521   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522   eval ac_env_${ac_var}_value=\$${ac_var}
1523   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525 done
1526
1527 #
1528 # Report the --help message.
1529 #
1530 if test "$ac_init_help" = "long"; then
1531   # Omit some internal or obsolete options to make the list less imposing.
1532   # This message is too long to be a string in the A/UX 3.1 sh.
1533   cat <<_ACEOF
1534 \`configure' configures glib 2.32.3 to adapt to many kinds of systems.
1535
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1537
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE.  See below for descriptions of some of the useful variables.
1540
1541 Defaults for the options are specified in brackets.
1542
1543 Configuration:
1544   -h, --help              display this help and exit
1545       --help=short        display options specific to this package
1546       --help=recursive    display the short help of all the included packages
1547   -V, --version           display version information and exit
1548   -q, --quiet, --silent   do not print \`checking ...' messages
1549       --cache-file=FILE   cache test results in FILE [disabled]
1550   -C, --config-cache      alias for \`--cache-file=config.cache'
1551   -n, --no-create         do not create output files
1552       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1553
1554 Installation directories:
1555   --prefix=PREFIX         install architecture-independent files in PREFIX
1556                           [$ac_default_prefix]
1557   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1558                           [PREFIX]
1559
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1564
1565 For better control, use the options below.
1566
1567 Fine tuning of the installation directories:
1568   --bindir=DIR            user executables [EPREFIX/bin]
1569   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1570   --libexecdir=DIR        program executables [EPREFIX/libexec]
1571   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1572   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1573   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1574   --libdir=DIR            object code libraries [EPREFIX/lib]
1575   --includedir=DIR        C header files [PREFIX/include]
1576   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1577   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1578   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1579   --infodir=DIR           info documentation [DATAROOTDIR/info]
1580   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1581   --mandir=DIR            man documentation [DATAROOTDIR/man]
1582   --docdir=DIR            documentation root [DATAROOTDIR/doc/glib]
1583   --htmldir=DIR           html documentation [DOCDIR]
1584   --dvidir=DIR            dvi documentation [DOCDIR]
1585   --pdfdir=DIR            pdf documentation [DOCDIR]
1586   --psdir=DIR             ps documentation [DOCDIR]
1587 _ACEOF
1588
1589   cat <<\_ACEOF
1590
1591 Program names:
1592   --program-prefix=PREFIX            prepend PREFIX to installed program names
1593   --program-suffix=SUFFIX            append SUFFIX to installed program names
1594   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1595
1596 System types:
1597   --build=BUILD     configure for building on BUILD [guessed]
1598   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1599 _ACEOF
1600 fi
1601
1602 if test -n "$ac_init_help"; then
1603   case $ac_init_help in
1604      short | recursive ) echo "Configuration of glib 2.32.3:";;
1605    esac
1606   cat <<\_ACEOF
1607
1608 Optional Features:
1609   --disable-option-checking  ignore unrecognized --enable/--with options
1610   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1611   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1612   --disable-maintainer-mode  disable make rules and dependencies not useful
1613                           (and sometimes confusing) to the casual installer
1614   --enable-silent-rules          less verbose build output (undo: `make V=1')
1615   --disable-silent-rules         verbose build output (undo: `make V=0')
1616   --disable-dependency-tracking  speeds up one-time build
1617   --enable-dependency-tracking   do not reject slow dependency extractors
1618   --enable-debug=[no/minimum/yes]
1619                           turn on debugging [default=minimum]
1620   --enable-gc-friendly    turn on garbage collector friendliness [default=no]
1621   --disable-mem-pools     disable all glib memory pools
1622   --disable-rebuilds      disable all source autogeneration rules
1623   --disable-largefile     omit support for large files
1624   --enable-iconv-cache=[yes/no/auto]
1625                           cache iconv descriptors [default=auto]
1626   --enable-static[=PKGS]  build static libraries [default=no]
1627   --enable-shared[=PKGS]  build shared libraries [default=yes]
1628   --enable-fast-install[=PKGS]
1629                           optimize for fast installation [default=yes]
1630   --disable-libtool-lock  avoid locking (might break parallel builds)
1631   --enable-included-printf
1632                           use included printf [default=auto]
1633   --disable-selinux       build without selinux support
1634   --disable-fam           don't use fam for file system monitoring
1635   --disable-xattr         build without xattr support
1636   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1637   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1638   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1639   --enable-man            regenerate man pages from Docbook [default=no]
1640   --enable-dtrace         include tracing support for dtrace
1641   --enable-systemtap      include tracing support for systemtap
1642   --enable-gcov           enable coverage testing with gcov
1643   --disable-Bsymbolic     avoid linking with -Bsymbolic
1644
1645 Optional Packages:
1646   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1647   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1648   --with-runtime-libdir=RELPATH
1649                           install runtime libraries relative to libdir
1650   --with-libiconv=[no/gnu/native]
1651                           use the libiconv library
1652   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1653                           both]
1654   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1655   --with-sysroot=DIR Search for dependent libraries within DIR
1656                         (or the compiler's sysroot if not specified).
1657   --with-gio-module-dir=DIR
1658                           load gio modules from this directory
1659                           [LIBDIR/gio/modules]
1660   --with-threads=[posix/win32]
1661                           specify a thread implementation to use
1662   --with-pcre=[internal/system]
1663                           whether to use system PCRE [default=internal]
1664   --with-html-dir=PATH    path to installed docs
1665   --with-xml-catalog=CATALOG
1666                           path to xml catalog to use
1667   --with-tapset-install-dir=DIR
1668                           path where systemtap tapsets are installed
1669                           [DATADIR/systemtap/tapset]
1670
1671 Some influential environment variables:
1672   CC          C compiler command
1673   CFLAGS      C compiler flags
1674   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1675               nonstandard directory <lib dir>
1676   LIBS        libraries to pass to the linker, e.g. -l<library>
1677   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1678               you have headers in a nonstandard directory <include dir>
1679   CPP         C preprocessor
1680   CXX         C++ compiler command
1681   CXXFLAGS    C++ compiler flags
1682   PKG_CONFIG  path to pkg-config utility
1683   PKG_CONFIG_PATH
1684               directories to add to pkg-config's search path
1685   PKG_CONFIG_LIBDIR
1686               path overriding pkg-config's built-in search path
1687   PYTHON      the Python interpreter
1688   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1689   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1690   LIBFFI_CFLAGS
1691               C compiler flags for LIBFFI, overriding pkg-config
1692   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1693   CXXCPP      C++ preprocessor
1694   LIBELF_CFLAGS
1695               C compiler flags for LIBELF, overriding pkg-config
1696   LIBELF_LIBS linker flags for LIBELF, overriding pkg-config
1697   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1698   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1699   GTKDOC_DEPS_CFLAGS
1700               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1701   GTKDOC_DEPS_LIBS
1702               linker flags for GTKDOC_DEPS, overriding pkg-config
1703   DBUS1_CFLAGS
1704               C compiler flags for DBUS1, overriding pkg-config
1705   DBUS1_LIBS  linker flags for DBUS1, overriding pkg-config
1706
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1709
1710 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1711 _ACEOF
1712 ac_status=$?
1713 fi
1714
1715 if test "$ac_init_help" = "recursive"; then
1716   # If there are subdirs, report their specific --help.
1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718     test -d "$ac_dir" ||
1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720       continue
1721     ac_builddir=.
1722
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *)
1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727   # A ".." for each directory in $ac_dir_suffix.
1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729   case $ac_top_builddir_sub in
1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732   esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1738
1739 case $srcdir in
1740   .)  # We are building in place.
1741     ac_srcdir=.
1742     ac_top_srcdir=$ac_top_builddir_sub
1743     ac_abs_top_srcdir=$ac_pwd ;;
1744   [\\/]* | ?:[\\/]* )  # Absolute name.
1745     ac_srcdir=$srcdir$ac_dir_suffix;
1746     ac_top_srcdir=$srcdir
1747     ac_abs_top_srcdir=$srcdir ;;
1748   *) # Relative name.
1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755     cd "$ac_dir" || { ac_status=$?; continue; }
1756     # Check for guested configure.
1757     if test -f "$ac_srcdir/configure.gnu"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760     elif test -f "$ac_srcdir/configure"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure" --help=recursive
1763     else
1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765     fi || ac_status=$?
1766     cd "$ac_pwd" || { ac_status=$?; break; }
1767   done
1768 fi
1769
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772   cat <<\_ACEOF
1773 glib configure 2.32.3
1774 generated by GNU Autoconf 2.68
1775
1776 Copyright (C) 2010 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780   exit
1781 fi
1782
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1786
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   rm -f conftest.$ac_objext
1794   if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_compile") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && {
1810          test -z "$ac_c_werror_flag" ||
1811          test ! -s conftest.err
1812        } && test -s conftest.$ac_objext; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821   as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_compile
1824
1825 # ac_fn_c_try_cpp LINENO
1826 # ----------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_cpp ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } > conftest.i && {
1847          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1848          test ! -s conftest.err
1849        }; then :
1850   ac_retval=0
1851 else
1852   $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855     ac_retval=1
1856 fi
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858   as_fn_set_status $ac_retval
1859
1860 } # ac_fn_c_try_cpp
1861
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   rm -f conftest.$ac_objext
1869   if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872   *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876   (eval "$ac_compile") 2>conftest.err
1877   ac_status=$?
1878   if test -s conftest.err; then
1879     grep -v '^ *+' conftest.err >conftest.er1
1880     cat conftest.er1 >&5
1881     mv -f conftest.er1 conftest.err
1882   fi
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; } && {
1885          test -z "$ac_cxx_werror_flag" ||
1886          test ! -s conftest.err
1887        } && test -s conftest.$ac_objext; then :
1888   ac_retval=0
1889 else
1890   $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893         ac_retval=1
1894 fi
1895   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896   as_fn_set_status $ac_retval
1897
1898 } # ac_fn_cxx_try_compile
1899
1900 # ac_fn_c_try_link LINENO
1901 # -----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_link ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   rm -f conftest.$ac_objext conftest$ac_exeext
1907   if { { ac_try="$ac_link"
1908 case "(($ac_try" in
1909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910   *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914   (eval "$ac_link") 2>conftest.err
1915   ac_status=$?
1916   if test -s conftest.err; then
1917     grep -v '^ *+' conftest.err >conftest.er1
1918     cat conftest.er1 >&5
1919     mv -f conftest.er1 conftest.err
1920   fi
1921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922   test $ac_status = 0; } && {
1923          test -z "$ac_c_werror_flag" ||
1924          test ! -s conftest.err
1925        } && test -s conftest$ac_exeext && {
1926          test "$cross_compiling" = yes ||
1927          $as_test_x conftest$ac_exeext
1928        }; then :
1929   ac_retval=0
1930 else
1931   $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934         ac_retval=1
1935 fi
1936   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938   # interfere with the next link command; also delete a directory that is
1939   # left behind by Apple's compiler.  We do this before executing the actions.
1940   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942   as_fn_set_status $ac_retval
1943
1944 } # ac_fn_c_try_link
1945
1946 # ac_fn_c_check_func LINENO FUNC VAR
1947 # ----------------------------------
1948 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1949 ac_fn_c_check_func ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955   $as_echo_n "(cached) " >&6
1956 else
1957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1961 #define $2 innocuous_$2
1962
1963 /* System header to define __stub macros and hopefully few prototypes,
1964     which can conflict with char $2 (); below.
1965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1966     <limits.h> exists even on freestanding compilers.  */
1967
1968 #ifdef __STDC__
1969 # include <limits.h>
1970 #else
1971 # include <assert.h>
1972 #endif
1973
1974 #undef $2
1975
1976 /* Override any GCC internal prototype to avoid an error.
1977    Use char because int might match the return type of a GCC
1978    builtin and then its argument prototype would still apply.  */
1979 #ifdef __cplusplus
1980 extern "C"
1981 #endif
1982 char $2 ();
1983 /* The GNU C library defines this for functions which it implements
1984     to always fail with ENOSYS.  Some functions are actually named
1985     something starting with __ and the normal name is an alias.  */
1986 #if defined __stub_$2 || defined __stub___$2
1987 choke me
1988 #endif
1989
1990 int
1991 main ()
1992 {
1993 return $2 ();
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_link "$LINENO"; then :
1999   eval "$3=yes"
2000 else
2001   eval "$3=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext \
2004     conftest$ac_exeext conftest.$ac_ext
2005 fi
2006 eval ac_res=\$$3
2007                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_func
2012
2013 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2016 # the include files in INCLUDES and setting the cache variable VAR
2017 # accordingly.
2018 ac_fn_c_check_header_mongrel ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   if eval \${$3+:} false; then :
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025   $as_echo_n "(cached) " >&6
2026 fi
2027 eval ac_res=\$$3
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 else
2031   # Is the header compilable?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2033 $as_echo_n "checking $2 usability... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_header_compiler=yes
2041 else
2042   ac_header_compiler=no
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2046 $as_echo "$ac_header_compiler" >&6; }
2047
2048 # Is the header present?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2050 $as_echo_n "checking $2 presence... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 #include <$2>
2054 _ACEOF
2055 if ac_fn_c_try_cpp "$LINENO"; then :
2056   ac_header_preproc=yes
2057 else
2058   ac_header_preproc=no
2059 fi
2060 rm -f conftest.err conftest.i conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2062 $as_echo "$ac_header_preproc" >&6; }
2063
2064 # So?  What about this header?
2065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2066   yes:no: )
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2068 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071     ;;
2072   no:yes:* )
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2074 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2076 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2078 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2080 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ( $as_echo "## ------------------------------------------------------------------- ##
2084 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2085 ## ------------------------------------------------------------------- ##"
2086      ) | sed "s/^/$as_me: WARNING:     /" >&2
2087     ;;
2088 esac
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   eval "$3=\$ac_header_compiler"
2095 fi
2096 eval ac_res=\$$3
2097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 fi
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_header_mongrel
2103
2104 # ac_fn_c_try_run LINENO
2105 # ----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2107 # that executables *can* be run.
2108 ac_fn_c_try_run ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>&5
2119   ac_status=$?
2120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2121   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2122   { { case "(($ac_try" in
2123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124   *) ac_try_echo=$ac_try;;
2125 esac
2126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127 $as_echo "$ac_try_echo"; } >&5
2128   (eval "$ac_try") 2>&5
2129   ac_status=$?
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; }; }; then :
2132   ac_retval=0
2133 else
2134   $as_echo "$as_me: program exited with status $ac_status" >&5
2135        $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138        ac_retval=$ac_status
2139 fi
2140   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142   as_fn_set_status $ac_retval
2143
2144 } # ac_fn_c_try_run
2145
2146 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists and can be compiled using the include files in
2149 # INCLUDES, setting the cache variable VAR accordingly.
2150 ac_fn_c_check_header_compile ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval \${$3+:} false; then :
2156   $as_echo_n "(cached) " >&6
2157 else
2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 #include <$2>
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164   eval "$3=yes"
2165 else
2166   eval "$3=no"
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 eval ac_res=\$$3
2171                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174
2175 } # ac_fn_c_check_header_compile
2176
2177 # ac_fn_cxx_try_cpp LINENO
2178 # ------------------------
2179 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2180 ac_fn_cxx_try_cpp ()
2181 {
2182   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183   if { { ac_try="$ac_cpp conftest.$ac_ext"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2191   ac_status=$?
2192   if test -s conftest.err; then
2193     grep -v '^ *+' conftest.err >conftest.er1
2194     cat conftest.er1 >&5
2195     mv -f conftest.er1 conftest.err
2196   fi
2197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198   test $ac_status = 0; } > conftest.i && {
2199          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2200          test ! -s conftest.err
2201        }; then :
2202   ac_retval=0
2203 else
2204   $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207     ac_retval=1
2208 fi
2209   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210   as_fn_set_status $ac_retval
2211
2212 } # ac_fn_cxx_try_cpp
2213
2214 # ac_fn_cxx_try_link LINENO
2215 # -------------------------
2216 # Try to link conftest.$ac_ext, and return whether this succeeded.
2217 ac_fn_cxx_try_link ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   rm -f conftest.$ac_objext conftest$ac_exeext
2221   if { { ac_try="$ac_link"
2222 case "(($ac_try" in
2223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224   *) ac_try_echo=$ac_try;;
2225 esac
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228   (eval "$ac_link") 2>conftest.err
2229   ac_status=$?
2230   if test -s conftest.err; then
2231     grep -v '^ *+' conftest.err >conftest.er1
2232     cat conftest.er1 >&5
2233     mv -f conftest.er1 conftest.err
2234   fi
2235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236   test $ac_status = 0; } && {
2237          test -z "$ac_cxx_werror_flag" ||
2238          test ! -s conftest.err
2239        } && test -s conftest$ac_exeext && {
2240          test "$cross_compiling" = yes ||
2241          $as_test_x conftest$ac_exeext
2242        }; then :
2243   ac_retval=0
2244 else
2245   $as_echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248         ac_retval=1
2249 fi
2250   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2251   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2252   # interfere with the next link command; also delete a directory that is
2253   # left behind by Apple's compiler.  We do this before executing the actions.
2254   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256   as_fn_set_status $ac_retval
2257
2258 } # ac_fn_cxx_try_link
2259
2260 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2261 # -------------------------------------------
2262 # Tests whether TYPE exists after having included INCLUDES, setting cache
2263 # variable VAR accordingly.
2264 ac_fn_c_check_type ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval \${$3+:} false; then :
2270   $as_echo_n "(cached) " >&6
2271 else
2272   eval "$3=no"
2273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275 $4
2276 int
2277 main ()
2278 {
2279 if (sizeof ($2))
2280          return 0;
2281   ;
2282   return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $4
2289 int
2290 main ()
2291 {
2292 if (sizeof (($2)))
2293             return 0;
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299
2300 else
2301   eval "$3=yes"
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$3
2308                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_c_check_type
2313
2314 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2315 # --------------------------------------------
2316 # Tries to find the compile-time value of EXPR in a program that includes
2317 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2318 # computed
2319 ac_fn_c_compute_int ()
2320 {
2321   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322   if test "$cross_compiling" = yes; then
2323     # Depending upon the size, compute the lo and hi bounds.
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h.  */
2326 $4
2327 int
2328 main ()
2329 {
2330 static int test_array [1 - 2 * !(($2) >= 0)];
2331 test_array [0] = 0
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338   ac_lo=0 ac_mid=0
2339   while :; do
2340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 $4
2343 int
2344 main ()
2345 {
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2347 test_array [0] = 0
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354   ac_hi=$ac_mid; break
2355 else
2356   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2357                         if test $ac_lo -le $ac_mid; then
2358                           ac_lo= ac_hi=
2359                           break
2360                         fi
2361                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364   done
2365 else
2366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $4
2369 int
2370 main ()
2371 {
2372 static int test_array [1 - 2 * !(($2) < 0)];
2373 test_array [0] = 0
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380   ac_hi=-1 ac_mid=-1
2381   while :; do
2382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h.  */
2384 $4
2385 int
2386 main ()
2387 {
2388 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2389 test_array [0] = 0
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396   ac_lo=$ac_mid; break
2397 else
2398   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399                         if test $ac_mid -le $ac_hi; then
2400                           ac_lo= ac_hi=
2401                           break
2402                         fi
2403                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406   done
2407 else
2408   ac_lo= ac_hi=
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 # Binary search between lo and hi bounds.
2414 while test "x$ac_lo" != "x$ac_hi"; do
2415   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418 $4
2419 int
2420 main ()
2421 {
2422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2423 test_array [0] = 0
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430   ac_hi=$ac_mid
2431 else
2432   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 done
2436 case $ac_lo in #((
2437 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2438 '') ac_retval=1 ;;
2439 esac
2440   else
2441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h.  */
2443 $4
2444 static long int longval () { return $2; }
2445 static unsigned long int ulongval () { return $2; }
2446 #include <stdio.h>
2447 #include <stdlib.h>
2448 int
2449 main ()
2450 {
2451
2452   FILE *f = fopen ("conftest.val", "w");
2453   if (! f)
2454     return 1;
2455   if (($2) < 0)
2456     {
2457       long int i = longval ();
2458       if (i != ($2))
2459         return 1;
2460       fprintf (f, "%ld", i);
2461     }
2462   else
2463     {
2464       unsigned long int i = ulongval ();
2465       if (i != ($2))
2466         return 1;
2467       fprintf (f, "%lu", i);
2468     }
2469   /* Do not output a trailing newline, as this causes \r\n confusion
2470      on some platforms.  */
2471   return ferror (f) || fclose (f) != 0;
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 if ac_fn_c_try_run "$LINENO"; then :
2478   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2479 else
2480   ac_retval=1
2481 fi
2482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2483   conftest.$ac_objext conftest.beam conftest.$ac_ext
2484 rm -f conftest.val
2485
2486   fi
2487   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488   as_fn_set_status $ac_retval
2489
2490 } # ac_fn_c_compute_int
2491
2492 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2493 # ----------------------------------------------------
2494 # Tries to find if the field MEMBER exists in type AGGR, after including
2495 # INCLUDES, setting cache variable VAR accordingly.
2496 ac_fn_c_check_member ()
2497 {
2498   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2500 $as_echo_n "checking for $2.$3... " >&6; }
2501 if eval \${$4+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $5
2507 int
2508 main ()
2509 {
2510 static $2 ac_aggr;
2511 if (ac_aggr.$3)
2512 return 0;
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518   eval "$4=yes"
2519 else
2520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $5
2523 int
2524 main ()
2525 {
2526 static $2 ac_aggr;
2527 if (sizeof ac_aggr.$3)
2528 return 0;
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 if ac_fn_c_try_compile "$LINENO"; then :
2534   eval "$4=yes"
2535 else
2536   eval "$4=no"
2537 fi
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$4
2543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546
2547 } # ac_fn_c_check_member
2548 cat >config.log <<_ACEOF
2549 This file contains any messages produced by compilers while
2550 running configure, to aid debugging if configure makes a mistake.
2551
2552 It was created by glib $as_me 2.32.3, which was
2553 generated by GNU Autoconf 2.68.  Invocation command line was
2554
2555   $ $0 $@
2556
2557 _ACEOF
2558 exec 5>>config.log
2559 {
2560 cat <<_ASUNAME
2561 ## --------- ##
2562 ## Platform. ##
2563 ## --------- ##
2564
2565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2570
2571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2573
2574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2581
2582 _ASUNAME
2583
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589     $as_echo "PATH: $as_dir"
2590   done
2591 IFS=$as_save_IFS
2592
2593 } >&5
2594
2595 cat >&5 <<_ACEOF
2596
2597
2598 ## ----------- ##
2599 ## Core tests. ##
2600 ## ----------- ##
2601
2602 _ACEOF
2603
2604
2605 # Keep a trace of the command line.
2606 # Strip out --no-create and --no-recursion so they do not pile up.
2607 # Strip out --silent because we don't want to record it for future runs.
2608 # Also quote any args containing shell meta-characters.
2609 # Make two passes to allow for proper duplicate-argument suppression.
2610 ac_configure_args=
2611 ac_configure_args0=
2612 ac_configure_args1=
2613 ac_must_keep_next=false
2614 for ac_pass in 1 2
2615 do
2616   for ac_arg
2617   do
2618     case $ac_arg in
2619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2621     | -silent | --silent | --silen | --sile | --sil)
2622       continue ;;
2623     *\'*)
2624       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2625     esac
2626     case $ac_pass in
2627     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2628     2)
2629       as_fn_append ac_configure_args1 " '$ac_arg'"
2630       if test $ac_must_keep_next = true; then
2631         ac_must_keep_next=false # Got value, back to normal.
2632       else
2633         case $ac_arg in
2634           *=* | --config-cache | -C | -disable-* | --disable-* \
2635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2637           | -with-* | --with-* | -without-* | --without-* | --x)
2638             case "$ac_configure_args0 " in
2639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2640             esac
2641             ;;
2642           -* ) ac_must_keep_next=true ;;
2643         esac
2644       fi
2645       as_fn_append ac_configure_args " '$ac_arg'"
2646       ;;
2647     esac
2648   done
2649 done
2650 { ac_configure_args0=; unset ac_configure_args0;}
2651 { ac_configure_args1=; unset ac_configure_args1;}
2652
2653 # When interrupted or exit'd, cleanup temporary files, and complete
2654 # config.log.  We remove comments because anyway the quotes in there
2655 # would cause problems or look ugly.
2656 # WARNING: Use '\'' to represent an apostrophe within the trap.
2657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2658 trap 'exit_status=$?
2659   # Save into config.log some information that might help in debugging.
2660   {
2661     echo
2662
2663     $as_echo "## ---------------- ##
2664 ## Cache variables. ##
2665 ## ---------------- ##"
2666     echo
2667     # The following way of writing the cache mishandles newlines in values,
2668 (
2669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2670     eval ac_val=\$$ac_var
2671     case $ac_val in #(
2672     *${as_nl}*)
2673       case $ac_var in #(
2674       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2676       esac
2677       case $ac_var in #(
2678       _ | IFS | as_nl) ;; #(
2679       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2680       *) { eval $ac_var=; unset $ac_var;} ;;
2681       esac ;;
2682     esac
2683   done
2684   (set) 2>&1 |
2685     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2686     *${as_nl}ac_space=\ *)
2687       sed -n \
2688         "s/'\''/'\''\\\\'\'''\''/g;
2689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2690       ;; #(
2691     *)
2692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2693       ;;
2694     esac |
2695     sort
2696 )
2697     echo
2698
2699     $as_echo "## ----------------- ##
2700 ## Output variables. ##
2701 ## ----------------- ##"
2702     echo
2703     for ac_var in $ac_subst_vars
2704     do
2705       eval ac_val=\$$ac_var
2706       case $ac_val in
2707       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2708       esac
2709       $as_echo "$ac_var='\''$ac_val'\''"
2710     done | sort
2711     echo
2712
2713     if test -n "$ac_subst_files"; then
2714       $as_echo "## ------------------- ##
2715 ## File substitutions. ##
2716 ## ------------------- ##"
2717       echo
2718       for ac_var in $ac_subst_files
2719       do
2720         eval ac_val=\$$ac_var
2721         case $ac_val in
2722         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2723         esac
2724         $as_echo "$ac_var='\''$ac_val'\''"
2725       done | sort
2726       echo
2727     fi
2728
2729     if test -s confdefs.h; then
2730       $as_echo "## ----------- ##
2731 ## confdefs.h. ##
2732 ## ----------- ##"
2733       echo
2734       cat confdefs.h
2735       echo
2736     fi
2737     test "$ac_signal" != 0 &&
2738       $as_echo "$as_me: caught signal $ac_signal"
2739     $as_echo "$as_me: exit $exit_status"
2740   } >&5
2741   rm -f core *.core core.conftest.* &&
2742     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2743     exit $exit_status
2744 ' 0
2745 for ac_signal in 1 2 13 15; do
2746   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2747 done
2748 ac_signal=0
2749
2750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2751 rm -f -r conftest* confdefs.h
2752
2753 $as_echo "/* confdefs.h */" > confdefs.h
2754
2755 # Predefined preprocessor variables.
2756
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_NAME "$PACKAGE_NAME"
2759 _ACEOF
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2763 _ACEOF
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2767 _ACEOF
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_STRING "$PACKAGE_STRING"
2771 _ACEOF
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2775 _ACEOF
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_URL "$PACKAGE_URL"
2779 _ACEOF
2780
2781
2782 # Let the site file select an alternate cache file if it wants to.
2783 # Prefer an explicitly selected file to automatically selected ones.
2784 ac_site_file1=NONE
2785 ac_site_file2=NONE
2786 if test -n "$CONFIG_SITE"; then
2787   # We do not want a PATH search for config.site.
2788   case $CONFIG_SITE in #((
2789     -*)  ac_site_file1=./$CONFIG_SITE;;
2790     */*) ac_site_file1=$CONFIG_SITE;;
2791     *)   ac_site_file1=./$CONFIG_SITE;;
2792   esac
2793 elif test "x$prefix" != xNONE; then
2794   ac_site_file1=$prefix/share/config.site
2795   ac_site_file2=$prefix/etc/config.site
2796 else
2797   ac_site_file1=$ac_default_prefix/share/config.site
2798   ac_site_file2=$ac_default_prefix/etc/config.site
2799 fi
2800 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2801 do
2802   test "x$ac_site_file" = xNONE && continue
2803   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2804     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2805 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2806     sed 's/^/| /' "$ac_site_file" >&5
2807     . "$ac_site_file" \
2808       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 as_fn_error $? "failed to load site script $ac_site_file
2811 See \`config.log' for more details" "$LINENO" 5; }
2812   fi
2813 done
2814
2815 if test -r "$cache_file"; then
2816   # Some versions of bash will fail to source /dev/null (special files
2817   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2818   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2819     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2820 $as_echo "$as_me: loading cache $cache_file" >&6;}
2821     case $cache_file in
2822       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2823       *)                      . "./$cache_file";;
2824     esac
2825   fi
2826 else
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2828 $as_echo "$as_me: creating cache $cache_file" >&6;}
2829   >$cache_file
2830 fi
2831
2832 # Check that the precious variables saved in the cache have kept the same
2833 # value.
2834 ac_cache_corrupted=false
2835 for ac_var in $ac_precious_vars; do
2836   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2837   eval ac_new_set=\$ac_env_${ac_var}_set
2838   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2839   eval ac_new_val=\$ac_env_${ac_var}_value
2840   case $ac_old_set,$ac_new_set in
2841     set,)
2842       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2843 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2844       ac_cache_corrupted=: ;;
2845     ,set)
2846       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2847 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2848       ac_cache_corrupted=: ;;
2849     ,);;
2850     *)
2851       if test "x$ac_old_val" != "x$ac_new_val"; then
2852         # differences in whitespace do not lead to failure.
2853         ac_old_val_w=`echo x $ac_old_val`
2854         ac_new_val_w=`echo x $ac_new_val`
2855         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2856           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2857 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2858           ac_cache_corrupted=:
2859         else
2860           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2861 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2862           eval $ac_var=\$ac_old_val
2863         fi
2864         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2865 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2866         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2867 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2868       fi;;
2869   esac
2870   # Pass precious variables to config.status.
2871   if test "$ac_new_set" = set; then
2872     case $ac_new_val in
2873     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2874     *) ac_arg=$ac_var=$ac_new_val ;;
2875     esac
2876     case " $ac_configure_args " in
2877       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2878       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2879     esac
2880   fi
2881 done
2882 if $ac_cache_corrupted; then
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2886 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2887   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2888 fi
2889 ## -------------------- ##
2890 ## Main body of script. ##
2891 ## -------------------- ##
2892
2893 ac_ext=c
2894 ac_cpp='$CPP $CPPFLAGS'
2895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898
2899
2900
2901 ac_config_headers="$ac_config_headers config.h"
2902
2903
2904
2905
2906 # Save this value here, since automake will set cflags later
2907 cflags_set=${CFLAGS+set}
2908
2909 am__api_version='1.11'
2910
2911 ac_aux_dir=
2912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2913   if test -f "$ac_dir/install-sh"; then
2914     ac_aux_dir=$ac_dir
2915     ac_install_sh="$ac_aux_dir/install-sh -c"
2916     break
2917   elif test -f "$ac_dir/install.sh"; then
2918     ac_aux_dir=$ac_dir
2919     ac_install_sh="$ac_aux_dir/install.sh -c"
2920     break
2921   elif test -f "$ac_dir/shtool"; then
2922     ac_aux_dir=$ac_dir
2923     ac_install_sh="$ac_aux_dir/shtool install -c"
2924     break
2925   fi
2926 done
2927 if test -z "$ac_aux_dir"; then
2928   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2929 fi
2930
2931 # These three variables are undocumented and unsupported,
2932 # and are intended to be withdrawn in a future Autoconf release.
2933 # They can cause serious problems if a builder's source tree is in a directory
2934 # whose full name contains unusual characters.
2935 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2936 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2937 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2938
2939
2940 # Find a good install program.  We prefer a C program (faster),
2941 # so one script is as good as another.  But avoid the broken or
2942 # incompatible versions:
2943 # SysV /etc/install, /usr/sbin/install
2944 # SunOS /usr/etc/install
2945 # IRIX /sbin/install
2946 # AIX /bin/install
2947 # AmigaOS /C/install, which installs bootblocks on floppy discs
2948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2951 # OS/2's system install, which has a completely different semantic
2952 # ./install, which can be erroneously created by make from ./install.sh.
2953 # Reject install programs that cannot install multiple files.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2955 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2956 if test -z "$INSTALL"; then
2957 if ${ac_cv_path_install+:} false; then :
2958   $as_echo_n "(cached) " >&6
2959 else
2960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965     # Account for people who put trailing slashes in PATH elements.
2966 case $as_dir/ in #((
2967   ./ | .// | /[cC]/* | \
2968   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2969   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2970   /usr/ucb/* ) ;;
2971   *)
2972     # OSF1 and SCO ODT 3.0 have their own names for install.
2973     # Don't use installbsd from OSF since it installs stuff as root
2974     # by default.
2975     for ac_prog in ginstall scoinst install; do
2976       for ac_exec_ext in '' $ac_executable_extensions; do
2977         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2978           if test $ac_prog = install &&
2979             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980             # AIX install.  It has an incompatible calling convention.
2981             :
2982           elif test $ac_prog = install &&
2983             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984             # program-specific install script used by HP pwplus--don't use.
2985             :
2986           else
2987             rm -rf conftest.one conftest.two conftest.dir
2988             echo one > conftest.one
2989             echo two > conftest.two
2990             mkdir conftest.dir
2991             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2992               test -s conftest.one && test -s conftest.two &&
2993               test -s conftest.dir/conftest.one &&
2994               test -s conftest.dir/conftest.two
2995             then
2996               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2997               break 3
2998             fi
2999           fi
3000         fi
3001       done
3002     done
3003     ;;
3004 esac
3005
3006   done
3007 IFS=$as_save_IFS
3008
3009 rm -rf conftest.one conftest.two conftest.dir
3010
3011 fi
3012   if test "${ac_cv_path_install+set}" = set; then
3013     INSTALL=$ac_cv_path_install
3014   else
3015     # As a last resort, use the slow shell script.  Don't cache a
3016     # value for INSTALL within a source directory, because that will
3017     # break other packages using the cache if that directory is
3018     # removed, or if the value is a relative name.
3019     INSTALL=$ac_install_sh
3020   fi
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3023 $as_echo "$INSTALL" >&6; }
3024
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3034 $as_echo_n "checking whether build environment is sane... " >&6; }
3035 # Just in case
3036 sleep 1
3037 echo timestamp > conftest.file
3038 # Reject unsafe characters in $srcdir or the absolute working directory
3039 # name.  Accept space and tab only in the latter.
3040 am_lf='
3041 '
3042 case `pwd` in
3043   *[\\\"\#\$\&\'\`$am_lf]*)
3044     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3045 esac
3046 case $srcdir in
3047   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3048     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3049 esac
3050
3051 # Do `set' in a subshell so we don't clobber the current shell's
3052 # arguments.  Must try -L first in case configure is actually a
3053 # symlink; some systems play weird games with the mod time of symlinks
3054 # (eg FreeBSD returns the mod time of the symlink's containing
3055 # directory).
3056 if (
3057    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3058    if test "$*" = "X"; then
3059       # -L didn't work.
3060       set X `ls -t "$srcdir/configure" conftest.file`
3061    fi
3062    rm -f conftest.file
3063    if test "$*" != "X $srcdir/configure conftest.file" \
3064       && test "$*" != "X conftest.file $srcdir/configure"; then
3065
3066       # If neither matched, then we have a broken ls.  This can happen
3067       # if, for instance, CONFIG_SHELL is bash and it inherits a
3068       # broken ls alias from the environment.  This has actually
3069       # happened.  Such a system could not be considered "sane".
3070       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3071 alias in your environment" "$LINENO" 5
3072    fi
3073
3074    test "$2" = conftest.file
3075    )
3076 then
3077    # Ok.
3078    :
3079 else
3080    as_fn_error $? "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 test "$program_prefix" != NONE &&
3086   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3094
3095 # expand $ac_aux_dir to an absolute path
3096 am_aux_dir=`cd $ac_aux_dir && pwd`
3097
3098 if test x"${MISSING+set}" != xset; then
3099   case $am_aux_dir in
3100   *\ * | *\     *)
3101     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3102   *)
3103     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3104   esac
3105 fi
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --run true"; then
3108   am_missing_run="$MISSING --run "
3109 else
3110   am_missing_run=
3111   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3113 fi
3114
3115 if test x"${install_sh}" != xset; then
3116   case $am_aux_dir in
3117   *\ * | *\     *)
3118     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3119   *)
3120     install_sh="\${SHELL} $am_aux_dir/install-sh"
3121   esac
3122 fi
3123
3124 # Installed binaries are usually stripped using `strip' when the user
3125 # run `make install-strip'.  However `strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the `STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129   if test -n "$ac_tool_prefix"; then
3130   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_STRIP+:} false; then :
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$STRIP"; then
3138   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145     for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152   done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3161 else
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 fi
3168 if test -z "$ac_cv_prog_STRIP"; then
3169   ac_ct_STRIP=$STRIP
3170   # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$ac_ct_STRIP"; then
3178   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187     ac_cv_prog_ac_ct_STRIP="strip"
3188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192   done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206   if test "x$ac_ct_STRIP" = x; then
3207     STRIP=":"
3208   else
3209     case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215     STRIP=$ac_ct_STRIP
3216   fi
3217 else
3218   STRIP="$ac_cv_prog_STRIP"
3219 fi
3220
3221 fi
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3223
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227   if ${ac_cv_path_mkdir+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235     for ac_prog in mkdir gmkdir; do
3236          for ac_exec_ext in '' $ac_executable_extensions; do
3237            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3238            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239              'mkdir (GNU coreutils) '* | \
3240              'mkdir (coreutils) '* | \
3241              'mkdir (fileutils) '4.1*)
3242                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3243                break 3;;
3244            esac
3245          done
3246        done
3247   done
3248 IFS=$as_save_IFS
3249
3250 fi
3251
3252   test -d ./--version && rmdir ./--version
3253   if test "${ac_cv_path_mkdir+set}" = set; then
3254     MKDIR_P="$ac_cv_path_mkdir -p"
3255   else
3256     # As a last resort, use the slow shell script.  Don't cache a
3257     # value for MKDIR_P within a source directory, because that will
3258     # break other packages using the cache if that directory is
3259     # removed, or if the value is a relative name.
3260     MKDIR_P="$ac_install_sh -d"
3261   fi
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3265
3266 mkdir_p="$MKDIR_P"
3267 case $mkdir_p in
3268   [\\/$]* | ?:[\\/]*) ;;
3269   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3270 esac
3271
3272 for ac_prog in gawk mawk nawk awk
3273 do
3274   # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_AWK+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$AWK"; then
3282   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291     ac_cv_prog_AWK="$ac_prog"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 AWK=$ac_cv_prog_AWK
3302 if test -n "$AWK"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3304 $as_echo "$AWK" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311   test -n "$AWK" && break
3312 done
3313
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3316 set x ${MAKE-make}
3317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3318 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   cat >conftest.make <<\_ACEOF
3322 SHELL = /bin/sh
3323 all:
3324         @echo '@@@%%%=$(MAKE)=@@@%%%'
3325 _ACEOF
3326 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3328   *@@@%%%=?*=@@@%%%*)
3329     eval ac_cv_prog_make_${ac_make}_set=yes;;
3330   *)
3331     eval ac_cv_prog_make_${ac_make}_set=no;;
3332 esac
3333 rm -f conftest.make
3334 fi
3335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338   SET_MAKE=
3339 else
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342   SET_MAKE="MAKE=${MAKE-make}"
3343 fi
3344
3345 rm -rf .tst 2>/dev/null
3346 mkdir .tst 2>/dev/null
3347 if test -d .tst; then
3348   am__leading_dot=.
3349 else
3350   am__leading_dot=_
3351 fi
3352 rmdir .tst 2>/dev/null
3353
3354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3355   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3356   # is not polluted with repeated "-I."
3357   am__isrc=' -I$(srcdir)'
3358   # test to see if srcdir already configured
3359   if test -f $srcdir/config.status; then
3360     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3361   fi
3362 fi
3363
3364 # test whether we have cygpath
3365 if test -z "$CYGPATH_W"; then
3366   if (cygpath --version) >/dev/null 2>/dev/null; then
3367     CYGPATH_W='cygpath -w'
3368   else
3369     CYGPATH_W=echo
3370   fi
3371 fi
3372
3373
3374 # Define the identity of the package.
3375  PACKAGE='glib'
3376  VERSION='2.32.3'
3377
3378
3379 # Some tools Automake needs.
3380
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3382
3383
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3385
3386
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3388
3389
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3391
3392
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3394
3395 # We need awk for the "check" target.  The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility.  Yes, it's still used
3398 # in the wild :-(  We should find a proper way to deprecate it ...
3399 AMTAR='$${TAR-tar}'
3400
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3403 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3404 # Loop over all known methods to create a tar archive until one works.
3405 _am_tools='gnutar plaintar pax cpio none'
3406 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3407 # Do not fold the above two line into one, because Tru64 sh and
3408 # Solaris sh will not grok spaces in the rhs of `-'.
3409 for _am_tool in $_am_tools
3410 do
3411   case $_am_tool in
3412   gnutar)
3413     for _am_tar in tar gnutar gtar;
3414     do
3415       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3416    ($_am_tar --version) >&5 2>&5
3417    ac_status=$?
3418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419    (exit $ac_status); } && break
3420     done
3421     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3422     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3423     am__untar="$_am_tar -xf -"
3424     ;;
3425   plaintar)
3426     # Must skip GNU tar: if it does not support --format= it doesn't create
3427     # ustar tarball either.
3428     (tar --version) >/dev/null 2>&1 && continue
3429     am__tar='tar chf - "$$tardir"'
3430     am__tar_='tar chf - "$tardir"'
3431     am__untar='tar xf -'
3432     ;;
3433   pax)
3434     am__tar='pax -L -x ustar -w "$$tardir"'
3435     am__tar_='pax -L -x ustar -w "$tardir"'
3436     am__untar='pax -r'
3437     ;;
3438   cpio)
3439     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3440     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3441     am__untar='cpio -i -H ustar -d'
3442     ;;
3443   none)
3444     am__tar=false
3445     am__tar_=false
3446     am__untar=false
3447     ;;
3448   esac
3449
3450   # If the value was cached, stop now.  We just wanted to have am__tar
3451   # and am__untar set.
3452   test -n "${am_cv_prog_tar_ustar}" && break
3453
3454   # tar/untar a dummy directory, and stop if the command works
3455   rm -rf conftest.dir
3456   mkdir conftest.dir
3457   echo GrepMe > conftest.dir/file
3458   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3459    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3460    ac_status=$?
3461    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462    (exit $ac_status); }
3463   rm -rf conftest.dir
3464   if test -s conftest.tar; then
3465     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3466    ($am__untar <conftest.tar) >&5 2>&5
3467    ac_status=$?
3468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469    (exit $ac_status); }
3470     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3471   fi
3472 done
3473 rm -rf conftest.dir
3474
3475 if ${am_cv_prog_tar_ustar+:} false; then :
3476   $as_echo_n "(cached) " >&6
3477 else
3478   am_cv_prog_tar_ustar=$_am_tool
3479 fi
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3482 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3483
3484
3485
3486
3487
3488
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3490 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3491     # Check whether --enable-maintainer-mode was given.
3492 if test "${enable_maintainer_mode+set}" = set; then :
3493   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3494 else
3495   USE_MAINTAINER_MODE=yes
3496 fi
3497
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3499 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3500    if test $USE_MAINTAINER_MODE = yes; then
3501   MAINTAINER_MODE_TRUE=
3502   MAINTAINER_MODE_FALSE='#'
3503 else
3504   MAINTAINER_MODE_TRUE='#'
3505   MAINTAINER_MODE_FALSE=
3506 fi
3507
3508   MAINT=$MAINTAINER_MODE_TRUE
3509
3510
3511
3512 # Support silent build rules. Disable
3513 # by either passing --disable-silent-rules to configure or passing V=1
3514 # to make
3515 # Check whether --enable-silent-rules was given.
3516 if test "${enable_silent_rules+set}" = set; then :
3517   enableval=$enable_silent_rules;
3518 fi
3519
3520 case $enable_silent_rules in
3521 yes) AM_DEFAULT_VERBOSITY=0;;
3522 no)  AM_DEFAULT_VERBOSITY=1;;
3523 *)   AM_DEFAULT_VERBOSITY=0;;
3524 esac
3525 am_make=${MAKE-make}
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3527 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3528 if ${am_cv_make_support_nested_variables+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   if $as_echo 'TRUE=$(BAR$(V))
3532 BAR0=false
3533 BAR1=true
3534 V=1
3535 am__doit:
3536         @$(TRUE)
3537 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3538   am_cv_make_support_nested_variables=yes
3539 else
3540   am_cv_make_support_nested_variables=no
3541 fi
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3544 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3545 if test $am_cv_make_support_nested_variables = yes; then
3546     AM_V='$(V)'
3547   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3548 else
3549   AM_V=$AM_DEFAULT_VERBOSITY
3550   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3551 fi
3552 AM_BACKSLASH='\'
3553
3554
3555 GLIB_MAJOR_VERSION=2
3556 GLIB_MINOR_VERSION=32
3557 GLIB_MICRO_VERSION=3
3558 GLIB_INTERFACE_AGE=3
3559 GLIB_BINARY_AGE=3203
3560 GLIB_VERSION=2.32.3
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3571
3572
3573 $as_echo "#define GLIB_MINOR_VERSION 32" >>confdefs.h
3574
3575
3576 $as_echo "#define GLIB_MICRO_VERSION 3" >>confdefs.h
3577
3578
3579 $as_echo "#define GLIB_INTERFACE_AGE 3" >>confdefs.h
3580
3581
3582 $as_echo "#define GLIB_BINARY_AGE 3203" >>confdefs.h
3583
3584
3585 # libtool versioning
3586 LT_RELEASE=2.32
3587 LT_CURRENT=3200
3588 LT_REVISION=3
3589 LT_AGE=3200
3590 LT_CURRENT_MINUS_AGE=0
3591
3592
3593
3594
3595
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 if test -n "$ac_tool_prefix"; then
3603   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   if test -n "$CC"; then
3611   ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618     for ac_exec_ext in '' $ac_executable_extensions; do
3619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625   done
3626 IFS=$as_save_IFS
3627
3628 fi
3629 fi
3630 CC=$ac_cv_prog_CC
3631 if test -n "$CC"; then
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3634 else
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 if test -z "$ac_cv_prog_CC"; then
3642   ac_ct_CC=$CC
3643   # Extract the first word of "gcc", so it can be a program name with args.
3644 set dummy gcc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   if test -n "$ac_ct_CC"; then
3651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658     for ac_exec_ext in '' $ac_executable_extensions; do
3659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660     ac_cv_prog_ac_ct_CC="gcc"
3661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665   done
3666 IFS=$as_save_IFS
3667
3668 fi
3669 fi
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673 $as_echo "$ac_ct_CC" >&6; }
3674 else
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679   if test "x$ac_ct_CC" = x; then
3680     CC=""
3681   else
3682     case $cross_compiling:$ac_tool_warned in
3683 yes:)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3687 esac
3688     CC=$ac_ct_CC
3689   fi
3690 else
3691   CC="$ac_cv_prog_CC"
3692 fi
3693
3694 if test -z "$CC"; then
3695           if test -n "$ac_tool_prefix"; then
3696     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3697 set dummy ${ac_tool_prefix}cc; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_CC+:} false; then :
3701   $as_echo_n "(cached) " >&6
3702 else
3703   if test -n "$CC"; then
3704   ac_cv_prog_CC="$CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713     ac_cv_prog_CC="${ac_tool_prefix}cc"
3714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718   done
3719 IFS=$as_save_IFS
3720
3721 fi
3722 fi
3723 CC=$ac_cv_prog_CC
3724 if test -n "$CC"; then
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3726 $as_echo "$CC" >&6; }
3727 else
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 fi
3731
3732
3733   fi
3734 fi
3735 if test -z "$CC"; then
3736   # Extract the first word of "cc", so it can be a program name with args.
3737 set dummy cc; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   if test -n "$CC"; then
3744   ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746   ac_prog_rejected=no
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3755        ac_prog_rejected=yes
3756        continue
3757      fi
3758     ac_cv_prog_CC="cc"
3759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760     break 2
3761   fi
3762 done
3763   done
3764 IFS=$as_save_IFS
3765
3766 if test $ac_prog_rejected = yes; then
3767   # We found a bogon in the path, so make sure we never use it.
3768   set dummy $ac_cv_prog_CC
3769   shift
3770   if test $# != 0; then
3771     # We chose a different compiler from the bogus one.
3772     # However, it has the same basename, so the bogon will be chosen
3773     # first if we set CC to just the basename; use the full file name.
3774     shift
3775     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3776   fi
3777 fi
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789
3790 fi
3791 if test -z "$CC"; then
3792   if test -n "$ac_tool_prefix"; then
3793   for ac_prog in cl.exe
3794   do
3795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CC+:} false; then :
3800   $as_echo_n "(cached) " >&6
3801 else
3802   if test -n "$CC"; then
3803   ac_cv_prog_CC="$CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808   IFS=$as_save_IFS
3809   test -z "$as_dir" && as_dir=.
3810     for ac_exec_ext in '' $ac_executable_extensions; do
3811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814     break 2
3815   fi
3816 done
3817   done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3826 else
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831
3832     test -n "$CC" && break
3833   done
3834 fi
3835 if test -z "$CC"; then
3836   ac_ct_CC=$CC
3837   for ac_prog in cl.exe
3838 do
3839   # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   if test -n "$ac_ct_CC"; then
3847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852   IFS=$as_save_IFS
3853   test -z "$as_dir" && as_dir=.
3854     for ac_exec_ext in '' $ac_executable_extensions; do
3855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856     ac_cv_prog_ac_ct_CC="$ac_prog"
3857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858     break 2
3859   fi
3860 done
3861   done
3862 IFS=$as_save_IFS
3863
3864 fi
3865 fi
3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867 if test -n "$ac_ct_CC"; then
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869 $as_echo "$ac_ct_CC" >&6; }
3870 else
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875
3876   test -n "$ac_ct_CC" && break
3877 done
3878
3879   if test "x$ac_ct_CC" = x; then
3880     CC=""
3881   else
3882     case $cross_compiling:$ac_tool_warned in
3883 yes:)
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3887 esac
3888     CC=$ac_ct_CC
3889   fi
3890 fi
3891
3892 fi
3893
3894
3895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "no acceptable C compiler found in \$PATH
3898 See \`config.log' for more details" "$LINENO" 5; }
3899
3900 # Provide some information about the compiler.
3901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3902 set X $ac_compile
3903 ac_compiler=$2
3904 for ac_option in --version -v -V -qversion; do
3905   { { ac_try="$ac_compiler $ac_option >&5"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3913   ac_status=$?
3914   if test -s conftest.err; then
3915     sed '10a\
3916 ... rest of stderr output deleted ...
3917          10q' conftest.err >conftest.er1
3918     cat conftest.er1 >&5
3919   fi
3920   rm -f conftest.er1 conftest.err
3921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922   test $ac_status = 0; }
3923 done
3924
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 ac_clean_files_save=$ac_clean_files
3937 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3938 # Try to create an executable without -o first, disregard a.out.
3939 # It will help us diagnose broken compilers, and finding out an intuition
3940 # of exeext.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3942 $as_echo_n "checking whether the C compiler works... " >&6; }
3943 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3944
3945 # The possible output files:
3946 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3947
3948 ac_rmfiles=
3949 for ac_file in $ac_files
3950 do
3951   case $ac_file in
3952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3954   esac
3955 done
3956 rm -f $ac_rmfiles
3957
3958 if { { ac_try="$ac_link_default"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965   (eval "$ac_link_default") 2>&5
3966   ac_status=$?
3967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968   test $ac_status = 0; }; then :
3969   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3970 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3971 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3972 # so that the user can short-circuit this test for compilers unknown to
3973 # Autoconf.
3974 for ac_file in $ac_files ''
3975 do
3976   test -f "$ac_file" || continue
3977   case $ac_file in
3978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3979         ;;
3980     [ab].out )
3981         # We found the default executable, but exeext='' is most
3982         # certainly right.
3983         break;;
3984     *.* )
3985         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3986         then :; else
3987            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988         fi
3989         # We set ac_cv_exeext here because the later test for it is not
3990         # safe: cross compilers may not add the suffix if given an `-o'
3991         # argument, so we may need to know it at that point already.
3992         # Even if this section looks crufty: it has the advantage of
3993         # actually working.
3994         break;;
3995     * )
3996         break;;
3997   esac
3998 done
3999 test "$ac_cv_exeext" = no && ac_cv_exeext=
4000
4001 else
4002   ac_file=''
4003 fi
4004 if test -z "$ac_file"; then :
4005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error 77 "C compiler cannot create executables
4013 See \`config.log' for more details" "$LINENO" 5; }
4014 else
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4019 $as_echo_n "checking for C compiler default output file name... " >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4021 $as_echo "$ac_file" >&6; }
4022 ac_exeext=$ac_cv_exeext
4023
4024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4025 ac_clean_files=$ac_clean_files_save
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4027 $as_echo_n "checking for suffix of executables... " >&6; }
4028 if { { ac_try="$ac_link"
4029 case "(($ac_try" in
4030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031   *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035   (eval "$ac_link") 2>&5
4036   ac_status=$?
4037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038   test $ac_status = 0; }; then :
4039   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4040 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4041 # work properly (i.e., refer to `conftest.exe'), while it won't with
4042 # `rm'.
4043 for ac_file in conftest.exe conftest conftest.*; do
4044   test -f "$ac_file" || continue
4045   case $ac_file in
4046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4048           break;;
4049     * ) break;;
4050   esac
4051 done
4052 else
4053   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4056 See \`config.log' for more details" "$LINENO" 5; }
4057 fi
4058 rm -f conftest conftest$ac_cv_exeext
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4060 $as_echo "$ac_cv_exeext" >&6; }
4061
4062 rm -f conftest.$ac_ext
4063 EXEEXT=$ac_cv_exeext
4064 ac_exeext=$EXEEXT
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067 #include <stdio.h>
4068 int
4069 main ()
4070 {
4071 FILE *f = fopen ("conftest.out", "w");
4072  return ferror (f) || fclose (f) != 0;
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 ac_clean_files="$ac_clean_files conftest.out"
4079 # Check that the compiler produces executables we can run.  If not, either
4080 # the compiler is broken, or we cross compile.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4082 $as_echo_n "checking whether we are cross compiling... " >&6; }
4083 if test "$cross_compiling" != yes; then
4084   { { ac_try="$ac_link"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091   (eval "$ac_link") 2>&5
4092   ac_status=$?
4093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094   test $ac_status = 0; }
4095   if { ac_try='./conftest$ac_cv_exeext'
4096   { { case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102   (eval "$ac_try") 2>&5
4103   ac_status=$?
4104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105   test $ac_status = 0; }; }; then
4106     cross_compiling=no
4107   else
4108     if test "$cross_compiling" = maybe; then
4109         cross_compiling=yes
4110     else
4111         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot run C compiled programs.
4114 If you meant to cross compile, use \`--host'.
4115 See \`config.log' for more details" "$LINENO" 5; }
4116     fi
4117   fi
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4120 $as_echo "$cross_compiling" >&6; }
4121
4122 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4123 ac_clean_files=$ac_clean_files_save
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4125 $as_echo_n "checking for suffix of object files... " >&6; }
4126 if ${ac_cv_objext+:} false; then :
4127   $as_echo_n "(cached) " >&6
4128 else
4129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h.  */
4131
4132 int
4133 main ()
4134 {
4135
4136   ;
4137   return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.o conftest.obj
4141 if { { ac_try="$ac_compile"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148   (eval "$ac_compile") 2>&5
4149   ac_status=$?
4150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151   test $ac_status = 0; }; then :
4152   for ac_file in conftest.o conftest.obj conftest.*; do
4153   test -f "$ac_file" || continue;
4154   case $ac_file in
4155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4156     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4157        break;;
4158   esac
4159 done
4160 else
4161   $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $? "cannot compute suffix of object files: cannot compile
4167 See \`config.log' for more details" "$LINENO" 5; }
4168 fi
4169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4172 $as_echo "$ac_cv_objext" >&6; }
4173 OBJEXT=$ac_cv_objext
4174 ac_objext=$OBJEXT
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4176 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4177 if ${ac_cv_c_compiler_gnu+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h.  */
4182
4183 int
4184 main ()
4185 {
4186 #ifndef __GNUC__
4187        choke me
4188 #endif
4189
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195   ac_compiler_gnu=yes
4196 else
4197   ac_compiler_gnu=no
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4201
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4204 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4205 if test $ac_compiler_gnu = yes; then
4206   GCC=yes
4207 else
4208   GCC=
4209 fi
4210 ac_test_CFLAGS=${CFLAGS+set}
4211 ac_save_CFLAGS=$CFLAGS
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4213 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4214 if ${ac_cv_prog_cc_g+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   ac_save_c_werror_flag=$ac_c_werror_flag
4218    ac_c_werror_flag=yes
4219    ac_cv_prog_cc_g=no
4220    CFLAGS="-g"
4221    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233   ac_cv_prog_cc_g=yes
4234 else
4235   CFLAGS=""
4236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248
4249 else
4250   ac_c_werror_flag=$ac_save_c_werror_flag
4251          CFLAGS="-g"
4252          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h.  */
4254
4255 int
4256 main ()
4257 {
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264   ac_cv_prog_cc_g=yes
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271    ac_c_werror_flag=$ac_save_c_werror_flag
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4274 $as_echo "$ac_cv_prog_cc_g" >&6; }
4275 if test "$ac_test_CFLAGS" = set; then
4276   CFLAGS=$ac_save_CFLAGS
4277 elif test $ac_cv_prog_cc_g = yes; then
4278   if test "$GCC" = yes; then
4279     CFLAGS="-g -O2"
4280   else
4281     CFLAGS="-g"
4282   fi
4283 else
4284   if test "$GCC" = yes; then
4285     CFLAGS="-O2"
4286   else
4287     CFLAGS=
4288   fi
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4291 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4292 if ${ac_cv_prog_cc_c89+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   ac_cv_prog_cc_c89=no
4296 ac_save_CC=$CC
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299 #include <stdarg.h>
4300 #include <stdio.h>
4301 #include <sys/types.h>
4302 #include <sys/stat.h>
4303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4304 struct buf { int x; };
4305 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4306 static char *e (p, i)
4307      char **p;
4308      int i;
4309 {
4310   return p[i];
4311 }
4312 static char *f (char * (*g) (char **, int), char **p, ...)
4313 {
4314   char *s;
4315   va_list v;
4316   va_start (v,p);
4317   s = g (p, va_arg (v,int));
4318   va_end (v);
4319   return s;
4320 }
4321
4322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4323    function prototypes and stuff, but not '\xHH' hex character constants.
4324    These don't provoke an error unfortunately, instead are silently treated
4325    as 'x'.  The following induces an error, until -std is added to get
4326    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4327    array size at least.  It's necessary to write '\x00'==0 to get something
4328    that's true only with -std.  */
4329 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4330
4331 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4332    inside strings and character constants.  */
4333 #define FOO(x) 'x'
4334 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4335
4336 int test (int i, double x);
4337 struct s1 {int (*f) (int a);};
4338 struct s2 {int (*f) (double a);};
4339 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4340 int argc;
4341 char **argv;
4342 int
4343 main ()
4344 {
4345 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4351         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4352 do
4353   CC="$ac_save_CC $ac_arg"
4354   if ac_fn_c_try_compile "$LINENO"; then :
4355   ac_cv_prog_cc_c89=$ac_arg
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext
4358   test "x$ac_cv_prog_cc_c89" != "xno" && break
4359 done
4360 rm -f conftest.$ac_ext
4361 CC=$ac_save_CC
4362
4363 fi
4364 # AC_CACHE_VAL
4365 case "x$ac_cv_prog_cc_c89" in
4366   x)
4367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4368 $as_echo "none needed" >&6; } ;;
4369   xno)
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4371 $as_echo "unsupported" >&6; } ;;
4372   *)
4373     CC="$CC $ac_cv_prog_cc_c89"
4374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4375 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4376 esac
4377 if test "x$ac_cv_prog_cc_c89" != xno; then :
4378
4379 fi
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 DEPDIR="${am__leading_dot}deps"
4387
4388 ac_config_commands="$ac_config_commands depfiles"
4389
4390
4391 am_make=${MAKE-make}
4392 cat > confinc << 'END'
4393 am__doit:
4394         @echo this is the am__doit target
4395 .PHONY: am__doit
4396 END
4397 # If we don't find an include directive, just comment out the code.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4399 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4400 am__include="#"
4401 am__quote=
4402 _am_result=none
4403 # First try GNU make style include.
4404 echo "include confinc" > confmf
4405 # Ignore all kinds of additional output from `make'.
4406 case `$am_make -s -f confmf 2> /dev/null` in #(
4407 *the\ am__doit\ target*)
4408   am__include=include
4409   am__quote=
4410   _am_result=GNU
4411   ;;
4412 esac
4413 # Now try BSD make style include.
4414 if test "$am__include" = "#"; then
4415    echo '.include "confinc"' > confmf
4416    case `$am_make -s -f confmf 2> /dev/null` in #(
4417    *the\ am__doit\ target*)
4418      am__include=.include
4419      am__quote="\""
4420      _am_result=BSD
4421      ;;
4422    esac
4423 fi
4424
4425
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4427 $as_echo "$_am_result" >&6; }
4428 rm -f confinc confmf
4429
4430 # Check whether --enable-dependency-tracking was given.
4431 if test "${enable_dependency_tracking+set}" = set; then :
4432   enableval=$enable_dependency_tracking;
4433 fi
4434
4435 if test "x$enable_dependency_tracking" != xno; then
4436   am_depcomp="$ac_aux_dir/depcomp"
4437   AMDEPBACKSLASH='\'
4438   am__nodep='_no'
4439 fi
4440  if test "x$enable_dependency_tracking" != xno; then
4441   AMDEP_TRUE=
4442   AMDEP_FALSE='#'
4443 else
4444   AMDEP_TRUE='#'
4445   AMDEP_FALSE=
4446 fi
4447
4448
4449
4450 depcc="$CC"   am_compiler_list=
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 $as_echo_n "checking dependency style of $depcc... " >&6; }
4454 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4455   $as_echo_n "(cached) " >&6
4456 else
4457   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4458   # We make a subdir and do the tests there.  Otherwise we can end up
4459   # making bogus files that we don't know about and never remove.  For
4460   # instance it was reported that on HP-UX the gcc test will end up
4461   # making a dummy file named `D' -- because `-MD' means `put the output
4462   # in D'.
4463   rm -rf conftest.dir
4464   mkdir conftest.dir
4465   # Copy depcomp to subdir because otherwise we won't find it if we're
4466   # using a relative directory.
4467   cp "$am_depcomp" conftest.dir
4468   cd conftest.dir
4469   # We will build objects and dependencies in a subdirectory because
4470   # it helps to detect inapplicable dependency modes.  For instance
4471   # both Tru64's cc and ICC support -MD to output dependencies as a
4472   # side effect of compilation, but ICC will put the dependencies in
4473   # the current directory while Tru64 will put them in the object
4474   # directory.
4475   mkdir sub
4476
4477   am_cv_CC_dependencies_compiler_type=none
4478   if test "$am_compiler_list" = ""; then
4479      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480   fi
4481   am__universal=false
4482   case " $depcc " in #(
4483      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4484      esac
4485
4486   for depmode in $am_compiler_list; do
4487     # Setup a source with many dependencies, because some compilers
4488     # like to wrap large dependency lists on column 80 (with \), and
4489     # we should not choose a depcomp mode which is confused by this.
4490     #
4491     # We need to recreate these files for each test, as the compiler may
4492     # overwrite some of them when testing with obscure command lines.
4493     # This happens at least with the AIX C compiler.
4494     : > sub/conftest.c
4495     for i in 1 2 3 4 5 6; do
4496       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4497       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4498       # Solaris 8's {/usr,}/bin/sh.
4499       touch sub/conftst$i.h
4500     done
4501     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502
4503     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4504     # mode.  It turns out that the SunPro C++ compiler does not properly
4505     # handle `-M -o', and we need to detect this.  Also, some Intel
4506     # versions had trouble with output in subdirs
4507     am__obj=sub/conftest.${OBJEXT-o}
4508     am__minus_obj="-o $am__obj"
4509     case $depmode in
4510     gcc)
4511       # This depmode causes a compiler race in universal mode.
4512       test "$am__universal" = false || continue
4513       ;;
4514     nosideeffect)
4515       # after this tag, mechanisms are not by side-effect, so they'll
4516       # only be used when explicitly requested
4517       if test "x$enable_dependency_tracking" = xyes; then
4518         continue
4519       else
4520         break
4521       fi
4522       ;;
4523     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4524       # This compiler won't grok `-c -o', but also, the minuso test has
4525       # not run yet.  These depmodes are late enough in the game, and
4526       # so weak that their functioning should not be impacted.
4527       am__obj=conftest.${OBJEXT-o}
4528       am__minus_obj=
4529       ;;
4530     none) break ;;
4531     esac
4532     if depmode=$depmode \
4533        source=sub/conftest.c object=$am__obj \
4534        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4535        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4536          >/dev/null 2>conftest.err &&
4537        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4538        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4539        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4540        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4541       # icc doesn't choke on unknown options, it will just issue warnings
4542       # or remarks (even with -Werror).  So we grep stderr for any message
4543       # that says an option was ignored or not supported.
4544       # When given -MP, icc 7.0 and 7.1 complain thusly:
4545       #   icc: Command line warning: ignoring option '-M'; no argument required
4546       # The diagnosis changed in icc 8.0:
4547       #   icc: Command line remark: option '-MP' not supported
4548       if (grep 'ignoring option' conftest.err ||
4549           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4550         am_cv_CC_dependencies_compiler_type=$depmode
4551         break
4552       fi
4553     fi
4554   done
4555
4556   cd ..
4557   rm -rf conftest.dir
4558 else
4559   am_cv_CC_dependencies_compiler_type=none
4560 fi
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4564 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
4567  if
4568   test "x$enable_dependency_tracking" != xno \
4569   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570   am__fastdepCC_TRUE=
4571   am__fastdepCC_FALSE='#'
4572 else
4573   am__fastdepCC_TRUE='#'
4574   am__fastdepCC_FALSE=
4575 fi
4576
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4587   CPP=
4588 fi
4589 if test -z "$CPP"; then
4590   if ${ac_cv_prog_CPP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593       # Double quotes because CPP needs to be expanded
4594     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595     do
4596       ac_preproc_ok=false
4597 for ac_c_preproc_warn_flag in '' yes
4598 do
4599   # Use a header file that comes with gcc, so configuring glibc
4600   # with a fresh cross-compiler works.
4601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602   # <limits.h> exists even on freestanding compilers.
4603   # On the NeXT, cc -E runs the code through the compiler's parser,
4604   # not just through cpp. "Syntax error" is here to catch this case.
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612                      Syntax error
4613 _ACEOF
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4615
4616 else
4617   # Broken: fails on valid input.
4618 continue
4619 fi
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4621
4622   # OK, works on sane cases.  Now check whether nonexistent headers
4623   # can be detected and how.
4624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626 #include <ac_nonexistent.h>
4627 _ACEOF
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629   # Broken: success on invalid input.
4630 continue
4631 else
4632   # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4637
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4642   break
4643 fi
4644
4645     done
4646     ac_cv_prog_CPP=$CPP
4647
4648 fi
4649   CPP=$ac_cv_prog_CPP
4650 else
4651   ac_cv_prog_CPP=$CPP
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4657 do
4658   # Use a header file that comes with gcc, so configuring glibc
4659   # with a fresh cross-compiler works.
4660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661   # <limits.h> exists even on freestanding compilers.
4662   # On the NeXT, cc -E runs the code through the compiler's parser,
4663   # not just through cpp. "Syntax error" is here to catch this case.
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671                      Syntax error
4672 _ACEOF
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4674
4675 else
4676   # Broken: fails on valid input.
4677 continue
4678 fi
4679 rm -f conftest.err conftest.i conftest.$ac_ext
4680
4681   # OK, works on sane cases.  Now check whether nonexistent headers
4682   # can be detected and how.
4683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h.  */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688   # Broken: success on invalid input.
4689 continue
4690 else
4691   # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4696
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.i conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4701
4702 else
4703   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details" "$LINENO" 5; }
4707 fi
4708
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716  if test "$GCC" = "yes"; then
4717   HAVE_GCC_TRUE=
4718   HAVE_GCC_FALSE='#'
4719 else
4720   HAVE_GCC_TRUE='#'
4721   HAVE_GCC_FALSE=
4722 fi
4723
4724
4725 # Make sure we can run config.sub.
4726 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4727   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4730 $as_echo_n "checking build system type... " >&6; }
4731 if ${ac_cv_build+:} false; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   ac_build_alias=$build_alias
4735 test "x$ac_build_alias" = x &&
4736   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4737 test "x$ac_build_alias" = x &&
4738   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4739 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4740   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4741
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4744 $as_echo "$ac_cv_build" >&6; }
4745 case $ac_cv_build in
4746 *-*-*) ;;
4747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4748 esac
4749 build=$ac_cv_build
4750 ac_save_IFS=$IFS; IFS='-'
4751 set x $ac_cv_build
4752 shift
4753 build_cpu=$1
4754 build_vendor=$2
4755 shift; shift
4756 # Remember, the first character of IFS is used to create $*,
4757 # except with old shells:
4758 build_os=$*
4759 IFS=$ac_save_IFS
4760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4761
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4764 $as_echo_n "checking host system type... " >&6; }
4765 if ${ac_cv_host+:} false; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   if test "x$host_alias" = x; then
4769   ac_cv_host=$ac_cv_build
4770 else
4771   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4772     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4773 fi
4774
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4777 $as_echo "$ac_cv_host" >&6; }
4778 case $ac_cv_host in
4779 *-*-*) ;;
4780 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4781 esac
4782 host=$ac_cv_host
4783 ac_save_IFS=$IFS; IFS='-'
4784 set x $ac_cv_host
4785 shift
4786 host_cpu=$1
4787 host_vendor=$2
4788 shift; shift
4789 # Remember, the first character of IFS is used to create $*,
4790 # except with old shells:
4791 host_os=$*
4792 IFS=$ac_save_IFS
4793 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4794
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4798 $as_echo_n "checking for the BeOS... " >&6; }
4799 case $host in
4800   *-*-beos*)
4801     glib_native_beos="yes"
4802     ;;
4803   *)
4804     glib_native_beos="no"
4805     ;;
4806 esac
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4808 $as_echo "$glib_native_beos" >&6; }
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4812 $as_echo_n "checking for Win32... " >&6; }
4813 LIB_EXE_MACHINE_FLAG=X86
4814 case "$host" in
4815   *-*-mingw*)
4816     glib_native_win32=yes
4817     glib_pid_type='void *'
4818     glib_cv_stack_grows=no
4819     # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4820     # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4821     # (Sorry, I don't know exactly what is the problem, but it is related to
4822     # floating point formatting and decimal point vs. comma.)
4823     # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4824     # rigorous enough to notice, though.
4825     # So preset the autoconf cache variables.
4826     ac_cv_func_vsnprintf_c99=no
4827     ac_cv_func_snprintf_c99=no
4828     case "$host" in
4829     x86_64-*-*)
4830       LIB_EXE_MACHINE_FLAG=X64
4831       ;;
4832     esac
4833     ;;
4834   *)
4835     glib_native_win32=no
4836     glib_pid_type=int
4837     ;;
4838 esac
4839 case $host in
4840   *-*-linux*)
4841     glib_os_linux=yes
4842     ;;
4843 esac
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4846 $as_echo "$glib_native_win32" >&6; }
4847
4848
4849
4850 glib_have_carbon=no
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4852 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4853
4854
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h.  */
4857
4858 #include <Carbon/Carbon.h>
4859 #include <CoreServices/CoreServices.h>
4860
4861 _ACEOF
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4863   glib_have_carbon=yes
4864 fi
4865 rm -f conftest.err conftest.i conftest.$ac_ext
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4868 $as_echo "$glib_have_carbon" >&6; }
4869
4870 glib_have_cocoa=no
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Cocoa support" >&5
4872 $as_echo_n "checking for Mac OS X Cocoa support... " >&6; }
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875
4876 #include <Cocoa/Cocoa.h>
4877 #ifdef GNUSTEP_BASE_VERSION
4878 #error "Detected GNUstep, not Cocoa"
4879 #endif
4880
4881 _ACEOF
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883   glib_have_cocoa=yes
4884 fi
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_cocoa" >&5
4888 $as_echo "$glib_have_cocoa" >&6; }
4889
4890  if test "$glib_native_win32" = "yes"; then
4891   OS_WIN32_TRUE=
4892   OS_WIN32_FALSE='#'
4893 else
4894   OS_WIN32_TRUE='#'
4895   OS_WIN32_FALSE=
4896 fi
4897
4898  if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4899   OS_WIN32_X64_TRUE=
4900   OS_WIN32_X64_FALSE='#'
4901 else
4902   OS_WIN32_X64_TRUE='#'
4903   OS_WIN32_X64_FALSE=
4904 fi
4905
4906  if test "$glib_native_win32" != "yes"; then
4907   OS_UNIX_TRUE=
4908   OS_UNIX_FALSE='#'
4909 else
4910   OS_UNIX_TRUE='#'
4911   OS_UNIX_FALSE=
4912 fi
4913
4914  if test "$glib_os_linux" = "yes"; then
4915   OS_LINUX_TRUE=
4916   OS_LINUX_FALSE='#'
4917 else
4918   OS_LINUX_TRUE='#'
4919   OS_LINUX_FALSE=
4920 fi
4921
4922  if test "$glib_have_carbon" = "yes"; then
4923   OS_CARBON_TRUE=
4924   OS_CARBON_FALSE='#'
4925 else
4926   OS_CARBON_TRUE='#'
4927   OS_CARBON_FALSE=
4928 fi
4929
4930  if test "$glib_have_cocoa" = "yes"; then
4931   OS_COCOA_TRUE=
4932   OS_COCOA_FALSE='#'
4933 else
4934   OS_COCOA_TRUE='#'
4935   OS_COCOA_FALSE=
4936 fi
4937
4938
4939 if test "$glib_native_win32" = "yes"; then
4940   if test -n "$ac_tool_prefix"; then
4941   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}windres; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_WINDRES+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$WINDRES"; then
4949   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 WINDRES=$ac_cv_prog_WINDRES
4969 if test -n "$WINDRES"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4971 $as_echo "$WINDRES" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_WINDRES"; then
4980   ac_ct_WINDRES=$WINDRES
4981   # Extract the first word of "windres", so it can be a program name with args.
4982 set dummy windres; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -n "$ac_ct_WINDRES"; then
4989   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996     for ac_exec_ext in '' $ac_executable_extensions; do
4997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998     ac_cv_prog_ac_ct_WINDRES="windres"
4999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003   done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5009 if test -n "$ac_ct_WINDRES"; then
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5011 $as_echo "$ac_ct_WINDRES" >&6; }
5012 else
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5015 fi
5016
5017   if test "x$ac_ct_WINDRES" = x; then
5018     WINDRES="no"
5019   else
5020     case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024 ac_tool_warned=yes ;;
5025 esac
5026     WINDRES=$ac_ct_WINDRES
5027   fi
5028 else
5029   WINDRES="$ac_cv_prog_WINDRES"
5030 fi
5031
5032   if test "$WINDRES" = no; then
5033     as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
5034   fi
5035   if test -n "$ac_tool_prefix"; then
5036   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5037 set dummy ${ac_tool_prefix}nm; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_NM+:} false; then :
5041   $as_echo_n "(cached) " >&6
5042 else
5043   if test -n "$NM"; then
5044   ac_cv_prog_NM="$NM" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053     ac_cv_prog_NM="${ac_tool_prefix}nm"
5054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058   done
5059 IFS=$as_save_IFS
5060
5061 fi
5062 fi
5063 NM=$ac_cv_prog_NM
5064 if test -n "$NM"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5066 $as_echo "$NM" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071
5072
5073 fi
5074 if test -z "$ac_cv_prog_NM"; then
5075   ac_ct_NM=$NM
5076   # Extract the first word of "nm", so it can be a program name with args.
5077 set dummy nm; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -n "$ac_ct_NM"; then
5084   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093     ac_cv_prog_ac_ct_NM="nm"
5094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098   done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5104 if test -n "$ac_ct_NM"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5106 $as_echo "$ac_ct_NM" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112   if test "x$ac_ct_NM" = x; then
5113     NM="no"
5114   else
5115     case $cross_compiling:$ac_tool_warned in
5116 yes:)
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5120 esac
5121     NM=$ac_ct_NM
5122   fi
5123 else
5124   NM="$ac_cv_prog_NM"
5125 fi
5126
5127   if test "$NM" = no; then
5128     as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
5129   fi
5130   if test -n "$ac_tool_prefix"; then
5131   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_RANLIB+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   if test -n "$RANLIB"; then
5139   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146     for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153   done
5154 IFS=$as_save_IFS
5155
5156 fi
5157 fi
5158 RANLIB=$ac_cv_prog_RANLIB
5159 if test -n "$RANLIB"; then
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5161 $as_echo "$RANLIB" >&6; }
5162 else
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 fi
5166
5167
5168 fi
5169 if test -z "$ac_cv_prog_RANLIB"; then
5170   ac_ct_RANLIB=$RANLIB
5171   # Extract the first word of "ranlib", so it can be a program name with args.
5172 set dummy ranlib; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   if test -n "$ac_ct_RANLIB"; then
5179   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186     for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_prog_ac_ct_RANLIB="ranlib"
5189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193   done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5199 if test -n "$ac_ct_RANLIB"; then
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5201 $as_echo "$ac_ct_RANLIB" >&6; }
5202 else
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207   if test "x$ac_ct_RANLIB" = x; then
5208     RANLIB=":"
5209   else
5210     case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216     RANLIB=$ac_ct_RANLIB
5217   fi
5218 else
5219   RANLIB="$ac_cv_prog_RANLIB"
5220 fi
5221
5222   # Extract the first word of "lib.exe", so it can be a program name with args.
5223 set dummy lib.exe; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_prog_ms_librarian+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   if test -n "$ms_librarian"; then
5230   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237     for ac_exec_ext in '' $ac_executable_extensions; do
5238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239     ac_cv_prog_ms_librarian="yes"
5240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244   done
5245 IFS=$as_save_IFS
5246
5247   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5248 fi
5249 fi
5250 ms_librarian=$ac_cv_prog_ms_librarian
5251 if test -n "$ms_librarian"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5253 $as_echo "$ms_librarian" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 fi
5261  if test x$ms_librarian = xyes; then
5262   MS_LIB_AVAILABLE_TRUE=
5263   MS_LIB_AVAILABLE_FALSE='#'
5264 else
5265   MS_LIB_AVAILABLE_TRUE='#'
5266   MS_LIB_AVAILABLE_FALSE=
5267 fi
5268
5269
5270 if test "$glib_native_win32" != yes; then
5271     # libtool option to control which symbols are exported
5272     # right now, symbols starting with _ are not exported
5273     LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5274 else
5275     # We currently use .def files on Windows
5276     LIBTOOL_EXPORT_OPTIONS=
5277 fi
5278
5279
5280 if test "x$glib_have_carbon" = "xyes"; then
5281
5282 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5283
5284   LDFLAGS="$LDFLAGS -framework Carbon"
5285 fi
5286
5287 if test "x$glib_have_cocoa" = "xyes"; then
5288
5289 $as_echo "#define HAVE_COCOA 1" >>confdefs.h
5290
5291   LDFLAGS="$LDFLAGS -framework Foundation"
5292 fi
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5295 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5296 if ${ac_cv_path_GREP+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -z "$GREP"; then
5300   ac_path_GREP_found=false
5301   # Loop through the user's path and test for each of PROGNAME-LIST
5302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_prog in grep ggrep; do
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5310       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5311 # Check for GNU ac_path_GREP and select it if it is found.
5312   # Check for GNU $ac_path_GREP
5313 case `"$ac_path_GREP" --version 2>&1` in
5314 *GNU*)
5315   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5316 *)
5317   ac_count=0
5318   $as_echo_n 0123456789 >"conftest.in"
5319   while :
5320   do
5321     cat "conftest.in" "conftest.in" >"conftest.tmp"
5322     mv "conftest.tmp" "conftest.in"
5323     cp "conftest.in" "conftest.nl"
5324     $as_echo 'GREP' >> "conftest.nl"
5325     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5326     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5327     as_fn_arith $ac_count + 1 && ac_count=$as_val
5328     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5329       # Best one so far, save it but keep looking for a better one
5330       ac_cv_path_GREP="$ac_path_GREP"
5331       ac_path_GREP_max=$ac_count
5332     fi
5333     # 10*(2^10) chars as input seems more than enough
5334     test $ac_count -gt 10 && break
5335   done
5336   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5337 esac
5338
5339       $ac_path_GREP_found && break 3
5340     done
5341   done
5342   done
5343 IFS=$as_save_IFS
5344   if test -z "$ac_cv_path_GREP"; then
5345     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5346   fi
5347 else
5348   ac_cv_path_GREP=$GREP
5349 fi
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5353 $as_echo "$ac_cv_path_GREP" >&6; }
5354  GREP="$ac_cv_path_GREP"
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5358 $as_echo_n "checking for egrep... " >&6; }
5359 if ${ac_cv_path_EGREP+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5363    then ac_cv_path_EGREP="$GREP -E"
5364    else
5365      if test -z "$EGREP"; then
5366   ac_path_EGREP_found=false
5367   # Loop through the user's path and test for each of PROGNAME-LIST
5368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_prog in egrep; do
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5376       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5377 # Check for GNU ac_path_EGREP and select it if it is found.
5378   # Check for GNU $ac_path_EGREP
5379 case `"$ac_path_EGREP" --version 2>&1` in
5380 *GNU*)
5381   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5382 *)
5383   ac_count=0
5384   $as_echo_n 0123456789 >"conftest.in"
5385   while :
5386   do
5387     cat "conftest.in" "conftest.in" >"conftest.tmp"
5388     mv "conftest.tmp" "conftest.in"
5389     cp "conftest.in" "conftest.nl"
5390     $as_echo 'EGREP' >> "conftest.nl"
5391     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5392     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5393     as_fn_arith $ac_count + 1 && ac_count=$as_val
5394     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5395       # Best one so far, save it but keep looking for a better one
5396       ac_cv_path_EGREP="$ac_path_EGREP"
5397       ac_path_EGREP_max=$ac_count
5398     fi
5399     # 10*(2^10) chars as input seems more than enough
5400     test $ac_count -gt 10 && break
5401   done
5402   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5403 esac
5404
5405       $ac_path_EGREP_found && break 3
5406     done
5407   done
5408   done
5409 IFS=$as_save_IFS
5410   if test -z "$ac_cv_path_EGREP"; then
5411     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5412   fi
5413 else
5414   ac_cv_path_EGREP=$EGREP
5415 fi
5416
5417    fi
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5420 $as_echo "$ac_cv_path_EGREP" >&6; }
5421  EGREP="$ac_cv_path_EGREP"
5422
5423
5424
5425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5426 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5427 if ${ac_cv_gnu_library_2_1+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h.  */
5432
5433 #include <features.h>
5434 #ifdef __GNU_LIBRARY__
5435  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5436   Lucky GNU user
5437  #endif
5438 #endif
5439
5440 _ACEOF
5441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5442   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5443   ac_cv_gnu_library_2_1=yes
5444 else
5445   ac_cv_gnu_library_2_1=no
5446 fi
5447 rm -f conftest*
5448
5449
5450
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5453 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5454
5455     GLIBC21="$ac_cv_gnu_library_2_1"
5456
5457
5458 if test "x$GLIBC21" = "xyes"; then
5459
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462 fi
5463
5464 # Check whether --enable-debug was given.
5465 if test "${enable_debug+set}" = set; then :
5466   enableval=$enable_debug;
5467 else
5468   enable_debug=minimum
5469 fi
5470
5471
5472 # Check whether --enable-gc_friendly was given.
5473 if test "${enable_gc_friendly+set}" = set; then :
5474   enableval=$enable_gc_friendly;
5475 else
5476   enable_gc_friendly=no
5477 fi
5478
5479 # Check whether --enable-mem_pools was given.
5480 if test "${enable_mem_pools+set}" = set; then :
5481   enableval=$enable_mem_pools;
5482 else
5483   disable_mem_pools=no
5484 fi
5485
5486 # Check whether --enable-rebuilds was given.
5487 if test "${enable_rebuilds+set}" = set; then :
5488   enableval=$enable_rebuilds;
5489 else
5490   enable_rebuilds=yes
5491 fi
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5495 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5496 if test "x$enable_gc_friendly" = "xyes"; then
5497
5498 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5499
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501 $as_echo "yes" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5508 $as_echo_n "checking whether to disable memory pools... " >&6; }
5509 if test "x$disable_mem_pools" = "xno"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 else
5513
5514 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5515
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5518 fi
5519
5520
5521 # Check whether --with-runtime-libdir was given.
5522 if test "${with_runtime_libdir+set}" = set; then :
5523   withval=$with_runtime_libdir;
5524 else
5525   with_runtime_libdir=""
5526 fi
5527
5528 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5529 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5530
5531
5532  if test "x$with_runtime_libdir" != "x"; then
5533   HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5534   HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5535 else
5536   HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5537   HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5538 fi
5539
5540
5541 if test -n "$ac_tool_prefix"; then
5542   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5543   do
5544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_CXX+:} false; then :
5549   $as_echo_n "(cached) " >&6
5550 else
5551   if test -n "$CXX"; then
5552   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559     for ac_exec_ext in '' $ac_executable_extensions; do
5560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566   done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 CXX=$ac_cv_prog_CXX
5572 if test -n "$CXX"; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5574 $as_echo "$CXX" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581     test -n "$CXX" && break
5582   done
5583 fi
5584 if test -z "$CXX"; then
5585   ac_ct_CXX=$CXX
5586   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5587 do
5588   # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   if test -n "$ac_ct_CXX"; then
5596   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603     for ac_exec_ext in '' $ac_executable_extensions; do
5604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605     ac_cv_prog_ac_ct_CXX="$ac_prog"
5606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610   done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5616 if test -n "$ac_ct_CXX"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5618 $as_echo "$ac_ct_CXX" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625   test -n "$ac_ct_CXX" && break
5626 done
5627
5628   if test "x$ac_ct_CXX" = x; then
5629     CXX="gcc"
5630   else
5631     case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637     CXX=$ac_ct_CXX
5638   fi
5639 fi
5640
5641
5642 ac_ext=cpp
5643 ac_cpp='$CXXCPP $CPPFLAGS'
5644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5647
5648 ac_ext=cpp
5649 ac_cpp='$CXXCPP $CPPFLAGS'
5650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653 if test -z "$CXX"; then
5654   if test -n "$CCC"; then
5655     CXX=$CCC
5656   else
5657     if test -n "$ac_tool_prefix"; then
5658   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5659   do
5660     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_CXX+:} false; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if test -n "$CXX"; then
5668   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682   done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 CXX=$ac_cv_prog_CXX
5688 if test -n "$CXX"; then
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5690 $as_echo "$CXX" >&6; }
5691 else
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697     test -n "$CXX" && break
5698   done
5699 fi
5700 if test -z "$CXX"; then
5701   ac_ct_CXX=$CXX
5702   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5703 do
5704   # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -n "$ac_ct_CXX"; then
5712   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721     ac_cv_prog_ac_ct_CXX="$ac_prog"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732 if test -n "$ac_ct_CXX"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5734 $as_echo "$ac_ct_CXX" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741   test -n "$ac_ct_CXX" && break
5742 done
5743
5744   if test "x$ac_ct_CXX" = x; then
5745     CXX="g++"
5746   else
5747     case $cross_compiling:$ac_tool_warned in
5748 yes:)
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751 ac_tool_warned=yes ;;
5752 esac
5753     CXX=$ac_ct_CXX
5754   fi
5755 fi
5756
5757   fi
5758 fi
5759 # Provide some information about the compiler.
5760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5761 set X $ac_compile
5762 ac_compiler=$2
5763 for ac_option in --version -v -V -qversion; do
5764   { { ac_try="$ac_compiler $ac_option >&5"
5765 case "(($ac_try" in
5766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767   *) ac_try_echo=$ac_try;;
5768 esac
5769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5770 $as_echo "$ac_try_echo"; } >&5
5771   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5772   ac_status=$?
5773   if test -s conftest.err; then
5774     sed '10a\
5775 ... rest of stderr output deleted ...
5776          10q' conftest.err >conftest.er1
5777     cat conftest.er1 >&5
5778   fi
5779   rm -f conftest.er1 conftest.err
5780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781   test $ac_status = 0; }
5782 done
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5785 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5786 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795 #ifndef __GNUC__
5796        choke me
5797 #endif
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 if ac_fn_cxx_try_compile "$LINENO"; then :
5804   ac_compiler_gnu=yes
5805 else
5806   ac_compiler_gnu=no
5807 fi
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5810
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5813 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5814 if test $ac_compiler_gnu = yes; then
5815   GXX=yes
5816 else
5817   GXX=
5818 fi
5819 ac_test_CXXFLAGS=${CXXFLAGS+set}
5820 ac_save_CXXFLAGS=$CXXFLAGS
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5822 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5823 if ${ac_cv_prog_cxx_g+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5827    ac_cxx_werror_flag=yes
5828    ac_cv_prog_cxx_g=no
5829    CXXFLAGS="-g"
5830    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h.  */
5832
5833 int
5834 main ()
5835 {
5836
5837   ;
5838   return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_cxx_try_compile "$LINENO"; then :
5842   ac_cv_prog_cxx_g=yes
5843 else
5844   CXXFLAGS=""
5845       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847
5848 int
5849 main ()
5850 {
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_cxx_try_compile "$LINENO"; then :
5857
5858 else
5859   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5860          CXXFLAGS="-g"
5861          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h.  */
5863
5864 int
5865 main ()
5866 {
5867
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 if ac_fn_cxx_try_compile "$LINENO"; then :
5873   ac_cv_prog_cxx_g=yes
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5883 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5884 if test "$ac_test_CXXFLAGS" = set; then
5885   CXXFLAGS=$ac_save_CXXFLAGS
5886 elif test $ac_cv_prog_cxx_g = yes; then
5887   if test "$GXX" = yes; then
5888     CXXFLAGS="-g -O2"
5889   else
5890     CXXFLAGS="-g"
5891   fi
5892 else
5893   if test "$GXX" = yes; then
5894     CXXFLAGS="-O2"
5895   else
5896     CXXFLAGS=
5897   fi
5898 fi
5899 ac_ext=cpp
5900 ac_cpp='$CXXCPP $CPPFLAGS'
5901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5904
5905 depcc="$CXX"  am_compiler_list=
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5908 $as_echo_n "checking dependency style of $depcc... " >&6; }
5909 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5913   # We make a subdir and do the tests there.  Otherwise we can end up
5914   # making bogus files that we don't know about and never remove.  For
5915   # instance it was reported that on HP-UX the gcc test will end up
5916   # making a dummy file named `D' -- because `-MD' means `put the output
5917   # in D'.
5918   rm -rf conftest.dir
5919   mkdir conftest.dir
5920   # Copy depcomp to subdir because otherwise we won't find it if we're
5921   # using a relative directory.
5922   cp "$am_depcomp" conftest.dir
5923   cd conftest.dir
5924   # We will build objects and dependencies in a subdirectory because
5925   # it helps to detect inapplicable dependency modes.  For instance
5926   # both Tru64's cc and ICC support -MD to output dependencies as a
5927   # side effect of compilation, but ICC will put the dependencies in
5928   # the current directory while Tru64 will put them in the object
5929   # directory.
5930   mkdir sub
5931
5932   am_cv_CXX_dependencies_compiler_type=none
5933   if test "$am_compiler_list" = ""; then
5934      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5935   fi
5936   am__universal=false
5937   case " $depcc " in #(
5938      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5939      esac
5940
5941   for depmode in $am_compiler_list; do
5942     # Setup a source with many dependencies, because some compilers
5943     # like to wrap large dependency lists on column 80 (with \), and
5944     # we should not choose a depcomp mode which is confused by this.
5945     #
5946     # We need to recreate these files for each test, as the compiler may
5947     # overwrite some of them when testing with obscure command lines.
5948     # This happens at least with the AIX C compiler.
5949     : > sub/conftest.c
5950     for i in 1 2 3 4 5 6; do
5951       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5952       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5953       # Solaris 8's {/usr,}/bin/sh.
5954       touch sub/conftst$i.h
5955     done
5956     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5957
5958     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5959     # mode.  It turns out that the SunPro C++ compiler does not properly
5960     # handle `-M -o', and we need to detect this.  Also, some Intel
5961     # versions had trouble with output in subdirs
5962     am__obj=sub/conftest.${OBJEXT-o}
5963     am__minus_obj="-o $am__obj"
5964     case $depmode in
5965     gcc)
5966       # This depmode causes a compiler race in universal mode.
5967       test "$am__universal" = false || continue
5968       ;;
5969     nosideeffect)
5970       # after this tag, mechanisms are not by side-effect, so they'll
5971       # only be used when explicitly requested
5972       if test "x$enable_dependency_tracking" = xyes; then
5973         continue
5974       else
5975         break
5976       fi
5977       ;;
5978     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5979       # This compiler won't grok `-c -o', but also, the minuso test has
5980       # not run yet.  These depmodes are late enough in the game, and
5981       # so weak that their functioning should not be impacted.
5982       am__obj=conftest.${OBJEXT-o}
5983       am__minus_obj=
5984       ;;
5985     none) break ;;
5986     esac
5987     if depmode=$depmode \
5988        source=sub/conftest.c object=$am__obj \
5989        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5990        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5991          >/dev/null 2>conftest.err &&
5992        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5993        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5994        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5995        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5996       # icc doesn't choke on unknown options, it will just issue warnings
5997       # or remarks (even with -Werror).  So we grep stderr for any message
5998       # that says an option was ignored or not supported.
5999       # When given -MP, icc 7.0 and 7.1 complain thusly:
6000       #   icc: Command line warning: ignoring option '-M'; no argument required
6001       # The diagnosis changed in icc 8.0:
6002       #   icc: Command line remark: option '-MP' not supported
6003       if (grep 'ignoring option' conftest.err ||
6004           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6005         am_cv_CXX_dependencies_compiler_type=$depmode
6006         break
6007       fi
6008     fi
6009   done
6010
6011   cd ..
6012   rm -rf conftest.dir
6013 else
6014   am_cv_CXX_dependencies_compiler_type=none
6015 fi
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6019 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6020 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6021
6022  if
6023   test "x$enable_dependency_tracking" != xno \
6024   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6025   am__fastdepCXX_TRUE=
6026   am__fastdepCXX_FALSE='#'
6027 else
6028   am__fastdepCXX_TRUE='#'
6029   am__fastdepCXX_FALSE=
6030 fi
6031
6032
6033
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h.  */
6036
6037 int
6038 main ()
6039 {
6040 class a { int b; } c;
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_cxx_try_compile "$LINENO"; then :
6046
6047 else
6048   CXX=
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051  if test "$CXX" != ""; then
6052   HAVE_CXX_TRUE=
6053   HAVE_CXX_FALSE='#'
6054 else
6055   HAVE_CXX_TRUE='#'
6056   HAVE_CXX_FALSE=
6057 fi
6058
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 if test -n "$ac_tool_prefix"; then
6072   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_CC+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$CC"; then
6080   ac_cv_prog_CC="$CC" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094   done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 CC=$ac_cv_prog_CC
6100 if test -n "$CC"; then
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6102 $as_echo "$CC" >&6; }
6103 else
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 fi
6110 if test -z "$ac_cv_prog_CC"; then
6111   ac_ct_CC=$CC
6112   # Extract the first word of "gcc", so it can be a program name with args.
6113 set dummy gcc; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   if test -n "$ac_ct_CC"; then
6120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127     for ac_exec_ext in '' $ac_executable_extensions; do
6128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129     ac_cv_prog_ac_ct_CC="gcc"
6130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134   done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6140 if test -n "$ac_ct_CC"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6142 $as_echo "$ac_ct_CC" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148   if test "x$ac_ct_CC" = x; then
6149     CC=""
6150   else
6151     case $cross_compiling:$ac_tool_warned in
6152 yes:)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155 ac_tool_warned=yes ;;
6156 esac
6157     CC=$ac_ct_CC
6158   fi
6159 else
6160   CC="$ac_cv_prog_CC"
6161 fi
6162
6163 if test -z "$CC"; then
6164           if test -n "$ac_tool_prefix"; then
6165     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6166 set dummy ${ac_tool_prefix}cc; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_CC+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   if test -n "$CC"; then
6173   ac_cv_prog_CC="$CC" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_CC="${ac_tool_prefix}cc"
6183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187   done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 CC=$ac_cv_prog_CC
6193 if test -n "$CC"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6195 $as_echo "$CC" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201
6202   fi
6203 fi
6204 if test -z "$CC"; then
6205   # Extract the first word of "cc", so it can be a program name with args.
6206 set dummy cc; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_CC+:} false; then :
6210   $as_echo_n "(cached) " >&6
6211 else
6212   if test -n "$CC"; then
6213   ac_cv_prog_CC="$CC" # Let the user override the test.
6214 else
6215   ac_prog_rejected=no
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6224        ac_prog_rejected=yes
6225        continue
6226      fi
6227     ac_cv_prog_CC="cc"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234
6235 if test $ac_prog_rejected = yes; then
6236   # We found a bogon in the path, so make sure we never use it.
6237   set dummy $ac_cv_prog_CC
6238   shift
6239   if test $# != 0; then
6240     # We chose a different compiler from the bogus one.
6241     # However, it has the same basename, so the bogon will be chosen
6242     # first if we set CC to just the basename; use the full file name.
6243     shift
6244     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6245   fi
6246 fi
6247 fi
6248 fi
6249 CC=$ac_cv_prog_CC
6250 if test -n "$CC"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6252 $as_echo "$CC" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$CC"; then
6261   if test -n "$ac_tool_prefix"; then
6262   for ac_prog in cl.exe
6263   do
6264     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_CC+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -n "$CC"; then
6272   ac_cv_prog_CC="$CC" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286   done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 CC=$ac_cv_prog_CC
6292 if test -n "$CC"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6294 $as_echo "$CC" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300
6301     test -n "$CC" && break
6302   done
6303 fi
6304 if test -z "$CC"; then
6305   ac_ct_CC=$CC
6306   for ac_prog in cl.exe
6307 do
6308   # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$ac_ct_CC"; then
6316   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_prog_ac_ct_CC="$ac_prog"
6326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330   done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6336 if test -n "$ac_ct_CC"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6338 $as_echo "$ac_ct_CC" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344
6345   test -n "$ac_ct_CC" && break
6346 done
6347
6348   if test "x$ac_ct_CC" = x; then
6349     CC=""
6350   else
6351     case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357     CC=$ac_ct_CC
6358   fi
6359 fi
6360
6361 fi
6362
6363
6364 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6366 as_fn_error $? "no acceptable C compiler found in \$PATH
6367 See \`config.log' for more details" "$LINENO" 5; }
6368
6369 # Provide some information about the compiler.
6370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6371 set X $ac_compile
6372 ac_compiler=$2
6373 for ac_option in --version -v -V -qversion; do
6374   { { ac_try="$ac_compiler $ac_option >&5"
6375 case "(($ac_try" in
6376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377   *) ac_try_echo=$ac_try;;
6378 esac
6379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6380 $as_echo "$ac_try_echo"; } >&5
6381   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6382   ac_status=$?
6383   if test -s conftest.err; then
6384     sed '10a\
6385 ... rest of stderr output deleted ...
6386          10q' conftest.err >conftest.er1
6387     cat conftest.er1 >&5
6388   fi
6389   rm -f conftest.er1 conftest.err
6390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391   test $ac_status = 0; }
6392 done
6393
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6395 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6396 if ${ac_cv_c_compiler_gnu+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401
6402 int
6403 main ()
6404 {
6405 #ifndef __GNUC__
6406        choke me
6407 #endif
6408
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414   ac_compiler_gnu=yes
6415 else
6416   ac_compiler_gnu=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6420
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6423 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6424 if test $ac_compiler_gnu = yes; then
6425   GCC=yes
6426 else
6427   GCC=
6428 fi
6429 ac_test_CFLAGS=${CFLAGS+set}
6430 ac_save_CFLAGS=$CFLAGS
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6432 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6433 if ${ac_cv_prog_cc_g+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   ac_save_c_werror_flag=$ac_c_werror_flag
6437    ac_c_werror_flag=yes
6438    ac_cv_prog_cc_g=no
6439    CFLAGS="-g"
6440    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h.  */
6442
6443 int
6444 main ()
6445 {
6446
6447   ;
6448   return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452   ac_cv_prog_cc_g=yes
6453 else
6454   CFLAGS=""
6455       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h.  */
6457
6458 int
6459 main ()
6460 {
6461
6462   ;
6463   return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467
6468 else
6469   ac_c_werror_flag=$ac_save_c_werror_flag
6470          CFLAGS="-g"
6471          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h.  */
6473
6474 int
6475 main ()
6476 {
6477
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483   ac_cv_prog_cc_g=yes
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490    ac_c_werror_flag=$ac_save_c_werror_flag
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6493 $as_echo "$ac_cv_prog_cc_g" >&6; }
6494 if test "$ac_test_CFLAGS" = set; then
6495   CFLAGS=$ac_save_CFLAGS
6496 elif test $ac_cv_prog_cc_g = yes; then
6497   if test "$GCC" = yes; then
6498     CFLAGS="-g -O2"
6499   else
6500     CFLAGS="-g"
6501   fi
6502 else
6503   if test "$GCC" = yes; then
6504     CFLAGS="-O2"
6505   else
6506     CFLAGS=
6507   fi
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6510 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6511 if ${ac_cv_prog_cc_c89+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   ac_cv_prog_cc_c89=no
6515 ac_save_CC=$CC
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h.  */
6518 #include <stdarg.h>
6519 #include <stdio.h>
6520 #include <sys/types.h>
6521 #include <sys/stat.h>
6522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6523 struct buf { int x; };
6524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6525 static char *e (p, i)
6526      char **p;
6527      int i;
6528 {
6529   return p[i];
6530 }
6531 static char *f (char * (*g) (char **, int), char **p, ...)
6532 {
6533   char *s;
6534   va_list v;
6535   va_start (v,p);
6536   s = g (p, va_arg (v,int));
6537   va_end (v);
6538   return s;
6539 }
6540
6541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6542    function prototypes and stuff, but not '\xHH' hex character constants.
6543    These don't provoke an error unfortunately, instead are silently treated
6544    as 'x'.  The following induces an error, until -std is added to get
6545    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6546    array size at least.  It's necessary to write '\x00'==0 to get something
6547    that's true only with -std.  */
6548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6549
6550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6551    inside strings and character constants.  */
6552 #define FOO(x) 'x'
6553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6554
6555 int test (int i, double x);
6556 struct s1 {int (*f) (int a);};
6557 struct s2 {int (*f) (double a);};
6558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6559 int argc;
6560 char **argv;
6561 int
6562 main ()
6563 {
6564 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6565   ;
6566   return 0;
6567 }
6568 _ACEOF
6569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6570         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6571 do
6572   CC="$ac_save_CC $ac_arg"
6573   if ac_fn_c_try_compile "$LINENO"; then :
6574   ac_cv_prog_cc_c89=$ac_arg
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext
6577   test "x$ac_cv_prog_cc_c89" != "xno" && break
6578 done
6579 rm -f conftest.$ac_ext
6580 CC=$ac_save_CC
6581
6582 fi
6583 # AC_CACHE_VAL
6584 case "x$ac_cv_prog_cc_c89" in
6585   x)
6586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6587 $as_echo "none needed" >&6; } ;;
6588   xno)
6589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6590 $as_echo "unsupported" >&6; } ;;
6591   *)
6592     CC="$CC $ac_cv_prog_cc_c89"
6593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6595 esac
6596 if test "x$ac_cv_prog_cc_c89" != xno; then :
6597
6598 fi
6599
6600 ac_ext=c
6601 ac_cpp='$CPP $CPPFLAGS'
6602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606 depcc="$CC"   am_compiler_list=
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6609 $as_echo_n "checking dependency style of $depcc... " >&6; }
6610 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6614   # We make a subdir and do the tests there.  Otherwise we can end up
6615   # making bogus files that we don't know about and never remove.  For
6616   # instance it was reported that on HP-UX the gcc test will end up
6617   # making a dummy file named `D' -- because `-MD' means `put the output
6618   # in D'.
6619   rm -rf conftest.dir
6620   mkdir conftest.dir
6621   # Copy depcomp to subdir because otherwise we won't find it if we're
6622   # using a relative directory.
6623   cp "$am_depcomp" conftest.dir
6624   cd conftest.dir
6625   # We will build objects and dependencies in a subdirectory because
6626   # it helps to detect inapplicable dependency modes.  For instance
6627   # both Tru64's cc and ICC support -MD to output dependencies as a
6628   # side effect of compilation, but ICC will put the dependencies in
6629   # the current directory while Tru64 will put them in the object
6630   # directory.
6631   mkdir sub
6632
6633   am_cv_CC_dependencies_compiler_type=none
6634   if test "$am_compiler_list" = ""; then
6635      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6636   fi
6637   am__universal=false
6638   case " $depcc " in #(
6639      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6640      esac
6641
6642   for depmode in $am_compiler_list; do
6643     # Setup a source with many dependencies, because some compilers
6644     # like to wrap large dependency lists on column 80 (with \), and
6645     # we should not choose a depcomp mode which is confused by this.
6646     #
6647     # We need to recreate these files for each test, as the compiler may
6648     # overwrite some of them when testing with obscure command lines.
6649     # This happens at least with the AIX C compiler.
6650     : > sub/conftest.c
6651     for i in 1 2 3 4 5 6; do
6652       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6653       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6654       # Solaris 8's {/usr,}/bin/sh.
6655       touch sub/conftst$i.h
6656     done
6657     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6658
6659     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6660     # mode.  It turns out that the SunPro C++ compiler does not properly
6661     # handle `-M -o', and we need to detect this.  Also, some Intel
6662     # versions had trouble with output in subdirs
6663     am__obj=sub/conftest.${OBJEXT-o}
6664     am__minus_obj="-o $am__obj"
6665     case $depmode in
6666     gcc)
6667       # This depmode causes a compiler race in universal mode.
6668       test "$am__universal" = false || continue
6669       ;;
6670     nosideeffect)
6671       # after this tag, mechanisms are not by side-effect, so they'll
6672       # only be used when explicitly requested
6673       if test "x$enable_dependency_tracking" = xyes; then
6674         continue
6675       else
6676         break
6677       fi
6678       ;;
6679     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6680       # This compiler won't grok `-c -o', but also, the minuso test has
6681       # not run yet.  These depmodes are late enough in the game, and
6682       # so weak that their functioning should not be impacted.
6683       am__obj=conftest.${OBJEXT-o}
6684       am__minus_obj=
6685       ;;
6686     none) break ;;
6687     esac
6688     if depmode=$depmode \
6689        source=sub/conftest.c object=$am__obj \
6690        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6691        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6692          >/dev/null 2>conftest.err &&
6693        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6694        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6695        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6696        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6697       # icc doesn't choke on unknown options, it will just issue warnings
6698       # or remarks (even with -Werror).  So we grep stderr for any message
6699       # that says an option was ignored or not supported.
6700       # When given -MP, icc 7.0 and 7.1 complain thusly:
6701       #   icc: Command line warning: ignoring option '-M'; no argument required
6702       # The diagnosis changed in icc 8.0:
6703       #   icc: Command line remark: option '-MP' not supported
6704       if (grep 'ignoring option' conftest.err ||
6705           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6706         am_cv_CC_dependencies_compiler_type=$depmode
6707         break
6708       fi
6709     fi
6710   done
6711
6712   cd ..
6713   rm -rf conftest.dir
6714 else
6715   am_cv_CC_dependencies_compiler_type=none
6716 fi
6717
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6720 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6721 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6722
6723  if
6724   test "x$enable_dependency_tracking" != xno \
6725   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6726   am__fastdepCC_TRUE=
6727   am__fastdepCC_FALSE='#'
6728 else
6729   am__fastdepCC_TRUE='#'
6730   am__fastdepCC_FALSE=
6731 fi
6732
6733
6734
6735 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6736
6737 if test "x$CC" != xcc; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6739 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6742 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6743 fi
6744 set dummy $CC; ac_cc=`$as_echo "$2" |
6745                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6746 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h.  */
6751
6752 int
6753 main ()
6754 {
6755
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 # Make sure it works both with $CC and with simple cc.
6761 # We do the test twice because some compilers refuse to overwrite an
6762 # existing .o file with -o, though they will create one.
6763 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6764 rm -f conftest2.*
6765 if { { case "(($ac_try" in
6766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767   *) ac_try_echo=$ac_try;;
6768 esac
6769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6770 $as_echo "$ac_try_echo"; } >&5
6771   (eval "$ac_try") 2>&5
6772   ac_status=$?
6773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774   test $ac_status = 0; } &&
6775    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777   *) ac_try_echo=$ac_try;;
6778 esac
6779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6780 $as_echo "$ac_try_echo"; } >&5
6781   (eval "$ac_try") 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; };
6785 then
6786   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6787   if test "x$CC" != xcc; then
6788     # Test first that cc exists at all.
6789     if { ac_try='cc -c conftest.$ac_ext >&5'
6790   { { case "(($ac_try" in
6791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792   *) ac_try_echo=$ac_try;;
6793 esac
6794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6795 $as_echo "$ac_try_echo"; } >&5
6796   (eval "$ac_try") 2>&5
6797   ac_status=$?
6798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799   test $ac_status = 0; }; }; then
6800       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6801       rm -f conftest2.*
6802       if { { case "(($ac_try" in
6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804   *) ac_try_echo=$ac_try;;
6805 esac
6806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6807 $as_echo "$ac_try_echo"; } >&5
6808   (eval "$ac_try") 2>&5
6809   ac_status=$?
6810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6811   test $ac_status = 0; } &&
6812          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6817 $as_echo "$ac_try_echo"; } >&5
6818   (eval "$ac_try") 2>&5
6819   ac_status=$?
6820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821   test $ac_status = 0; };
6822       then
6823         # cc works too.
6824         :
6825       else
6826         # cc exists but doesn't like -o.
6827         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6828       fi
6829     fi
6830   fi
6831 else
6832   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6833 fi
6834 rm -f core conftest*
6835
6836 fi
6837 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6839 $as_echo "yes" >&6; }
6840 else
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843
6844 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6845
6846 fi
6847
6848 # FIXME: we rely on the cache variable name because
6849 # there is no other way.
6850 set dummy $CC
6851 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6852 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6853 if test "$am_t" != yes; then
6854    # Losing compiler, so override with the script.
6855    # FIXME: It is wrong to rewrite CC.
6856    # But if we don't then we get into trouble of one sort or another.
6857    # A longer-term fix would be to have automake use am__CC in this case,
6858    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6859    CC="$am_aux_dir/compile $CC"
6860 fi
6861
6862
6863
6864
6865 # Check whether --enable-largefile was given.
6866 if test "${enable_largefile+set}" = set; then :
6867   enableval=$enable_largefile;
6868 fi
6869
6870 if test "$enable_largefile" != no; then
6871
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6873 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6874 if ${ac_cv_sys_largefile_CC+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   ac_cv_sys_largefile_CC=no
6878      if test "$GCC" != yes; then
6879        ac_save_CC=$CC
6880        while :; do
6881          # IRIX 6.2 and later do not support large files by default,
6882          # so use the C compiler's -n32 option if that helps.
6883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 #include <sys/types.h>
6886  /* Check that off_t can represent 2**63 - 1 correctly.
6887     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6888     since some C++ compilers masquerading as C compilers
6889     incorrectly reject 9223372036854775807.  */
6890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6891   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6892                        && LARGE_OFF_T % 2147483647 == 1)
6893                       ? 1 : -1];
6894 int
6895 main ()
6896 {
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902          if ac_fn_c_try_compile "$LINENO"; then :
6903   break
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext
6906          CC="$CC -n32"
6907          if ac_fn_c_try_compile "$LINENO"; then :
6908   ac_cv_sys_largefile_CC=' -n32'; break
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext
6911          break
6912        done
6913        CC=$ac_save_CC
6914        rm -f conftest.$ac_ext
6915     fi
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6918 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6919   if test "$ac_cv_sys_largefile_CC" != no; then
6920     CC=$CC$ac_cv_sys_largefile_CC
6921   fi
6922
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6924 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6925 if ${ac_cv_sys_file_offset_bits+:} false; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   while :; do
6929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931 #include <sys/types.h>
6932  /* Check that off_t can represent 2**63 - 1 correctly.
6933     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6934     since some C++ compilers masquerading as C compilers
6935     incorrectly reject 9223372036854775807.  */
6936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6937   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6938                        && LARGE_OFF_T % 2147483647 == 1)
6939                       ? 1 : -1];
6940 int
6941 main ()
6942 {
6943
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949   ac_cv_sys_file_offset_bits=no; break
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h.  */
6954 #define _FILE_OFFSET_BITS 64
6955 #include <sys/types.h>
6956  /* Check that off_t can represent 2**63 - 1 correctly.
6957     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6958     since some C++ compilers masquerading as C compilers
6959     incorrectly reject 9223372036854775807.  */
6960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6961   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6962                        && LARGE_OFF_T % 2147483647 == 1)
6963                       ? 1 : -1];
6964 int
6965 main ()
6966 {
6967
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973   ac_cv_sys_file_offset_bits=64; break
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976   ac_cv_sys_file_offset_bits=unknown
6977   break
6978 done
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6981 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6982 case $ac_cv_sys_file_offset_bits in #(
6983   no | unknown) ;;
6984   *)
6985 cat >>confdefs.h <<_ACEOF
6986 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6987 _ACEOF
6988 ;;
6989 esac
6990 rm -rf conftest*
6991   if test $ac_cv_sys_file_offset_bits = unknown; then
6992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6993 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6994 if ${ac_cv_sys_large_files+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   while :; do
6998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 #include <sys/types.h>
7001  /* Check that off_t can represent 2**63 - 1 correctly.
7002     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7003     since some C++ compilers masquerading as C compilers
7004     incorrectly reject 9223372036854775807.  */
7005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7006   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7007                        && LARGE_OFF_T % 2147483647 == 1)
7008                       ? 1 : -1];
7009 int
7010 main ()
7011 {
7012
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018   ac_cv_sys_large_files=no; break
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023 #define _LARGE_FILES 1
7024 #include <sys/types.h>
7025  /* Check that off_t can represent 2**63 - 1 correctly.
7026     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7027     since some C++ compilers masquerading as C compilers
7028     incorrectly reject 9223372036854775807.  */
7029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7030   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7031                        && LARGE_OFF_T % 2147483647 == 1)
7032                       ? 1 : -1];
7033 int
7034 main ()
7035 {
7036
7037   ;
7038   return 0;
7039 }
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042   ac_cv_sys_large_files=1; break
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045   ac_cv_sys_large_files=unknown
7046   break
7047 done
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7050 $as_echo "$ac_cv_sys_large_files" >&6; }
7051 case $ac_cv_sys_large_files in #(
7052   no | unknown) ;;
7053   *)
7054 cat >>confdefs.h <<_ACEOF
7055 #define _LARGE_FILES $ac_cv_sys_large_files
7056 _ACEOF
7057 ;;
7058 esac
7059 rm -rf conftest*
7060   fi
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069
7070 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7071         if test -n "$ac_tool_prefix"; then
7072   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   case $PKG_CONFIG in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089     for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096   done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7103 if test -n "$PKG_CONFIG"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7105 $as_echo "$PKG_CONFIG" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_path_PKG_CONFIG"; then
7114   ac_pt_PKG_CONFIG=$PKG_CONFIG
7115   # Extract the first word of "pkg-config", so it can be a program name with args.
7116 set dummy pkg-config; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   case $ac_pt_PKG_CONFIG in
7123   [\\/]* | ?:[\\/]*)
7124   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7125   ;;
7126   *)
7127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142   ;;
7143 esac
7144 fi
7145 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7146 if test -n "$ac_pt_PKG_CONFIG"; then
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7148 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7149 else
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154   if test "x$ac_pt_PKG_CONFIG" = x; then
7155     PKG_CONFIG=""
7156   else
7157     case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163     PKG_CONFIG=$ac_pt_PKG_CONFIG
7164   fi
7165 else
7166   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7167 fi
7168
7169 fi
7170 if test -n "$PKG_CONFIG"; then
7171         _pkg_min_version=0.16
7172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7173 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7174         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7175                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7176 $as_echo "yes" >&6; }
7177         else
7178                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180                 PKG_CONFIG=""
7181         fi
7182 fi
7183
7184 if test "x$enable_debug" = "xyes"; then
7185   if test x$cflags_set != xset ; then
7186       case " $CFLAGS " in
7187       *[\ \     ]-g[\ \ ]*) ;;
7188       *) CFLAGS="$CFLAGS -g" ;;
7189       esac
7190   fi
7191   GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
7192 else
7193   GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
7194
7195   if test "x$enable_debug" = "xno"; then
7196     GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7197   fi
7198 fi
7199
7200 # Ensure MSVC-compatible struct packing convention is used when
7201 # compiling for Win32 with gcc.
7202 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
7203 # gcc2 uses "-fnative-struct".
7204 if test x"$glib_native_win32" = xyes; then
7205   if test x"$GCC" = xyes; then
7206     msnative_struct=''
7207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
7208 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
7209     if test -z "$ac_cv_prog_CC"; then
7210       our_gcc="$CC"
7211     else
7212       our_gcc="$ac_cv_prog_CC"
7213     fi
7214     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
7215       2.)
7216         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
7217           msnative_struct='-fnative-struct'
7218         fi
7219         ;;
7220       *)
7221         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
7222           msnative_struct='-mms-bitfields'
7223         fi
7224         ;;
7225     esac
7226     if test x"$msnative_struct" = x ; then
7227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
7228 $as_echo "no way" >&6; }
7229       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
7230 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
7231     else
7232       CFLAGS="$CFLAGS $msnative_struct"
7233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
7234 $as_echo "${msnative_struct}" >&6; }
7235     fi
7236   fi
7237 fi
7238 GLIB_EXTRA_CFLAGS="${msnative_struct}"
7239
7240
7241
7242
7243 # define a MAINT-like variable REBUILD which is set if Perl
7244 # and awk are found, so autogenerated sources can be rebuilt
7245 for ac_prog in gawk mawk nawk awk
7246 do
7247   # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_AWK+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$AWK"; then
7255   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_prog_AWK="$ac_prog"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 AWK=$ac_cv_prog_AWK
7275 if test -n "$AWK"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7277 $as_echo "$AWK" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284   test -n "$AWK" && break
7285 done
7286
7287 for ac_prog in perl5 perl
7288 do
7289   # Extract the first word of "$ac_prog", so it can be a program name with args.
7290 set dummy $ac_prog; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_PERL+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$PERL"; then
7297   ac_cv_prog_PERL="$PERL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_PERL="$ac_prog"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 PERL=$ac_cv_prog_PERL
7317 if test -n "$PERL"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7319 $as_echo "$PERL" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326   test -n "$PERL" && break
7327 done
7328
7329 # We would like indent, but don't require it.
7330 # Extract the first word of "indent", so it can be a program name with args.
7331 set dummy indent; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_INDENT+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$INDENT"; then
7338   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_INDENT="indent"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 INDENT=$ac_cv_prog_INDENT
7358 if test -n "$INDENT"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7360 $as_echo "$INDENT" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 REBUILD=\#
7368 if test "x$enable_rebuilds" = "xyes" && \
7369      test -n "$PERL" && \
7370      $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7371      test -n "$AWK" ; then
7372   REBUILD=
7373 fi
7374
7375
7376 # Need full path to Perl for glib-mkenums
7377 #
7378 if test "x$PERL" != x ; then
7379   # Extract the first word of "$PERL", so it can be a program name with args.
7380 set dummy $PERL; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_path_PERL_PATH+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   case $PERL_PATH in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406   ;;
7407 esac
7408 fi
7409 PERL_PATH=$ac_cv_path_PERL_PATH
7410 if test -n "$PERL_PATH"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7412 $as_echo "$PERL_PATH" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418
7419 fi
7420 if test "x$PERL_PATH" = x ; then
7421   PERL_PATH="/usr/bin/env perl"
7422 fi
7423
7424
7425 # Need suitable python path for greport
7426
7427
7428
7429
7430
7431
7432         if test -n "$PYTHON"; then
7433       # If the user set $PYTHON, use it and don't search something else.
7434       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7435 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7436       prog="import sys
7437 # split strings by '.' and convert to numeric.  Append some zeros
7438 # because we need at least 4 digits for the hex conversion.
7439 # map returns an iterator in Python 3.0 and a list in 2.x
7440 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7441 minverhex = 0
7442 # xrange is not present in Python 3.0 and range returns an iterator
7443 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7444 sys.exit(sys.hexversion < minverhex)"
7445   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7446    ($PYTHON -c "$prog") >&5 2>&5
7447    ac_status=$?
7448    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449    (exit $ac_status); }; then :
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }
7452 else
7453   as_fn_error $? "too old" "$LINENO" 5
7454 fi
7455       am_display_PYTHON=$PYTHON
7456     else
7457       # Otherwise, try each interpreter until we find one that satisfies
7458       # VERSION.
7459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7460 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7461 if ${am_cv_pathless_PYTHON+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464
7465         for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7466           test "$am_cv_pathless_PYTHON" = none && break
7467           prog="import sys
7468 # split strings by '.' and convert to numeric.  Append some zeros
7469 # because we need at least 4 digits for the hex conversion.
7470 # map returns an iterator in Python 3.0 and a list in 2.x
7471 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7472 minverhex = 0
7473 # xrange is not present in Python 3.0 and range returns an iterator
7474 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7475 sys.exit(sys.hexversion < minverhex)"
7476   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7477    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7478    ac_status=$?
7479    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480    (exit $ac_status); }; then :
7481   break
7482 fi
7483         done
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7486 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7487       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7488       if test "$am_cv_pathless_PYTHON" = none; then
7489         PYTHON=:
7490       else
7491         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7492 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if ${ac_cv_path_PYTHON+:} false; then :
7496   $as_echo_n "(cached) " >&6
7497 else
7498   case $PYTHON in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518   ;;
7519 esac
7520 fi
7521 PYTHON=$ac_cv_path_PYTHON
7522 if test -n "$PYTHON"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7524 $as_echo "$PYTHON" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531       fi
7532       am_display_PYTHON=$am_cv_pathless_PYTHON
7533     fi
7534
7535
7536   if test "$PYTHON" = :; then
7537       PYTHON="/usr/bin/env python2.5"
7538   else
7539
7540
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7542 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7543 if ${am_cv_python_version+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7549 $as_echo "$am_cv_python_version" >&6; }
7550   PYTHON_VERSION=$am_cv_python_version
7551
7552
7553
7554   PYTHON_PREFIX='${prefix}'
7555
7556   PYTHON_EXEC_PREFIX='${exec_prefix}'
7557
7558
7559
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7561 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7562 if ${am_cv_python_platform+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7568 $as_echo "$am_cv_python_platform" >&6; }
7569   PYTHON_PLATFORM=$am_cv_python_platform
7570
7571
7572
7573
7574             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7575 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7576 if ${am_cv_python_pythondir+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   if test "x$prefix" = xNONE
7580      then
7581        am_py_prefix=$ac_default_prefix
7582      else
7583        am_py_prefix=$prefix
7584      fi
7585      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
7586      case $am_cv_python_pythondir in
7587      $am_py_prefix*)
7588        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7589        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7590        ;;
7591      *)
7592        case $am_py_prefix in
7593          /usr|/System*) ;;
7594          *)
7595           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7596           ;;
7597        esac
7598        ;;
7599      esac
7600
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7603 $as_echo "$am_cv_python_pythondir" >&6; }
7604   pythondir=$am_cv_python_pythondir
7605
7606
7607
7608   pkgpythondir=\${pythondir}/$PACKAGE
7609
7610
7611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7612 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7613 if ${am_cv_python_pyexecdir+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test "x$exec_prefix" = xNONE
7617      then
7618        am_py_exec_prefix=$am_py_prefix
7619      else
7620        am_py_exec_prefix=$exec_prefix
7621      fi
7622      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
7623      case $am_cv_python_pyexecdir in
7624      $am_py_exec_prefix*)
7625        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7626        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7627        ;;
7628      *)
7629        case $am_py_exec_prefix in
7630          /usr|/System*) ;;
7631          *)
7632            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7633            ;;
7634        esac
7635        ;;
7636      esac
7637
7638 fi
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7640 $as_echo "$am_cv_python_pyexecdir" >&6; }
7641   pyexecdir=$am_cv_python_pyexecdir
7642
7643
7644
7645   pkgpyexecdir=\${pyexecdir}/$PACKAGE
7646
7647
7648
7649   fi
7650
7651
7652
7653
7654
7655
7656 if test x"$glib_native_win32" = xyes; then
7657   with_libiconv=native
7658 else
7659
7660 # Check whether --with-libiconv was given.
7661 if test "${with_libiconv+set}" = set; then :
7662   withval=$with_libiconv;
7663 else
7664   with_libiconv=maybe
7665 fi
7666
7667
7668   found_iconv=no
7669   case $with_libiconv in
7670     maybe)
7671       # Check in the C library first
7672       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7673 if test "x$ac_cv_func_iconv_open" = xyes; then :
7674   with_libiconv=no; found_iconv=yes
7675 fi
7676
7677       # Check if we have GNU libiconv
7678       if test $found_iconv = "no"; then
7679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7680 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7681 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-liconv  $LIBS"
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h.  */
7688
7689 /* Override any GCC internal prototype to avoid an error.
7690    Use char because int might match the return type of a GCC
7691    builtin and then its argument prototype would still apply.  */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 char libiconv_open ();
7696 int
7697 main ()
7698 {
7699 return libiconv_open ();
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_link "$LINENO"; then :
7705   ac_cv_lib_iconv_libiconv_open=yes
7706 else
7707   ac_cv_lib_iconv_libiconv_open=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext \
7710     conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7714 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7715 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7716   with_libiconv=gnu; found_iconv=yes
7717 fi
7718
7719       fi
7720       # Check if we have a iconv in -liconv, possibly from vendor
7721       if test $found_iconv = "no"; then
7722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7723 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7724 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-liconv  $LIBS"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h.  */
7731
7732 /* Override any GCC internal prototype to avoid an error.
7733    Use char because int might match the return type of a GCC
7734    builtin and then its argument prototype would still apply.  */
7735 #ifdef __cplusplus
7736 extern "C"
7737 #endif
7738 char iconv_open ();
7739 int
7740 main ()
7741 {
7742 return iconv_open ();
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748   ac_cv_lib_iconv_iconv_open=yes
7749 else
7750   ac_cv_lib_iconv_iconv_open=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext \
7753     conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7757 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7758 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7759   with_libiconv=native; found_iconv=yes
7760 fi
7761
7762       fi
7763       ;;
7764     no)
7765       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7766 if test "x$ac_cv_func_iconv_open" = xyes; then :
7767   with_libiconv=no; found_iconv=yes
7768 fi
7769
7770       ;;
7771     gnu|yes)
7772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7773 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7774 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-liconv  $LIBS"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781
7782 /* Override any GCC internal prototype to avoid an error.
7783    Use char because int might match the return type of a GCC
7784    builtin and then its argument prototype would still apply.  */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 char libiconv_open ();
7789 int
7790 main ()
7791 {
7792 return libiconv_open ();
7793   ;
7794   return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798   ac_cv_lib_iconv_libiconv_open=yes
7799 else
7800   ac_cv_lib_iconv_libiconv_open=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext \
7803     conftest$ac_exeext conftest.$ac_ext
7804 LIBS=$ac_check_lib_save_LIBS
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7807 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7808 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7809   with_libiconv=gnu; found_iconv=yes
7810 fi
7811
7812       ;;
7813     native)
7814       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7815 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7816 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   ac_check_lib_save_LIBS=$LIBS
7820 LIBS="-liconv  $LIBS"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h.  */
7823
7824 /* Override any GCC internal prototype to avoid an error.
7825    Use char because int might match the return type of a GCC
7826    builtin and then its argument prototype would still apply.  */
7827 #ifdef __cplusplus
7828 extern "C"
7829 #endif
7830 char iconv_open ();
7831 int
7832 main ()
7833 {
7834 return iconv_open ();
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_link "$LINENO"; then :
7840   ac_cv_lib_iconv_iconv_open=yes
7841 else
7842   ac_cv_lib_iconv_iconv_open=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext \
7845     conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7847 fi
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7849 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7850 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7851   with_libiconv=native; found_iconv=yes
7852 fi
7853
7854       ;;
7855   esac
7856
7857   if test "x$found_iconv" = "xno" ; then
7858      as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7859   fi
7860 fi
7861
7862 # Check whether --enable-iconv-cache was given.
7863 if test "${enable_iconv_cache+set}" = set; then :
7864   enableval=$enable_iconv_cache;
7865 else
7866   enable_iconv_cache=auto
7867 fi
7868
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7871 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7872 case $enable_iconv_cache in
7873   auto)
7874     if test $ac_cv_gnu_library_2_1 = yes; then
7875       enable_iconv_cache=no
7876     else
7877       enable_iconv_cache=yes
7878     fi
7879   ;;
7880   yes|no)
7881   ;;
7882   *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7883   ;;
7884 esac
7885
7886 if test $enable_iconv_cache = yes; then
7887
7888 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7889
7890 fi
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7893 $as_echo "$enable_iconv_cache" >&6; }
7894
7895
7896
7897 pkg_failed=no
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
7899 $as_echo_n "checking for ZLIB... " >&6; }
7900
7901 if test -n "$ZLIB_CFLAGS"; then
7902     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
7903  elif test -n "$PKG_CONFIG"; then
7904     if test -n "$PKG_CONFIG" && \
7905     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7906   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7907   ac_status=$?
7908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909   test $ac_status = 0; }; then
7910   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
7911 else
7912   pkg_failed=yes
7913 fi
7914  else
7915     pkg_failed=untried
7916 fi
7917 if test -n "$ZLIB_LIBS"; then
7918     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
7919  elif test -n "$PKG_CONFIG"; then
7920     if test -n "$PKG_CONFIG" && \
7921     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7922   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7923   ac_status=$?
7924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7925   test $ac_status = 0; }; then
7926   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
7927 else
7928   pkg_failed=yes
7929 fi
7930  else
7931     pkg_failed=untried
7932 fi
7933
7934
7935
7936 if test $pkg_failed = yes; then
7937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939
7940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7941         _pkg_short_errors_supported=yes
7942 else
7943         _pkg_short_errors_supported=no
7944 fi
7945         if test $_pkg_short_errors_supported = yes; then
7946                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "zlib" 2>&1`
7947         else
7948                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "zlib" 2>&1`
7949         fi
7950         # Put the nasty error message in config.log where it belongs
7951         echo "$ZLIB_PKG_ERRORS" >&5
7952
7953         found_zlib=no
7954 elif test $pkg_failed = untried; then
7955         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957         found_zlib=no
7958 else
7959         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
7960         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
7961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7963         found_zlib=yes
7964 fi
7965 if test "x$found_zlib" = "xno" ; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7967 $as_echo_n "checking for ANSI C header files... " >&6; }
7968 if ${ac_cv_header_stdc+:} false; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h.  */
7973 #include <stdlib.h>
7974 #include <stdarg.h>
7975 #include <string.h>
7976 #include <float.h>
7977
7978 int
7979 main ()
7980 {
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987   ac_cv_header_stdc=yes
7988 else
7989   ac_cv_header_stdc=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992
7993 if test $ac_cv_header_stdc = yes; then
7994   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997 #include <string.h>
7998
7999 _ACEOF
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001   $EGREP "memchr" >/dev/null 2>&1; then :
8002
8003 else
8004   ac_cv_header_stdc=no
8005 fi
8006 rm -f conftest*
8007
8008 fi
8009
8010 if test $ac_cv_header_stdc = yes; then
8011   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014 #include <stdlib.h>
8015
8016 _ACEOF
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018   $EGREP "free" >/dev/null 2>&1; then :
8019
8020 else
8021   ac_cv_header_stdc=no
8022 fi
8023 rm -f conftest*
8024
8025 fi
8026
8027 if test $ac_cv_header_stdc = yes; then
8028   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8029   if test "$cross_compiling" = yes; then :
8030   :
8031 else
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034 #include <ctype.h>
8035 #include <stdlib.h>
8036 #if ((' ' & 0x0FF) == 0x020)
8037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8039 #else
8040 # define ISLOWER(c) \
8041                    (('a' <= (c) && (c) <= 'i') \
8042                      || ('j' <= (c) && (c) <= 'r') \
8043                      || ('s' <= (c) && (c) <= 'z'))
8044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8045 #endif
8046
8047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 int
8049 main ()
8050 {
8051   int i;
8052   for (i = 0; i < 256; i++)
8053     if (XOR (islower (i), ISLOWER (i))
8054         || toupper (i) != TOUPPER (i))
8055       return 2;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_run "$LINENO"; then :
8060
8061 else
8062   ac_cv_header_stdc=no
8063 fi
8064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8065   conftest.$ac_objext conftest.beam conftest.$ac_ext
8066 fi
8067
8068 fi
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8071 $as_echo "$ac_cv_header_stdc" >&6; }
8072 if test $ac_cv_header_stdc = yes; then
8073
8074 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8075
8076 fi
8077
8078 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8079 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8080                   inttypes.h stdint.h unistd.h
8081 do :
8082   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8084 "
8085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8086   cat >>confdefs.h <<_ACEOF
8087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8088 _ACEOF
8089
8090 fi
8091
8092 done
8093
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8096 $as_echo_n "checking for inflate in -lz... " >&6; }
8097 if ${ac_cv_lib_z_inflate+:} false; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lz  $LIBS"
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h.  */
8104
8105 /* Override any GCC internal prototype to avoid an error.
8106    Use char because int might match the return type of a GCC
8107    builtin and then its argument prototype would still apply.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char inflate ();
8112 int
8113 main ()
8114 {
8115 return inflate ();
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121   ac_cv_lib_z_inflate=yes
8122 else
8123   ac_cv_lib_z_inflate=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext \
8126     conftest$ac_exeext conftest.$ac_ext
8127 LIBS=$ac_check_lib_save_LIBS
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8130 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8131 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8132   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8133 if test "x$ac_cv_header_zlib_h" = xyes; then :
8134   found_zlib=yes
8135 fi
8136
8137
8138 fi
8139
8140   if test "x$found_zlib" = "xno" ; then
8141     as_fn_error $? "*** Working zlib library and headers not found ***" "$LINENO" 5
8142   fi
8143   ZLIB_LIBS='-lz'
8144
8145 fi
8146
8147
8148 pkg_failed=no
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
8150 $as_echo_n "checking for LIBFFI... " >&6; }
8151
8152 if test -n "$LIBFFI_CFLAGS"; then
8153     pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
8154  elif test -n "$PKG_CONFIG"; then
8155     if test -n "$PKG_CONFIG" && \
8156     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8157   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8158   ac_status=$?
8159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160   test $ac_status = 0; }; then
8161   pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null`
8162 else
8163   pkg_failed=yes
8164 fi
8165  else
8166     pkg_failed=untried
8167 fi
8168 if test -n "$LIBFFI_LIBS"; then
8169     pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
8170  elif test -n "$PKG_CONFIG"; then
8171     if test -n "$PKG_CONFIG" && \
8172     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8173   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8174   ac_status=$?
8175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8176   test $ac_status = 0; }; then
8177   pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null`
8178 else
8179   pkg_failed=yes
8180 fi
8181  else
8182     pkg_failed=untried
8183 fi
8184
8185
8186
8187 if test $pkg_failed = yes; then
8188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190
8191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8192         _pkg_short_errors_supported=yes
8193 else
8194         _pkg_short_errors_supported=no
8195 fi
8196         if test $_pkg_short_errors_supported = yes; then
8197                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi >= 3.0.0" 2>&1`
8198         else
8199                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi >= 3.0.0" 2>&1`
8200         fi
8201         # Put the nasty error message in config.log where it belongs
8202         echo "$LIBFFI_PKG_ERRORS" >&5
8203
8204         as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met:
8205
8206 $LIBFFI_PKG_ERRORS
8207
8208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8209 installed software in a non-standard prefix.
8210
8211 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8212 and LIBFFI_LIBS to avoid the need to call pkg-config.
8213 See the pkg-config man page for more details." "$LINENO" 5
8214
8215 elif test $pkg_failed = untried; then
8216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8220 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
8221 is in your PATH or set the PKG_CONFIG environment variable to the full
8222 path to pkg-config.
8223
8224 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8225 and LIBFFI_LIBS to avoid the need to call pkg-config.
8226 See the pkg-config man page for more details.
8227
8228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8229 See \`config.log' for more details" "$LINENO" 5; }
8230
8231 else
8232         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
8233         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
8234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8236
8237 fi
8238
8239
8240
8241
8242 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
8243 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
8244
8245
8246    for ac_header in locale.h
8247 do :
8248   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8249 if test "x$ac_cv_header_locale_h" = xyes; then :
8250   cat >>confdefs.h <<_ACEOF
8251 #define HAVE_LOCALE_H 1
8252 _ACEOF
8253
8254 fi
8255
8256 done
8257
8258     if test $ac_cv_header_locale_h = yes; then
8259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8260 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8261 if ${am_cv_val_LC_MESSAGES+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266 #include <locale.h>
8267 int
8268 main ()
8269 {
8270 return LC_MESSAGES
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276   am_cv_val_LC_MESSAGES=yes
8277 else
8278   am_cv_val_LC_MESSAGES=no
8279 fi
8280 rm -f core conftest.err conftest.$ac_objext \
8281     conftest$ac_exeext conftest.$ac_ext
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8284 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8285     if test $am_cv_val_LC_MESSAGES = yes; then
8286
8287 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8288
8289     fi
8290   fi
8291      USE_NLS=yes
8292
8293
8294     gt_cv_have_gettext=no
8295
8296     CATOBJEXT=NONE
8297     XGETTEXT=:
8298     INTLLIBS=
8299
8300     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8301 if test "x$ac_cv_header_libintl_h" = xyes; then :
8302   gt_cv_func_dgettext_libintl="no"
8303       libintl_extra_libs=""
8304
8305       #
8306       # First check in libc
8307       #
8308       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
8309 $as_echo_n "checking for ngettext in libc... " >&6; }
8310 if ${gt_cv_func_ngettext_libc+:} false; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h.  */
8315
8316 #include <libintl.h>
8317
8318 int
8319 main ()
8320 {
8321 return !ngettext ("","", 1)
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_link "$LINENO"; then :
8327   gt_cv_func_ngettext_libc=yes
8328 else
8329   gt_cv_func_ngettext_libc=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext \
8332     conftest$ac_exeext conftest.$ac_ext
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
8336 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
8337
8338       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8339               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
8340 $as_echo_n "checking for dgettext in libc... " >&6; }
8341 if ${gt_cv_func_dgettext_libc+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346
8347 #include <libintl.h>
8348
8349 int
8350 main ()
8351 {
8352 return !dgettext ("","")
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358   gt_cv_func_dgettext_libc=yes
8359 else
8360   gt_cv_func_dgettext_libc=no
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext \
8363     conftest$ac_exeext conftest.$ac_ext
8364
8365 fi
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
8367 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
8368       fi
8369
8370       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8371         for ac_func in bind_textdomain_codeset
8372 do :
8373   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8374 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8375   cat >>confdefs.h <<_ACEOF
8376 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8377 _ACEOF
8378
8379 fi
8380 done
8381
8382       fi
8383
8384       #
8385       # If we don't have everything we want, check in libintl
8386       #
8387       if test "$gt_cv_func_dgettext_libc" != "yes" \
8388          || test "$gt_cv_func_ngettext_libc" != "yes" \
8389          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8390
8391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
8392 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
8393 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   ac_check_lib_save_LIBS=$LIBS
8397 LIBS="-lintl  $LIBS"
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h.  */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402    Use char because int might match the return type of a GCC
8403    builtin and then its argument prototype would still apply.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char bindtextdomain ();
8408 int
8409 main ()
8410 {
8411 return bindtextdomain ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417   ac_cv_lib_intl_bindtextdomain=yes
8418 else
8419   ac_cv_lib_intl_bindtextdomain=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext \
8422     conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
8426 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
8427 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8429 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8430 if ${ac_cv_lib_intl_ngettext+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lintl  $LIBS"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h.  */
8437
8438 /* Override any GCC internal prototype to avoid an error.
8439    Use char because int might match the return type of a GCC
8440    builtin and then its argument prototype would still apply.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 char ngettext ();
8445 int
8446 main ()
8447 {
8448 return ngettext ();
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8454   ac_cv_lib_intl_ngettext=yes
8455 else
8456   ac_cv_lib_intl_ngettext=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext \
8459     conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8463 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8464 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
8466 $as_echo_n "checking for dgettext in -lintl... " >&6; }
8467 if ${ac_cv_lib_intl_dgettext+:} false; then :
8468   $as_echo_n "(cached) " >&6
8469 else
8470   ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-lintl  $LIBS"
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h.  */
8474
8475 /* Override any GCC internal prototype to avoid an error.
8476    Use char because int might match the return type of a GCC
8477    builtin and then its argument prototype would still apply.  */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 char dgettext ();
8482 int
8483 main ()
8484 {
8485 return dgettext ();
8486   ;
8487   return 0;
8488 }
8489 _ACEOF
8490 if ac_fn_c_try_link "$LINENO"; then :
8491   ac_cv_lib_intl_dgettext=yes
8492 else
8493   ac_cv_lib_intl_dgettext=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext \
8496     conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8498 fi
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
8500 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
8501 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
8502   gt_cv_func_dgettext_libintl=yes
8503 fi
8504
8505 fi
8506
8507 fi
8508
8509
8510         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8511           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
8512 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
8513           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8514 $as_echo "" >&6; }
8515           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8516 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8517 if ${ac_cv_lib_intl_ngettext+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-lintl -liconv $LIBS"
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h.  */
8524
8525 /* Override any GCC internal prototype to avoid an error.
8526    Use char because int might match the return type of a GCC
8527    builtin and then its argument prototype would still apply.  */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 char ngettext ();
8532 int
8533 main ()
8534 {
8535 return ngettext ();
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8541   ac_cv_lib_intl_ngettext=yes
8542 else
8543   ac_cv_lib_intl_ngettext=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext \
8546     conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8550 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8551 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
8553 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
8554 if ${ac_cv_lib_intl_dcgettext+:} false; then :
8555   $as_echo_n "(cached) " >&6
8556 else
8557   ac_check_lib_save_LIBS=$LIBS
8558 LIBS="-lintl -liconv $LIBS"
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h.  */
8561
8562 /* Override any GCC internal prototype to avoid an error.
8563    Use char because int might match the return type of a GCC
8564    builtin and then its argument prototype would still apply.  */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 char dcgettext ();
8569 int
8570 main ()
8571 {
8572 return dcgettext ();
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_link "$LINENO"; then :
8578   ac_cv_lib_intl_dcgettext=yes
8579 else
8580   ac_cv_lib_intl_dcgettext=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
8587 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
8588 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
8589   gt_cv_func_dgettext_libintl=yes
8590                         libintl_extra_libs=-liconv
8591 else
8592   :
8593 fi
8594
8595 else
8596   :
8597 fi
8598
8599         fi
8600
8601         #
8602         # If we found libintl, then check in it for bind_textdomain_codeset();
8603         # we'll prefer libc if neither have bind_textdomain_codeset(),
8604         # and both have dgettext and ngettext
8605         #
8606         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8607           glib_save_LIBS="$LIBS"
8608           LIBS="$LIBS -lintl $libintl_extra_libs"
8609           unset ac_cv_func_bind_textdomain_codeset
8610           for ac_func in bind_textdomain_codeset
8611 do :
8612   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8613 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8614   cat >>confdefs.h <<_ACEOF
8615 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8616 _ACEOF
8617
8618 fi
8619 done
8620
8621           LIBS="$glib_save_LIBS"
8622
8623           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8624             gt_cv_func_dgettext_libc=no
8625           else
8626             if test "$gt_cv_func_dgettext_libc" = "yes" \
8627                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8628               gt_cv_func_dgettext_libintl=no
8629             fi
8630           fi
8631         fi
8632       fi
8633
8634       if test "$gt_cv_func_dgettext_libc" = "yes" \
8635         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8636         gt_cv_have_gettext=yes
8637       fi
8638
8639       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8640         INTLLIBS="-lintl $libintl_extra_libs"
8641       fi
8642
8643       if test "$gt_cv_have_gettext" = "yes"; then
8644
8645 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8646
8647         # Extract the first word of "msgfmt", so it can be a program name with args.
8648 set dummy msgfmt; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_MSGFMT+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   case "$MSGFMT" in
8655   /*)
8656   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8657   ;;
8658   *)
8659   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8660   for ac_dir in $PATH; do
8661     test -z "$ac_dir" && ac_dir=.
8662     if test -f $ac_dir/$ac_word; then
8663       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8664         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8665         break
8666       fi
8667     fi
8668   done
8669   IFS="$ac_save_ifs"
8670   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8671   ;;
8672 esac
8673 fi
8674 MSGFMT="$ac_cv_path_MSGFMT"
8675 if test "$MSGFMT" != "no"; then
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8677 $as_echo "$MSGFMT" >&6; }
8678 else
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682         if test "$MSGFMT" != "no"; then
8683           glib_save_LIBS="$LIBS"
8684           LIBS="$LIBS $INTLLIBS"
8685           for ac_func in dcgettext
8686 do :
8687   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8688 if test "x$ac_cv_func_dcgettext" = xyes; then :
8689   cat >>confdefs.h <<_ACEOF
8690 #define HAVE_DCGETTEXT 1
8691 _ACEOF
8692
8693 fi
8694 done
8695
8696           MSGFMT_OPTS=
8697           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8698 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8699           cat >conftest.foo <<_ACEOF
8700
8701 msgid ""
8702 msgstr ""
8703 "Content-Type: text/plain; charset=UTF-8\n"
8704 "Project-Id-Version: test 1.0\n"
8705 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8706 "Last-Translator: test <foo@bar.xx>\n"
8707 "Language-Team: C <LL@li.org>\n"
8708 "MIME-Version: 1.0\n"
8709 "Content-Transfer-Encoding: 8bit\n"
8710
8711 _ACEOF
8712 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8713   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8714   ac_status=$?
8715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8716   test $ac_status = 0; }; then
8717   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718 $as_echo "yes" >&6; }
8719 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 echo "$as_me: failed input was:" >&5
8722 sed 's/^/| /' conftest.foo >&5
8723 fi
8724
8725           # Extract the first word of "gmsgfmt", so it can be a program name with args.
8726 set dummy gmsgfmt; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if ${ac_cv_path_GMSGFMT+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   case $GMSGFMT in
8733   [\\/]* | ?:[\\/]*)
8734   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8735   ;;
8736   *)
8737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742     for ac_exec_ext in '' $ac_executable_extensions; do
8743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749   done
8750 IFS=$as_save_IFS
8751
8752   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8753   ;;
8754 esac
8755 fi
8756 GMSGFMT=$ac_cv_path_GMSGFMT
8757 if test -n "$GMSGFMT"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8759 $as_echo "$GMSGFMT" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766           # Extract the first word of "xgettext", so it can be a program name with args.
8767 set dummy xgettext; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_path_XGETTEXT+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   case "$XGETTEXT" in
8774   /*)
8775   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8776   ;;
8777   *)
8778   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8779   for ac_dir in $PATH; do
8780     test -z "$ac_dir" && ac_dir=.
8781     if test -f $ac_dir/$ac_word; then
8782       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8783         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8784         break
8785       fi
8786     fi
8787   done
8788   IFS="$ac_save_ifs"
8789   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8790   ;;
8791 esac
8792 fi
8793 XGETTEXT="$ac_cv_path_XGETTEXT"
8794 if test "$XGETTEXT" != ":"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8796 $as_echo "$XGETTEXT" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h.  */
8804
8805 int
8806 main ()
8807 {
8808 extern int _nl_msg_cat_cntr;
8809                          return _nl_msg_cat_cntr
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"; then :
8815   CATOBJEXT=.gmo
8816              DATADIRNAME=share
8817 else
8818   case $host in
8819             *-*-solaris*)
8820                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8821 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8822   CATOBJEXT=.gmo
8823                DATADIRNAME=share
8824 else
8825   CATOBJEXT=.mo
8826                DATADIRNAME=lib
8827 fi
8828
8829             ;;
8830             *-*-openbsd*)
8831             CATOBJEXT=.mo
8832             DATADIRNAME=share
8833             ;;
8834             *)
8835             CATOBJEXT=.mo
8836             DATADIRNAME=lib
8837             ;;
8838             esac
8839 fi
8840 rm -f core conftest.err conftest.$ac_objext \
8841     conftest$ac_exeext conftest.$ac_ext
8842           LIBS="$glib_save_LIBS"
8843           INSTOBJEXT=.mo
8844         else
8845           gt_cv_have_gettext=no
8846         fi
8847       fi
8848
8849 fi
8850
8851
8852
8853     if test "$gt_cv_have_gettext" = "yes" ; then
8854
8855 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8856
8857     fi
8858
8859         if test "$XGETTEXT" != ":"; then
8860                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8861         : ;
8862       else
8863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8864 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8865         XGETTEXT=":"
8866       fi
8867     fi
8868
8869     # We need to process the po/ directory.
8870     POSUB=po
8871
8872     ac_config_commands="$ac_config_commands default-1"
8873
8874
8875                 for lang in $ALL_LINGUAS; do
8876       GMOFILES="$GMOFILES $lang.gmo"
8877       POFILES="$POFILES $lang.po"
8878     done
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892    if test "$gt_cv_have_gettext" = "yes"; then
8893      if test "x$ALL_LINGUAS" = "x"; then
8894        LINGUAS=
8895      else
8896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8897 $as_echo_n "checking for catalogs to be installed... " >&6; }
8898        NEW_LINGUAS=
8899        for presentlang in $ALL_LINGUAS; do
8900          useit=no
8901          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8902            desiredlanguages="$LINGUAS"
8903          else
8904            desiredlanguages="$ALL_LINGUAS"
8905          fi
8906          for desiredlang in $desiredlanguages; do
8907            # Use the presentlang catalog if desiredlang is
8908            #   a. equal to presentlang, or
8909            #   b. a variant of presentlang (because in this case,
8910            #      presentlang can be used as a fallback for messages
8911            #      which are not translated in the desiredlang catalog).
8912            case "$desiredlang" in
8913              "$presentlang"*) useit=yes;;
8914            esac
8915          done
8916          if test $useit = yes; then
8917            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8918          fi
8919        done
8920        LINGUAS=$NEW_LINGUAS
8921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8922 $as_echo "$LINGUAS" >&6; }
8923      fi
8924
8925           if test -n "$LINGUAS"; then
8926        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8927      fi
8928    fi
8929
8930             MKINSTALLDIRS=
8931    if test -n "$ac_aux_dir"; then
8932      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8933    fi
8934    if test -z "$MKINSTALLDIRS"; then
8935      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8936    fi
8937
8938
8939          test -d po || mkdir po
8940    if test "x$srcdir" != "x."; then
8941      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8942        posrcprefix="$srcdir/"
8943      else
8944        posrcprefix="../$srcdir/"
8945      fi
8946    else
8947      posrcprefix="../"
8948    fi
8949    rm -f po/POTFILES
8950    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8951         < $srcdir/po/POTFILES.in > po/POTFILES
8952
8953
8954 if test "$gt_cv_have_gettext" != "yes" ; then
8955   as_fn_error $? "
8956 *** You must have either have gettext support in your C library, or use the
8957 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
8958 " "$LINENO" 5
8959 fi
8960
8961 LIBS="$INTLLIBS $LIBS"
8962
8963 GETTEXT_PACKAGE=glib20
8964
8965
8966 cat >>confdefs.h <<_ACEOF
8967 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8968 _ACEOF
8969
8970
8971 glib_save_prefix="$prefix"
8972 glib_save_exec_prefix="$exec_prefix"
8973 glib_save_datarootdir="$datarootdir"
8974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8975 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8976 datarootdir=`eval echo "${datarootdir}"`
8977 if test "x$CATOBJEXT" = "x.mo" ; then
8978   localedir=`eval echo "${libdir}/locale"`
8979 else
8980   localedir=`eval echo "${datadir}/locale"`
8981 fi
8982 prefix="$glib_save_prefix"
8983 exec_prefix="$glib_save_exec_prefix"
8984 datarootdir="$glib_save_datarootdir"
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define GLIB_LOCALE_DIR "$localedir"
8988 _ACEOF
8989
8990
8991
8992
8993 if test x"$glib_native_win32" != xyes; then
8994   if test x$with_libiconv != xno ; then
8995     case " $INTLLIBS " in
8996     *[\ \       ]-liconv[\ \    ]*) ;;
8997     *) ICONV_LIBS="-liconv" ;;
8998     esac
8999   fi
9000 fi
9001
9002
9003 case $with_libiconv in
9004   gnu)
9005
9006 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
9007
9008     ;;
9009   native)
9010
9011 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
9012
9013     ;;
9014 esac
9015
9016
9017 case `pwd` in
9018   *\ * | *\     *)
9019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9020 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9021 esac
9022
9023
9024
9025 macro_version='2.4.2'
9026 macro_revision='1.3337'
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 ltmain="$ac_aux_dir/ltmain.sh"
9041
9042 # Backslashify metacharacters that are still active within
9043 # double-quoted strings.
9044 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9045
9046 # Same as above, but do not quote variable references.
9047 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9048
9049 # Sed substitution to delay expansion of an escaped shell variable in a
9050 # double_quote_subst'ed string.
9051 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9052
9053 # Sed substitution to delay expansion of an escaped single quote.
9054 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9055
9056 # Sed substitution to avoid accidental globbing in evaled expressions
9057 no_glob_subst='s/\*/\\\*/g'
9058
9059 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9064 $as_echo_n "checking how to print strings... " >&6; }
9065 # Test print first, because it will be a builtin if present.
9066 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9067    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9068   ECHO='print -r --'
9069 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9070   ECHO='printf %s\n'
9071 else
9072   # Use this function as a fallback that always works.
9073   func_fallback_echo ()
9074   {
9075     eval 'cat <<_LTECHO_EOF
9076 $1
9077 _LTECHO_EOF'
9078   }
9079   ECHO='func_fallback_echo'
9080 fi
9081
9082 # func_echo_all arg...
9083 # Invoke $ECHO with all args, space-separated.
9084 func_echo_all ()
9085 {
9086     $ECHO ""
9087 }
9088
9089 case "$ECHO" in
9090   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9091 $as_echo "printf" >&6; } ;;
9092   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9093 $as_echo "print -r" >&6; } ;;
9094   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9095 $as_echo "cat" >&6; } ;;
9096 esac
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9112 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9113 if ${ac_cv_path_SED+:} false; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9117      for ac_i in 1 2 3 4 5 6 7; do
9118        ac_script="$ac_script$as_nl$ac_script"
9119      done
9120      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9121      { ac_script=; unset ac_script;}
9122      if test -z "$SED"; then
9123   ac_path_SED_found=false
9124   # Loop through the user's path and test for each of PROGNAME-LIST
9125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9127 do
9128   IFS=$as_save_IFS
9129   test -z "$as_dir" && as_dir=.
9130     for ac_prog in sed gsed; do
9131     for ac_exec_ext in '' $ac_executable_extensions; do
9132       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9133       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9134 # Check for GNU ac_path_SED and select it if it is found.
9135   # Check for GNU $ac_path_SED
9136 case `"$ac_path_SED" --version 2>&1` in
9137 *GNU*)
9138   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9139 *)
9140   ac_count=0
9141   $as_echo_n 0123456789 >"conftest.in"
9142   while :
9143   do
9144     cat "conftest.in" "conftest.in" >"conftest.tmp"
9145     mv "conftest.tmp" "conftest.in"
9146     cp "conftest.in" "conftest.nl"
9147     $as_echo '' >> "conftest.nl"
9148     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9149     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9150     as_fn_arith $ac_count + 1 && ac_count=$as_val
9151     if test $ac_count -gt ${ac_path_SED_max-0}; then
9152       # Best one so far, save it but keep looking for a better one
9153       ac_cv_path_SED="$ac_path_SED"
9154       ac_path_SED_max=$ac_count
9155     fi
9156     # 10*(2^10) chars as input seems more than enough
9157     test $ac_count -gt 10 && break
9158   done
9159   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9160 esac
9161
9162       $ac_path_SED_found && break 3
9163     done
9164   done
9165   done
9166 IFS=$as_save_IFS
9167   if test -z "$ac_cv_path_SED"; then
9168     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9169   fi
9170 else
9171   ac_cv_path_SED=$SED
9172 fi
9173
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9176 $as_echo "$ac_cv_path_SED" >&6; }
9177  SED="$ac_cv_path_SED"
9178   rm -f conftest.sed
9179
9180 test -z "$SED" && SED=sed
9181 Xsed="$SED -e 1s/^X//"
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9194 $as_echo_n "checking for fgrep... " >&6; }
9195 if ${ac_cv_path_FGREP+:} false; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9199    then ac_cv_path_FGREP="$GREP -F"
9200    else
9201      if test -z "$FGREP"; then
9202   ac_path_FGREP_found=false
9203   # Loop through the user's path and test for each of PROGNAME-LIST
9204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9206 do
9207   IFS=$as_save_IFS
9208   test -z "$as_dir" && as_dir=.
9209     for ac_prog in fgrep; do
9210     for ac_exec_ext in '' $ac_executable_extensions; do
9211       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9212       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9213 # Check for GNU ac_path_FGREP and select it if it is found.
9214   # Check for GNU $ac_path_FGREP
9215 case `"$ac_path_FGREP" --version 2>&1` in
9216 *GNU*)
9217   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9218 *)
9219   ac_count=0
9220   $as_echo_n 0123456789 >"conftest.in"
9221   while :
9222   do
9223     cat "conftest.in" "conftest.in" >"conftest.tmp"
9224     mv "conftest.tmp" "conftest.in"
9225     cp "conftest.in" "conftest.nl"
9226     $as_echo 'FGREP' >> "conftest.nl"
9227     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9228     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9229     as_fn_arith $ac_count + 1 && ac_count=$as_val
9230     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9231       # Best one so far, save it but keep looking for a better one
9232       ac_cv_path_FGREP="$ac_path_FGREP"
9233       ac_path_FGREP_max=$ac_count
9234     fi
9235     # 10*(2^10) chars as input seems more than enough
9236     test $ac_count -gt 10 && break
9237   done
9238   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9239 esac
9240
9241       $ac_path_FGREP_found && break 3
9242     done
9243   done
9244   done
9245 IFS=$as_save_IFS
9246   if test -z "$ac_cv_path_FGREP"; then
9247     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9248   fi
9249 else
9250   ac_cv_path_FGREP=$FGREP
9251 fi
9252
9253    fi
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9256 $as_echo "$ac_cv_path_FGREP" >&6; }
9257  FGREP="$ac_cv_path_FGREP"
9258
9259
9260 test -z "$GREP" && GREP=grep
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280 # Check whether --with-gnu-ld was given.
9281 if test "${with_gnu_ld+set}" = set; then :
9282   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9283 else
9284   with_gnu_ld=no
9285 fi
9286
9287 ac_prog=ld
9288 if test "$GCC" = yes; then
9289   # Check if gcc -print-prog-name=ld gives a path.
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9291 $as_echo_n "checking for ld used by $CC... " >&6; }
9292   case $host in
9293   *-*-mingw*)
9294     # gcc leaves a trailing carriage return which upsets mingw
9295     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9296   *)
9297     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9298   esac
9299   case $ac_prog in
9300     # Accept absolute paths.
9301     [\\/]* | ?:[\\/]*)
9302       re_direlt='/[^/][^/]*/\.\./'
9303       # Canonicalize the pathname of ld
9304       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9305       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9306         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9307       done
9308       test -z "$LD" && LD="$ac_prog"
9309       ;;
9310   "")
9311     # If it fails, then pretend we aren't using GCC.
9312     ac_prog=ld
9313     ;;
9314   *)
9315     # If it is relative, then search for the first ld in PATH.
9316     with_gnu_ld=unknown
9317     ;;
9318   esac
9319 elif test "$with_gnu_ld" = yes; then
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9321 $as_echo_n "checking for GNU ld... " >&6; }
9322 else
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9324 $as_echo_n "checking for non-GNU ld... " >&6; }
9325 fi
9326 if ${lt_cv_path_LD+:} false; then :
9327   $as_echo_n "(cached) " >&6
9328 else
9329   if test -z "$LD"; then
9330   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9331   for ac_dir in $PATH; do
9332     IFS="$lt_save_ifs"
9333     test -z "$ac_dir" && ac_dir=.
9334     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9335       lt_cv_path_LD="$ac_dir/$ac_prog"
9336       # Check to see if the program is GNU ld.  I'd rather use --version,
9337       # but apparently some variants of GNU ld only accept -v.
9338       # Break only if it was the GNU/non-GNU ld that we prefer.
9339       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9340       *GNU* | *'with BFD'*)
9341         test "$with_gnu_ld" != no && break
9342         ;;
9343       *)
9344         test "$with_gnu_ld" != yes && break
9345         ;;
9346       esac
9347     fi
9348   done
9349   IFS="$lt_save_ifs"
9350 else
9351   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9352 fi
9353 fi
9354
9355 LD="$lt_cv_path_LD"
9356 if test -n "$LD"; then
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9358 $as_echo "$LD" >&6; }
9359 else
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 $as_echo "no" >&6; }
9362 fi
9363 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9366 if ${lt_cv_prog_gnu_ld+:} false; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9370 case `$LD -v 2>&1 </dev/null` in
9371 *GNU* | *'with BFD'*)
9372   lt_cv_prog_gnu_ld=yes
9373   ;;
9374 *)
9375   lt_cv_prog_gnu_ld=no
9376   ;;
9377 esac
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9380 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9381 with_gnu_ld=$lt_cv_prog_gnu_ld
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9392 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9393 if ${lt_cv_path_NM+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   if test -n "$NM"; then
9397   # Let the user override the test.
9398   lt_cv_path_NM="$NM"
9399 else
9400   lt_nm_to_check="${ac_tool_prefix}nm"
9401   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9402     lt_nm_to_check="$lt_nm_to_check nm"
9403   fi
9404   for lt_tmp_nm in $lt_nm_to_check; do
9405     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9406     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9407       IFS="$lt_save_ifs"
9408       test -z "$ac_dir" && ac_dir=.
9409       tmp_nm="$ac_dir/$lt_tmp_nm"
9410       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9411         # Check to see if the nm accepts a BSD-compat flag.
9412         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9413         #   nm: unknown option "B" ignored
9414         # Tru64's nm complains that /dev/null is an invalid object file
9415         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9416         */dev/null* | *'Invalid file or object type'*)
9417           lt_cv_path_NM="$tmp_nm -B"
9418           break
9419           ;;
9420         *)
9421           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9422           */dev/null*)
9423             lt_cv_path_NM="$tmp_nm -p"
9424             break
9425             ;;
9426           *)
9427             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9428             continue # so that we can try to find one that supports BSD flags
9429             ;;
9430           esac
9431           ;;
9432         esac
9433       fi
9434     done
9435     IFS="$lt_save_ifs"
9436   done
9437   : ${lt_cv_path_NM=no}
9438 fi
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9441 $as_echo "$lt_cv_path_NM" >&6; }
9442 if test "$lt_cv_path_NM" != "no"; then
9443   NM="$lt_cv_path_NM"
9444 else
9445   # Didn't find any BSD compatible name lister, look for dumpbin.
9446   if test -n "$DUMPBIN"; then :
9447     # Let the user override the test.
9448   else
9449     if test -n "$ac_tool_prefix"; then
9450   for ac_prog in dumpbin "link -dump"
9451   do
9452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_prog_DUMPBIN+:} false; then :
9457   $as_echo_n "(cached) " >&6
9458 else
9459   if test -n "$DUMPBIN"; then
9460   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9461 else
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9464 do
9465   IFS=$as_save_IFS
9466   test -z "$as_dir" && as_dir=.
9467     for ac_exec_ext in '' $ac_executable_extensions; do
9468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9469     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471     break 2
9472   fi
9473 done
9474   done
9475 IFS=$as_save_IFS
9476
9477 fi
9478 fi
9479 DUMPBIN=$ac_cv_prog_DUMPBIN
9480 if test -n "$DUMPBIN"; then
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9482 $as_echo "$DUMPBIN" >&6; }
9483 else
9484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9486 fi
9487
9488
9489     test -n "$DUMPBIN" && break
9490   done
9491 fi
9492 if test -z "$DUMPBIN"; then
9493   ac_ct_DUMPBIN=$DUMPBIN
9494   for ac_prog in dumpbin "link -dump"
9495 do
9496   # Extract the first word of "$ac_prog", so it can be a program name with args.
9497 set dummy $ac_prog; ac_word=$2
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 $as_echo_n "checking for $ac_word... " >&6; }
9500 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   if test -n "$ac_ct_DUMPBIN"; then
9504   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9505 else
9506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507 for as_dir in $PATH
9508 do
9509   IFS=$as_save_IFS
9510   test -z "$as_dir" && as_dir=.
9511     for ac_exec_ext in '' $ac_executable_extensions; do
9512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9513     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9515     break 2
9516   fi
9517 done
9518   done
9519 IFS=$as_save_IFS
9520
9521 fi
9522 fi
9523 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9524 if test -n "$ac_ct_DUMPBIN"; then
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9526 $as_echo "$ac_ct_DUMPBIN" >&6; }
9527 else
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9530 fi
9531
9532
9533   test -n "$ac_ct_DUMPBIN" && break
9534 done
9535
9536   if test "x$ac_ct_DUMPBIN" = x; then
9537     DUMPBIN=":"
9538   else
9539     case $cross_compiling:$ac_tool_warned in
9540 yes:)
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9543 ac_tool_warned=yes ;;
9544 esac
9545     DUMPBIN=$ac_ct_DUMPBIN
9546   fi
9547 fi
9548
9549     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9550     *COFF*)
9551       DUMPBIN="$DUMPBIN -symbols"
9552       ;;
9553     *)
9554       DUMPBIN=:
9555       ;;
9556     esac
9557   fi
9558
9559   if test "$DUMPBIN" != ":"; then
9560     NM="$DUMPBIN"
9561   fi
9562 fi
9563 test -z "$NM" && NM=nm
9564
9565
9566
9567
9568
9569
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9571 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9572 if ${lt_cv_nm_interface+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   lt_cv_nm_interface="BSD nm"
9576   echo "int some_variable = 0;" > conftest.$ac_ext
9577   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9578   (eval "$ac_compile" 2>conftest.err)
9579   cat conftest.err >&5
9580   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9581   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9582   cat conftest.err >&5
9583   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9584   cat conftest.out >&5
9585   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9586     lt_cv_nm_interface="MS dumpbin"
9587   fi
9588   rm -f conftest*
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9591 $as_echo "$lt_cv_nm_interface" >&6; }
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9594 $as_echo_n "checking whether ln -s works... " >&6; }
9595 LN_S=$as_ln_s
9596 if test "$LN_S" = "ln -s"; then
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9598 $as_echo "yes" >&6; }
9599 else
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9601 $as_echo "no, using $LN_S" >&6; }
9602 fi
9603
9604 # find the maximum length of command line arguments
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9606 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9607 if ${lt_cv_sys_max_cmd_len+:} false; then :
9608   $as_echo_n "(cached) " >&6
9609 else
9610     i=0
9611   teststring="ABCD"
9612
9613   case $build_os in
9614   msdosdjgpp*)
9615     # On DJGPP, this test can blow up pretty badly due to problems in libc
9616     # (any single argument exceeding 2000 bytes causes a buffer overrun
9617     # during glob expansion).  Even if it were fixed, the result of this
9618     # check would be larger than it should be.
9619     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9620     ;;
9621
9622   gnu*)
9623     # Under GNU Hurd, this test is not required because there is
9624     # no limit to the length of command line arguments.
9625     # Libtool will interpret -1 as no limit whatsoever
9626     lt_cv_sys_max_cmd_len=-1;
9627     ;;
9628
9629   cygwin* | mingw* | cegcc*)
9630     # On Win9x/ME, this test blows up -- it succeeds, but takes
9631     # about 5 minutes as the teststring grows exponentially.
9632     # Worse, since 9x/ME are not pre-emptively multitasking,
9633     # you end up with a "frozen" computer, even though with patience
9634     # the test eventually succeeds (with a max line length of 256k).
9635     # Instead, let's just punt: use the minimum linelength reported by
9636     # all of the supported platforms: 8192 (on NT/2K/XP).
9637     lt_cv_sys_max_cmd_len=8192;
9638     ;;
9639
9640   mint*)
9641     # On MiNT this can take a long time and run out of memory.
9642     lt_cv_sys_max_cmd_len=8192;
9643     ;;
9644
9645   amigaos*)
9646     # On AmigaOS with pdksh, this test takes hours, literally.
9647     # So we just punt and use a minimum line length of 8192.
9648     lt_cv_sys_max_cmd_len=8192;
9649     ;;
9650
9651   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9652     # This has been around since 386BSD, at least.  Likely further.
9653     if test -x /sbin/sysctl; then
9654       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9655     elif test -x /usr/sbin/sysctl; then
9656       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9657     else
9658       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9659     fi
9660     # And add a safety zone
9661     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9662     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9663     ;;
9664
9665   interix*)
9666     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9667     lt_cv_sys_max_cmd_len=196608
9668     ;;
9669
9670   os2*)
9671     # The test takes a long time on OS/2.
9672     lt_cv_sys_max_cmd_len=8192
9673     ;;
9674
9675   osf*)
9676     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9677     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9678     # nice to cause kernel panics so lets avoid the loop below.
9679     # First set a reasonable default.
9680     lt_cv_sys_max_cmd_len=16384
9681     #
9682     if test -x /sbin/sysconfig; then
9683       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9684         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9685       esac
9686     fi
9687     ;;
9688   sco3.2v5*)
9689     lt_cv_sys_max_cmd_len=102400
9690     ;;
9691   sysv5* | sco5v6* | sysv4.2uw2*)
9692     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9693     if test -n "$kargmax"; then
9694       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9695     else
9696       lt_cv_sys_max_cmd_len=32768
9697     fi
9698     ;;
9699   *)
9700     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9701     if test -n "$lt_cv_sys_max_cmd_len"; then
9702       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9703       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9704     else
9705       # Make teststring a little bigger before we do anything with it.
9706       # a 1K string should be a reasonable start.
9707       for i in 1 2 3 4 5 6 7 8 ; do
9708         teststring=$teststring$teststring
9709       done
9710       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9711       # If test is not a shell built-in, we'll probably end up computing a
9712       # maximum length that is only half of the actual maximum length, but
9713       # we can't tell.
9714       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9715                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9716               test $i != 17 # 1/2 MB should be enough
9717       do
9718         i=`expr $i + 1`
9719         teststring=$teststring$teststring
9720       done
9721       # Only check the string length outside the loop.
9722       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9723       teststring=
9724       # Add a significant safety factor because C++ compilers can tack on
9725       # massive amounts of additional arguments before passing them to the
9726       # linker.  It appears as though 1/2 is a usable value.
9727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9728     fi
9729     ;;
9730   esac
9731
9732 fi
9733
9734 if test -n $lt_cv_sys_max_cmd_len ; then
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9737 else
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9739 $as_echo "none" >&6; }
9740 fi
9741 max_cmd_len=$lt_cv_sys_max_cmd_len
9742
9743
9744
9745
9746
9747
9748 : ${CP="cp -f"}
9749 : ${MV="mv -f"}
9750 : ${RM="rm -f"}
9751
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9754 # Try some XSI features
9755 xsi_shell=no
9756 ( _lt_dummy="a/b/c"
9757   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9758       = c,a/b,b/c, \
9759     && eval 'test $(( 1 + 1 )) -eq 2 \
9760     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9761   && xsi_shell=yes
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9763 $as_echo "$xsi_shell" >&6; }
9764
9765
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9767 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9768 lt_shell_append=no
9769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9770     >/dev/null 2>&1 \
9771   && lt_shell_append=yes
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9773 $as_echo "$lt_shell_append" >&6; }
9774
9775
9776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9777   lt_unset=unset
9778 else
9779   lt_unset=false
9780 fi
9781
9782
9783
9784
9785
9786 # test EBCDIC or ASCII
9787 case `echo X|tr X '\101'` in
9788  A) # ASCII based system
9789     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9790   lt_SP2NL='tr \040 \012'
9791   lt_NL2SP='tr \015\012 \040\040'
9792   ;;
9793  *) # EBCDIC based system
9794   lt_SP2NL='tr \100 \n'
9795   lt_NL2SP='tr \r\n \100\100'
9796   ;;
9797 esac
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9808 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9809 if ${lt_cv_to_host_file_cmd+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   case $host in
9813   *-*-mingw* )
9814     case $build in
9815       *-*-mingw* ) # actually msys
9816         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9817         ;;
9818       *-*-cygwin* )
9819         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9820         ;;
9821       * ) # otherwise, assume *nix
9822         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9823         ;;
9824     esac
9825     ;;
9826   *-*-cygwin* )
9827     case $build in
9828       *-*-mingw* ) # actually msys
9829         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9830         ;;
9831       *-*-cygwin* )
9832         lt_cv_to_host_file_cmd=func_convert_file_noop
9833         ;;
9834       * ) # otherwise, assume *nix
9835         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9836         ;;
9837     esac
9838     ;;
9839   * ) # unhandled hosts (and "normal" native builds)
9840     lt_cv_to_host_file_cmd=func_convert_file_noop
9841     ;;
9842 esac
9843
9844 fi
9845
9846 to_host_file_cmd=$lt_cv_to_host_file_cmd
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9848 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9849
9850
9851
9852
9853
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9855 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9856 if ${lt_cv_to_tool_file_cmd+:} false; then :
9857   $as_echo_n "(cached) " >&6
9858 else
9859   #assume ordinary cross tools, or native build.
9860 lt_cv_to_tool_file_cmd=func_convert_file_noop
9861 case $host in
9862   *-*-mingw* )
9863     case $build in
9864       *-*-mingw* ) # actually msys
9865         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9866         ;;
9867     esac
9868     ;;
9869 esac
9870
9871 fi
9872
9873 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9875 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9876
9877
9878
9879
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9882 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9883 if ${lt_cv_ld_reload_flag+:} false; then :
9884   $as_echo_n "(cached) " >&6
9885 else
9886   lt_cv_ld_reload_flag='-r'
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9890 reload_flag=$lt_cv_ld_reload_flag
9891 case $reload_flag in
9892 "" | " "*) ;;
9893 *) reload_flag=" $reload_flag" ;;
9894 esac
9895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9896 case $host_os in
9897   cygwin* | mingw* | pw32* | cegcc*)
9898     if test "$GCC" != yes; then
9899       reload_cmds=false
9900     fi
9901     ;;
9902   darwin*)
9903     if test "$GCC" = yes; then
9904       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9905     else
9906       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9907     fi
9908     ;;
9909 esac
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919 if test -n "$ac_tool_prefix"; then
9920   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_prog_OBJDUMP+:} false; then :
9925   $as_echo_n "(cached) " >&6
9926 else
9927   if test -n "$OBJDUMP"; then
9928   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9929 else
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933   IFS=$as_save_IFS
9934   test -z "$as_dir" && as_dir=.
9935     for ac_exec_ext in '' $ac_executable_extensions; do
9936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939     break 2
9940   fi
9941 done
9942   done
9943 IFS=$as_save_IFS
9944
9945 fi
9946 fi
9947 OBJDUMP=$ac_cv_prog_OBJDUMP
9948 if test -n "$OBJDUMP"; then
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9950 $as_echo "$OBJDUMP" >&6; }
9951 else
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955
9956
9957 fi
9958 if test -z "$ac_cv_prog_OBJDUMP"; then
9959   ac_ct_OBJDUMP=$OBJDUMP
9960   # Extract the first word of "objdump", so it can be a program name with args.
9961 set dummy objdump; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   if test -n "$ac_ct_OBJDUMP"; then
9968   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9969 else
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9972 do
9973   IFS=$as_save_IFS
9974   test -z "$as_dir" && as_dir=.
9975     for ac_exec_ext in '' $ac_executable_extensions; do
9976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979     break 2
9980   fi
9981 done
9982   done
9983 IFS=$as_save_IFS
9984
9985 fi
9986 fi
9987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9988 if test -n "$ac_ct_OBJDUMP"; then
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9990 $as_echo "$ac_ct_OBJDUMP" >&6; }
9991 else
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 fi
9995
9996   if test "x$ac_ct_OBJDUMP" = x; then
9997     OBJDUMP="false"
9998   else
9999     case $cross_compiling:$ac_tool_warned in
10000 yes:)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10003 ac_tool_warned=yes ;;
10004 esac
10005     OBJDUMP=$ac_ct_OBJDUMP
10006   fi
10007 else
10008   OBJDUMP="$ac_cv_prog_OBJDUMP"
10009 fi
10010
10011 test -z "$OBJDUMP" && OBJDUMP=objdump
10012
10013
10014
10015
10016
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10019 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10020 if ${lt_cv_deplibs_check_method+:} false; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   lt_cv_file_magic_cmd='$MAGIC_CMD'
10024 lt_cv_file_magic_test_file=
10025 lt_cv_deplibs_check_method='unknown'
10026 # Need to set the preceding variable on all platforms that support
10027 # interlibrary dependencies.
10028 # 'none' -- dependencies not supported.
10029 # `unknown' -- same as none, but documents that we really don't know.
10030 # 'pass_all' -- all dependencies passed with no checks.
10031 # 'test_compile' -- check by making test program.
10032 # 'file_magic [[regex]]' -- check by looking for files in library path
10033 # which responds to the $file_magic_cmd with a given extended regex.
10034 # If you have `file' or equivalent on your system and you're not sure
10035 # whether `pass_all' will *always* work, you probably want this one.
10036
10037 case $host_os in
10038 aix[4-9]*)
10039   lt_cv_deplibs_check_method=pass_all
10040   ;;
10041
10042 beos*)
10043   lt_cv_deplibs_check_method=pass_all
10044   ;;
10045
10046 bsdi[45]*)
10047   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10048   lt_cv_file_magic_cmd='/usr/bin/file -L'
10049   lt_cv_file_magic_test_file=/shlib/libc.so
10050   ;;
10051
10052 cygwin*)
10053   # func_win32_libid is a shell function defined in ltmain.sh
10054   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10055   lt_cv_file_magic_cmd='func_win32_libid'
10056   ;;
10057
10058 mingw* | pw32*)
10059   # Base MSYS/MinGW do not provide the 'file' command needed by
10060   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10061   # unless we find 'file', for example because we are cross-compiling.
10062   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10063   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10064     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10065     lt_cv_file_magic_cmd='func_win32_libid'
10066   else
10067     # Keep this pattern in sync with the one in func_win32_libid.
10068     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10069     lt_cv_file_magic_cmd='$OBJDUMP -f'
10070   fi
10071   ;;
10072
10073 cegcc*)
10074   # use the weaker test based on 'objdump'. See mingw*.
10075   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10076   lt_cv_file_magic_cmd='$OBJDUMP -f'
10077   ;;
10078
10079 darwin* | rhapsody*)
10080   lt_cv_deplibs_check_method=pass_all
10081   ;;
10082
10083 freebsd* | dragonfly*)
10084   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10085     case $host_cpu in
10086     i*86 )
10087       # Not sure whether the presence of OpenBSD here was a mistake.
10088       # Let's accept both of them until this is cleared up.
10089       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10090       lt_cv_file_magic_cmd=/usr/bin/file
10091       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10092       ;;
10093     esac
10094   else
10095     lt_cv_deplibs_check_method=pass_all
10096   fi
10097   ;;
10098
10099 gnu*)
10100   lt_cv_deplibs_check_method=pass_all
10101   ;;
10102
10103 haiku*)
10104   lt_cv_deplibs_check_method=pass_all
10105   ;;
10106
10107 hpux10.20* | hpux11*)
10108   lt_cv_file_magic_cmd=/usr/bin/file
10109   case $host_cpu in
10110   ia64*)
10111     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10112     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10113     ;;
10114   hppa*64*)
10115     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]'
10116     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10117     ;;
10118   *)
10119     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10120     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10121     ;;
10122   esac
10123   ;;
10124
10125 interix[3-9]*)
10126   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10127   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10128   ;;
10129
10130 irix5* | irix6* | nonstopux*)
10131   case $LD in
10132   *-32|*"-32 ") libmagic=32-bit;;
10133   *-n32|*"-n32 ") libmagic=N32;;
10134   *-64|*"-64 ") libmagic=64-bit;;
10135   *) libmagic=never-match;;
10136   esac
10137   lt_cv_deplibs_check_method=pass_all
10138   ;;
10139
10140 # This must be glibc/ELF.
10141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10142   lt_cv_deplibs_check_method=pass_all
10143   ;;
10144
10145 netbsd*)
10146   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10148   else
10149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10150   fi
10151   ;;
10152
10153 newos6*)
10154   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10155   lt_cv_file_magic_cmd=/usr/bin/file
10156   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10157   ;;
10158
10159 *nto* | *qnx*)
10160   lt_cv_deplibs_check_method=pass_all
10161   ;;
10162
10163 openbsd*)
10164   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10166   else
10167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10168   fi
10169   ;;
10170
10171 osf3* | osf4* | osf5*)
10172   lt_cv_deplibs_check_method=pass_all
10173   ;;
10174
10175 rdos*)
10176   lt_cv_deplibs_check_method=pass_all
10177   ;;
10178
10179 solaris*)
10180   lt_cv_deplibs_check_method=pass_all
10181   ;;
10182
10183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184   lt_cv_deplibs_check_method=pass_all
10185   ;;
10186
10187 sysv4 | sysv4.3*)
10188   case $host_vendor in
10189   motorola)
10190     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]'
10191     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10192     ;;
10193   ncr)
10194     lt_cv_deplibs_check_method=pass_all
10195     ;;
10196   sequent)
10197     lt_cv_file_magic_cmd='/bin/file'
10198     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10199     ;;
10200   sni)
10201     lt_cv_file_magic_cmd='/bin/file'
10202     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10203     lt_cv_file_magic_test_file=/lib/libc.so
10204     ;;
10205   siemens)
10206     lt_cv_deplibs_check_method=pass_all
10207     ;;
10208   pc)
10209     lt_cv_deplibs_check_method=pass_all
10210     ;;
10211   esac
10212   ;;
10213
10214 tpf*)
10215   lt_cv_deplibs_check_method=pass_all
10216   ;;
10217 esac
10218
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10221 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10222
10223 file_magic_glob=
10224 want_nocaseglob=no
10225 if test "$build" = "$host"; then
10226   case $host_os in
10227   mingw* | pw32*)
10228     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10229       want_nocaseglob=yes
10230     else
10231       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10232     fi
10233     ;;
10234   esac
10235 fi
10236
10237 file_magic_cmd=$lt_cv_file_magic_cmd
10238 deplibs_check_method=$lt_cv_deplibs_check_method
10239 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262 if test -n "$ac_tool_prefix"; then
10263   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10264 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266 $as_echo_n "checking for $ac_word... " >&6; }
10267 if ${ac_cv_prog_DLLTOOL+:} false; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270   if test -n "$DLLTOOL"; then
10271   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10272 else
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10275 do
10276   IFS=$as_save_IFS
10277   test -z "$as_dir" && as_dir=.
10278     for ac_exec_ext in '' $ac_executable_extensions; do
10279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282     break 2
10283   fi
10284 done
10285   done
10286 IFS=$as_save_IFS
10287
10288 fi
10289 fi
10290 DLLTOOL=$ac_cv_prog_DLLTOOL
10291 if test -n "$DLLTOOL"; then
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10293 $as_echo "$DLLTOOL" >&6; }
10294 else
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297 fi
10298
10299
10300 fi
10301 if test -z "$ac_cv_prog_DLLTOOL"; then
10302   ac_ct_DLLTOOL=$DLLTOOL
10303   # Extract the first word of "dlltool", so it can be a program name with args.
10304 set dummy dlltool; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   if test -n "$ac_ct_DLLTOOL"; then
10311   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318     for ac_exec_ext in '' $ac_executable_extensions; do
10319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325   done
10326 IFS=$as_save_IFS
10327
10328 fi
10329 fi
10330 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10331 if test -n "$ac_ct_DLLTOOL"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10333 $as_echo "$ac_ct_DLLTOOL" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338
10339   if test "x$ac_ct_DLLTOOL" = x; then
10340     DLLTOOL="false"
10341   else
10342     case $cross_compiling:$ac_tool_warned in
10343 yes:)
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10346 ac_tool_warned=yes ;;
10347 esac
10348     DLLTOOL=$ac_ct_DLLTOOL
10349   fi
10350 else
10351   DLLTOOL="$ac_cv_prog_DLLTOOL"
10352 fi
10353
10354 test -z "$DLLTOOL" && DLLTOOL=dlltool
10355
10356
10357
10358
10359
10360
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10363 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10364 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367   lt_cv_sharedlib_from_linklib_cmd='unknown'
10368
10369 case $host_os in
10370 cygwin* | mingw* | pw32* | cegcc*)
10371   # two different shell functions defined in ltmain.sh
10372   # decide which to use based on capabilities of $DLLTOOL
10373   case `$DLLTOOL --help 2>&1` in
10374   *--identify-strict*)
10375     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10376     ;;
10377   *)
10378     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10379     ;;
10380   esac
10381   ;;
10382 *)
10383   # fallback: assume linklib IS sharedlib
10384   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10385   ;;
10386 esac
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10390 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10391 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10392 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10393
10394
10395
10396
10397
10398
10399
10400 if test -n "$ac_tool_prefix"; then
10401   for ac_prog in ar
10402   do
10403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_prog_AR+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   if test -n "$AR"; then
10411   ac_cv_prog_AR="$AR" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10415 do
10416   IFS=$as_save_IFS
10417   test -z "$as_dir" && as_dir=.
10418     for ac_exec_ext in '' $ac_executable_extensions; do
10419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422     break 2
10423   fi
10424 done
10425   done
10426 IFS=$as_save_IFS
10427
10428 fi
10429 fi
10430 AR=$ac_cv_prog_AR
10431 if test -n "$AR"; then
10432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10433 $as_echo "$AR" >&6; }
10434 else
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 fi
10438
10439
10440     test -n "$AR" && break
10441   done
10442 fi
10443 if test -z "$AR"; then
10444   ac_ct_AR=$AR
10445   for ac_prog in ar
10446 do
10447   # Extract the first word of "$ac_prog", so it can be a program name with args.
10448 set dummy $ac_prog; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10452   $as_echo_n "(cached) " >&6
10453 else
10454   if test -n "$ac_ct_AR"; then
10455   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10456 else
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10459 do
10460   IFS=$as_save_IFS
10461   test -z "$as_dir" && as_dir=.
10462     for ac_exec_ext in '' $ac_executable_extensions; do
10463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10464     ac_cv_prog_ac_ct_AR="$ac_prog"
10465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466     break 2
10467   fi
10468 done
10469   done
10470 IFS=$as_save_IFS
10471
10472 fi
10473 fi
10474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10475 if test -n "$ac_ct_AR"; then
10476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10477 $as_echo "$ac_ct_AR" >&6; }
10478 else
10479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481 fi
10482
10483
10484   test -n "$ac_ct_AR" && break
10485 done
10486
10487   if test "x$ac_ct_AR" = x; then
10488     AR="false"
10489   else
10490     case $cross_compiling:$ac_tool_warned in
10491 yes:)
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10494 ac_tool_warned=yes ;;
10495 esac
10496     AR=$ac_ct_AR
10497   fi
10498 fi
10499
10500 : ${AR=ar}
10501 : ${AR_FLAGS=cru}
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10514 $as_echo_n "checking for archiver @FILE support... " >&6; }
10515 if ${lt_cv_ar_at_file+:} false; then :
10516   $as_echo_n "(cached) " >&6
10517 else
10518   lt_cv_ar_at_file=no
10519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h.  */
10521
10522 int
10523 main ()
10524 {
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531   echo conftest.$ac_objext > conftest.lst
10532       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10533       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10534   (eval $lt_ar_try) 2>&5
10535   ac_status=$?
10536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10537   test $ac_status = 0; }
10538       if test "$ac_status" -eq 0; then
10539         # Ensure the archiver fails upon bogus file names.
10540         rm -f conftest.$ac_objext libconftest.a
10541         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10542   (eval $lt_ar_try) 2>&5
10543   ac_status=$?
10544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545   test $ac_status = 0; }
10546         if test "$ac_status" -ne 0; then
10547           lt_cv_ar_at_file=@
10548         fi
10549       fi
10550       rm -f conftest.* libconftest.a
10551
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554
10555 fi
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10557 $as_echo "$lt_cv_ar_at_file" >&6; }
10558
10559 if test "x$lt_cv_ar_at_file" = xno; then
10560   archiver_list_spec=
10561 else
10562   archiver_list_spec=$lt_cv_ar_at_file
10563 fi
10564
10565
10566
10567
10568
10569
10570
10571 if test -n "$ac_tool_prefix"; then
10572   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10573 set dummy ${ac_tool_prefix}strip; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_prog_STRIP+:} false; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   if test -n "$STRIP"; then
10580   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10584 do
10585   IFS=$as_save_IFS
10586   test -z "$as_dir" && as_dir=.
10587     for ac_exec_ext in '' $ac_executable_extensions; do
10588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10591     break 2
10592   fi
10593 done
10594   done
10595 IFS=$as_save_IFS
10596
10597 fi
10598 fi
10599 STRIP=$ac_cv_prog_STRIP
10600 if test -n "$STRIP"; then
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10602 $as_echo "$STRIP" >&6; }
10603 else
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 fi
10607
10608
10609 fi
10610 if test -z "$ac_cv_prog_STRIP"; then
10611   ac_ct_STRIP=$STRIP
10612   # Extract the first word of "strip", so it can be a program name with args.
10613 set dummy strip; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10617   $as_echo_n "(cached) " >&6
10618 else
10619   if test -n "$ac_ct_STRIP"; then
10620   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10621 else
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10624 do
10625   IFS=$as_save_IFS
10626   test -z "$as_dir" && as_dir=.
10627     for ac_exec_ext in '' $ac_executable_extensions; do
10628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629     ac_cv_prog_ac_ct_STRIP="strip"
10630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631     break 2
10632   fi
10633 done
10634   done
10635 IFS=$as_save_IFS
10636
10637 fi
10638 fi
10639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10640 if test -n "$ac_ct_STRIP"; then
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10642 $as_echo "$ac_ct_STRIP" >&6; }
10643 else
10644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647
10648   if test "x$ac_ct_STRIP" = x; then
10649     STRIP=":"
10650   else
10651     case $cross_compiling:$ac_tool_warned in
10652 yes:)
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10655 ac_tool_warned=yes ;;
10656 esac
10657     STRIP=$ac_ct_STRIP
10658   fi
10659 else
10660   STRIP="$ac_cv_prog_STRIP"
10661 fi
10662
10663 test -z "$STRIP" && STRIP=:
10664
10665
10666
10667
10668
10669
10670 if test -n "$ac_tool_prefix"; then
10671   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_prog_RANLIB+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   if test -n "$RANLIB"; then
10679   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10680 else
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10683 do
10684   IFS=$as_save_IFS
10685   test -z "$as_dir" && as_dir=.
10686     for ac_exec_ext in '' $ac_executable_extensions; do
10687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690     break 2
10691   fi
10692 done
10693   done
10694 IFS=$as_save_IFS
10695
10696 fi
10697 fi
10698 RANLIB=$ac_cv_prog_RANLIB
10699 if test -n "$RANLIB"; then
10700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10701 $as_echo "$RANLIB" >&6; }
10702 else
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10705 fi
10706
10707
10708 fi
10709 if test -z "$ac_cv_prog_RANLIB"; then
10710   ac_ct_RANLIB=$RANLIB
10711   # Extract the first word of "ranlib", so it can be a program name with args.
10712 set dummy ranlib; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   if test -n "$ac_ct_RANLIB"; then
10719   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724   IFS=$as_save_IFS
10725   test -z "$as_dir" && as_dir=.
10726     for ac_exec_ext in '' $ac_executable_extensions; do
10727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728     ac_cv_prog_ac_ct_RANLIB="ranlib"
10729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730     break 2
10731   fi
10732 done
10733   done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10739 if test -n "$ac_ct_RANLIB"; then
10740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10741 $as_echo "$ac_ct_RANLIB" >&6; }
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746
10747   if test "x$ac_ct_RANLIB" = x; then
10748     RANLIB=":"
10749   else
10750     case $cross_compiling:$ac_tool_warned in
10751 yes:)
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10754 ac_tool_warned=yes ;;
10755 esac
10756     RANLIB=$ac_ct_RANLIB
10757   fi
10758 else
10759   RANLIB="$ac_cv_prog_RANLIB"
10760 fi
10761
10762 test -z "$RANLIB" && RANLIB=:
10763
10764
10765
10766
10767
10768
10769 # Determine commands to create old-style static archives.
10770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10771 old_postinstall_cmds='chmod 644 $oldlib'
10772 old_postuninstall_cmds=
10773
10774 if test -n "$RANLIB"; then
10775   case $host_os in
10776   openbsd*)
10777     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10778     ;;
10779   *)
10780     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10781     ;;
10782   esac
10783   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10784 fi
10785
10786 case $host_os in
10787   darwin*)
10788     lock_old_archive_extraction=yes ;;
10789   *)
10790     lock_old_archive_extraction=no ;;
10791 esac
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 # If no C compiler was specified, use CC.
10832 LTCC=${LTCC-"$CC"}
10833
10834 # If no C compiler flags were specified, use CFLAGS.
10835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10836
10837 # Allow CC to be a program name with arguments.
10838 compiler=$CC
10839
10840
10841 # Check for command to grab the raw symbol name followed by C symbol from nm.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10844 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10845   $as_echo_n "(cached) " >&6
10846 else
10847
10848 # These are sane defaults that work on at least a few old systems.
10849 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10850
10851 # Character class describing NM global symbol codes.
10852 symcode='[BCDEGRST]'
10853
10854 # Regexp to match symbols that can be accessed directly from C.
10855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10856
10857 # Define system-specific variables.
10858 case $host_os in
10859 aix*)
10860   symcode='[BCDT]'
10861   ;;
10862 cygwin* | mingw* | pw32* | cegcc*)
10863   symcode='[ABCDGISTW]'
10864   ;;
10865 hpux*)
10866   if test "$host_cpu" = ia64; then
10867     symcode='[ABCDEGRST]'
10868   fi
10869   ;;
10870 irix* | nonstopux*)
10871   symcode='[BCDEGRST]'
10872   ;;
10873 osf*)
10874   symcode='[BCDEGQRST]'
10875   ;;
10876 solaris*)
10877   symcode='[BDRT]'
10878   ;;
10879 sco3.2v5*)
10880   symcode='[DT]'
10881   ;;
10882 sysv4.2uw2*)
10883   symcode='[DT]'
10884   ;;
10885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10886   symcode='[ABDT]'
10887   ;;
10888 sysv4)
10889   symcode='[DFNSTU]'
10890   ;;
10891 esac
10892
10893 # If we're using GNU nm, then use its standard symbol codes.
10894 case `$NM -V 2>&1` in
10895 *GNU* | *'with BFD'*)
10896   symcode='[ABCDGIRSTW]' ;;
10897 esac
10898
10899 # Transform an extracted symbol line into a proper C declaration.
10900 # Some systems (esp. on ia64) link data and code symbols differently,
10901 # so use this general approach.
10902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10903
10904 # Transform an extracted symbol line into symbol name and symbol address
10905 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
10907
10908 # Handle CRLF in mingw tool chain
10909 opt_cr=
10910 case $build_os in
10911 mingw*)
10912   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10913   ;;
10914 esac
10915
10916 # Try without a prefix underscore, then with it.
10917 for ac_symprfx in "" "_"; do
10918
10919   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10920   symxfrm="\\1 $ac_symprfx\\2 \\2"
10921
10922   # Write the raw and C identifiers.
10923   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10924     # Fake it for dumpbin and say T for any non-static function
10925     # and D for any global variable.
10926     # Also find C++ and __fastcall symbols from MSVC++,
10927     # which start with @ or ?.
10928     lt_cv_sys_global_symbol_pipe="$AWK '"\
10929 "     {last_section=section; section=\$ 3};"\
10930 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10931 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10932 "     \$ 0!~/External *\|/{next};"\
10933 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10934 "     {if(hide[section]) next};"\
10935 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10936 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10937 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10938 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10939 "     ' prfx=^$ac_symprfx"
10940   else
10941     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10942   fi
10943   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10944
10945   # Check to see that the pipe works correctly.
10946   pipe_works=no
10947
10948   rm -f conftest*
10949   cat > conftest.$ac_ext <<_LT_EOF
10950 #ifdef __cplusplus
10951 extern "C" {
10952 #endif
10953 char nm_test_var;
10954 void nm_test_func(void);
10955 void nm_test_func(void){}
10956 #ifdef __cplusplus
10957 }
10958 #endif
10959 int main(){nm_test_var='a';nm_test_func();return(0);}
10960 _LT_EOF
10961
10962   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10963   (eval $ac_compile) 2>&5
10964   ac_status=$?
10965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966   test $ac_status = 0; }; then
10967     # Now try to grab the symbols.
10968     nlist=conftest.nm
10969     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10970   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10971   ac_status=$?
10972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10973   test $ac_status = 0; } && test -s "$nlist"; then
10974       # Try sorting and uniquifying the output.
10975       if sort "$nlist" | uniq > "$nlist"T; then
10976         mv -f "$nlist"T "$nlist"
10977       else
10978         rm -f "$nlist"T
10979       fi
10980
10981       # Make sure that we snagged all the symbols we need.
10982       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10983         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10984           cat <<_LT_EOF > conftest.$ac_ext
10985 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10986 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10987 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10988    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10989 # define LT_DLSYM_CONST
10990 #elif defined(__osf__)
10991 /* This system does not cope well with relocations in const data.  */
10992 # define LT_DLSYM_CONST
10993 #else
10994 # define LT_DLSYM_CONST const
10995 #endif
10996
10997 #ifdef __cplusplus
10998 extern "C" {
10999 #endif
11000
11001 _LT_EOF
11002           # Now generate the symbol file.
11003           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11004
11005           cat <<_LT_EOF >> conftest.$ac_ext
11006
11007 /* The mapping between symbol names and symbols.  */
11008 LT_DLSYM_CONST struct {
11009   const char *name;
11010   void       *address;
11011 }
11012 lt__PROGRAM__LTX_preloaded_symbols[] =
11013 {
11014   { "@PROGRAM@", (void *) 0 },
11015 _LT_EOF
11016           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11017           cat <<\_LT_EOF >> conftest.$ac_ext
11018   {0, (void *) 0}
11019 };
11020
11021 /* This works around a problem in FreeBSD linker */
11022 #ifdef FREEBSD_WORKAROUND
11023 static const void *lt_preloaded_setup() {
11024   return lt__PROGRAM__LTX_preloaded_symbols;
11025 }
11026 #endif
11027
11028 #ifdef __cplusplus
11029 }
11030 #endif
11031 _LT_EOF
11032           # Now try linking the two files.
11033           mv conftest.$ac_objext conftstm.$ac_objext
11034           lt_globsym_save_LIBS=$LIBS
11035           lt_globsym_save_CFLAGS=$CFLAGS
11036           LIBS="conftstm.$ac_objext"
11037           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11038           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039   (eval $ac_link) 2>&5
11040   ac_status=$?
11041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11043             pipe_works=yes
11044           fi
11045           LIBS=$lt_globsym_save_LIBS
11046           CFLAGS=$lt_globsym_save_CFLAGS
11047         else
11048           echo "cannot find nm_test_func in $nlist" >&5
11049         fi
11050       else
11051         echo "cannot find nm_test_var in $nlist" >&5
11052       fi
11053     else
11054       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11055     fi
11056   else
11057     echo "$progname: failed program was:" >&5
11058     cat conftest.$ac_ext >&5
11059   fi
11060   rm -rf conftest* conftst*
11061
11062   # Do not use the global_symbol_pipe unless it works.
11063   if test "$pipe_works" = yes; then
11064     break
11065   else
11066     lt_cv_sys_global_symbol_pipe=
11067   fi
11068 done
11069
11070 fi
11071
11072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11073   lt_cv_sys_global_symbol_to_cdecl=
11074 fi
11075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11077 $as_echo "failed" >&6; }
11078 else
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11080 $as_echo "ok" >&6; }
11081 fi
11082
11083 # Response file support.
11084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11085   nm_file_list_spec='@'
11086 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11087   nm_file_list_spec='@'
11088 fi
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11117 $as_echo_n "checking for sysroot... " >&6; }
11118
11119 # Check whether --with-sysroot was given.
11120 if test "${with_sysroot+set}" = set; then :
11121   withval=$with_sysroot;
11122 else
11123   with_sysroot=no
11124 fi
11125
11126
11127 lt_sysroot=
11128 case ${with_sysroot} in #(
11129  yes)
11130    if test "$GCC" = yes; then
11131      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11132    fi
11133    ;; #(
11134  /*)
11135    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11136    ;; #(
11137  no|'')
11138    ;; #(
11139  *)
11140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11141 $as_echo "${with_sysroot}" >&6; }
11142    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11143    ;;
11144 esac
11145
11146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11147 $as_echo "${lt_sysroot:-no}" >&6; }
11148
11149
11150
11151
11152
11153 # Check whether --enable-libtool-lock was given.
11154 if test "${enable_libtool_lock+set}" = set; then :
11155   enableval=$enable_libtool_lock;
11156 fi
11157
11158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11159
11160 # Some flags need to be propagated to the compiler or linker for good
11161 # libtool support.
11162 case $host in
11163 ia64-*-hpux*)
11164   # Find out which ABI we are using.
11165   echo 'int i;' > conftest.$ac_ext
11166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11167   (eval $ac_compile) 2>&5
11168   ac_status=$?
11169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170   test $ac_status = 0; }; then
11171     case `/usr/bin/file conftest.$ac_objext` in
11172       *ELF-32*)
11173         HPUX_IA64_MODE="32"
11174         ;;
11175       *ELF-64*)
11176         HPUX_IA64_MODE="64"
11177         ;;
11178     esac
11179   fi
11180   rm -rf conftest*
11181   ;;
11182 *-*-irix6*)
11183   # Find out which ABI we are using.
11184   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11185   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11186   (eval $ac_compile) 2>&5
11187   ac_status=$?
11188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11189   test $ac_status = 0; }; then
11190     if test "$lt_cv_prog_gnu_ld" = yes; then
11191       case `/usr/bin/file conftest.$ac_objext` in
11192         *32-bit*)
11193           LD="${LD-ld} -melf32bsmip"
11194           ;;
11195         *N32*)
11196           LD="${LD-ld} -melf32bmipn32"
11197           ;;
11198         *64-bit*)
11199           LD="${LD-ld} -melf64bmip"
11200         ;;
11201       esac
11202     else
11203       case `/usr/bin/file conftest.$ac_objext` in
11204         *32-bit*)
11205           LD="${LD-ld} -32"
11206           ;;
11207         *N32*)
11208           LD="${LD-ld} -n32"
11209           ;;
11210         *64-bit*)
11211           LD="${LD-ld} -64"
11212           ;;
11213       esac
11214     fi
11215   fi
11216   rm -rf conftest*
11217   ;;
11218
11219 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11220 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11221   # Find out which ABI we are using.
11222   echo 'int i;' > conftest.$ac_ext
11223   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11224   (eval $ac_compile) 2>&5
11225   ac_status=$?
11226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227   test $ac_status = 0; }; then
11228     case `/usr/bin/file conftest.o` in
11229       *32-bit*)
11230         case $host in
11231           x86_64-*kfreebsd*-gnu)
11232             LD="${LD-ld} -m elf_i386_fbsd"
11233             ;;
11234           x86_64-*linux*)
11235             LD="${LD-ld} -m elf_i386"
11236             ;;
11237           ppc64-*linux*|powerpc64-*linux*)
11238             LD="${LD-ld} -m elf32ppclinux"
11239             ;;
11240           s390x-*linux*)
11241             LD="${LD-ld} -m elf_s390"
11242             ;;
11243           sparc64-*linux*)
11244             LD="${LD-ld} -m elf32_sparc"
11245             ;;
11246         esac
11247         ;;
11248       *64-bit*)
11249         case $host in
11250           x86_64-*kfreebsd*-gnu)
11251             LD="${LD-ld} -m elf_x86_64_fbsd"
11252             ;;
11253           x86_64-*linux*)
11254             LD="${LD-ld} -m elf_x86_64"
11255             ;;
11256           ppc*-*linux*|powerpc*-*linux*)
11257             LD="${LD-ld} -m elf64ppc"
11258             ;;
11259           s390*-*linux*|s390*-*tpf*)
11260             LD="${LD-ld} -m elf64_s390"
11261             ;;
11262           sparc*-*linux*)
11263             LD="${LD-ld} -m elf64_sparc"
11264             ;;
11265         esac
11266         ;;
11267     esac
11268   fi
11269   rm -rf conftest*
11270   ;;
11271
11272 *-*-sco3.2v5*)
11273   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11274   SAVE_CFLAGS="$CFLAGS"
11275   CFLAGS="$CFLAGS -belf"
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11277 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11278 if ${lt_cv_cc_needs_belf+:} false; then :
11279   $as_echo_n "(cached) " >&6
11280 else
11281   ac_ext=c
11282 ac_cpp='$CPP $CPPFLAGS'
11283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11286
11287      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h.  */
11289
11290 int
11291 main ()
11292 {
11293
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299   lt_cv_cc_needs_belf=yes
11300 else
11301   lt_cv_cc_needs_belf=no
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304     conftest$ac_exeext conftest.$ac_ext
11305      ac_ext=c
11306 ac_cpp='$CPP $CPPFLAGS'
11307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11310
11311 fi
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11313 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11314   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11315     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11316     CFLAGS="$SAVE_CFLAGS"
11317   fi
11318   ;;
11319 *-*solaris*)
11320   # Find out which ABI we are using.
11321   echo 'int i;' > conftest.$ac_ext
11322   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11323   (eval $ac_compile) 2>&5
11324   ac_status=$?
11325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11326   test $ac_status = 0; }; then
11327     case `/usr/bin/file conftest.o` in
11328     *64-bit*)
11329       case $lt_cv_prog_gnu_ld in
11330       yes*)
11331         case $host in
11332         i?86-*-solaris*)
11333           LD="${LD-ld} -m elf_x86_64"
11334           ;;
11335         sparc*-*-solaris*)
11336           LD="${LD-ld} -m elf64_sparc"
11337           ;;
11338         esac
11339         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11340         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11341           LD="${LD-ld}_sol2"
11342         fi
11343         ;;
11344       *)
11345         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11346           LD="${LD-ld} -64"
11347         fi
11348         ;;
11349       esac
11350       ;;
11351     esac
11352   fi
11353   rm -rf conftest*
11354   ;;
11355 esac
11356
11357 need_locks="$enable_libtool_lock"
11358
11359 if test -n "$ac_tool_prefix"; then
11360   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}mt; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11365   $as_echo_n "(cached) " >&6
11366 else
11367   if test -n "$MANIFEST_TOOL"; then
11368   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373   IFS=$as_save_IFS
11374   test -z "$as_dir" && as_dir=.
11375     for ac_exec_ext in '' $ac_executable_extensions; do
11376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379     break 2
11380   fi
11381 done
11382   done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11388 if test -n "$MANIFEST_TOOL"; then
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11390 $as_echo "$MANIFEST_TOOL" >&6; }
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397 fi
11398 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11399   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11400   # Extract the first word of "mt", so it can be a program name with args.
11401 set dummy mt; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   if test -n "$ac_ct_MANIFEST_TOOL"; then
11408   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413   IFS=$as_save_IFS
11414   test -z "$as_dir" && as_dir=.
11415     for ac_exec_ext in '' $ac_executable_extensions; do
11416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419     break 2
11420   fi
11421 done
11422   done
11423 IFS=$as_save_IFS
11424
11425 fi
11426 fi
11427 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11428 if test -n "$ac_ct_MANIFEST_TOOL"; then
11429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11430 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11437     MANIFEST_TOOL=":"
11438   else
11439     case $cross_compiling:$ac_tool_warned in
11440 yes:)
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11443 ac_tool_warned=yes ;;
11444 esac
11445     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11446   fi
11447 else
11448   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11449 fi
11450
11451 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11453 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11454 if ${lt_cv_path_mainfest_tool+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457   lt_cv_path_mainfest_tool=no
11458   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11459   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11460   cat conftest.err >&5
11461   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11462     lt_cv_path_mainfest_tool=yes
11463   fi
11464   rm -f conftest*
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11467 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11468 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11469   MANIFEST_TOOL=:
11470 fi
11471
11472
11473
11474
11475
11476
11477   case $host_os in
11478     rhapsody* | darwin*)
11479     if test -n "$ac_tool_prefix"; then
11480   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11481 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   if test -n "$DSYMUTIL"; then
11488   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11489 else
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11492 do
11493   IFS=$as_save_IFS
11494   test -z "$as_dir" && as_dir=.
11495     for ac_exec_ext in '' $ac_executable_extensions; do
11496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499     break 2
11500   fi
11501 done
11502   done
11503 IFS=$as_save_IFS
11504
11505 fi
11506 fi
11507 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11508 if test -n "$DSYMUTIL"; then
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11510 $as_echo "$DSYMUTIL" >&6; }
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 fi
11515
11516
11517 fi
11518 if test -z "$ac_cv_prog_DSYMUTIL"; then
11519   ac_ct_DSYMUTIL=$DSYMUTIL
11520   # Extract the first word of "dsymutil", so it can be a program name with args.
11521 set dummy dsymutil; ac_word=$2
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523 $as_echo_n "checking for $ac_word... " >&6; }
11524 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11525   $as_echo_n "(cached) " >&6
11526 else
11527   if test -n "$ac_ct_DSYMUTIL"; then
11528   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11529 else
11530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531 for as_dir in $PATH
11532 do
11533   IFS=$as_save_IFS
11534   test -z "$as_dir" && as_dir=.
11535     for ac_exec_ext in '' $ac_executable_extensions; do
11536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539     break 2
11540   fi
11541 done
11542   done
11543 IFS=$as_save_IFS
11544
11545 fi
11546 fi
11547 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11548 if test -n "$ac_ct_DSYMUTIL"; then
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11550 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554 fi
11555
11556   if test "x$ac_ct_DSYMUTIL" = x; then
11557     DSYMUTIL=":"
11558   else
11559     case $cross_compiling:$ac_tool_warned in
11560 yes:)
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11563 ac_tool_warned=yes ;;
11564 esac
11565     DSYMUTIL=$ac_ct_DSYMUTIL
11566   fi
11567 else
11568   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11569 fi
11570
11571     if test -n "$ac_tool_prefix"; then
11572   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11573 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_NMEDIT+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if test -n "$NMEDIT"; then
11580   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587     for ac_exec_ext in '' $ac_executable_extensions; do
11588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591     break 2
11592   fi
11593 done
11594   done
11595 IFS=$as_save_IFS
11596
11597 fi
11598 fi
11599 NMEDIT=$ac_cv_prog_NMEDIT
11600 if test -n "$NMEDIT"; then
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11602 $as_echo "$NMEDIT" >&6; }
11603 else
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606 fi
11607
11608
11609 fi
11610 if test -z "$ac_cv_prog_NMEDIT"; then
11611   ac_ct_NMEDIT=$NMEDIT
11612   # Extract the first word of "nmedit", so it can be a program name with args.
11613 set dummy nmedit; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   if test -n "$ac_ct_NMEDIT"; then
11620   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11621 else
11622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623 for as_dir in $PATH
11624 do
11625   IFS=$as_save_IFS
11626   test -z "$as_dir" && as_dir=.
11627     for ac_exec_ext in '' $ac_executable_extensions; do
11628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631     break 2
11632   fi
11633 done
11634   done
11635 IFS=$as_save_IFS
11636
11637 fi
11638 fi
11639 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11640 if test -n "$ac_ct_NMEDIT"; then
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11642 $as_echo "$ac_ct_NMEDIT" >&6; }
11643 else
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645 $as_echo "no" >&6; }
11646 fi
11647
11648   if test "x$ac_ct_NMEDIT" = x; then
11649     NMEDIT=":"
11650   else
11651     case $cross_compiling:$ac_tool_warned in
11652 yes:)
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11655 ac_tool_warned=yes ;;
11656 esac
11657     NMEDIT=$ac_ct_NMEDIT
11658   fi
11659 else
11660   NMEDIT="$ac_cv_prog_NMEDIT"
11661 fi
11662
11663     if test -n "$ac_tool_prefix"; then
11664   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11665 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if ${ac_cv_prog_LIPO+:} false; then :
11669   $as_echo_n "(cached) " >&6
11670 else
11671   if test -n "$LIPO"; then
11672   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11676 do
11677   IFS=$as_save_IFS
11678   test -z "$as_dir" && as_dir=.
11679     for ac_exec_ext in '' $ac_executable_extensions; do
11680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683     break 2
11684   fi
11685 done
11686   done
11687 IFS=$as_save_IFS
11688
11689 fi
11690 fi
11691 LIPO=$ac_cv_prog_LIPO
11692 if test -n "$LIPO"; then
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11694 $as_echo "$LIPO" >&6; }
11695 else
11696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11698 fi
11699
11700
11701 fi
11702 if test -z "$ac_cv_prog_LIPO"; then
11703   ac_ct_LIPO=$LIPO
11704   # Extract the first word of "lipo", so it can be a program name with args.
11705 set dummy lipo; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711   if test -n "$ac_ct_LIPO"; then
11712   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11713 else
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11716 do
11717   IFS=$as_save_IFS
11718   test -z "$as_dir" && as_dir=.
11719     for ac_exec_ext in '' $ac_executable_extensions; do
11720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721     ac_cv_prog_ac_ct_LIPO="lipo"
11722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723     break 2
11724   fi
11725 done
11726   done
11727 IFS=$as_save_IFS
11728
11729 fi
11730 fi
11731 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11732 if test -n "$ac_ct_LIPO"; then
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11734 $as_echo "$ac_ct_LIPO" >&6; }
11735 else
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11738 fi
11739
11740   if test "x$ac_ct_LIPO" = x; then
11741     LIPO=":"
11742   else
11743     case $cross_compiling:$ac_tool_warned in
11744 yes:)
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11747 ac_tool_warned=yes ;;
11748 esac
11749     LIPO=$ac_ct_LIPO
11750   fi
11751 else
11752   LIPO="$ac_cv_prog_LIPO"
11753 fi
11754
11755     if test -n "$ac_tool_prefix"; then
11756   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11757 set dummy ${ac_tool_prefix}otool; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if ${ac_cv_prog_OTOOL+:} false; then :
11761   $as_echo_n "(cached) " >&6
11762 else
11763   if test -n "$OTOOL"; then
11764   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11765 else
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11768 do
11769   IFS=$as_save_IFS
11770   test -z "$as_dir" && as_dir=.
11771     for ac_exec_ext in '' $ac_executable_extensions; do
11772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775     break 2
11776   fi
11777 done
11778   done
11779 IFS=$as_save_IFS
11780
11781 fi
11782 fi
11783 OTOOL=$ac_cv_prog_OTOOL
11784 if test -n "$OTOOL"; then
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11786 $as_echo "$OTOOL" >&6; }
11787 else
11788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790 fi
11791
11792
11793 fi
11794 if test -z "$ac_cv_prog_OTOOL"; then
11795   ac_ct_OTOOL=$OTOOL
11796   # Extract the first word of "otool", so it can be a program name with args.
11797 set dummy otool; ac_word=$2
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   if test -n "$ac_ct_OTOOL"; then
11804   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11805 else
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11808 do
11809   IFS=$as_save_IFS
11810   test -z "$as_dir" && as_dir=.
11811     for ac_exec_ext in '' $ac_executable_extensions; do
11812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813     ac_cv_prog_ac_ct_OTOOL="otool"
11814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815     break 2
11816   fi
11817 done
11818   done
11819 IFS=$as_save_IFS
11820
11821 fi
11822 fi
11823 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11824 if test -n "$ac_ct_OTOOL"; then
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11826 $as_echo "$ac_ct_OTOOL" >&6; }
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831
11832   if test "x$ac_ct_OTOOL" = x; then
11833     OTOOL=":"
11834   else
11835     case $cross_compiling:$ac_tool_warned in
11836 yes:)
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11839 ac_tool_warned=yes ;;
11840 esac
11841     OTOOL=$ac_ct_OTOOL
11842   fi
11843 else
11844   OTOOL="$ac_cv_prog_OTOOL"
11845 fi
11846
11847     if test -n "$ac_tool_prefix"; then
11848   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11849 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_prog_OTOOL64+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   if test -n "$OTOOL64"; then
11856   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11857 else
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861   IFS=$as_save_IFS
11862   test -z "$as_dir" && as_dir=.
11863     for ac_exec_ext in '' $ac_executable_extensions; do
11864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867     break 2
11868   fi
11869 done
11870   done
11871 IFS=$as_save_IFS
11872
11873 fi
11874 fi
11875 OTOOL64=$ac_cv_prog_OTOOL64
11876 if test -n "$OTOOL64"; then
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11878 $as_echo "$OTOOL64" >&6; }
11879 else
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884
11885 fi
11886 if test -z "$ac_cv_prog_OTOOL64"; then
11887   ac_ct_OTOOL64=$OTOOL64
11888   # Extract the first word of "otool64", so it can be a program name with args.
11889 set dummy otool64; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   if test -n "$ac_ct_OTOOL64"; then
11896   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11897 else
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11900 do
11901   IFS=$as_save_IFS
11902   test -z "$as_dir" && as_dir=.
11903     for ac_exec_ext in '' $ac_executable_extensions; do
11904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905     ac_cv_prog_ac_ct_OTOOL64="otool64"
11906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907     break 2
11908   fi
11909 done
11910   done
11911 IFS=$as_save_IFS
11912
11913 fi
11914 fi
11915 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11916 if test -n "$ac_ct_OTOOL64"; then
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11918 $as_echo "$ac_ct_OTOOL64" >&6; }
11919 else
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 fi
11923
11924   if test "x$ac_ct_OTOOL64" = x; then
11925     OTOOL64=":"
11926   else
11927     case $cross_compiling:$ac_tool_warned in
11928 yes:)
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931 ac_tool_warned=yes ;;
11932 esac
11933     OTOOL64=$ac_ct_OTOOL64
11934   fi
11935 else
11936   OTOOL64="$ac_cv_prog_OTOOL64"
11937 fi
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11966 $as_echo_n "checking for -single_module linker flag... " >&6; }
11967 if ${lt_cv_apple_cc_single_mod+:} false; then :
11968   $as_echo_n "(cached) " >&6
11969 else
11970   lt_cv_apple_cc_single_mod=no
11971       if test -z "${LT_MULTI_MODULE}"; then
11972         # By default we will add the -single_module flag. You can override
11973         # by either setting the environment variable LT_MULTI_MODULE
11974         # non-empty at configure time, or by adding -multi_module to the
11975         # link flags.
11976         rm -rf libconftest.dylib*
11977         echo "int foo(void){return 1;}" > conftest.c
11978         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11979 -dynamiclib -Wl,-single_module conftest.c" >&5
11980         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11981           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11982         _lt_result=$?
11983         # If there is a non-empty error log, and "single_module"
11984         # appears in it, assume the flag caused a linker warning
11985         if test -s conftest.err && $GREP single_module conftest.err; then
11986           cat conftest.err >&5
11987         # Otherwise, if the output was created with a 0 exit code from
11988         # the compiler, it worked.
11989         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11990           lt_cv_apple_cc_single_mod=yes
11991         else
11992           cat conftest.err >&5
11993         fi
11994         rm -rf libconftest.dylib*
11995         rm -f conftest.*
11996       fi
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11999 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12000
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12002 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12003 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   lt_cv_ld_exported_symbols_list=no
12007       save_LDFLAGS=$LDFLAGS
12008       echo "_main" > conftest.sym
12009       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h.  */
12012
12013 int
12014 main ()
12015 {
12016
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022   lt_cv_ld_exported_symbols_list=yes
12023 else
12024   lt_cv_ld_exported_symbols_list=no
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext \
12027     conftest$ac_exeext conftest.$ac_ext
12028         LDFLAGS="$save_LDFLAGS"
12029
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12032 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12033
12034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12035 $as_echo_n "checking for -force_load linker flag... " >&6; }
12036 if ${lt_cv_ld_force_load+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   lt_cv_ld_force_load=no
12040       cat > conftest.c << _LT_EOF
12041 int forced_loaded() { return 2;}
12042 _LT_EOF
12043       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12044       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12045       echo "$AR cru libconftest.a conftest.o" >&5
12046       $AR cru libconftest.a conftest.o 2>&5
12047       echo "$RANLIB libconftest.a" >&5
12048       $RANLIB libconftest.a 2>&5
12049       cat > conftest.c << _LT_EOF
12050 int main() { return 0;}
12051 _LT_EOF
12052       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12053       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12054       _lt_result=$?
12055       if test -s conftest.err && $GREP force_load conftest.err; then
12056         cat conftest.err >&5
12057       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12058         lt_cv_ld_force_load=yes
12059       else
12060         cat conftest.err >&5
12061       fi
12062         rm -f conftest.err libconftest.a conftest conftest.c
12063         rm -rf conftest.dSYM
12064
12065 fi
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12067 $as_echo "$lt_cv_ld_force_load" >&6; }
12068     case $host_os in
12069     rhapsody* | darwin1.[012])
12070       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12071     darwin1.*)
12072       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12073     darwin*) # darwin 5.x on
12074       # if running on 10.5 or later, the deployment target defaults
12075       # to the OS version, if on x86, and 10.4, the deployment
12076       # target defaults to 10.4. Don't you love it?
12077       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12078         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12079           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12080         10.[012]*)
12081           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12082         10.*)
12083           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12084       esac
12085     ;;
12086   esac
12087     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12088       _lt_dar_single_mod='$single_module'
12089     fi
12090     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12091       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12092     else
12093       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12094     fi
12095     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12096       _lt_dsymutil='~$DSYMUTIL $lib || :'
12097     else
12098       _lt_dsymutil=
12099     fi
12100     ;;
12101   esac
12102
12103 for ac_header in dlfcn.h
12104 do :
12105   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12106 "
12107 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12108   cat >>confdefs.h <<_ACEOF
12109 #define HAVE_DLFCN_H 1
12110 _ACEOF
12111
12112 fi
12113
12114 done
12115
12116
12117
12118 func_stripname_cnf ()
12119 {
12120   case ${2} in
12121   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12122   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12123   esac
12124 } # func_stripname_cnf
12125
12126
12127
12128
12129
12130 # Set options
12131 # Check whether --enable-static was given.
12132 if test "${enable_static+set}" = set; then :
12133   enableval=$enable_static; p=${PACKAGE-default}
12134     case $enableval in
12135     yes) enable_static=yes ;;
12136     no) enable_static=no ;;
12137     *)
12138      enable_static=no
12139       # Look at the argument we got.  We use all the common list separators.
12140       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12141       for pkg in $enableval; do
12142         IFS="$lt_save_ifs"
12143         if test "X$pkg" = "X$p"; then
12144           enable_static=yes
12145         fi
12146       done
12147       IFS="$lt_save_ifs"
12148       ;;
12149     esac
12150 else
12151   enable_static=no
12152 fi
12153
12154
12155
12156
12157
12158
12159
12160 enable_win32_dll=yes
12161
12162 case $host in
12163 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12164   if test -n "$ac_tool_prefix"; then
12165   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12166 set dummy ${ac_tool_prefix}as; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_AS+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   if test -n "$AS"; then
12173   ac_cv_prog_AS="$AS" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180     for ac_exec_ext in '' $ac_executable_extensions; do
12181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182     ac_cv_prog_AS="${ac_tool_prefix}as"
12183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184     break 2
12185   fi
12186 done
12187   done
12188 IFS=$as_save_IFS
12189
12190 fi
12191 fi
12192 AS=$ac_cv_prog_AS
12193 if test -n "$AS"; then
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12195 $as_echo "$AS" >&6; }
12196 else
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12199 fi
12200
12201
12202 fi
12203 if test -z "$ac_cv_prog_AS"; then
12204   ac_ct_AS=$AS
12205   # Extract the first word of "as", so it can be a program name with args.
12206 set dummy as; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   if test -n "$ac_ct_AS"; then
12213   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12214 else
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12217 do
12218   IFS=$as_save_IFS
12219   test -z "$as_dir" && as_dir=.
12220     for ac_exec_ext in '' $ac_executable_extensions; do
12221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222     ac_cv_prog_ac_ct_AS="as"
12223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224     break 2
12225   fi
12226 done
12227   done
12228 IFS=$as_save_IFS
12229
12230 fi
12231 fi
12232 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12233 if test -n "$ac_ct_AS"; then
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12235 $as_echo "$ac_ct_AS" >&6; }
12236 else
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239 fi
12240
12241   if test "x$ac_ct_AS" = x; then
12242     AS="false"
12243   else
12244     case $cross_compiling:$ac_tool_warned in
12245 yes:)
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12249 esac
12250     AS=$ac_ct_AS
12251   fi
12252 else
12253   AS="$ac_cv_prog_AS"
12254 fi
12255
12256   if test -n "$ac_tool_prefix"; then
12257   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12258 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_DLLTOOL+:} false; then :
12262   $as_echo_n "(cached) " >&6
12263 else
12264   if test -n "$DLLTOOL"; then
12265   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272     for ac_exec_ext in '' $ac_executable_extensions; do
12273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12274     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276     break 2
12277   fi
12278 done
12279   done
12280 IFS=$as_save_IFS
12281
12282 fi
12283 fi
12284 DLLTOOL=$ac_cv_prog_DLLTOOL
12285 if test -n "$DLLTOOL"; then
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12287 $as_echo "$DLLTOOL" >&6; }
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292
12293
12294 fi
12295 if test -z "$ac_cv_prog_DLLTOOL"; then
12296   ac_ct_DLLTOOL=$DLLTOOL
12297   # Extract the first word of "dlltool", so it can be a program name with args.
12298 set dummy dlltool; ac_word=$2
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   if test -n "$ac_ct_DLLTOOL"; then
12305   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12306 else
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12309 do
12310   IFS=$as_save_IFS
12311   test -z "$as_dir" && as_dir=.
12312     for ac_exec_ext in '' $ac_executable_extensions; do
12313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316     break 2
12317   fi
12318 done
12319   done
12320 IFS=$as_save_IFS
12321
12322 fi
12323 fi
12324 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12325 if test -n "$ac_ct_DLLTOOL"; then
12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12327 $as_echo "$ac_ct_DLLTOOL" >&6; }
12328 else
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332
12333   if test "x$ac_ct_DLLTOOL" = x; then
12334     DLLTOOL="false"
12335   else
12336     case $cross_compiling:$ac_tool_warned in
12337 yes:)
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12340 ac_tool_warned=yes ;;
12341 esac
12342     DLLTOOL=$ac_ct_DLLTOOL
12343   fi
12344 else
12345   DLLTOOL="$ac_cv_prog_DLLTOOL"
12346 fi
12347
12348   if test -n "$ac_tool_prefix"; then
12349   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12350 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if ${ac_cv_prog_OBJDUMP+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   if test -n "$OBJDUMP"; then
12357   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12358 else
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362   IFS=$as_save_IFS
12363   test -z "$as_dir" && as_dir=.
12364     for ac_exec_ext in '' $ac_executable_extensions; do
12365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371   done
12372 IFS=$as_save_IFS
12373
12374 fi
12375 fi
12376 OBJDUMP=$ac_cv_prog_OBJDUMP
12377 if test -n "$OBJDUMP"; then
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12379 $as_echo "$OBJDUMP" >&6; }
12380 else
12381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12383 fi
12384
12385
12386 fi
12387 if test -z "$ac_cv_prog_OBJDUMP"; then
12388   ac_ct_OBJDUMP=$OBJDUMP
12389   # Extract the first word of "objdump", so it can be a program name with args.
12390 set dummy objdump; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   if test -n "$ac_ct_OBJDUMP"; then
12397   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12401 do
12402   IFS=$as_save_IFS
12403   test -z "$as_dir" && as_dir=.
12404     for ac_exec_ext in '' $ac_executable_extensions; do
12405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408     break 2
12409   fi
12410 done
12411   done
12412 IFS=$as_save_IFS
12413
12414 fi
12415 fi
12416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12417 if test -n "$ac_ct_OBJDUMP"; then
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12419 $as_echo "$ac_ct_OBJDUMP" >&6; }
12420 else
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12423 fi
12424
12425   if test "x$ac_ct_OBJDUMP" = x; then
12426     OBJDUMP="false"
12427   else
12428     case $cross_compiling:$ac_tool_warned in
12429 yes:)
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432 ac_tool_warned=yes ;;
12433 esac
12434     OBJDUMP=$ac_ct_OBJDUMP
12435   fi
12436 else
12437   OBJDUMP="$ac_cv_prog_OBJDUMP"
12438 fi
12439
12440   ;;
12441 esac
12442
12443 test -z "$AS" && AS=as
12444
12445
12446
12447
12448
12449 test -z "$DLLTOOL" && DLLTOOL=dlltool
12450
12451
12452
12453
12454
12455 test -z "$OBJDUMP" && OBJDUMP=objdump
12456
12457
12458
12459
12460
12461
12462
12463         enable_dlopen=no
12464
12465
12466
12467             # Check whether --enable-shared was given.
12468 if test "${enable_shared+set}" = set; then :
12469   enableval=$enable_shared; p=${PACKAGE-default}
12470     case $enableval in
12471     yes) enable_shared=yes ;;
12472     no) enable_shared=no ;;
12473     *)
12474       enable_shared=no
12475       # Look at the argument we got.  We use all the common list separators.
12476       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12477       for pkg in $enableval; do
12478         IFS="$lt_save_ifs"
12479         if test "X$pkg" = "X$p"; then
12480           enable_shared=yes
12481         fi
12482       done
12483       IFS="$lt_save_ifs"
12484       ;;
12485     esac
12486 else
12487   enable_shared=yes
12488 fi
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500 # Check whether --with-pic was given.
12501 if test "${with_pic+set}" = set; then :
12502   withval=$with_pic; lt_p=${PACKAGE-default}
12503     case $withval in
12504     yes|no) pic_mode=$withval ;;
12505     *)
12506       pic_mode=default
12507       # Look at the argument we got.  We use all the common list separators.
12508       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12509       for lt_pkg in $withval; do
12510         IFS="$lt_save_ifs"
12511         if test "X$lt_pkg" = "X$lt_p"; then
12512           pic_mode=yes
12513         fi
12514       done
12515       IFS="$lt_save_ifs"
12516       ;;
12517     esac
12518 else
12519   pic_mode=default
12520 fi
12521
12522
12523 test -z "$pic_mode" && pic_mode=default
12524
12525
12526
12527
12528
12529
12530
12531   # Check whether --enable-fast-install was given.
12532 if test "${enable_fast_install+set}" = set; then :
12533   enableval=$enable_fast_install; p=${PACKAGE-default}
12534     case $enableval in
12535     yes) enable_fast_install=yes ;;
12536     no) enable_fast_install=no ;;
12537     *)
12538       enable_fast_install=no
12539       # Look at the argument we got.  We use all the common list separators.
12540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12541       for pkg in $enableval; do
12542         IFS="$lt_save_ifs"
12543         if test "X$pkg" = "X$p"; then
12544           enable_fast_install=yes
12545         fi
12546       done
12547       IFS="$lt_save_ifs"
12548       ;;
12549     esac
12550 else
12551   enable_fast_install=yes
12552 fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564 # This can be used to rebuild libtool when needed
12565 LIBTOOL_DEPS="$ltmain"
12566
12567 # Always use our own libtool.
12568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599 test -z "$LN_S" && LN_S="ln -s"
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614 if test -n "${ZSH_VERSION+set}" ; then
12615    setopt NO_GLOB_SUBST
12616 fi
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12619 $as_echo_n "checking for objdir... " >&6; }
12620 if ${lt_cv_objdir+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   rm -f .libs 2>/dev/null
12624 mkdir .libs 2>/dev/null
12625 if test -d .libs; then
12626   lt_cv_objdir=.libs
12627 else
12628   # MS-DOS does not allow filenames that begin with a dot.
12629   lt_cv_objdir=_libs
12630 fi
12631 rmdir .libs 2>/dev/null
12632 fi
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12634 $as_echo "$lt_cv_objdir" >&6; }
12635 objdir=$lt_cv_objdir
12636
12637
12638
12639
12640
12641 cat >>confdefs.h <<_ACEOF
12642 #define LT_OBJDIR "$lt_cv_objdir/"
12643 _ACEOF
12644
12645
12646
12647
12648 case $host_os in
12649 aix3*)
12650   # AIX sometimes has problems with the GCC collect2 program.  For some
12651   # reason, if we set the COLLECT_NAMES environment variable, the problems
12652   # vanish in a puff of smoke.
12653   if test "X${COLLECT_NAMES+set}" != Xset; then
12654     COLLECT_NAMES=
12655     export COLLECT_NAMES
12656   fi
12657   ;;
12658 esac
12659
12660 # Global variables:
12661 ofile=libtool
12662 can_build_shared=yes
12663
12664 # All known linkers require a `.a' archive for static linking (except MSVC,
12665 # which needs '.lib').
12666 libext=a
12667
12668 with_gnu_ld="$lt_cv_prog_gnu_ld"
12669
12670 old_CC="$CC"
12671 old_CFLAGS="$CFLAGS"
12672
12673 # Set sane defaults for various variables
12674 test -z "$CC" && CC=cc
12675 test -z "$LTCC" && LTCC=$CC
12676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12677 test -z "$LD" && LD=ld
12678 test -z "$ac_objext" && ac_objext=o
12679
12680 for cc_temp in $compiler""; do
12681   case $cc_temp in
12682     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12683     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12684     \-*) ;;
12685     *) break;;
12686   esac
12687 done
12688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12689
12690
12691 # Only perform the check for file, if the check method requires it
12692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12693 case $deplibs_check_method in
12694 file_magic*)
12695   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12698 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   case $MAGIC_CMD in
12702 [\\/*] |  ?:[\\/]*)
12703   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12704   ;;
12705 *)
12706   lt_save_MAGIC_CMD="$MAGIC_CMD"
12707   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12708   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12709   for ac_dir in $ac_dummy; do
12710     IFS="$lt_save_ifs"
12711     test -z "$ac_dir" && ac_dir=.
12712     if test -f $ac_dir/${ac_tool_prefix}file; then
12713       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12714       if test -n "$file_magic_test_file"; then
12715         case $deplibs_check_method in
12716         "file_magic "*)
12717           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12718           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12719           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12720             $EGREP "$file_magic_regex" > /dev/null; then
12721             :
12722           else
12723             cat <<_LT_EOF 1>&2
12724
12725 *** Warning: the command libtool uses to detect shared libraries,
12726 *** $file_magic_cmd, produces output that libtool cannot recognize.
12727 *** The result is that libtool may fail to recognize shared libraries
12728 *** as such.  This will affect the creation of libtool libraries that
12729 *** depend on shared libraries, but programs linked with such libtool
12730 *** libraries will work regardless of this problem.  Nevertheless, you
12731 *** may want to report the problem to your system manager and/or to
12732 *** bug-libtool@gnu.org
12733
12734 _LT_EOF
12735           fi ;;
12736         esac
12737       fi
12738       break
12739     fi
12740   done
12741   IFS="$lt_save_ifs"
12742   MAGIC_CMD="$lt_save_MAGIC_CMD"
12743   ;;
12744 esac
12745 fi
12746
12747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12748 if test -n "$MAGIC_CMD"; then
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12750 $as_echo "$MAGIC_CMD" >&6; }
12751 else
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755
12756
12757
12758
12759
12760 if test -z "$lt_cv_path_MAGIC_CMD"; then
12761   if test -n "$ac_tool_prefix"; then
12762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12763 $as_echo_n "checking for file... " >&6; }
12764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   case $MAGIC_CMD in
12768 [\\/*] |  ?:[\\/]*)
12769   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12770   ;;
12771 *)
12772   lt_save_MAGIC_CMD="$MAGIC_CMD"
12773   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12774   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12775   for ac_dir in $ac_dummy; do
12776     IFS="$lt_save_ifs"
12777     test -z "$ac_dir" && ac_dir=.
12778     if test -f $ac_dir/file; then
12779       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12780       if test -n "$file_magic_test_file"; then
12781         case $deplibs_check_method in
12782         "file_magic "*)
12783           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12784           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12785           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12786             $EGREP "$file_magic_regex" > /dev/null; then
12787             :
12788           else
12789             cat <<_LT_EOF 1>&2
12790
12791 *** Warning: the command libtool uses to detect shared libraries,
12792 *** $file_magic_cmd, produces output that libtool cannot recognize.
12793 *** The result is that libtool may fail to recognize shared libraries
12794 *** as such.  This will affect the creation of libtool libraries that
12795 *** depend on shared libraries, but programs linked with such libtool
12796 *** libraries will work regardless of this problem.  Nevertheless, you
12797 *** may want to report the problem to your system manager and/or to
12798 *** bug-libtool@gnu.org
12799
12800 _LT_EOF
12801           fi ;;
12802         esac
12803       fi
12804       break
12805     fi
12806   done
12807   IFS="$lt_save_ifs"
12808   MAGIC_CMD="$lt_save_MAGIC_CMD"
12809   ;;
12810 esac
12811 fi
12812
12813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12814 if test -n "$MAGIC_CMD"; then
12815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12816 $as_echo "$MAGIC_CMD" >&6; }
12817 else
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12820 fi
12821
12822
12823   else
12824     MAGIC_CMD=:
12825   fi
12826 fi
12827
12828   fi
12829   ;;
12830 esac
12831
12832 # Use C for the default configuration in the libtool script
12833
12834 lt_save_CC="$CC"
12835 ac_ext=c
12836 ac_cpp='$CPP $CPPFLAGS'
12837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12840
12841
12842 # Source file extension for C test sources.
12843 ac_ext=c
12844
12845 # Object file extension for compiled C test sources.
12846 objext=o
12847 objext=$objext
12848
12849 # Code to be used in simple compile tests
12850 lt_simple_compile_test_code="int some_variable = 0;"
12851
12852 # Code to be used in simple link tests
12853 lt_simple_link_test_code='int main(){return(0);}'
12854
12855
12856
12857
12858
12859
12860
12861 # If no C compiler was specified, use CC.
12862 LTCC=${LTCC-"$CC"}
12863
12864 # If no C compiler flags were specified, use CFLAGS.
12865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12866
12867 # Allow CC to be a program name with arguments.
12868 compiler=$CC
12869
12870 # Save the default compiler, since it gets overwritten when the other
12871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12872 compiler_DEFAULT=$CC
12873
12874 # save warnings/boilerplate of simple test code
12875 ac_outfile=conftest.$ac_objext
12876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12878 _lt_compiler_boilerplate=`cat conftest.err`
12879 $RM conftest*
12880
12881 ac_outfile=conftest.$ac_objext
12882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12884 _lt_linker_boilerplate=`cat conftest.err`
12885 $RM -r conftest*
12886
12887
12888 ## CAVEAT EMPTOR:
12889 ## There is no encapsulation within the following macros, do not change
12890 ## the running order or otherwise move them around unless you know exactly
12891 ## what you are doing...
12892 if test -n "$compiler"; then
12893
12894 lt_prog_compiler_no_builtin_flag=
12895
12896 if test "$GCC" = yes; then
12897   case $cc_basename in
12898   nvcc*)
12899     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12900   *)
12901     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12902   esac
12903
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12906 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   lt_cv_prog_compiler_rtti_exceptions=no
12910    ac_outfile=conftest.$ac_objext
12911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912    lt_compiler_flag="-fno-rtti -fno-exceptions"
12913    # Insert the option either (1) after the last *FLAGS variable, or
12914    # (2) before a word containing "conftest.", or (3) at the end.
12915    # Note that $ac_compile itself does not contain backslashes and begins
12916    # with a dollar sign (not a hyphen), so the echo should work correctly.
12917    # The option is referenced via a variable to avoid confusing sed.
12918    lt_compile=`echo "$ac_compile" | $SED \
12919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12921    -e 's:$: $lt_compiler_flag:'`
12922    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12923    (eval "$lt_compile" 2>conftest.err)
12924    ac_status=$?
12925    cat conftest.err >&5
12926    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927    if (exit $ac_status) && test -s "$ac_outfile"; then
12928      # The compiler can only warn and ignore the option if not recognized
12929      # So say no if there are warnings other than the usual output.
12930      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12933        lt_cv_prog_compiler_rtti_exceptions=yes
12934      fi
12935    fi
12936    $RM conftest*
12937
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12941
12942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12943     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12944 else
12945     :
12946 fi
12947
12948 fi
12949
12950
12951
12952
12953
12954
12955   lt_prog_compiler_wl=
12956 lt_prog_compiler_pic=
12957 lt_prog_compiler_static=
12958
12959
12960   if test "$GCC" = yes; then
12961     lt_prog_compiler_wl='-Wl,'
12962     lt_prog_compiler_static='-static'
12963
12964     case $host_os in
12965       aix*)
12966       # All AIX code is PIC.
12967       if test "$host_cpu" = ia64; then
12968         # AIX 5 now supports IA64 processor
12969         lt_prog_compiler_static='-Bstatic'
12970       fi
12971       ;;
12972
12973     amigaos*)
12974       case $host_cpu in
12975       powerpc)
12976             # see comment about AmigaOS4 .so support
12977             lt_prog_compiler_pic='-fPIC'
12978         ;;
12979       m68k)
12980             # FIXME: we need at least 68020 code to build shared libraries, but
12981             # adding the `-m68020' flag to GCC prevents building anything better,
12982             # like `-m68040'.
12983             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12984         ;;
12985       esac
12986       ;;
12987
12988     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12989       # PIC is the default for these OSes.
12990       ;;
12991
12992     mingw* | cygwin* | pw32* | os2* | cegcc*)
12993       # This hack is so that the source file can tell whether it is being
12994       # built for inclusion in a dll (and should export symbols for example).
12995       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12996       # (--disable-auto-import) libraries
12997       lt_prog_compiler_pic='-DDLL_EXPORT'
12998       ;;
12999
13000     darwin* | rhapsody*)
13001       # PIC is the default on this platform
13002       # Common symbols not allowed in MH_DYLIB files
13003       lt_prog_compiler_pic='-fno-common'
13004       ;;
13005
13006     haiku*)
13007       # PIC is the default for Haiku.
13008       # The "-static" flag exists, but is broken.
13009       lt_prog_compiler_static=
13010       ;;
13011
13012     hpux*)
13013       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13014       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13015       # sets the default TLS model and affects inlining.
13016       case $host_cpu in
13017       hppa*64*)
13018         # +Z the default
13019         ;;
13020       *)
13021         lt_prog_compiler_pic='-fPIC'
13022         ;;
13023       esac
13024       ;;
13025
13026     interix[3-9]*)
13027       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13028       # Instead, we relocate shared libraries at runtime.
13029       ;;
13030
13031     msdosdjgpp*)
13032       # Just because we use GCC doesn't mean we suddenly get shared libraries
13033       # on systems that don't support them.
13034       lt_prog_compiler_can_build_shared=no
13035       enable_shared=no
13036       ;;
13037
13038     *nto* | *qnx*)
13039       # QNX uses GNU C++, but need to define -shared option too, otherwise
13040       # it will coredump.
13041       lt_prog_compiler_pic='-fPIC -shared'
13042       ;;
13043
13044     sysv4*MP*)
13045       if test -d /usr/nec; then
13046         lt_prog_compiler_pic=-Kconform_pic
13047       fi
13048       ;;
13049
13050     *)
13051       lt_prog_compiler_pic='-fPIC'
13052       ;;
13053     esac
13054
13055     case $cc_basename in
13056     nvcc*) # Cuda Compiler Driver 2.2
13057       lt_prog_compiler_wl='-Xlinker '
13058       if test -n "$lt_prog_compiler_pic"; then
13059         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13060       fi
13061       ;;
13062     esac
13063   else
13064     # PORTME Check for flag to pass linker flags through the system compiler.
13065     case $host_os in
13066     aix*)
13067       lt_prog_compiler_wl='-Wl,'
13068       if test "$host_cpu" = ia64; then
13069         # AIX 5 now supports IA64 processor
13070         lt_prog_compiler_static='-Bstatic'
13071       else
13072         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13073       fi
13074       ;;
13075
13076     mingw* | cygwin* | pw32* | os2* | cegcc*)
13077       # This hack is so that the source file can tell whether it is being
13078       # built for inclusion in a dll (and should export symbols for example).
13079       lt_prog_compiler_pic='-DDLL_EXPORT'
13080       ;;
13081
13082     hpux9* | hpux10* | hpux11*)
13083       lt_prog_compiler_wl='-Wl,'
13084       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13085       # not for PA HP-UX.
13086       case $host_cpu in
13087       hppa*64*|ia64*)
13088         # +Z the default
13089         ;;
13090       *)
13091         lt_prog_compiler_pic='+Z'
13092         ;;
13093       esac
13094       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13095       lt_prog_compiler_static='${wl}-a ${wl}archive'
13096       ;;
13097
13098     irix5* | irix6* | nonstopux*)
13099       lt_prog_compiler_wl='-Wl,'
13100       # PIC (with -KPIC) is the default.
13101       lt_prog_compiler_static='-non_shared'
13102       ;;
13103
13104     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13105       case $cc_basename in
13106       # old Intel for x86_64 which still supported -KPIC.
13107       ecc*)
13108         lt_prog_compiler_wl='-Wl,'
13109         lt_prog_compiler_pic='-KPIC'
13110         lt_prog_compiler_static='-static'
13111         ;;
13112       # icc used to be incompatible with GCC.
13113       # ICC 10 doesn't accept -KPIC any more.
13114       icc* | ifort*)
13115         lt_prog_compiler_wl='-Wl,'
13116         lt_prog_compiler_pic='-fPIC'
13117         lt_prog_compiler_static='-static'
13118         ;;
13119       # Lahey Fortran 8.1.
13120       lf95*)
13121         lt_prog_compiler_wl='-Wl,'
13122         lt_prog_compiler_pic='--shared'
13123         lt_prog_compiler_static='--static'
13124         ;;
13125       nagfor*)
13126         # NAG Fortran compiler
13127         lt_prog_compiler_wl='-Wl,-Wl,,'
13128         lt_prog_compiler_pic='-PIC'
13129         lt_prog_compiler_static='-Bstatic'
13130         ;;
13131       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13132         # Portland Group compilers (*not* the Pentium gcc compiler,
13133         # which looks to be a dead project)
13134         lt_prog_compiler_wl='-Wl,'
13135         lt_prog_compiler_pic='-fpic'
13136         lt_prog_compiler_static='-Bstatic'
13137         ;;
13138       ccc*)
13139         lt_prog_compiler_wl='-Wl,'
13140         # All Alpha code is PIC.
13141         lt_prog_compiler_static='-non_shared'
13142         ;;
13143       xl* | bgxl* | bgf* | mpixl*)
13144         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13145         lt_prog_compiler_wl='-Wl,'
13146         lt_prog_compiler_pic='-qpic'
13147         lt_prog_compiler_static='-qstaticlink'
13148         ;;
13149       *)
13150         case `$CC -V 2>&1 | sed 5q` in
13151         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13152           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13153           lt_prog_compiler_pic='-KPIC'
13154           lt_prog_compiler_static='-Bstatic'
13155           lt_prog_compiler_wl=''
13156           ;;
13157         *Sun\ F* | *Sun*Fortran*)
13158           lt_prog_compiler_pic='-KPIC'
13159           lt_prog_compiler_static='-Bstatic'
13160           lt_prog_compiler_wl='-Qoption ld '
13161           ;;
13162         *Sun\ C*)
13163           # Sun C 5.9
13164           lt_prog_compiler_pic='-KPIC'
13165           lt_prog_compiler_static='-Bstatic'
13166           lt_prog_compiler_wl='-Wl,'
13167           ;;
13168         *Intel*\ [CF]*Compiler*)
13169           lt_prog_compiler_wl='-Wl,'
13170           lt_prog_compiler_pic='-fPIC'
13171           lt_prog_compiler_static='-static'
13172           ;;
13173         *Portland\ Group*)
13174           lt_prog_compiler_wl='-Wl,'
13175           lt_prog_compiler_pic='-fpic'
13176           lt_prog_compiler_static='-Bstatic'
13177           ;;
13178         esac
13179         ;;
13180       esac
13181       ;;
13182
13183     newsos6)
13184       lt_prog_compiler_pic='-KPIC'
13185       lt_prog_compiler_static='-Bstatic'
13186       ;;
13187
13188     *nto* | *qnx*)
13189       # QNX uses GNU C++, but need to define -shared option too, otherwise
13190       # it will coredump.
13191       lt_prog_compiler_pic='-fPIC -shared'
13192       ;;
13193
13194     osf3* | osf4* | osf5*)
13195       lt_prog_compiler_wl='-Wl,'
13196       # All OSF/1 code is PIC.
13197       lt_prog_compiler_static='-non_shared'
13198       ;;
13199
13200     rdos*)
13201       lt_prog_compiler_static='-non_shared'
13202       ;;
13203
13204     solaris*)
13205       lt_prog_compiler_pic='-KPIC'
13206       lt_prog_compiler_static='-Bstatic'
13207       case $cc_basename in
13208       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13209         lt_prog_compiler_wl='-Qoption ld ';;
13210       *)
13211         lt_prog_compiler_wl='-Wl,';;
13212       esac
13213       ;;
13214
13215     sunos4*)
13216       lt_prog_compiler_wl='-Qoption ld '
13217       lt_prog_compiler_pic='-PIC'
13218       lt_prog_compiler_static='-Bstatic'
13219       ;;
13220
13221     sysv4 | sysv4.2uw2* | sysv4.3*)
13222       lt_prog_compiler_wl='-Wl,'
13223       lt_prog_compiler_pic='-KPIC'
13224       lt_prog_compiler_static='-Bstatic'
13225       ;;
13226
13227     sysv4*MP*)
13228       if test -d /usr/nec ;then
13229         lt_prog_compiler_pic='-Kconform_pic'
13230         lt_prog_compiler_static='-Bstatic'
13231       fi
13232       ;;
13233
13234     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13235       lt_prog_compiler_wl='-Wl,'
13236       lt_prog_compiler_pic='-KPIC'
13237       lt_prog_compiler_static='-Bstatic'
13238       ;;
13239
13240     unicos*)
13241       lt_prog_compiler_wl='-Wl,'
13242       lt_prog_compiler_can_build_shared=no
13243       ;;
13244
13245     uts4*)
13246       lt_prog_compiler_pic='-pic'
13247       lt_prog_compiler_static='-Bstatic'
13248       ;;
13249
13250     *)
13251       lt_prog_compiler_can_build_shared=no
13252       ;;
13253     esac
13254   fi
13255
13256 case $host_os in
13257   # For platforms which do not support PIC, -DPIC is meaningless:
13258   *djgpp*)
13259     lt_prog_compiler_pic=
13260     ;;
13261   *)
13262     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13263     ;;
13264 esac
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13268 if ${lt_cv_prog_compiler_pic+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13274 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13275 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13276
13277 #
13278 # Check to make sure the PIC flag actually works.
13279 #
13280 if test -n "$lt_prog_compiler_pic"; then
13281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13283 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   lt_cv_prog_compiler_pic_works=no
13287    ac_outfile=conftest.$ac_objext
13288    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13289    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13290    # Insert the option either (1) after the last *FLAGS variable, or
13291    # (2) before a word containing "conftest.", or (3) at the end.
13292    # Note that $ac_compile itself does not contain backslashes and begins
13293    # with a dollar sign (not a hyphen), so the echo should work correctly.
13294    # The option is referenced via a variable to avoid confusing sed.
13295    lt_compile=`echo "$ac_compile" | $SED \
13296    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13298    -e 's:$: $lt_compiler_flag:'`
13299    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13300    (eval "$lt_compile" 2>conftest.err)
13301    ac_status=$?
13302    cat conftest.err >&5
13303    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304    if (exit $ac_status) && test -s "$ac_outfile"; then
13305      # The compiler can only warn and ignore the option if not recognized
13306      # So say no if there are warnings other than the usual output.
13307      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13308      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13309      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13310        lt_cv_prog_compiler_pic_works=yes
13311      fi
13312    fi
13313    $RM conftest*
13314
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13317 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13318
13319 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13320     case $lt_prog_compiler_pic in
13321      "" | " "*) ;;
13322      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13323      esac
13324 else
13325     lt_prog_compiler_pic=
13326      lt_prog_compiler_can_build_shared=no
13327 fi
13328
13329 fi
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341 #
13342 # Check to make sure the static flag actually works.
13343 #
13344 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13346 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13347 if ${lt_cv_prog_compiler_static_works+:} false; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350   lt_cv_prog_compiler_static_works=no
13351    save_LDFLAGS="$LDFLAGS"
13352    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13353    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13354    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13355      # The linker can only warn and ignore the option if not recognized
13356      # So say no if there are warnings
13357      if test -s conftest.err; then
13358        # Append any errors to the config.log.
13359        cat conftest.err 1>&5
13360        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13361        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13362        if diff conftest.exp conftest.er2 >/dev/null; then
13363          lt_cv_prog_compiler_static_works=yes
13364        fi
13365      else
13366        lt_cv_prog_compiler_static_works=yes
13367      fi
13368    fi
13369    $RM -r conftest*
13370    LDFLAGS="$save_LDFLAGS"
13371
13372 fi
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13374 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13375
13376 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13377     :
13378 else
13379     lt_prog_compiler_static=
13380 fi
13381
13382
13383
13384
13385
13386
13387
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13390 if ${lt_cv_prog_compiler_c_o+:} false; then :
13391   $as_echo_n "(cached) " >&6
13392 else
13393   lt_cv_prog_compiler_c_o=no
13394    $RM -r conftest 2>/dev/null
13395    mkdir conftest
13396    cd conftest
13397    mkdir out
13398    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13399
13400    lt_compiler_flag="-o out/conftest2.$ac_objext"
13401    # Insert the option either (1) after the last *FLAGS variable, or
13402    # (2) before a word containing "conftest.", or (3) at the end.
13403    # Note that $ac_compile itself does not contain backslashes and begins
13404    # with a dollar sign (not a hyphen), so the echo should work correctly.
13405    lt_compile=`echo "$ac_compile" | $SED \
13406    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13407    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13408    -e 's:$: $lt_compiler_flag:'`
13409    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13410    (eval "$lt_compile" 2>out/conftest.err)
13411    ac_status=$?
13412    cat out/conftest.err >&5
13413    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13415    then
13416      # The compiler can only warn and ignore the option if not recognized
13417      # So say no if there are warnings
13418      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13419      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13420      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13421        lt_cv_prog_compiler_c_o=yes
13422      fi
13423    fi
13424    chmod u+w . 2>&5
13425    $RM conftest*
13426    # SGI C++ compiler will create directory out/ii_files/ for
13427    # template instantiation
13428    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13429    $RM out/* && rmdir out
13430    cd ..
13431    $RM -r conftest
13432    $RM conftest*
13433
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13437
13438
13439
13440
13441
13442
13443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13445 if ${lt_cv_prog_compiler_c_o+:} false; then :
13446   $as_echo_n "(cached) " >&6
13447 else
13448   lt_cv_prog_compiler_c_o=no
13449    $RM -r conftest 2>/dev/null
13450    mkdir conftest
13451    cd conftest
13452    mkdir out
13453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13454
13455    lt_compiler_flag="-o out/conftest2.$ac_objext"
13456    # Insert the option either (1) after the last *FLAGS variable, or
13457    # (2) before a word containing "conftest.", or (3) at the end.
13458    # Note that $ac_compile itself does not contain backslashes and begins
13459    # with a dollar sign (not a hyphen), so the echo should work correctly.
13460    lt_compile=`echo "$ac_compile" | $SED \
13461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13463    -e 's:$: $lt_compiler_flag:'`
13464    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13465    (eval "$lt_compile" 2>out/conftest.err)
13466    ac_status=$?
13467    cat out/conftest.err >&5
13468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13470    then
13471      # The compiler can only warn and ignore the option if not recognized
13472      # So say no if there are warnings
13473      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13474      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13475      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13476        lt_cv_prog_compiler_c_o=yes
13477      fi
13478    fi
13479    chmod u+w . 2>&5
13480    $RM conftest*
13481    # SGI C++ compiler will create directory out/ii_files/ for
13482    # template instantiation
13483    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13484    $RM out/* && rmdir out
13485    cd ..
13486    $RM -r conftest
13487    $RM conftest*
13488
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13492
13493
13494
13495
13496 hard_links="nottested"
13497 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13498   # do not overwrite the value of need_locks provided by the user
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13500 $as_echo_n "checking if we can lock with hard links... " >&6; }
13501   hard_links=yes
13502   $RM conftest*
13503   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13504   touch conftest.a
13505   ln conftest.a conftest.b 2>&5 || hard_links=no
13506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13508 $as_echo "$hard_links" >&6; }
13509   if test "$hard_links" = no; then
13510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13511 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13512     need_locks=warn
13513   fi
13514 else
13515   need_locks=no
13516 fi
13517
13518
13519
13520
13521
13522
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13524 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13525
13526   runpath_var=
13527   allow_undefined_flag=
13528   always_export_symbols=no
13529   archive_cmds=
13530   archive_expsym_cmds=
13531   compiler_needs_object=no
13532   enable_shared_with_static_runtimes=no
13533   export_dynamic_flag_spec=
13534   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13535   hardcode_automatic=no
13536   hardcode_direct=no
13537   hardcode_direct_absolute=no
13538   hardcode_libdir_flag_spec=
13539   hardcode_libdir_separator=
13540   hardcode_minus_L=no
13541   hardcode_shlibpath_var=unsupported
13542   inherit_rpath=no
13543   link_all_deplibs=unknown
13544   module_cmds=
13545   module_expsym_cmds=
13546   old_archive_from_new_cmds=
13547   old_archive_from_expsyms_cmds=
13548   thread_safe_flag_spec=
13549   whole_archive_flag_spec=
13550   # include_expsyms should be a list of space-separated symbols to be *always*
13551   # included in the symbol list
13552   include_expsyms=
13553   # exclude_expsyms can be an extended regexp of symbols to exclude
13554   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13555   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13556   # as well as any symbol that contains `d'.
13557   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13558   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13559   # platforms (ab)use it in PIC code, but their linkers get confused if
13560   # the symbol is explicitly referenced.  Since portable code cannot
13561   # rely on this symbol name, it's probably fine to never include it in
13562   # preloaded symbol tables.
13563   # Exclude shared library initialization/finalization symbols.
13564   extract_expsyms_cmds=
13565
13566   case $host_os in
13567   cygwin* | mingw* | pw32* | cegcc*)
13568     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13569     # When not using gcc, we currently assume that we are using
13570     # Microsoft Visual C++.
13571     if test "$GCC" != yes; then
13572       with_gnu_ld=no
13573     fi
13574     ;;
13575   interix*)
13576     # we just hope/assume this is gcc and not c89 (= MSVC++)
13577     with_gnu_ld=yes
13578     ;;
13579   openbsd*)
13580     with_gnu_ld=no
13581     ;;
13582   esac
13583
13584   ld_shlibs=yes
13585
13586   # On some targets, GNU ld is compatible enough with the native linker
13587   # that we're better off using the native interface for both.
13588   lt_use_gnu_ld_interface=no
13589   if test "$with_gnu_ld" = yes; then
13590     case $host_os in
13591       aix*)
13592         # The AIX port of GNU ld has always aspired to compatibility
13593         # with the native linker.  However, as the warning in the GNU ld
13594         # block says, versions before 2.19.5* couldn't really create working
13595         # shared libraries, regardless of the interface used.
13596         case `$LD -v 2>&1` in
13597           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13598           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13599           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13600           *)
13601             lt_use_gnu_ld_interface=yes
13602             ;;
13603         esac
13604         ;;
13605       *)
13606         lt_use_gnu_ld_interface=yes
13607         ;;
13608     esac
13609   fi
13610
13611   if test "$lt_use_gnu_ld_interface" = yes; then
13612     # If archive_cmds runs LD, not CC, wlarc should be empty
13613     wlarc='${wl}'
13614
13615     # Set some defaults for GNU ld with shared library support. These
13616     # are reset later if shared libraries are not supported. Putting them
13617     # here allows them to be overridden if necessary.
13618     runpath_var=LD_RUN_PATH
13619     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13620     export_dynamic_flag_spec='${wl}--export-dynamic'
13621     # ancient GNU ld didn't support --whole-archive et. al.
13622     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13623       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13624     else
13625       whole_archive_flag_spec=
13626     fi
13627     supports_anon_versioning=no
13628     case `$LD -v 2>&1` in
13629       *GNU\ gold*) supports_anon_versioning=yes ;;
13630       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13631       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13632       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13633       *\ 2.11.*) ;; # other 2.11 versions
13634       *) supports_anon_versioning=yes ;;
13635     esac
13636
13637     # See if GNU ld supports shared libraries.
13638     case $host_os in
13639     aix[3-9]*)
13640       # On AIX/PPC, the GNU linker is very broken
13641       if test "$host_cpu" != ia64; then
13642         ld_shlibs=no
13643         cat <<_LT_EOF 1>&2
13644
13645 *** Warning: the GNU linker, at least up to release 2.19, is reported
13646 *** to be unable to reliably create shared libraries on AIX.
13647 *** Therefore, libtool is disabling shared libraries support.  If you
13648 *** really care for shared libraries, you may want to install binutils
13649 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13650 *** You will then need to restart the configuration process.
13651
13652 _LT_EOF
13653       fi
13654       ;;
13655
13656     amigaos*)
13657       case $host_cpu in
13658       powerpc)
13659             # see comment about AmigaOS4 .so support
13660             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661             archive_expsym_cmds=''
13662         ;;
13663       m68k)
13664             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)'
13665             hardcode_libdir_flag_spec='-L$libdir'
13666             hardcode_minus_L=yes
13667         ;;
13668       esac
13669       ;;
13670
13671     beos*)
13672       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13673         allow_undefined_flag=unsupported
13674         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13675         # support --undefined.  This deserves some investigation.  FIXME
13676         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13677       else
13678         ld_shlibs=no
13679       fi
13680       ;;
13681
13682     cygwin* | mingw* | pw32* | cegcc*)
13683       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13684       # as there is no search path for DLLs.
13685       hardcode_libdir_flag_spec='-L$libdir'
13686       export_dynamic_flag_spec='${wl}--export-all-symbols'
13687       allow_undefined_flag=unsupported
13688       always_export_symbols=no
13689       enable_shared_with_static_runtimes=yes
13690       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'
13691       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13692
13693       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13695         # If the export-symbols file already is a .def file (1st line
13696         # is EXPORTS), use it as is; otherwise, prepend...
13697         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13698           cp $export_symbols $output_objdir/$soname.def;
13699         else
13700           echo EXPORTS > $output_objdir/$soname.def;
13701           cat $export_symbols >> $output_objdir/$soname.def;
13702         fi~
13703         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13704       else
13705         ld_shlibs=no
13706       fi
13707       ;;
13708
13709     haiku*)
13710       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13711       link_all_deplibs=yes
13712       ;;
13713
13714     interix[3-9]*)
13715       hardcode_direct=no
13716       hardcode_shlibpath_var=no
13717       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13718       export_dynamic_flag_spec='${wl}-E'
13719       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13720       # Instead, shared libraries are loaded at an image base (0x10000000 by
13721       # default) and relocated if they conflict, which is a slow very memory
13722       # consuming and fragmenting process.  To avoid this, we pick a random,
13723       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13724       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13725       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13726       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'
13727       ;;
13728
13729     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13730       tmp_diet=no
13731       if test "$host_os" = linux-dietlibc; then
13732         case $cc_basename in
13733           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13734         esac
13735       fi
13736       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13737          && test "$tmp_diet" = no
13738       then
13739         tmp_addflag=' $pic_flag'
13740         tmp_sharedflag='-shared'
13741         case $cc_basename,$host_cpu in
13742         pgcc*)                          # Portland Group C compiler
13743           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'
13744           tmp_addflag=' $pic_flag'
13745           ;;
13746         pgf77* | pgf90* | pgf95* | pgfortran*)
13747                                         # Portland Group f77 and f90 compilers
13748           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'
13749           tmp_addflag=' $pic_flag -Mnomain' ;;
13750         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13751           tmp_addflag=' -i_dynamic' ;;
13752         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13753           tmp_addflag=' -i_dynamic -nofor_main' ;;
13754         ifc* | ifort*)                  # Intel Fortran compiler
13755           tmp_addflag=' -nofor_main' ;;
13756         lf95*)                          # Lahey Fortran 8.1
13757           whole_archive_flag_spec=
13758           tmp_sharedflag='--shared' ;;
13759         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13760           tmp_sharedflag='-qmkshrobj'
13761           tmp_addflag= ;;
13762         nvcc*)  # Cuda Compiler Driver 2.2
13763           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'
13764           compiler_needs_object=yes
13765           ;;
13766         esac
13767         case `$CC -V 2>&1 | sed 5q` in
13768         *Sun\ C*)                       # Sun C 5.9
13769           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'
13770           compiler_needs_object=yes
13771           tmp_sharedflag='-G' ;;
13772         *Sun\ F*)                       # Sun Fortran 8.3
13773           tmp_sharedflag='-G' ;;
13774         esac
13775         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13776
13777         if test "x$supports_anon_versioning" = xyes; then
13778           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13779             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13780             echo "local: *; };" >> $output_objdir/$libname.ver~
13781             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13782         fi
13783
13784         case $cc_basename in
13785         xlf* | bgf* | bgxlf* | mpixlf*)
13786           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13787           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13788           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13789           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13790           if test "x$supports_anon_versioning" = xyes; then
13791             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13792               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13793               echo "local: *; };" >> $output_objdir/$libname.ver~
13794               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13795           fi
13796           ;;
13797         esac
13798       else
13799         ld_shlibs=no
13800       fi
13801       ;;
13802
13803     netbsd*)
13804       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13805         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13806         wlarc=
13807       else
13808         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13809         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13810       fi
13811       ;;
13812
13813     solaris*)
13814       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13815         ld_shlibs=no
13816         cat <<_LT_EOF 1>&2
13817
13818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13819 *** create shared libraries on Solaris systems.  Therefore, libtool
13820 *** is disabling shared libraries support.  We urge you to upgrade GNU
13821 *** binutils to release 2.9.1 or newer.  Another option is to modify
13822 *** your PATH or compiler configuration so that the native linker is
13823 *** used, and then restart.
13824
13825 _LT_EOF
13826       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13827         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13829       else
13830         ld_shlibs=no
13831       fi
13832       ;;
13833
13834     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13835       case `$LD -v 2>&1` in
13836         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13837         ld_shlibs=no
13838         cat <<_LT_EOF 1>&2
13839
13840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13841 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13842 *** is disabling shared libraries support.  We urge you to upgrade GNU
13843 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13844 *** your PATH or compiler configuration so that the native linker is
13845 *** used, and then restart.
13846
13847 _LT_EOF
13848         ;;
13849         *)
13850           # For security reasons, it is highly recommended that you always
13851           # use absolute paths for naming shared libraries, and exclude the
13852           # DT_RUNPATH tag from executables and libraries.  But doing so
13853           # requires that you compile everything twice, which is a pain.
13854           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13855             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13856             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13857             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13858           else
13859             ld_shlibs=no
13860           fi
13861         ;;
13862       esac
13863       ;;
13864
13865     sunos4*)
13866       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13867       wlarc=
13868       hardcode_direct=yes
13869       hardcode_shlibpath_var=no
13870       ;;
13871
13872     *)
13873       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13874         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13876       else
13877         ld_shlibs=no
13878       fi
13879       ;;
13880     esac
13881
13882     if test "$ld_shlibs" = no; then
13883       runpath_var=
13884       hardcode_libdir_flag_spec=
13885       export_dynamic_flag_spec=
13886       whole_archive_flag_spec=
13887     fi
13888   else
13889     # PORTME fill in a description of your system's linker (not GNU ld)
13890     case $host_os in
13891     aix3*)
13892       allow_undefined_flag=unsupported
13893       always_export_symbols=yes
13894       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'
13895       # Note: this linker hardcodes the directories in LIBPATH if there
13896       # are no directories specified by -L.
13897       hardcode_minus_L=yes
13898       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13899         # Neither direct hardcoding nor static linking is supported with a
13900         # broken collect2.
13901         hardcode_direct=unsupported
13902       fi
13903       ;;
13904
13905     aix[4-9]*)
13906       if test "$host_cpu" = ia64; then
13907         # On IA64, the linker does run time linking by default, so we don't
13908         # have to do anything special.
13909         aix_use_runtimelinking=no
13910         exp_sym_flag='-Bexport'
13911         no_entry_flag=""
13912       else
13913         # If we're using GNU nm, then we don't want the "-C" option.
13914         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13915         # Also, AIX nm treats weak defined symbols like other global
13916         # defined symbols, whereas GNU nm marks them as "W".
13917         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13918           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13919         else
13920           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13921         fi
13922         aix_use_runtimelinking=no
13923
13924         # Test if we are trying to use run time linking or normal
13925         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13926         # need to do runtime linking.
13927         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13928           for ld_flag in $LDFLAGS; do
13929           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13930             aix_use_runtimelinking=yes
13931             break
13932           fi
13933           done
13934           ;;
13935         esac
13936
13937         exp_sym_flag='-bexport'
13938         no_entry_flag='-bnoentry'
13939       fi
13940
13941       # When large executables or shared objects are built, AIX ld can
13942       # have problems creating the table of contents.  If linking a library
13943       # or program results in "error TOC overflow" add -mminimal-toc to
13944       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13945       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13946
13947       archive_cmds=''
13948       hardcode_direct=yes
13949       hardcode_direct_absolute=yes
13950       hardcode_libdir_separator=':'
13951       link_all_deplibs=yes
13952       file_list_spec='${wl}-f,'
13953
13954       if test "$GCC" = yes; then
13955         case $host_os in aix4.[012]|aix4.[012].*)
13956         # We only want to do this on AIX 4.2 and lower, the check
13957         # below for broken collect2 doesn't work under 4.3+
13958           collect2name=`${CC} -print-prog-name=collect2`
13959           if test -f "$collect2name" &&
13960            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13961           then
13962           # We have reworked collect2
13963           :
13964           else
13965           # We have old collect2
13966           hardcode_direct=unsupported
13967           # It fails to find uninstalled libraries when the uninstalled
13968           # path is not listed in the libpath.  Setting hardcode_minus_L
13969           # to unsupported forces relinking
13970           hardcode_minus_L=yes
13971           hardcode_libdir_flag_spec='-L$libdir'
13972           hardcode_libdir_separator=
13973           fi
13974           ;;
13975         esac
13976         shared_flag='-shared'
13977         if test "$aix_use_runtimelinking" = yes; then
13978           shared_flag="$shared_flag "'${wl}-G'
13979         fi
13980       else
13981         # not using gcc
13982         if test "$host_cpu" = ia64; then
13983         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13984         # chokes on -Wl,-G. The following line is correct:
13985           shared_flag='-G'
13986         else
13987           if test "$aix_use_runtimelinking" = yes; then
13988             shared_flag='${wl}-G'
13989           else
13990             shared_flag='${wl}-bM:SRE'
13991           fi
13992         fi
13993       fi
13994
13995       export_dynamic_flag_spec='${wl}-bexpall'
13996       # It seems that -bexpall does not export symbols beginning with
13997       # underscore (_), so it is better to generate a list of symbols to export.
13998       always_export_symbols=yes
13999       if test "$aix_use_runtimelinking" = yes; then
14000         # Warning - without using the other runtime loading flags (-brtl),
14001         # -berok will link without error, but may produce a broken library.
14002         allow_undefined_flag='-berok'
14003         # Determine the default libpath from the value encoded in an
14004         # empty executable.
14005         if test "${lt_cv_aix_libpath+set}" = set; then
14006   aix_libpath=$lt_cv_aix_libpath
14007 else
14008   if ${lt_cv_aix_libpath_+:} false; then :
14009   $as_echo_n "(cached) " >&6
14010 else
14011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013
14014 int
14015 main ()
14016 {
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_link "$LINENO"; then :
14023
14024   lt_aix_libpath_sed='
14025       /Import File Strings/,/^$/ {
14026           /^0/ {
14027               s/^0  *\([^ ]*\) *$/\1/
14028               p
14029           }
14030       }'
14031   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14032   # Check for a 64-bit object if we didn't find anything.
14033   if test -z "$lt_cv_aix_libpath_"; then
14034     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14035   fi
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext \
14038     conftest$ac_exeext conftest.$ac_ext
14039   if test -z "$lt_cv_aix_libpath_"; then
14040     lt_cv_aix_libpath_="/usr/lib:/lib"
14041   fi
14042
14043 fi
14044
14045   aix_libpath=$lt_cv_aix_libpath_
14046 fi
14047
14048         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14049         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14050       else
14051         if test "$host_cpu" = ia64; then
14052           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14053           allow_undefined_flag="-z nodefs"
14054           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"
14055         else
14056          # Determine the default libpath from the value encoded in an
14057          # empty executable.
14058          if test "${lt_cv_aix_libpath+set}" = set; then
14059   aix_libpath=$lt_cv_aix_libpath
14060 else
14061   if ${lt_cv_aix_libpath_+:} false; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h.  */
14066
14067 int
14068 main ()
14069 {
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"; then :
14076
14077   lt_aix_libpath_sed='
14078       /Import File Strings/,/^$/ {
14079           /^0/ {
14080               s/^0  *\([^ ]*\) *$/\1/
14081               p
14082           }
14083       }'
14084   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14085   # Check for a 64-bit object if we didn't find anything.
14086   if test -z "$lt_cv_aix_libpath_"; then
14087     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14088   fi
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext \
14091     conftest$ac_exeext conftest.$ac_ext
14092   if test -z "$lt_cv_aix_libpath_"; then
14093     lt_cv_aix_libpath_="/usr/lib:/lib"
14094   fi
14095
14096 fi
14097
14098   aix_libpath=$lt_cv_aix_libpath_
14099 fi
14100
14101          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14102           # Warning - without using the other run time loading flags,
14103           # -berok will link without error, but may produce a broken library.
14104           no_undefined_flag=' ${wl}-bernotok'
14105           allow_undefined_flag=' ${wl}-berok'
14106           if test "$with_gnu_ld" = yes; then
14107             # We only use this code for GNU lds that support --whole-archive.
14108             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14109           else
14110             # Exported symbols can be pulled into shared objects from archives
14111             whole_archive_flag_spec='$convenience'
14112           fi
14113           archive_cmds_need_lc=yes
14114           # This is similar to how AIX traditionally builds its shared libraries.
14115           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14116         fi
14117       fi
14118       ;;
14119
14120     amigaos*)
14121       case $host_cpu in
14122       powerpc)
14123             # see comment about AmigaOS4 .so support
14124             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125             archive_expsym_cmds=''
14126         ;;
14127       m68k)
14128             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)'
14129             hardcode_libdir_flag_spec='-L$libdir'
14130             hardcode_minus_L=yes
14131         ;;
14132       esac
14133       ;;
14134
14135     bsdi[45]*)
14136       export_dynamic_flag_spec=-rdynamic
14137       ;;
14138
14139     cygwin* | mingw* | pw32* | cegcc*)
14140       # When not using gcc, we currently assume that we are using
14141       # Microsoft Visual C++.
14142       # hardcode_libdir_flag_spec is actually meaningless, as there is
14143       # no search path for DLLs.
14144       case $cc_basename in
14145       cl*)
14146         # Native MSVC
14147         hardcode_libdir_flag_spec=' '
14148         allow_undefined_flag=unsupported
14149         always_export_symbols=yes
14150         file_list_spec='@'
14151         # Tell ltmain to make .lib files, not .a files.
14152         libext=lib
14153         # Tell ltmain to make .dll files, not .so files.
14154         shrext_cmds=".dll"
14155         # FIXME: Setting linknames here is a bad hack.
14156         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14157         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14158             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14159           else
14160             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14161           fi~
14162           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14163           linknames='
14164         # The linker will not automatically build a static lib if we build a DLL.
14165         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14166         enable_shared_with_static_runtimes=yes
14167         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14168         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14169         # Don't use ranlib
14170         old_postinstall_cmds='chmod 644 $oldlib'
14171         postlink_cmds='lt_outputfile="@OUTPUT@"~
14172           lt_tool_outputfile="@TOOL_OUTPUT@"~
14173           case $lt_outputfile in
14174             *.exe|*.EXE) ;;
14175             *)
14176               lt_outputfile="$lt_outputfile.exe"
14177               lt_tool_outputfile="$lt_tool_outputfile.exe"
14178               ;;
14179           esac~
14180           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14181             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14182             $RM "$lt_outputfile.manifest";
14183           fi'
14184         ;;
14185       *)
14186         # Assume MSVC wrapper
14187         hardcode_libdir_flag_spec=' '
14188         allow_undefined_flag=unsupported
14189         # Tell ltmain to make .lib files, not .a files.
14190         libext=lib
14191         # Tell ltmain to make .dll files, not .so files.
14192         shrext_cmds=".dll"
14193         # FIXME: Setting linknames here is a bad hack.
14194         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14195         # The linker will automatically build a .lib file if we build a DLL.
14196         old_archive_from_new_cmds='true'
14197         # FIXME: Should let the user specify the lib program.
14198         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14199         enable_shared_with_static_runtimes=yes
14200         ;;
14201       esac
14202       ;;
14203
14204     darwin* | rhapsody*)
14205
14206
14207   archive_cmds_need_lc=no
14208   hardcode_direct=no
14209   hardcode_automatic=yes
14210   hardcode_shlibpath_var=unsupported
14211   if test "$lt_cv_ld_force_load" = "yes"; then
14212     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\"`'
14213
14214   else
14215     whole_archive_flag_spec=''
14216   fi
14217   link_all_deplibs=yes
14218   allow_undefined_flag="$_lt_dar_allow_undefined"
14219   case $cc_basename in
14220      ifort*) _lt_dar_can_shared=yes ;;
14221      *) _lt_dar_can_shared=$GCC ;;
14222   esac
14223   if test "$_lt_dar_can_shared" = "yes"; then
14224     output_verbose_link_cmd=func_echo_all
14225     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14226     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14227     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}"
14228     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}"
14229
14230   else
14231   ld_shlibs=no
14232   fi
14233
14234       ;;
14235
14236     dgux*)
14237       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238       hardcode_libdir_flag_spec='-L$libdir'
14239       hardcode_shlibpath_var=no
14240       ;;
14241
14242     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14243     # support.  Future versions do this automatically, but an explicit c++rt0.o
14244     # does not break anything, and helps significantly (at the cost of a little
14245     # extra space).
14246     freebsd2.2*)
14247       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14248       hardcode_libdir_flag_spec='-R$libdir'
14249       hardcode_direct=yes
14250       hardcode_shlibpath_var=no
14251       ;;
14252
14253     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14254     freebsd2.*)
14255       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14256       hardcode_direct=yes
14257       hardcode_minus_L=yes
14258       hardcode_shlibpath_var=no
14259       ;;
14260
14261     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14262     freebsd* | dragonfly*)
14263       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14264       hardcode_libdir_flag_spec='-R$libdir'
14265       hardcode_direct=yes
14266       hardcode_shlibpath_var=no
14267       ;;
14268
14269     hpux9*)
14270       if test "$GCC" = yes; then
14271         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14272       else
14273         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14274       fi
14275       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14276       hardcode_libdir_separator=:
14277       hardcode_direct=yes
14278
14279       # hardcode_minus_L: Not really in the search PATH,
14280       # but as the default location of the library.
14281       hardcode_minus_L=yes
14282       export_dynamic_flag_spec='${wl}-E'
14283       ;;
14284
14285     hpux10*)
14286       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14287         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14288       else
14289         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14290       fi
14291       if test "$with_gnu_ld" = no; then
14292         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14293         hardcode_libdir_separator=:
14294         hardcode_direct=yes
14295         hardcode_direct_absolute=yes
14296         export_dynamic_flag_spec='${wl}-E'
14297         # hardcode_minus_L: Not really in the search PATH,
14298         # but as the default location of the library.
14299         hardcode_minus_L=yes
14300       fi
14301       ;;
14302
14303     hpux11*)
14304       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14305         case $host_cpu in
14306         hppa*64*)
14307           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308           ;;
14309         ia64*)
14310           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14311           ;;
14312         *)
14313           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14314           ;;
14315         esac
14316       else
14317         case $host_cpu in
14318         hppa*64*)
14319           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320           ;;
14321         ia64*)
14322           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14323           ;;
14324         *)
14325
14326           # Older versions of the 11.00 compiler do not understand -b yet
14327           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14328           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14329 $as_echo_n "checking if $CC understands -b... " >&6; }
14330 if ${lt_cv_prog_compiler__b+:} false; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   lt_cv_prog_compiler__b=no
14334    save_LDFLAGS="$LDFLAGS"
14335    LDFLAGS="$LDFLAGS -b"
14336    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14337    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14338      # The linker can only warn and ignore the option if not recognized
14339      # So say no if there are warnings
14340      if test -s conftest.err; then
14341        # Append any errors to the config.log.
14342        cat conftest.err 1>&5
14343        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14344        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14345        if diff conftest.exp conftest.er2 >/dev/null; then
14346          lt_cv_prog_compiler__b=yes
14347        fi
14348      else
14349        lt_cv_prog_compiler__b=yes
14350      fi
14351    fi
14352    $RM -r conftest*
14353    LDFLAGS="$save_LDFLAGS"
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14357 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14358
14359 if test x"$lt_cv_prog_compiler__b" = xyes; then
14360     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14361 else
14362     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14363 fi
14364
14365           ;;
14366         esac
14367       fi
14368       if test "$with_gnu_ld" = no; then
14369         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14370         hardcode_libdir_separator=:
14371
14372         case $host_cpu in
14373         hppa*64*|ia64*)
14374           hardcode_direct=no
14375           hardcode_shlibpath_var=no
14376           ;;
14377         *)
14378           hardcode_direct=yes
14379           hardcode_direct_absolute=yes
14380           export_dynamic_flag_spec='${wl}-E'
14381
14382           # hardcode_minus_L: Not really in the search PATH,
14383           # but as the default location of the library.
14384           hardcode_minus_L=yes
14385           ;;
14386         esac
14387       fi
14388       ;;
14389
14390     irix5* | irix6* | nonstopux*)
14391       if test "$GCC" = yes; then
14392         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'
14393         # Try to use the -exported_symbol ld option, if it does not
14394         # work, assume that -exports_file does not work either and
14395         # implicitly export all symbols.
14396         # This should be the same for all languages, so no per-tag cache variable.
14397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14398 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14399 if ${lt_cv_irix_exported_symbol+:} false; then :
14400   $as_echo_n "(cached) " >&6
14401 else
14402   save_LDFLAGS="$LDFLAGS"
14403            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14404            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406 int foo (void) { return 0; }
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409   lt_cv_irix_exported_symbol=yes
14410 else
14411   lt_cv_irix_exported_symbol=no
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext \
14414     conftest$ac_exeext conftest.$ac_ext
14415            LDFLAGS="$save_LDFLAGS"
14416 fi
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14418 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14419         if test "$lt_cv_irix_exported_symbol" = yes; then
14420           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'
14421         fi
14422       else
14423         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'
14424         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'
14425       fi
14426       archive_cmds_need_lc='no'
14427       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14428       hardcode_libdir_separator=:
14429       inherit_rpath=yes
14430       link_all_deplibs=yes
14431       ;;
14432
14433     netbsd*)
14434       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14435         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14436       else
14437         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14438       fi
14439       hardcode_libdir_flag_spec='-R$libdir'
14440       hardcode_direct=yes
14441       hardcode_shlibpath_var=no
14442       ;;
14443
14444     newsos6)
14445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446       hardcode_direct=yes
14447       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14448       hardcode_libdir_separator=:
14449       hardcode_shlibpath_var=no
14450       ;;
14451
14452     *nto* | *qnx*)
14453       ;;
14454
14455     openbsd*)
14456       if test -f /usr/libexec/ld.so; then
14457         hardcode_direct=yes
14458         hardcode_shlibpath_var=no
14459         hardcode_direct_absolute=yes
14460         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14461           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14462           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14463           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14464           export_dynamic_flag_spec='${wl}-E'
14465         else
14466           case $host_os in
14467            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14468              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14469              hardcode_libdir_flag_spec='-R$libdir'
14470              ;;
14471            *)
14472              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14473              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14474              ;;
14475           esac
14476         fi
14477       else
14478         ld_shlibs=no
14479       fi
14480       ;;
14481
14482     os2*)
14483       hardcode_libdir_flag_spec='-L$libdir'
14484       hardcode_minus_L=yes
14485       allow_undefined_flag=unsupported
14486       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14487       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14488       ;;
14489
14490     osf3*)
14491       if test "$GCC" = yes; then
14492         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14493         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'
14494       else
14495         allow_undefined_flag=' -expect_unresolved \*'
14496         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'
14497       fi
14498       archive_cmds_need_lc='no'
14499       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14500       hardcode_libdir_separator=:
14501       ;;
14502
14503     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14504       if test "$GCC" = yes; then
14505         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14506         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'
14507         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14508       else
14509         allow_undefined_flag=' -expect_unresolved \*'
14510         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'
14511         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~
14512         $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'
14513
14514         # Both c and cxx compiler support -rpath directly
14515         hardcode_libdir_flag_spec='-rpath $libdir'
14516       fi
14517       archive_cmds_need_lc='no'
14518       hardcode_libdir_separator=:
14519       ;;
14520
14521     solaris*)
14522       no_undefined_flag=' -z defs'
14523       if test "$GCC" = yes; then
14524         wlarc='${wl}'
14525         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14526         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14527           $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'
14528       else
14529         case `$CC -V 2>&1` in
14530         *"Compilers 5.0"*)
14531           wlarc=''
14532           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14533           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14534           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14535           ;;
14536         *)
14537           wlarc='${wl}'
14538           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14539           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14540           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14541           ;;
14542         esac
14543       fi
14544       hardcode_libdir_flag_spec='-R$libdir'
14545       hardcode_shlibpath_var=no
14546       case $host_os in
14547       solaris2.[0-5] | solaris2.[0-5].*) ;;
14548       *)
14549         # The compiler driver will combine and reorder linker options,
14550         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14551         # but is careful enough not to reorder.
14552         # Supported since Solaris 2.6 (maybe 2.5.1?)
14553         if test "$GCC" = yes; then
14554           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14555         else
14556           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14557         fi
14558         ;;
14559       esac
14560       link_all_deplibs=yes
14561       ;;
14562
14563     sunos4*)
14564       if test "x$host_vendor" = xsequent; then
14565         # Use $CC to link under sequent, because it throws in some extra .o
14566         # files that make .init and .fini sections work.
14567         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14568       else
14569         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14570       fi
14571       hardcode_libdir_flag_spec='-L$libdir'
14572       hardcode_direct=yes
14573       hardcode_minus_L=yes
14574       hardcode_shlibpath_var=no
14575       ;;
14576
14577     sysv4)
14578       case $host_vendor in
14579         sni)
14580           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581           hardcode_direct=yes # is this really true???
14582         ;;
14583         siemens)
14584           ## LD is ld it makes a PLAMLIB
14585           ## CC just makes a GrossModule.
14586           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14587           reload_cmds='$CC -r -o $output$reload_objs'
14588           hardcode_direct=no
14589         ;;
14590         motorola)
14591           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14592           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14593         ;;
14594       esac
14595       runpath_var='LD_RUN_PATH'
14596       hardcode_shlibpath_var=no
14597       ;;
14598
14599     sysv4.3*)
14600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601       hardcode_shlibpath_var=no
14602       export_dynamic_flag_spec='-Bexport'
14603       ;;
14604
14605     sysv4*MP*)
14606       if test -d /usr/nec; then
14607         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14608         hardcode_shlibpath_var=no
14609         runpath_var=LD_RUN_PATH
14610         hardcode_runpath_var=yes
14611         ld_shlibs=yes
14612       fi
14613       ;;
14614
14615     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14616       no_undefined_flag='${wl}-z,text'
14617       archive_cmds_need_lc=no
14618       hardcode_shlibpath_var=no
14619       runpath_var='LD_RUN_PATH'
14620
14621       if test "$GCC" = yes; then
14622         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14623         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14624       else
14625         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627       fi
14628       ;;
14629
14630     sysv5* | sco3.2v5* | sco5v6*)
14631       # Note: We can NOT use -z defs as we might desire, because we do not
14632       # link with -lc, and that would cause any symbols used from libc to
14633       # always be unresolved, which means just about no library would
14634       # ever link correctly.  If we're not using GNU ld we use -z text
14635       # though, which does catch some bad symbols but isn't as heavy-handed
14636       # as -z defs.
14637       no_undefined_flag='${wl}-z,text'
14638       allow_undefined_flag='${wl}-z,nodefs'
14639       archive_cmds_need_lc=no
14640       hardcode_shlibpath_var=no
14641       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14642       hardcode_libdir_separator=':'
14643       link_all_deplibs=yes
14644       export_dynamic_flag_spec='${wl}-Bexport'
14645       runpath_var='LD_RUN_PATH'
14646
14647       if test "$GCC" = yes; then
14648         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650       else
14651         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14652         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653       fi
14654       ;;
14655
14656     uts4*)
14657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14658       hardcode_libdir_flag_spec='-L$libdir'
14659       hardcode_shlibpath_var=no
14660       ;;
14661
14662     *)
14663       ld_shlibs=no
14664       ;;
14665     esac
14666
14667     if test x$host_vendor = xsni; then
14668       case $host in
14669       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14670         export_dynamic_flag_spec='${wl}-Blargedynsym'
14671         ;;
14672       esac
14673     fi
14674   fi
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14677 $as_echo "$ld_shlibs" >&6; }
14678 test "$ld_shlibs" = no && can_build_shared=no
14679
14680 with_gnu_ld=$with_gnu_ld
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 #
14697 # Do we need to explicitly link libc?
14698 #
14699 case "x$archive_cmds_need_lc" in
14700 x|xyes)
14701   # Assume -lc should be added
14702   archive_cmds_need_lc=yes
14703
14704   if test "$enable_shared" = yes && test "$GCC" = yes; then
14705     case $archive_cmds in
14706     *'~'*)
14707       # FIXME: we may have to deal with multi-command sequences.
14708       ;;
14709     '$CC '*)
14710       # Test whether the compiler implicitly links with -lc since on some
14711       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14712       # to ld, don't add -lc before -lgcc.
14713       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14715 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14716   $as_echo_n "(cached) " >&6
14717 else
14718   $RM conftest*
14719         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14720
14721         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14722   (eval $ac_compile) 2>&5
14723   ac_status=$?
14724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14725   test $ac_status = 0; } 2>conftest.err; then
14726           soname=conftest
14727           lib=conftest
14728           libobjs=conftest.$ac_objext
14729           deplibs=
14730           wl=$lt_prog_compiler_wl
14731           pic_flag=$lt_prog_compiler_pic
14732           compiler_flags=-v
14733           linker_flags=-v
14734           verstring=
14735           output_objdir=.
14736           libname=conftest
14737           lt_save_allow_undefined_flag=$allow_undefined_flag
14738           allow_undefined_flag=
14739           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14740   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14741   ac_status=$?
14742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743   test $ac_status = 0; }
14744           then
14745             lt_cv_archive_cmds_need_lc=no
14746           else
14747             lt_cv_archive_cmds_need_lc=yes
14748           fi
14749           allow_undefined_flag=$lt_save_allow_undefined_flag
14750         else
14751           cat conftest.err 1>&5
14752         fi
14753         $RM conftest*
14754
14755 fi
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14758       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14759       ;;
14760     esac
14761   fi
14762   ;;
14763 esac
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
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
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14918
14919 if test "$GCC" = yes; then
14920   case $host_os in
14921     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14922     *) lt_awk_arg="/^libraries:/" ;;
14923   esac
14924   case $host_os in
14925     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14926     *) lt_sed_strip_eq="s,=/,/,g" ;;
14927   esac
14928   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14929   case $lt_search_path_spec in
14930   *\;*)
14931     # if the path contains ";" then we assume it to be the separator
14932     # otherwise default to the standard path separator (i.e. ":") - it is
14933     # assumed that no part of a normal pathname contains ";" but that should
14934     # okay in the real world where ";" in dirpaths is itself problematic.
14935     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14936     ;;
14937   *)
14938     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14939     ;;
14940   esac
14941   # Ok, now we have the path, separated by spaces, we can step through it
14942   # and add multilib dir if necessary.
14943   lt_tmp_lt_search_path_spec=
14944   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14945   for lt_sys_path in $lt_search_path_spec; do
14946     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14947       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14948     else
14949       test -d "$lt_sys_path" && \
14950         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14951     fi
14952   done
14953   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14954 BEGIN {RS=" "; FS="/|\n";} {
14955   lt_foo="";
14956   lt_count=0;
14957   for (lt_i = NF; lt_i > 0; lt_i--) {
14958     if ($lt_i != "" && $lt_i != ".") {
14959       if ($lt_i == "..") {
14960         lt_count++;
14961       } else {
14962         if (lt_count == 0) {
14963           lt_foo="/" $lt_i lt_foo;
14964         } else {
14965           lt_count--;
14966         }
14967       }
14968     }
14969   }
14970   if (lt_foo != "") { lt_freq[lt_foo]++; }
14971   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14972 }'`
14973   # AWK program above erroneously prepends '/' to C:/dos/paths
14974   # for these hosts.
14975   case $host_os in
14976     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14977       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14978   esac
14979   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14980 else
14981   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14982 fi
14983 library_names_spec=
14984 libname_spec='lib$name'
14985 soname_spec=
14986 shrext_cmds=".so"
14987 postinstall_cmds=
14988 postuninstall_cmds=
14989 finish_cmds=
14990 finish_eval=
14991 shlibpath_var=
14992 shlibpath_overrides_runpath=unknown
14993 version_type=none
14994 dynamic_linker="$host_os ld.so"
14995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14996 need_lib_prefix=unknown
14997 hardcode_into_libs=no
14998
14999 # when you set need_version to no, make sure it does not cause -set_version
15000 # flags to be left without arguments
15001 need_version=unknown
15002
15003 case $host_os in
15004 aix3*)
15005   version_type=linux # correct to gnu/linux during the next big refactor
15006   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15007   shlibpath_var=LIBPATH
15008
15009   # AIX 3 has no versioning support, so we append a major version to the name.
15010   soname_spec='${libname}${release}${shared_ext}$major'
15011   ;;
15012
15013 aix[4-9]*)
15014   version_type=linux # correct to gnu/linux during the next big refactor
15015   need_lib_prefix=no
15016   need_version=no
15017   hardcode_into_libs=yes
15018   if test "$host_cpu" = ia64; then
15019     # AIX 5 supports IA64
15020     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15021     shlibpath_var=LD_LIBRARY_PATH
15022   else
15023     # With GCC up to 2.95.x, collect2 would create an import file
15024     # for dependence libraries.  The import file would start with
15025     # the line `#! .'.  This would cause the generated library to
15026     # depend on `.', always an invalid library.  This was fixed in
15027     # development snapshots of GCC prior to 3.0.
15028     case $host_os in
15029       aix4 | aix4.[01] | aix4.[01].*)
15030       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15031            echo ' yes '
15032            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15033         :
15034       else
15035         can_build_shared=no
15036       fi
15037       ;;
15038     esac
15039     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15040     # soname into executable. Probably we can add versioning support to
15041     # collect2, so additional links can be useful in future.
15042     if test "$aix_use_runtimelinking" = yes; then
15043       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15044       # instead of lib<name>.a to let people know that these are not
15045       # typical AIX shared libraries.
15046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047     else
15048       # We preserve .a as extension for shared libraries through AIX4.2
15049       # and later when we are not doing run time linking.
15050       library_names_spec='${libname}${release}.a $libname.a'
15051       soname_spec='${libname}${release}${shared_ext}$major'
15052     fi
15053     shlibpath_var=LIBPATH
15054   fi
15055   ;;
15056
15057 amigaos*)
15058   case $host_cpu in
15059   powerpc)
15060     # Since July 2007 AmigaOS4 officially supports .so libraries.
15061     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063     ;;
15064   m68k)
15065     library_names_spec='$libname.ixlibrary $libname.a'
15066     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15067     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15068     ;;
15069   esac
15070   ;;
15071
15072 beos*)
15073   library_names_spec='${libname}${shared_ext}'
15074   dynamic_linker="$host_os ld.so"
15075   shlibpath_var=LIBRARY_PATH
15076   ;;
15077
15078 bsdi[45]*)
15079   version_type=linux # correct to gnu/linux during the next big refactor
15080   need_version=no
15081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082   soname_spec='${libname}${release}${shared_ext}$major'
15083   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15084   shlibpath_var=LD_LIBRARY_PATH
15085   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15086   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15087   # the default ld.so.conf also contains /usr/contrib/lib and
15088   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15089   # libtool to hard-code these into programs
15090   ;;
15091
15092 cygwin* | mingw* | pw32* | cegcc*)
15093   version_type=windows
15094   shrext_cmds=".dll"
15095   need_version=no
15096   need_lib_prefix=no
15097
15098   case $GCC,$cc_basename in
15099   yes,*)
15100     # gcc
15101     library_names_spec='$libname.dll.a'
15102     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15103     postinstall_cmds='base_file=`basename \${file}`~
15104       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15105       dldir=$destdir/`dirname \$dlpath`~
15106       test -d \$dldir || mkdir -p \$dldir~
15107       $install_prog $dir/$dlname \$dldir/$dlname~
15108       chmod a+x \$dldir/$dlname~
15109       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15110         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15111       fi'
15112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15113       dlpath=$dir/\$dldll~
15114        $RM \$dlpath'
15115     shlibpath_overrides_runpath=yes
15116
15117     case $host_os in
15118     cygwin*)
15119       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15120       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15121
15122       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15123       ;;
15124     mingw* | cegcc*)
15125       # MinGW DLLs use traditional 'lib' prefix
15126       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15127       ;;
15128     pw32*)
15129       # pw32 DLLs use 'pw' prefix rather than 'lib'
15130       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15131       ;;
15132     esac
15133     dynamic_linker='Win32 ld.exe'
15134     ;;
15135
15136   *,cl*)
15137     # Native MSVC
15138     libname_spec='$name'
15139     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140     library_names_spec='${libname}.dll.lib'
15141
15142     case $build_os in
15143     mingw*)
15144       sys_lib_search_path_spec=
15145       lt_save_ifs=$IFS
15146       IFS=';'
15147       for lt_path in $LIB
15148       do
15149         IFS=$lt_save_ifs
15150         # Let DOS variable expansion print the short 8.3 style file name.
15151         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15152         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15153       done
15154       IFS=$lt_save_ifs
15155       # Convert to MSYS style.
15156       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15157       ;;
15158     cygwin*)
15159       # Convert to unix form, then to dos form, then back to unix form
15160       # but this time dos style (no spaces!) so that the unix form looks
15161       # like /cygdrive/c/PROGRA~1:/cygdr...
15162       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15163       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15164       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15165       ;;
15166     *)
15167       sys_lib_search_path_spec="$LIB"
15168       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15169         # It is most probably a Windows format PATH.
15170         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15171       else
15172         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15173       fi
15174       # FIXME: find the short name or the path components, as spaces are
15175       # common. (e.g. "Program Files" -> "PROGRA~1")
15176       ;;
15177     esac
15178
15179     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15180     postinstall_cmds='base_file=`basename \${file}`~
15181       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15182       dldir=$destdir/`dirname \$dlpath`~
15183       test -d \$dldir || mkdir -p \$dldir~
15184       $install_prog $dir/$dlname \$dldir/$dlname'
15185     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15186       dlpath=$dir/\$dldll~
15187        $RM \$dlpath'
15188     shlibpath_overrides_runpath=yes
15189     dynamic_linker='Win32 link.exe'
15190     ;;
15191
15192   *)
15193     # Assume MSVC wrapper
15194     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15195     dynamic_linker='Win32 ld.exe'
15196     ;;
15197   esac
15198   # FIXME: first we should search . and the directory the executable is in
15199   shlibpath_var=PATH
15200   ;;
15201
15202 darwin* | rhapsody*)
15203   dynamic_linker="$host_os dyld"
15204   version_type=darwin
15205   need_lib_prefix=no
15206   need_version=no
15207   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15208   soname_spec='${libname}${release}${major}$shared_ext'
15209   shlibpath_overrides_runpath=yes
15210   shlibpath_var=DYLD_LIBRARY_PATH
15211   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15212
15213   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15214   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15215   ;;
15216
15217 dgux*)
15218   version_type=linux # correct to gnu/linux during the next big refactor
15219   need_lib_prefix=no
15220   need_version=no
15221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15222   soname_spec='${libname}${release}${shared_ext}$major'
15223   shlibpath_var=LD_LIBRARY_PATH
15224   ;;
15225
15226 freebsd* | dragonfly*)
15227   # DragonFly does not have aout.  When/if they implement a new
15228   # versioning mechanism, adjust this.
15229   if test -x /usr/bin/objformat; then
15230     objformat=`/usr/bin/objformat`
15231   else
15232     case $host_os in
15233     freebsd[23].*) objformat=aout ;;
15234     *) objformat=elf ;;
15235     esac
15236   fi
15237   version_type=freebsd-$objformat
15238   case $version_type in
15239     freebsd-elf*)
15240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15241       need_version=no
15242       need_lib_prefix=no
15243       ;;
15244     freebsd-*)
15245       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15246       need_version=yes
15247       ;;
15248   esac
15249   shlibpath_var=LD_LIBRARY_PATH
15250   case $host_os in
15251   freebsd2.*)
15252     shlibpath_overrides_runpath=yes
15253     ;;
15254   freebsd3.[01]* | freebsdelf3.[01]*)
15255     shlibpath_overrides_runpath=yes
15256     hardcode_into_libs=yes
15257     ;;
15258   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15259   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15260     shlibpath_overrides_runpath=no
15261     hardcode_into_libs=yes
15262     ;;
15263   *) # from 4.6 on, and DragonFly
15264     shlibpath_overrides_runpath=yes
15265     hardcode_into_libs=yes
15266     ;;
15267   esac
15268   ;;
15269
15270 gnu*)
15271   version_type=linux # correct to gnu/linux during the next big refactor
15272   need_lib_prefix=no
15273   need_version=no
15274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15275   soname_spec='${libname}${release}${shared_ext}$major'
15276   shlibpath_var=LD_LIBRARY_PATH
15277   shlibpath_overrides_runpath=no
15278   hardcode_into_libs=yes
15279   ;;
15280
15281 haiku*)
15282   version_type=linux # correct to gnu/linux during the next big refactor
15283   need_lib_prefix=no
15284   need_version=no
15285   dynamic_linker="$host_os runtime_loader"
15286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15287   soname_spec='${libname}${release}${shared_ext}$major'
15288   shlibpath_var=LIBRARY_PATH
15289   shlibpath_overrides_runpath=yes
15290   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15291   hardcode_into_libs=yes
15292   ;;
15293
15294 hpux9* | hpux10* | hpux11*)
15295   # Give a soname corresponding to the major version so that dld.sl refuses to
15296   # link against other versions.
15297   version_type=sunos
15298   need_lib_prefix=no
15299   need_version=no
15300   case $host_cpu in
15301   ia64*)
15302     shrext_cmds='.so'
15303     hardcode_into_libs=yes
15304     dynamic_linker="$host_os dld.so"
15305     shlibpath_var=LD_LIBRARY_PATH
15306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308     soname_spec='${libname}${release}${shared_ext}$major'
15309     if test "X$HPUX_IA64_MODE" = X32; then
15310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15311     else
15312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15313     fi
15314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15315     ;;
15316   hppa*64*)
15317     shrext_cmds='.sl'
15318     hardcode_into_libs=yes
15319     dynamic_linker="$host_os dld.sl"
15320     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323     soname_spec='${libname}${release}${shared_ext}$major'
15324     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15326     ;;
15327   *)
15328     shrext_cmds='.sl'
15329     dynamic_linker="$host_os dld.sl"
15330     shlibpath_var=SHLIB_PATH
15331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333     soname_spec='${libname}${release}${shared_ext}$major'
15334     ;;
15335   esac
15336   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15337   postinstall_cmds='chmod 555 $lib'
15338   # or fails outright, so override atomically:
15339   install_override_mode=555
15340   ;;
15341
15342 interix[3-9]*)
15343   version_type=linux # correct to gnu/linux during the next big refactor
15344   need_lib_prefix=no
15345   need_version=no
15346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15347   soname_spec='${libname}${release}${shared_ext}$major'
15348   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15349   shlibpath_var=LD_LIBRARY_PATH
15350   shlibpath_overrides_runpath=no
15351   hardcode_into_libs=yes
15352   ;;
15353
15354 irix5* | irix6* | nonstopux*)
15355   case $host_os in
15356     nonstopux*) version_type=nonstopux ;;
15357     *)
15358         if test "$lt_cv_prog_gnu_ld" = yes; then
15359                 version_type=linux # correct to gnu/linux during the next big refactor
15360         else
15361                 version_type=irix
15362         fi ;;
15363   esac
15364   need_lib_prefix=no
15365   need_version=no
15366   soname_spec='${libname}${release}${shared_ext}$major'
15367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15368   case $host_os in
15369   irix5* | nonstopux*)
15370     libsuff= shlibsuff=
15371     ;;
15372   *)
15373     case $LD in # libtool.m4 will add one of these switches to LD
15374     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15375       libsuff= shlibsuff= libmagic=32-bit;;
15376     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15377       libsuff=32 shlibsuff=N32 libmagic=N32;;
15378     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15379       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15380     *) libsuff= shlibsuff= libmagic=never-match;;
15381     esac
15382     ;;
15383   esac
15384   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15385   shlibpath_overrides_runpath=no
15386   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15387   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15388   hardcode_into_libs=yes
15389   ;;
15390
15391 # No shared lib support for Linux oldld, aout, or coff.
15392 linux*oldld* | linux*aout* | linux*coff*)
15393   dynamic_linker=no
15394   ;;
15395
15396 # This must be glibc/ELF.
15397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15398   version_type=linux # correct to gnu/linux during the next big refactor
15399   need_lib_prefix=no
15400   need_version=no
15401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402   soname_spec='${libname}${release}${shared_ext}$major'
15403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   shlibpath_overrides_runpath=no
15406
15407   # Some binutils ld are patched to set DT_RUNPATH
15408   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411   lt_cv_shlibpath_overrides_runpath=no
15412     save_LDFLAGS=$LDFLAGS
15413     save_libdir=$libdir
15414     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15415          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h.  */
15418
15419 int
15420 main ()
15421 {
15422
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_link "$LINENO"; then :
15428   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15429   lt_cv_shlibpath_overrides_runpath=yes
15430 fi
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext \
15433     conftest$ac_exeext conftest.$ac_ext
15434     LDFLAGS=$save_LDFLAGS
15435     libdir=$save_libdir
15436
15437 fi
15438
15439   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15440
15441   # This implies no fast_install, which is unacceptable.
15442   # Some rework will be needed to allow for fast_install
15443   # before this can be enabled.
15444   hardcode_into_libs=yes
15445
15446   # Add ABI-specific directories to the system library path.
15447   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15448
15449   # Append ld.so.conf contents to the search path
15450   if test -f /etc/ld.so.conf; then
15451     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' ' '`
15452     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15453
15454   fi
15455
15456   # We used to test for /lib/ld.so.1 and disable shared libraries on
15457   # powerpc, because MkLinux only supported shared libraries with the
15458   # GNU dynamic linker.  Since this was broken with cross compilers,
15459   # most powerpc-linux boxes support dynamic linking these days and
15460   # people can always --disable-shared, the test was removed, and we
15461   # assume the GNU/Linux dynamic linker is in use.
15462   dynamic_linker='GNU/Linux ld.so'
15463   ;;
15464
15465 netbsd*)
15466   version_type=sunos
15467   need_lib_prefix=no
15468   need_version=no
15469   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472     dynamic_linker='NetBSD (a.out) ld.so'
15473   else
15474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475     soname_spec='${libname}${release}${shared_ext}$major'
15476     dynamic_linker='NetBSD ld.elf_so'
15477   fi
15478   shlibpath_var=LD_LIBRARY_PATH
15479   shlibpath_overrides_runpath=yes
15480   hardcode_into_libs=yes
15481   ;;
15482
15483 newsos6)
15484   version_type=linux # correct to gnu/linux during the next big refactor
15485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   shlibpath_overrides_runpath=yes
15488   ;;
15489
15490 *nto* | *qnx*)
15491   version_type=qnx
15492   need_lib_prefix=no
15493   need_version=no
15494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495   soname_spec='${libname}${release}${shared_ext}$major'
15496   shlibpath_var=LD_LIBRARY_PATH
15497   shlibpath_overrides_runpath=no
15498   hardcode_into_libs=yes
15499   dynamic_linker='ldqnx.so'
15500   ;;
15501
15502 openbsd*)
15503   version_type=sunos
15504   sys_lib_dlsearch_path_spec="/usr/lib"
15505   need_lib_prefix=no
15506   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15507   case $host_os in
15508     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15509     *)                          need_version=no  ;;
15510   esac
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15515     case $host_os in
15516       openbsd2.[89] | openbsd2.[89].*)
15517         shlibpath_overrides_runpath=no
15518         ;;
15519       *)
15520         shlibpath_overrides_runpath=yes
15521         ;;
15522       esac
15523   else
15524     shlibpath_overrides_runpath=yes
15525   fi
15526   ;;
15527
15528 os2*)
15529   libname_spec='$name'
15530   shrext_cmds=".dll"
15531   need_lib_prefix=no
15532   library_names_spec='$libname${shared_ext} $libname.a'
15533   dynamic_linker='OS/2 ld.exe'
15534   shlibpath_var=LIBPATH
15535   ;;
15536
15537 osf3* | osf4* | osf5*)
15538   version_type=osf
15539   need_lib_prefix=no
15540   need_version=no
15541   soname_spec='${libname}${release}${shared_ext}$major'
15542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543   shlibpath_var=LD_LIBRARY_PATH
15544   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15545   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15546   ;;
15547
15548 rdos*)
15549   dynamic_linker=no
15550   ;;
15551
15552 solaris*)
15553   version_type=linux # correct to gnu/linux during the next big refactor
15554   need_lib_prefix=no
15555   need_version=no
15556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557   soname_spec='${libname}${release}${shared_ext}$major'
15558   shlibpath_var=LD_LIBRARY_PATH
15559   shlibpath_overrides_runpath=yes
15560   hardcode_into_libs=yes
15561   # ldd complains unless libraries are executable
15562   postinstall_cmds='chmod +x $lib'
15563   ;;
15564
15565 sunos4*)
15566   version_type=sunos
15567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15568   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15569   shlibpath_var=LD_LIBRARY_PATH
15570   shlibpath_overrides_runpath=yes
15571   if test "$with_gnu_ld" = yes; then
15572     need_lib_prefix=no
15573   fi
15574   need_version=yes
15575   ;;
15576
15577 sysv4 | sysv4.3*)
15578   version_type=linux # correct to gnu/linux during the next big refactor
15579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580   soname_spec='${libname}${release}${shared_ext}$major'
15581   shlibpath_var=LD_LIBRARY_PATH
15582   case $host_vendor in
15583     sni)
15584       shlibpath_overrides_runpath=no
15585       need_lib_prefix=no
15586       runpath_var=LD_RUN_PATH
15587       ;;
15588     siemens)
15589       need_lib_prefix=no
15590       ;;
15591     motorola)
15592       need_lib_prefix=no
15593       need_version=no
15594       shlibpath_overrides_runpath=no
15595       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15596       ;;
15597   esac
15598   ;;
15599
15600 sysv4*MP*)
15601   if test -d /usr/nec ;then
15602     version_type=linux # correct to gnu/linux during the next big refactor
15603     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15604     soname_spec='$libname${shared_ext}.$major'
15605     shlibpath_var=LD_LIBRARY_PATH
15606   fi
15607   ;;
15608
15609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15610   version_type=freebsd-elf
15611   need_lib_prefix=no
15612   need_version=no
15613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15614   soname_spec='${libname}${release}${shared_ext}$major'
15615   shlibpath_var=LD_LIBRARY_PATH
15616   shlibpath_overrides_runpath=yes
15617   hardcode_into_libs=yes
15618   if test "$with_gnu_ld" = yes; then
15619     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15620   else
15621     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15622     case $host_os in
15623       sco3.2v5*)
15624         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15625         ;;
15626     esac
15627   fi
15628   sys_lib_dlsearch_path_spec='/usr/lib'
15629   ;;
15630
15631 tpf*)
15632   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15633   version_type=linux # correct to gnu/linux during the next big refactor
15634   need_lib_prefix=no
15635   need_version=no
15636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637   shlibpath_var=LD_LIBRARY_PATH
15638   shlibpath_overrides_runpath=no
15639   hardcode_into_libs=yes
15640   ;;
15641
15642 uts4*)
15643   version_type=linux # correct to gnu/linux during the next big refactor
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   ;;
15648
15649 *)
15650   dynamic_linker=no
15651   ;;
15652 esac
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15654 $as_echo "$dynamic_linker" >&6; }
15655 test "$dynamic_linker" = no && can_build_shared=no
15656
15657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15658 if test "$GCC" = yes; then
15659   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15660 fi
15661
15662 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15663   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15664 fi
15665 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15666   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15667 fi
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15762 hardcode_action=
15763 if test -n "$hardcode_libdir_flag_spec" ||
15764    test -n "$runpath_var" ||
15765    test "X$hardcode_automatic" = "Xyes" ; then
15766
15767   # We can hardcode non-existent directories.
15768   if test "$hardcode_direct" != no &&
15769      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15770      # have to relink, otherwise we might link with an installed library
15771      # when we should be linking with a yet-to-be-installed one
15772      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15773      test "$hardcode_minus_L" != no; then
15774     # Linking always hardcodes the temporary library directory.
15775     hardcode_action=relink
15776   else
15777     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15778     hardcode_action=immediate
15779   fi
15780 else
15781   # We cannot hardcode anything, or else we can only hardcode existing
15782   # directories.
15783   hardcode_action=unsupported
15784 fi
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15786 $as_echo "$hardcode_action" >&6; }
15787
15788 if test "$hardcode_action" = relink ||
15789    test "$inherit_rpath" = yes; then
15790   # Fast installation is not supported
15791   enable_fast_install=no
15792 elif test "$shlibpath_overrides_runpath" = yes ||
15793      test "$enable_shared" = no; then
15794   # Fast installation is not necessary
15795   enable_fast_install=needless
15796 fi
15797
15798
15799
15800
15801
15802
15803   if test "x$enable_dlopen" != xyes; then
15804   enable_dlopen=unknown
15805   enable_dlopen_self=unknown
15806   enable_dlopen_self_static=unknown
15807 else
15808   lt_cv_dlopen=no
15809   lt_cv_dlopen_libs=
15810
15811   case $host_os in
15812   beos*)
15813     lt_cv_dlopen="load_add_on"
15814     lt_cv_dlopen_libs=
15815     lt_cv_dlopen_self=yes
15816     ;;
15817
15818   mingw* | pw32* | cegcc*)
15819     lt_cv_dlopen="LoadLibrary"
15820     lt_cv_dlopen_libs=
15821     ;;
15822
15823   cygwin*)
15824     lt_cv_dlopen="dlopen"
15825     lt_cv_dlopen_libs=
15826     ;;
15827
15828   darwin*)
15829   # if libdl is installed we need to link against it
15830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15832 if ${ac_cv_lib_dl_dlopen+:} false; then :
15833   $as_echo_n "(cached) " >&6
15834 else
15835   ac_check_lib_save_LIBS=$LIBS
15836 LIBS="-ldl  $LIBS"
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h.  */
15839
15840 /* Override any GCC internal prototype to avoid an error.
15841    Use char because int might match the return type of a GCC
15842    builtin and then its argument prototype would still apply.  */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char dlopen ();
15847 int
15848 main ()
15849 {
15850 return dlopen ();
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856   ac_cv_lib_dl_dlopen=yes
15857 else
15858   ac_cv_lib_dl_dlopen=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861     conftest$ac_exeext conftest.$ac_ext
15862 LIBS=$ac_check_lib_save_LIBS
15863 fi
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15867   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15868 else
15869
15870     lt_cv_dlopen="dyld"
15871     lt_cv_dlopen_libs=
15872     lt_cv_dlopen_self=yes
15873
15874 fi
15875
15876     ;;
15877
15878   *)
15879     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15880 if test "x$ac_cv_func_shl_load" = xyes; then :
15881   lt_cv_dlopen="shl_load"
15882 else
15883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15884 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15885 if ${ac_cv_lib_dld_shl_load+:} false; then :
15886   $as_echo_n "(cached) " >&6
15887 else
15888   ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-ldld  $LIBS"
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892
15893 /* Override any GCC internal prototype to avoid an error.
15894    Use char because int might match the return type of a GCC
15895    builtin and then its argument prototype would still apply.  */
15896 #ifdef __cplusplus
15897 extern "C"
15898 #endif
15899 char shl_load ();
15900 int
15901 main ()
15902 {
15903 return shl_load ();
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_link "$LINENO"; then :
15909   ac_cv_lib_dld_shl_load=yes
15910 else
15911   ac_cv_lib_dld_shl_load=no
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext \
15914     conftest$ac_exeext conftest.$ac_ext
15915 LIBS=$ac_check_lib_save_LIBS
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15918 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15919 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15920   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15921 else
15922   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15923 if test "x$ac_cv_func_dlopen" = xyes; then :
15924   lt_cv_dlopen="dlopen"
15925 else
15926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15928 if ${ac_cv_lib_dl_dlopen+:} false; then :
15929   $as_echo_n "(cached) " >&6
15930 else
15931   ac_check_lib_save_LIBS=$LIBS
15932 LIBS="-ldl  $LIBS"
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h.  */
15935
15936 /* Override any GCC internal prototype to avoid an error.
15937    Use char because int might match the return type of a GCC
15938    builtin and then its argument prototype would still apply.  */
15939 #ifdef __cplusplus
15940 extern "C"
15941 #endif
15942 char dlopen ();
15943 int
15944 main ()
15945 {
15946 return dlopen ();
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 if ac_fn_c_try_link "$LINENO"; then :
15952   ac_cv_lib_dl_dlopen=yes
15953 else
15954   ac_cv_lib_dl_dlopen=no
15955 fi
15956 rm -f core conftest.err conftest.$ac_objext \
15957     conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15963   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15964 else
15965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15967 if ${ac_cv_lib_svld_dlopen+:} false; then :
15968   $as_echo_n "(cached) " >&6
15969 else
15970   ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-lsvld  $LIBS"
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h.  */
15974
15975 /* Override any GCC internal prototype to avoid an error.
15976    Use char because int might match the return type of a GCC
15977    builtin and then its argument prototype would still apply.  */
15978 #ifdef __cplusplus
15979 extern "C"
15980 #endif
15981 char dlopen ();
15982 int
15983 main ()
15984 {
15985 return dlopen ();
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_c_try_link "$LINENO"; then :
15991   ac_cv_lib_svld_dlopen=yes
15992 else
15993   ac_cv_lib_svld_dlopen=no
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext \
15996     conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15998 fi
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16000 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16001 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16002   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16003 else
16004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16005 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16006 if ${ac_cv_lib_dld_dld_link+:} false; then :
16007   $as_echo_n "(cached) " >&6
16008 else
16009   ac_check_lib_save_LIBS=$LIBS
16010 LIBS="-ldld  $LIBS"
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013
16014 /* Override any GCC internal prototype to avoid an error.
16015    Use char because int might match the return type of a GCC
16016    builtin and then its argument prototype would still apply.  */
16017 #ifdef __cplusplus
16018 extern "C"
16019 #endif
16020 char dld_link ();
16021 int
16022 main ()
16023 {
16024 return dld_link ();
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 if ac_fn_c_try_link "$LINENO"; then :
16030   ac_cv_lib_dld_dld_link=yes
16031 else
16032   ac_cv_lib_dld_dld_link=no
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext \
16035     conftest$ac_exeext conftest.$ac_ext
16036 LIBS=$ac_check_lib_save_LIBS
16037 fi
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16039 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16040 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16041   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16042 fi
16043
16044
16045 fi
16046
16047
16048 fi
16049
16050
16051 fi
16052
16053
16054 fi
16055
16056
16057 fi
16058
16059     ;;
16060   esac
16061
16062   if test "x$lt_cv_dlopen" != xno; then
16063     enable_dlopen=yes
16064   else
16065     enable_dlopen=no
16066   fi
16067
16068   case $lt_cv_dlopen in
16069   dlopen)
16070     save_CPPFLAGS="$CPPFLAGS"
16071     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16072
16073     save_LDFLAGS="$LDFLAGS"
16074     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16075
16076     save_LIBS="$LIBS"
16077     LIBS="$lt_cv_dlopen_libs $LIBS"
16078
16079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16080 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16081 if ${lt_cv_dlopen_self+:} false; then :
16082   $as_echo_n "(cached) " >&6
16083 else
16084           if test "$cross_compiling" = yes; then :
16085   lt_cv_dlopen_self=cross
16086 else
16087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16088   lt_status=$lt_dlunknown
16089   cat > conftest.$ac_ext <<_LT_EOF
16090 #line $LINENO "configure"
16091 #include "confdefs.h"
16092
16093 #if HAVE_DLFCN_H
16094 #include <dlfcn.h>
16095 #endif
16096
16097 #include <stdio.h>
16098
16099 #ifdef RTLD_GLOBAL
16100 #  define LT_DLGLOBAL           RTLD_GLOBAL
16101 #else
16102 #  ifdef DL_GLOBAL
16103 #    define LT_DLGLOBAL         DL_GLOBAL
16104 #  else
16105 #    define LT_DLGLOBAL         0
16106 #  endif
16107 #endif
16108
16109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16110    find out it does not work in some platform. */
16111 #ifndef LT_DLLAZY_OR_NOW
16112 #  ifdef RTLD_LAZY
16113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16114 #  else
16115 #    ifdef DL_LAZY
16116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16117 #    else
16118 #      ifdef RTLD_NOW
16119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16120 #      else
16121 #        ifdef DL_NOW
16122 #          define LT_DLLAZY_OR_NOW      DL_NOW
16123 #        else
16124 #          define LT_DLLAZY_OR_NOW      0
16125 #        endif
16126 #      endif
16127 #    endif
16128 #  endif
16129 #endif
16130
16131 /* When -fvisbility=hidden is used, assume the code has been annotated
16132    correspondingly for the symbols needed.  */
16133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16134 int fnord () __attribute__((visibility("default")));
16135 #endif
16136
16137 int fnord () { return 42; }
16138 int main ()
16139 {
16140   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16141   int status = $lt_dlunknown;
16142
16143   if (self)
16144     {
16145       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16146       else
16147         {
16148           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16149           else puts (dlerror ());
16150         }
16151       /* dlclose (self); */
16152     }
16153   else
16154     puts (dlerror ());
16155
16156   return status;
16157 }
16158 _LT_EOF
16159   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16160   (eval $ac_link) 2>&5
16161   ac_status=$?
16162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16164     (./conftest; exit; ) >&5 2>/dev/null
16165     lt_status=$?
16166     case x$lt_status in
16167       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16168       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16169       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16170     esac
16171   else :
16172     # compilation failed
16173     lt_cv_dlopen_self=no
16174   fi
16175 fi
16176 rm -fr conftest*
16177
16178
16179 fi
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16181 $as_echo "$lt_cv_dlopen_self" >&6; }
16182
16183     if test "x$lt_cv_dlopen_self" = xyes; then
16184       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16186 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16187 if ${lt_cv_dlopen_self_static+:} false; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190           if test "$cross_compiling" = yes; then :
16191   lt_cv_dlopen_self_static=cross
16192 else
16193   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16194   lt_status=$lt_dlunknown
16195   cat > conftest.$ac_ext <<_LT_EOF
16196 #line $LINENO "configure"
16197 #include "confdefs.h"
16198
16199 #if HAVE_DLFCN_H
16200 #include <dlfcn.h>
16201 #endif
16202
16203 #include <stdio.h>
16204
16205 #ifdef RTLD_GLOBAL
16206 #  define LT_DLGLOBAL           RTLD_GLOBAL
16207 #else
16208 #  ifdef DL_GLOBAL
16209 #    define LT_DLGLOBAL         DL_GLOBAL
16210 #  else
16211 #    define LT_DLGLOBAL         0
16212 #  endif
16213 #endif
16214
16215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16216    find out it does not work in some platform. */
16217 #ifndef LT_DLLAZY_OR_NOW
16218 #  ifdef RTLD_LAZY
16219 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16220 #  else
16221 #    ifdef DL_LAZY
16222 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16223 #    else
16224 #      ifdef RTLD_NOW
16225 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16226 #      else
16227 #        ifdef DL_NOW
16228 #          define LT_DLLAZY_OR_NOW      DL_NOW
16229 #        else
16230 #          define LT_DLLAZY_OR_NOW      0
16231 #        endif
16232 #      endif
16233 #    endif
16234 #  endif
16235 #endif
16236
16237 /* When -fvisbility=hidden is used, assume the code has been annotated
16238    correspondingly for the symbols needed.  */
16239 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16240 int fnord () __attribute__((visibility("default")));
16241 #endif
16242
16243 int fnord () { return 42; }
16244 int main ()
16245 {
16246   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16247   int status = $lt_dlunknown;
16248
16249   if (self)
16250     {
16251       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16252       else
16253         {
16254           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16255           else puts (dlerror ());
16256         }
16257       /* dlclose (self); */
16258     }
16259   else
16260     puts (dlerror ());
16261
16262   return status;
16263 }
16264 _LT_EOF
16265   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16266   (eval $ac_link) 2>&5
16267   ac_status=$?
16268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16269   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16270     (./conftest; exit; ) >&5 2>/dev/null
16271     lt_status=$?
16272     case x$lt_status in
16273       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16274       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16275       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16276     esac
16277   else :
16278     # compilation failed
16279     lt_cv_dlopen_self_static=no
16280   fi
16281 fi
16282 rm -fr conftest*
16283
16284
16285 fi
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16287 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16288     fi
16289
16290     CPPFLAGS="$save_CPPFLAGS"
16291     LDFLAGS="$save_LDFLAGS"
16292     LIBS="$save_LIBS"
16293     ;;
16294   esac
16295
16296   case $lt_cv_dlopen_self in
16297   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16298   *) enable_dlopen_self=unknown ;;
16299   esac
16300
16301   case $lt_cv_dlopen_self_static in
16302   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16303   *) enable_dlopen_self_static=unknown ;;
16304   esac
16305 fi
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323 striplib=
16324 old_striplib=
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16326 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16327 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16328   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16329   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 $as_echo "yes" >&6; }
16332 else
16333 # FIXME - insert some real tests, host_os isn't really good enough
16334   case $host_os in
16335   darwin*)
16336     if test -n "$STRIP" ; then
16337       striplib="$STRIP -x"
16338       old_striplib="$STRIP -S"
16339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16340 $as_echo "yes" >&6; }
16341     else
16342       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344     fi
16345     ;;
16346   *)
16347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16348 $as_echo "no" >&6; }
16349     ;;
16350   esac
16351 fi
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364   # Report which library types will actually be built
16365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16366 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16368 $as_echo "$can_build_shared" >&6; }
16369
16370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16371 $as_echo_n "checking whether to build shared libraries... " >&6; }
16372   test "$can_build_shared" = "no" && enable_shared=no
16373
16374   # On AIX, shared libraries and static libraries use the same namespace, and
16375   # are all built from PIC.
16376   case $host_os in
16377   aix3*)
16378     test "$enable_shared" = yes && enable_static=no
16379     if test -n "$RANLIB"; then
16380       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16381       postinstall_cmds='$RANLIB $lib'
16382     fi
16383     ;;
16384
16385   aix[4-9]*)
16386     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16387       test "$enable_shared" = yes && enable_static=no
16388     fi
16389     ;;
16390   esac
16391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16392 $as_echo "$enable_shared" >&6; }
16393
16394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16395 $as_echo_n "checking whether to build static libraries... " >&6; }
16396   # Make sure either enable_shared or enable_static is yes.
16397   test "$enable_shared" = yes || enable_static=yes
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16399 $as_echo "$enable_static" >&6; }
16400
16401
16402
16403
16404 fi
16405 ac_ext=c
16406 ac_cpp='$CPP $CPPFLAGS'
16407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16410
16411 CC="$lt_save_CC"
16412
16413       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16414     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16415     (test "X$CXX" != "Xg++"))) ; then
16416   ac_ext=cpp
16417 ac_cpp='$CXXCPP $CPPFLAGS'
16418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16422 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16423 if test -z "$CXXCPP"; then
16424   if ${ac_cv_prog_CXXCPP+:} false; then :
16425   $as_echo_n "(cached) " >&6
16426 else
16427       # Double quotes because CXXCPP needs to be expanded
16428     for CXXCPP in "$CXX -E" "/lib/cpp"
16429     do
16430       ac_preproc_ok=false
16431 for ac_cxx_preproc_warn_flag in '' yes
16432 do
16433   # Use a header file that comes with gcc, so configuring glibc
16434   # with a fresh cross-compiler works.
16435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436   # <limits.h> exists even on freestanding compilers.
16437   # On the NeXT, cc -E runs the code through the compiler's parser,
16438   # not just through cpp. "Syntax error" is here to catch this case.
16439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h.  */
16441 #ifdef __STDC__
16442 # include <limits.h>
16443 #else
16444 # include <assert.h>
16445 #endif
16446                      Syntax error
16447 _ACEOF
16448 if ac_fn_cxx_try_cpp "$LINENO"; then :
16449
16450 else
16451   # Broken: fails on valid input.
16452 continue
16453 fi
16454 rm -f conftest.err conftest.i conftest.$ac_ext
16455
16456   # OK, works on sane cases.  Now check whether nonexistent headers
16457   # can be detected and how.
16458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h.  */
16460 #include <ac_nonexistent.h>
16461 _ACEOF
16462 if ac_fn_cxx_try_cpp "$LINENO"; then :
16463   # Broken: success on invalid input.
16464 continue
16465 else
16466   # Passes both tests.
16467 ac_preproc_ok=:
16468 break
16469 fi
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16471
16472 done
16473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16474 rm -f conftest.i conftest.err conftest.$ac_ext
16475 if $ac_preproc_ok; then :
16476   break
16477 fi
16478
16479     done
16480     ac_cv_prog_CXXCPP=$CXXCPP
16481
16482 fi
16483   CXXCPP=$ac_cv_prog_CXXCPP
16484 else
16485   ac_cv_prog_CXXCPP=$CXXCPP
16486 fi
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16488 $as_echo "$CXXCPP" >&6; }
16489 ac_preproc_ok=false
16490 for ac_cxx_preproc_warn_flag in '' yes
16491 do
16492   # Use a header file that comes with gcc, so configuring glibc
16493   # with a fresh cross-compiler works.
16494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495   # <limits.h> exists even on freestanding compilers.
16496   # On the NeXT, cc -E runs the code through the compiler's parser,
16497   # not just through cpp. "Syntax error" is here to catch this case.
16498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500 #ifdef __STDC__
16501 # include <limits.h>
16502 #else
16503 # include <assert.h>
16504 #endif
16505                      Syntax error
16506 _ACEOF
16507 if ac_fn_cxx_try_cpp "$LINENO"; then :
16508
16509 else
16510   # Broken: fails on valid input.
16511 continue
16512 fi
16513 rm -f conftest.err conftest.i conftest.$ac_ext
16514
16515   # OK, works on sane cases.  Now check whether nonexistent headers
16516   # can be detected and how.
16517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h.  */
16519 #include <ac_nonexistent.h>
16520 _ACEOF
16521 if ac_fn_cxx_try_cpp "$LINENO"; then :
16522   # Broken: success on invalid input.
16523 continue
16524 else
16525   # Passes both tests.
16526 ac_preproc_ok=:
16527 break
16528 fi
16529 rm -f conftest.err conftest.i conftest.$ac_ext
16530
16531 done
16532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16533 rm -f conftest.i conftest.err conftest.$ac_ext
16534 if $ac_preproc_ok; then :
16535
16536 else
16537   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16539 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16540 See \`config.log' for more details" "$LINENO" 5; }
16541 fi
16542
16543 ac_ext=c
16544 ac_cpp='$CPP $CPPFLAGS'
16545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16548
16549 else
16550   _lt_caught_CXX_error=yes
16551 fi
16552
16553 ac_ext=cpp
16554 ac_cpp='$CXXCPP $CPPFLAGS'
16555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16558
16559 archive_cmds_need_lc_CXX=no
16560 allow_undefined_flag_CXX=
16561 always_export_symbols_CXX=no
16562 archive_expsym_cmds_CXX=
16563 compiler_needs_object_CXX=no
16564 export_dynamic_flag_spec_CXX=
16565 hardcode_direct_CXX=no
16566 hardcode_direct_absolute_CXX=no
16567 hardcode_libdir_flag_spec_CXX=
16568 hardcode_libdir_separator_CXX=
16569 hardcode_minus_L_CXX=no
16570 hardcode_shlibpath_var_CXX=unsupported
16571 hardcode_automatic_CXX=no
16572 inherit_rpath_CXX=no
16573 module_cmds_CXX=
16574 module_expsym_cmds_CXX=
16575 link_all_deplibs_CXX=unknown
16576 old_archive_cmds_CXX=$old_archive_cmds
16577 reload_flag_CXX=$reload_flag
16578 reload_cmds_CXX=$reload_cmds
16579 no_undefined_flag_CXX=
16580 whole_archive_flag_spec_CXX=
16581 enable_shared_with_static_runtimes_CXX=no
16582
16583 # Source file extension for C++ test sources.
16584 ac_ext=cpp
16585
16586 # Object file extension for compiled C++ test sources.
16587 objext=o
16588 objext_CXX=$objext
16589
16590 # No sense in running all these tests if we already determined that
16591 # the CXX compiler isn't working.  Some variables (like enable_shared)
16592 # are currently assumed to apply to all compilers on this platform,
16593 # and will be corrupted by setting them based on a non-working compiler.
16594 if test "$_lt_caught_CXX_error" != yes; then
16595   # Code to be used in simple compile tests
16596   lt_simple_compile_test_code="int some_variable = 0;"
16597
16598   # Code to be used in simple link tests
16599   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16600
16601   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16602
16603
16604
16605
16606
16607
16608 # If no C compiler was specified, use CC.
16609 LTCC=${LTCC-"$CC"}
16610
16611 # If no C compiler flags were specified, use CFLAGS.
16612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16613
16614 # Allow CC to be a program name with arguments.
16615 compiler=$CC
16616
16617
16618   # save warnings/boilerplate of simple test code
16619   ac_outfile=conftest.$ac_objext
16620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16622 _lt_compiler_boilerplate=`cat conftest.err`
16623 $RM conftest*
16624
16625   ac_outfile=conftest.$ac_objext
16626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16628 _lt_linker_boilerplate=`cat conftest.err`
16629 $RM -r conftest*
16630
16631
16632   # Allow CC to be a program name with arguments.
16633   lt_save_CC=$CC
16634   lt_save_CFLAGS=$CFLAGS
16635   lt_save_LD=$LD
16636   lt_save_GCC=$GCC
16637   GCC=$GXX
16638   lt_save_with_gnu_ld=$with_gnu_ld
16639   lt_save_path_LD=$lt_cv_path_LD
16640   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16641     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16642   else
16643     $as_unset lt_cv_prog_gnu_ld
16644   fi
16645   if test -n "${lt_cv_path_LDCXX+set}"; then
16646     lt_cv_path_LD=$lt_cv_path_LDCXX
16647   else
16648     $as_unset lt_cv_path_LD
16649   fi
16650   test -z "${LDCXX+set}" || LD=$LDCXX
16651   CC=${CXX-"c++"}
16652   CFLAGS=$CXXFLAGS
16653   compiler=$CC
16654   compiler_CXX=$CC
16655   for cc_temp in $compiler""; do
16656   case $cc_temp in
16657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16659     \-*) ;;
16660     *) break;;
16661   esac
16662 done
16663 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16664
16665
16666   if test -n "$compiler"; then
16667     # We don't want -fno-exception when compiling C++ code, so set the
16668     # no_builtin_flag separately
16669     if test "$GXX" = yes; then
16670       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16671     else
16672       lt_prog_compiler_no_builtin_flag_CXX=
16673     fi
16674
16675     if test "$GXX" = yes; then
16676       # Set up default GNU C++ configuration
16677
16678
16679
16680 # Check whether --with-gnu-ld was given.
16681 if test "${with_gnu_ld+set}" = set; then :
16682   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16683 else
16684   with_gnu_ld=no
16685 fi
16686
16687 ac_prog=ld
16688 if test "$GCC" = yes; then
16689   # Check if gcc -print-prog-name=ld gives a path.
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16691 $as_echo_n "checking for ld used by $CC... " >&6; }
16692   case $host in
16693   *-*-mingw*)
16694     # gcc leaves a trailing carriage return which upsets mingw
16695     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16696   *)
16697     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16698   esac
16699   case $ac_prog in
16700     # Accept absolute paths.
16701     [\\/]* | ?:[\\/]*)
16702       re_direlt='/[^/][^/]*/\.\./'
16703       # Canonicalize the pathname of ld
16704       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16705       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16706         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16707       done
16708       test -z "$LD" && LD="$ac_prog"
16709       ;;
16710   "")
16711     # If it fails, then pretend we aren't using GCC.
16712     ac_prog=ld
16713     ;;
16714   *)
16715     # If it is relative, then search for the first ld in PATH.
16716     with_gnu_ld=unknown
16717     ;;
16718   esac
16719 elif test "$with_gnu_ld" = yes; then
16720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16721 $as_echo_n "checking for GNU ld... " >&6; }
16722 else
16723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16724 $as_echo_n "checking for non-GNU ld... " >&6; }
16725 fi
16726 if ${lt_cv_path_LD+:} false; then :
16727   $as_echo_n "(cached) " >&6
16728 else
16729   if test -z "$LD"; then
16730   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16731   for ac_dir in $PATH; do
16732     IFS="$lt_save_ifs"
16733     test -z "$ac_dir" && ac_dir=.
16734     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16735       lt_cv_path_LD="$ac_dir/$ac_prog"
16736       # Check to see if the program is GNU ld.  I'd rather use --version,
16737       # but apparently some variants of GNU ld only accept -v.
16738       # Break only if it was the GNU/non-GNU ld that we prefer.
16739       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16740       *GNU* | *'with BFD'*)
16741         test "$with_gnu_ld" != no && break
16742         ;;
16743       *)
16744         test "$with_gnu_ld" != yes && break
16745         ;;
16746       esac
16747     fi
16748   done
16749   IFS="$lt_save_ifs"
16750 else
16751   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16752 fi
16753 fi
16754
16755 LD="$lt_cv_path_LD"
16756 if test -n "$LD"; then
16757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16758 $as_echo "$LD" >&6; }
16759 else
16760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16762 fi
16763 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16765 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16766 if ${lt_cv_prog_gnu_ld+:} false; then :
16767   $as_echo_n "(cached) " >&6
16768 else
16769   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16770 case `$LD -v 2>&1 </dev/null` in
16771 *GNU* | *'with BFD'*)
16772   lt_cv_prog_gnu_ld=yes
16773   ;;
16774 *)
16775   lt_cv_prog_gnu_ld=no
16776   ;;
16777 esac
16778 fi
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16780 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16781 with_gnu_ld=$lt_cv_prog_gnu_ld
16782
16783
16784
16785
16786
16787
16788
16789       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16790       # archiving commands below assume that GNU ld is being used.
16791       if test "$with_gnu_ld" = yes; then
16792         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16793         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16794
16795         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16796         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16797
16798         # If archive_cmds runs LD, not CC, wlarc should be empty
16799         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16800         #     investigate it a little bit more. (MM)
16801         wlarc='${wl}'
16802
16803         # ancient GNU ld didn't support --whole-archive et. al.
16804         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16805           $GREP 'no-whole-archive' > /dev/null; then
16806           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16807         else
16808           whole_archive_flag_spec_CXX=
16809         fi
16810       else
16811         with_gnu_ld=no
16812         wlarc=
16813
16814         # A generic and very simple default shared library creation
16815         # command for GNU C++ for the case where it uses the native
16816         # linker, instead of GNU ld.  If possible, this setting should
16817         # overridden to take advantage of the native linker features on
16818         # the platform it is being used on.
16819         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16820       fi
16821
16822       # Commands to make compiler produce verbose output that lists
16823       # what "hidden" libraries, object files and flags are used when
16824       # linking a shared library.
16825       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16826
16827     else
16828       GXX=no
16829       with_gnu_ld=no
16830       wlarc=
16831     fi
16832
16833     # PORTME: fill in a description of your system's C++ link characteristics
16834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16836     ld_shlibs_CXX=yes
16837     case $host_os in
16838       aix3*)
16839         # FIXME: insert proper C++ library support
16840         ld_shlibs_CXX=no
16841         ;;
16842       aix[4-9]*)
16843         if test "$host_cpu" = ia64; then
16844           # On IA64, the linker does run time linking by default, so we don't
16845           # have to do anything special.
16846           aix_use_runtimelinking=no
16847           exp_sym_flag='-Bexport'
16848           no_entry_flag=""
16849         else
16850           aix_use_runtimelinking=no
16851
16852           # Test if we are trying to use run time linking or normal
16853           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16854           # need to do runtime linking.
16855           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16856             for ld_flag in $LDFLAGS; do
16857               case $ld_flag in
16858               *-brtl*)
16859                 aix_use_runtimelinking=yes
16860                 break
16861                 ;;
16862               esac
16863             done
16864             ;;
16865           esac
16866
16867           exp_sym_flag='-bexport'
16868           no_entry_flag='-bnoentry'
16869         fi
16870
16871         # When large executables or shared objects are built, AIX ld can
16872         # have problems creating the table of contents.  If linking a library
16873         # or program results in "error TOC overflow" add -mminimal-toc to
16874         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16875         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16876
16877         archive_cmds_CXX=''
16878         hardcode_direct_CXX=yes
16879         hardcode_direct_absolute_CXX=yes
16880         hardcode_libdir_separator_CXX=':'
16881         link_all_deplibs_CXX=yes
16882         file_list_spec_CXX='${wl}-f,'
16883
16884         if test "$GXX" = yes; then
16885           case $host_os in aix4.[012]|aix4.[012].*)
16886           # We only want to do this on AIX 4.2 and lower, the check
16887           # below for broken collect2 doesn't work under 4.3+
16888           collect2name=`${CC} -print-prog-name=collect2`
16889           if test -f "$collect2name" &&
16890              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16891           then
16892             # We have reworked collect2
16893             :
16894           else
16895             # We have old collect2
16896             hardcode_direct_CXX=unsupported
16897             # It fails to find uninstalled libraries when the uninstalled
16898             # path is not listed in the libpath.  Setting hardcode_minus_L
16899             # to unsupported forces relinking
16900             hardcode_minus_L_CXX=yes
16901             hardcode_libdir_flag_spec_CXX='-L$libdir'
16902             hardcode_libdir_separator_CXX=
16903           fi
16904           esac
16905           shared_flag='-shared'
16906           if test "$aix_use_runtimelinking" = yes; then
16907             shared_flag="$shared_flag "'${wl}-G'
16908           fi
16909         else
16910           # not using gcc
16911           if test "$host_cpu" = ia64; then
16912           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16913           # chokes on -Wl,-G. The following line is correct:
16914           shared_flag='-G'
16915           else
16916             if test "$aix_use_runtimelinking" = yes; then
16917               shared_flag='${wl}-G'
16918             else
16919               shared_flag='${wl}-bM:SRE'
16920             fi
16921           fi
16922         fi
16923
16924         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16925         # It seems that -bexpall does not export symbols beginning with
16926         # underscore (_), so it is better to generate a list of symbols to
16927         # export.
16928         always_export_symbols_CXX=yes
16929         if test "$aix_use_runtimelinking" = yes; then
16930           # Warning - without using the other runtime loading flags (-brtl),
16931           # -berok will link without error, but may produce a broken library.
16932           allow_undefined_flag_CXX='-berok'
16933           # Determine the default libpath from the value encoded in an empty
16934           # executable.
16935           if test "${lt_cv_aix_libpath+set}" = set; then
16936   aix_libpath=$lt_cv_aix_libpath
16937 else
16938   if ${lt_cv_aix_libpath__CXX+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h.  */
16943
16944 int
16945 main ()
16946 {
16947
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 if ac_fn_cxx_try_link "$LINENO"; then :
16953
16954   lt_aix_libpath_sed='
16955       /Import File Strings/,/^$/ {
16956           /^0/ {
16957               s/^0  *\([^ ]*\) *$/\1/
16958               p
16959           }
16960       }'
16961   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16962   # Check for a 64-bit object if we didn't find anything.
16963   if test -z "$lt_cv_aix_libpath__CXX"; then
16964     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16965   fi
16966 fi
16967 rm -f core conftest.err conftest.$ac_objext \
16968     conftest$ac_exeext conftest.$ac_ext
16969   if test -z "$lt_cv_aix_libpath__CXX"; then
16970     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16971   fi
16972
16973 fi
16974
16975   aix_libpath=$lt_cv_aix_libpath__CXX
16976 fi
16977
16978           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16979
16980           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16981         else
16982           if test "$host_cpu" = ia64; then
16983             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16984             allow_undefined_flag_CXX="-z nodefs"
16985             archive_expsym_cmds_CXX="\$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"
16986           else
16987             # Determine the default libpath from the value encoded in an
16988             # empty executable.
16989             if test "${lt_cv_aix_libpath+set}" = set; then
16990   aix_libpath=$lt_cv_aix_libpath
16991 else
16992   if ${lt_cv_aix_libpath__CXX+:} false; then :
16993   $as_echo_n "(cached) " >&6
16994 else
16995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h.  */
16997
16998 int
16999 main ()
17000 {
17001
17002   ;
17003   return 0;
17004 }
17005 _ACEOF
17006 if ac_fn_cxx_try_link "$LINENO"; then :
17007
17008   lt_aix_libpath_sed='
17009       /Import File Strings/,/^$/ {
17010           /^0/ {
17011               s/^0  *\([^ ]*\) *$/\1/
17012               p
17013           }
17014       }'
17015   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016   # Check for a 64-bit object if we didn't find anything.
17017   if test -z "$lt_cv_aix_libpath__CXX"; then
17018     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17019   fi
17020 fi
17021 rm -f core conftest.err conftest.$ac_objext \
17022     conftest$ac_exeext conftest.$ac_ext
17023   if test -z "$lt_cv_aix_libpath__CXX"; then
17024     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17025   fi
17026
17027 fi
17028
17029   aix_libpath=$lt_cv_aix_libpath__CXX
17030 fi
17031
17032             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17033             # Warning - without using the other run time loading flags,
17034             # -berok will link without error, but may produce a broken library.
17035             no_undefined_flag_CXX=' ${wl}-bernotok'
17036             allow_undefined_flag_CXX=' ${wl}-berok'
17037             if test "$with_gnu_ld" = yes; then
17038               # We only use this code for GNU lds that support --whole-archive.
17039               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17040             else
17041               # Exported symbols can be pulled into shared objects from archives
17042               whole_archive_flag_spec_CXX='$convenience'
17043             fi
17044             archive_cmds_need_lc_CXX=yes
17045             # This is similar to how AIX traditionally builds its shared
17046             # libraries.
17047             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17048           fi
17049         fi
17050         ;;
17051
17052       beos*)
17053         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17054           allow_undefined_flag_CXX=unsupported
17055           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17056           # support --undefined.  This deserves some investigation.  FIXME
17057           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058         else
17059           ld_shlibs_CXX=no
17060         fi
17061         ;;
17062
17063       chorus*)
17064         case $cc_basename in
17065           *)
17066           # FIXME: insert proper C++ library support
17067           ld_shlibs_CXX=no
17068           ;;
17069         esac
17070         ;;
17071
17072       cygwin* | mingw* | pw32* | cegcc*)
17073         case $GXX,$cc_basename in
17074         ,cl* | no,cl*)
17075           # Native MSVC
17076           # hardcode_libdir_flag_spec is actually meaningless, as there is
17077           # no search path for DLLs.
17078           hardcode_libdir_flag_spec_CXX=' '
17079           allow_undefined_flag_CXX=unsupported
17080           always_export_symbols_CXX=yes
17081           file_list_spec_CXX='@'
17082           # Tell ltmain to make .lib files, not .a files.
17083           libext=lib
17084           # Tell ltmain to make .dll files, not .so files.
17085           shrext_cmds=".dll"
17086           # FIXME: Setting linknames here is a bad hack.
17087           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17088           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17089               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17090             else
17091               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17092             fi~
17093             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17094             linknames='
17095           # The linker will not automatically build a static lib if we build a DLL.
17096           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17097           enable_shared_with_static_runtimes_CXX=yes
17098           # Don't use ranlib
17099           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17100           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17101             lt_tool_outputfile="@TOOL_OUTPUT@"~
17102             case $lt_outputfile in
17103               *.exe|*.EXE) ;;
17104               *)
17105                 lt_outputfile="$lt_outputfile.exe"
17106                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17107                 ;;
17108             esac~
17109             func_to_tool_file "$lt_outputfile"~
17110             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17111               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17112               $RM "$lt_outputfile.manifest";
17113             fi'
17114           ;;
17115         *)
17116           # g++
17117           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17118           # as there is no search path for DLLs.
17119           hardcode_libdir_flag_spec_CXX='-L$libdir'
17120           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17121           allow_undefined_flag_CXX=unsupported
17122           always_export_symbols_CXX=no
17123           enable_shared_with_static_runtimes_CXX=yes
17124
17125           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17126             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17127             # If the export-symbols file already is a .def file (1st line
17128             # is EXPORTS), use it as is; otherwise, prepend...
17129             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17130               cp $export_symbols $output_objdir/$soname.def;
17131             else
17132               echo EXPORTS > $output_objdir/$soname.def;
17133               cat $export_symbols >> $output_objdir/$soname.def;
17134             fi~
17135             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17136           else
17137             ld_shlibs_CXX=no
17138           fi
17139           ;;
17140         esac
17141         ;;
17142       darwin* | rhapsody*)
17143
17144
17145   archive_cmds_need_lc_CXX=no
17146   hardcode_direct_CXX=no
17147   hardcode_automatic_CXX=yes
17148   hardcode_shlibpath_var_CXX=unsupported
17149   if test "$lt_cv_ld_force_load" = "yes"; then
17150     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17151
17152   else
17153     whole_archive_flag_spec_CXX=''
17154   fi
17155   link_all_deplibs_CXX=yes
17156   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17157   case $cc_basename in
17158      ifort*) _lt_dar_can_shared=yes ;;
17159      *) _lt_dar_can_shared=$GCC ;;
17160   esac
17161   if test "$_lt_dar_can_shared" = "yes"; then
17162     output_verbose_link_cmd=func_echo_all
17163     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17164     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17165     archive_expsym_cmds_CXX="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}"
17166     module_expsym_cmds_CXX="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}"
17167        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17168       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17169       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
17170     fi
17171
17172   else
17173   ld_shlibs_CXX=no
17174   fi
17175
17176         ;;
17177
17178       dgux*)
17179         case $cc_basename in
17180           ec++*)
17181             # FIXME: insert proper C++ library support
17182             ld_shlibs_CXX=no
17183             ;;
17184           ghcx*)
17185             # Green Hills C++ Compiler
17186             # FIXME: insert proper C++ library support
17187             ld_shlibs_CXX=no
17188             ;;
17189           *)
17190             # FIXME: insert proper C++ library support
17191             ld_shlibs_CXX=no
17192             ;;
17193         esac
17194         ;;
17195
17196       freebsd2.*)
17197         # C++ shared libraries reported to be fairly broken before
17198         # switch to ELF
17199         ld_shlibs_CXX=no
17200         ;;
17201
17202       freebsd-elf*)
17203         archive_cmds_need_lc_CXX=no
17204         ;;
17205
17206       freebsd* | dragonfly*)
17207         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17208         # conventions
17209         ld_shlibs_CXX=yes
17210         ;;
17211
17212       gnu*)
17213         ;;
17214
17215       haiku*)
17216         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17217         link_all_deplibs_CXX=yes
17218         ;;
17219
17220       hpux9*)
17221         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17222         hardcode_libdir_separator_CXX=:
17223         export_dynamic_flag_spec_CXX='${wl}-E'
17224         hardcode_direct_CXX=yes
17225         hardcode_minus_L_CXX=yes # Not in the search PATH,
17226                                              # but as the default
17227                                              # location of the library.
17228
17229         case $cc_basename in
17230           CC*)
17231             # FIXME: insert proper C++ library support
17232             ld_shlibs_CXX=no
17233             ;;
17234           aCC*)
17235             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17236             # Commands to make compiler produce verbose output that lists
17237             # what "hidden" libraries, object files and flags are used when
17238             # linking a shared library.
17239             #
17240             # There doesn't appear to be a way to prevent this compiler from
17241             # explicitly linking system object files so we need to strip them
17242             # from the output so that they don't get included in the library
17243             # dependencies.
17244             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17245             ;;
17246           *)
17247             if test "$GXX" = yes; then
17248               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17249             else
17250               # FIXME: insert proper C++ library support
17251               ld_shlibs_CXX=no
17252             fi
17253             ;;
17254         esac
17255         ;;
17256
17257       hpux10*|hpux11*)
17258         if test $with_gnu_ld = no; then
17259           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17260           hardcode_libdir_separator_CXX=:
17261
17262           case $host_cpu in
17263             hppa*64*|ia64*)
17264               ;;
17265             *)
17266               export_dynamic_flag_spec_CXX='${wl}-E'
17267               ;;
17268           esac
17269         fi
17270         case $host_cpu in
17271           hppa*64*|ia64*)
17272             hardcode_direct_CXX=no
17273             hardcode_shlibpath_var_CXX=no
17274             ;;
17275           *)
17276             hardcode_direct_CXX=yes
17277             hardcode_direct_absolute_CXX=yes
17278             hardcode_minus_L_CXX=yes # Not in the search PATH,
17279                                                  # but as the default
17280                                                  # location of the library.
17281             ;;
17282         esac
17283
17284         case $cc_basename in
17285           CC*)
17286             # FIXME: insert proper C++ library support
17287             ld_shlibs_CXX=no
17288             ;;
17289           aCC*)
17290             case $host_cpu in
17291               hppa*64*)
17292                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17293                 ;;
17294               ia64*)
17295                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17296                 ;;
17297               *)
17298                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17299                 ;;
17300             esac
17301             # Commands to make compiler produce verbose output that lists
17302             # what "hidden" libraries, object files and flags are used when
17303             # linking a shared library.
17304             #
17305             # There doesn't appear to be a way to prevent this compiler from
17306             # explicitly linking system object files so we need to strip them
17307             # from the output so that they don't get included in the library
17308             # dependencies.
17309             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17310             ;;
17311           *)
17312             if test "$GXX" = yes; then
17313               if test $with_gnu_ld = no; then
17314                 case $host_cpu in
17315                   hppa*64*)
17316                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17317                     ;;
17318                   ia64*)
17319                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17320                     ;;
17321                   *)
17322                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17323                     ;;
17324                 esac
17325               fi
17326             else
17327               # FIXME: insert proper C++ library support
17328               ld_shlibs_CXX=no
17329             fi
17330             ;;
17331         esac
17332         ;;
17333
17334       interix[3-9]*)
17335         hardcode_direct_CXX=no
17336         hardcode_shlibpath_var_CXX=no
17337         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17338         export_dynamic_flag_spec_CXX='${wl}-E'
17339         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17340         # Instead, shared libraries are loaded at an image base (0x10000000 by
17341         # default) and relocated if they conflict, which is a slow very memory
17342         # consuming and fragmenting process.  To avoid this, we pick a random,
17343         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17344         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17345         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17346         archive_expsym_cmds_CXX='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'
17347         ;;
17348       irix5* | irix6*)
17349         case $cc_basename in
17350           CC*)
17351             # SGI C++
17352             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17353
17354             # Archives containing C++ object files must be created using
17355             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17356             # necessary to make sure instantiated templates are included
17357             # in the archive.
17358             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17359             ;;
17360           *)
17361             if test "$GXX" = yes; then
17362               if test "$with_gnu_ld" = no; then
17363                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
17364               else
17365                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
17366               fi
17367             fi
17368             link_all_deplibs_CXX=yes
17369             ;;
17370         esac
17371         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17372         hardcode_libdir_separator_CXX=:
17373         inherit_rpath_CXX=yes
17374         ;;
17375
17376       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17377         case $cc_basename in
17378           KCC*)
17379             # Kuck and Associates, Inc. (KAI) C++ Compiler
17380
17381             # KCC will only create a shared library if the output file
17382             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17383             # to its proper name (with version) after linking.
17384             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17385             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17386             # Commands to make compiler produce verbose output that lists
17387             # what "hidden" libraries, object files and flags are used when
17388             # linking a shared library.
17389             #
17390             # There doesn't appear to be a way to prevent this compiler from
17391             # explicitly linking system object files so we need to strip them
17392             # from the output so that they don't get included in the library
17393             # dependencies.
17394             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17395
17396             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17397             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17398
17399             # Archives containing C++ object files must be created using
17400             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17401             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17402             ;;
17403           icpc* | ecpc* )
17404             # Intel C++
17405             with_gnu_ld=yes
17406             # version 8.0 and above of icpc choke on multiply defined symbols
17407             # if we add $predep_objects and $postdep_objects, however 7.1 and
17408             # earlier do not add the objects themselves.
17409             case `$CC -V 2>&1` in
17410               *"Version 7."*)
17411                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17413                 ;;
17414               *)  # Version 8.0 or newer
17415                 tmp_idyn=
17416                 case $host_cpu in
17417                   ia64*) tmp_idyn=' -i_dynamic';;
17418                 esac
17419                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17421                 ;;
17422             esac
17423             archive_cmds_need_lc_CXX=no
17424             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17425             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17426             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17427             ;;
17428           pgCC* | pgcpp*)
17429             # Portland Group C++ compiler
17430             case `$CC -V` in
17431             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17432               prelink_cmds_CXX='tpldir=Template.dir~
17433                 rm -rf $tpldir~
17434                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17435                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17436               old_archive_cmds_CXX='tpldir=Template.dir~
17437                 rm -rf $tpldir~
17438                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17439                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17440                 $RANLIB $oldlib'
17441               archive_cmds_CXX='tpldir=Template.dir~
17442                 rm -rf $tpldir~
17443                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17444                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17445               archive_expsym_cmds_CXX='tpldir=Template.dir~
17446                 rm -rf $tpldir~
17447                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17448                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17449               ;;
17450             *) # Version 6 and above use weak symbols
17451               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17452               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17453               ;;
17454             esac
17455
17456             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17457             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17458             whole_archive_flag_spec_CXX='${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'
17459             ;;
17460           cxx*)
17461             # Compaq C++
17462             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17464
17465             runpath_var=LD_RUN_PATH
17466             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17467             hardcode_libdir_separator_CXX=:
17468
17469             # Commands to make compiler produce verbose output that lists
17470             # what "hidden" libraries, object files and flags are used when
17471             # linking a shared library.
17472             #
17473             # There doesn't appear to be a way to prevent this compiler from
17474             # explicitly linking system object files so we need to strip them
17475             # from the output so that they don't get included in the library
17476             # dependencies.
17477             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17478             ;;
17479           xl* | mpixl* | bgxl*)
17480             # IBM XL 8.0 on PPC, with GNU ld
17481             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17482             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17483             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17484             if test "x$supports_anon_versioning" = xyes; then
17485               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17486                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17487                 echo "local: *; };" >> $output_objdir/$libname.ver~
17488                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17489             fi
17490             ;;
17491           *)
17492             case `$CC -V 2>&1 | sed 5q` in
17493             *Sun\ C*)
17494               # Sun C++ 5.9
17495               no_undefined_flag_CXX=' -zdefs'
17496               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17497               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
17498               hardcode_libdir_flag_spec_CXX='-R$libdir'
17499               whole_archive_flag_spec_CXX='${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'
17500               compiler_needs_object_CXX=yes
17501
17502               # Not sure whether something based on
17503               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17504               # would be better.
17505               output_verbose_link_cmd='func_echo_all'
17506
17507               # Archives containing C++ object files must be created using
17508               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17509               # necessary to make sure instantiated templates are included
17510               # in the archive.
17511               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17512               ;;
17513             esac
17514             ;;
17515         esac
17516         ;;
17517
17518       lynxos*)
17519         # FIXME: insert proper C++ library support
17520         ld_shlibs_CXX=no
17521         ;;
17522
17523       m88k*)
17524         # FIXME: insert proper C++ library support
17525         ld_shlibs_CXX=no
17526         ;;
17527
17528       mvs*)
17529         case $cc_basename in
17530           cxx*)
17531             # FIXME: insert proper C++ library support
17532             ld_shlibs_CXX=no
17533             ;;
17534           *)
17535             # FIXME: insert proper C++ library support
17536             ld_shlibs_CXX=no
17537             ;;
17538         esac
17539         ;;
17540
17541       netbsd*)
17542         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17543           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17544           wlarc=
17545           hardcode_libdir_flag_spec_CXX='-R$libdir'
17546           hardcode_direct_CXX=yes
17547           hardcode_shlibpath_var_CXX=no
17548         fi
17549         # Workaround some broken pre-1.5 toolchains
17550         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17551         ;;
17552
17553       *nto* | *qnx*)
17554         ld_shlibs_CXX=yes
17555         ;;
17556
17557       openbsd2*)
17558         # C++ shared libraries are fairly broken
17559         ld_shlibs_CXX=no
17560         ;;
17561
17562       openbsd*)
17563         if test -f /usr/libexec/ld.so; then
17564           hardcode_direct_CXX=yes
17565           hardcode_shlibpath_var_CXX=no
17566           hardcode_direct_absolute_CXX=yes
17567           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17568           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17569           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17570             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17571             export_dynamic_flag_spec_CXX='${wl}-E'
17572             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17573           fi
17574           output_verbose_link_cmd=func_echo_all
17575         else
17576           ld_shlibs_CXX=no
17577         fi
17578         ;;
17579
17580       osf3* | osf4* | osf5*)
17581         case $cc_basename in
17582           KCC*)
17583             # Kuck and Associates, Inc. (KAI) C++ Compiler
17584
17585             # KCC will only create a shared library if the output file
17586             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17587             # to its proper name (with version) after linking.
17588             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17589
17590             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17591             hardcode_libdir_separator_CXX=:
17592
17593             # Archives containing C++ object files must be created using
17594             # the KAI C++ compiler.
17595             case $host in
17596               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17597               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17598             esac
17599             ;;
17600           RCC*)
17601             # Rational C++ 2.4.1
17602             # FIXME: insert proper C++ library support
17603             ld_shlibs_CXX=no
17604             ;;
17605           cxx*)
17606             case $host in
17607               osf3*)
17608                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17609                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17610                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17611                 ;;
17612               *)
17613                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17614                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17615                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17616                   echo "-hidden">> $lib.exp~
17617                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
17618                   $RM $lib.exp'
17619                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17620                 ;;
17621             esac
17622
17623             hardcode_libdir_separator_CXX=:
17624
17625             # Commands to make compiler produce verbose output that lists
17626             # what "hidden" libraries, object files and flags are used when
17627             # linking a shared library.
17628             #
17629             # There doesn't appear to be a way to prevent this compiler from
17630             # explicitly linking system object files so we need to strip them
17631             # from the output so that they don't get included in the library
17632             # dependencies.
17633             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17634             ;;
17635           *)
17636             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17637               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17638               case $host in
17639                 osf3*)
17640                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
17641                   ;;
17642                 *)
17643                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
17644                   ;;
17645               esac
17646
17647               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17648               hardcode_libdir_separator_CXX=:
17649
17650               # Commands to make compiler produce verbose output that lists
17651               # what "hidden" libraries, object files and flags are used when
17652               # linking a shared library.
17653               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17654
17655             else
17656               # FIXME: insert proper C++ library support
17657               ld_shlibs_CXX=no
17658             fi
17659             ;;
17660         esac
17661         ;;
17662
17663       psos*)
17664         # FIXME: insert proper C++ library support
17665         ld_shlibs_CXX=no
17666         ;;
17667
17668       sunos4*)
17669         case $cc_basename in
17670           CC*)
17671             # Sun C++ 4.x
17672             # FIXME: insert proper C++ library support
17673             ld_shlibs_CXX=no
17674             ;;
17675           lcc*)
17676             # Lucid
17677             # FIXME: insert proper C++ library support
17678             ld_shlibs_CXX=no
17679             ;;
17680           *)
17681             # FIXME: insert proper C++ library support
17682             ld_shlibs_CXX=no
17683             ;;
17684         esac
17685         ;;
17686
17687       solaris*)
17688         case $cc_basename in
17689           CC* | sunCC*)
17690             # Sun C++ 4.2, 5.x and Centerline C++
17691             archive_cmds_need_lc_CXX=yes
17692             no_undefined_flag_CXX=' -zdefs'
17693             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17694             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17695               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17696
17697             hardcode_libdir_flag_spec_CXX='-R$libdir'
17698             hardcode_shlibpath_var_CXX=no
17699             case $host_os in
17700               solaris2.[0-5] | solaris2.[0-5].*) ;;
17701               *)
17702                 # The compiler driver will combine and reorder linker options,
17703                 # but understands `-z linker_flag'.
17704                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17705                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17706                 ;;
17707             esac
17708             link_all_deplibs_CXX=yes
17709
17710             output_verbose_link_cmd='func_echo_all'
17711
17712             # Archives containing C++ object files must be created using
17713             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17714             # necessary to make sure instantiated templates are included
17715             # in the archive.
17716             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17717             ;;
17718           gcx*)
17719             # Green Hills C++ Compiler
17720             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17721
17722             # The C++ compiler must be used to create the archive.
17723             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17724             ;;
17725           *)
17726             # GNU C++ compiler with Solaris linker
17727             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17728               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17729               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17730                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17731                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17732                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17733
17734                 # Commands to make compiler produce verbose output that lists
17735                 # what "hidden" libraries, object files and flags are used when
17736                 # linking a shared library.
17737                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17738               else
17739                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17740                 # platform.
17741                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17742                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17743                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17744
17745                 # Commands to make compiler produce verbose output that lists
17746                 # what "hidden" libraries, object files and flags are used when
17747                 # linking a shared library.
17748                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17749               fi
17750
17751               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17752               case $host_os in
17753                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17754                 *)
17755                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17756                   ;;
17757               esac
17758             fi
17759             ;;
17760         esac
17761         ;;
17762
17763     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17764       no_undefined_flag_CXX='${wl}-z,text'
17765       archive_cmds_need_lc_CXX=no
17766       hardcode_shlibpath_var_CXX=no
17767       runpath_var='LD_RUN_PATH'
17768
17769       case $cc_basename in
17770         CC*)
17771           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17772           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17773           ;;
17774         *)
17775           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17776           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17777           ;;
17778       esac
17779       ;;
17780
17781       sysv5* | sco3.2v5* | sco5v6*)
17782         # Note: We can NOT use -z defs as we might desire, because we do not
17783         # link with -lc, and that would cause any symbols used from libc to
17784         # always be unresolved, which means just about no library would
17785         # ever link correctly.  If we're not using GNU ld we use -z text
17786         # though, which does catch some bad symbols but isn't as heavy-handed
17787         # as -z defs.
17788         no_undefined_flag_CXX='${wl}-z,text'
17789         allow_undefined_flag_CXX='${wl}-z,nodefs'
17790         archive_cmds_need_lc_CXX=no
17791         hardcode_shlibpath_var_CXX=no
17792         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17793         hardcode_libdir_separator_CXX=':'
17794         link_all_deplibs_CXX=yes
17795         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17796         runpath_var='LD_RUN_PATH'
17797
17798         case $cc_basename in
17799           CC*)
17800             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17801             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17802             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17803               '"$old_archive_cmds_CXX"
17804             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17805               '"$reload_cmds_CXX"
17806             ;;
17807           *)
17808             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810             ;;
17811         esac
17812       ;;
17813
17814       tandem*)
17815         case $cc_basename in
17816           NCC*)
17817             # NonStop-UX NCC 3.20
17818             # FIXME: insert proper C++ library support
17819             ld_shlibs_CXX=no
17820             ;;
17821           *)
17822             # FIXME: insert proper C++ library support
17823             ld_shlibs_CXX=no
17824             ;;
17825         esac
17826         ;;
17827
17828       vxworks*)
17829         # FIXME: insert proper C++ library support
17830         ld_shlibs_CXX=no
17831         ;;
17832
17833       *)
17834         # FIXME: insert proper C++ library support
17835         ld_shlibs_CXX=no
17836         ;;
17837     esac
17838
17839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17840 $as_echo "$ld_shlibs_CXX" >&6; }
17841     test "$ld_shlibs_CXX" = no && can_build_shared=no
17842
17843     GCC_CXX="$GXX"
17844     LD_CXX="$LD"
17845
17846     ## CAVEAT EMPTOR:
17847     ## There is no encapsulation within the following macros, do not change
17848     ## the running order or otherwise move them around unless you know exactly
17849     ## what you are doing...
17850     # Dependencies to place before and after the object being linked:
17851 predep_objects_CXX=
17852 postdep_objects_CXX=
17853 predeps_CXX=
17854 postdeps_CXX=
17855 compiler_lib_search_path_CXX=
17856
17857 cat > conftest.$ac_ext <<_LT_EOF
17858 class Foo
17859 {
17860 public:
17861   Foo (void) { a = 0; }
17862 private:
17863   int a;
17864 };
17865 _LT_EOF
17866
17867
17868 _lt_libdeps_save_CFLAGS=$CFLAGS
17869 case "$CC $CFLAGS " in #(
17870 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17871 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17872 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17873 esac
17874
17875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17876   (eval $ac_compile) 2>&5
17877   ac_status=$?
17878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879   test $ac_status = 0; }; then
17880   # Parse the compiler output and extract the necessary
17881   # objects, libraries and library flags.
17882
17883   # Sentinel used to keep track of whether or not we are before
17884   # the conftest object file.
17885   pre_test_object_deps_done=no
17886
17887   for p in `eval "$output_verbose_link_cmd"`; do
17888     case ${prev}${p} in
17889
17890     -L* | -R* | -l*)
17891        # Some compilers place space between "-{L,R}" and the path.
17892        # Remove the space.
17893        if test $p = "-L" ||
17894           test $p = "-R"; then
17895          prev=$p
17896          continue
17897        fi
17898
17899        # Expand the sysroot to ease extracting the directories later.
17900        if test -z "$prev"; then
17901          case $p in
17902          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17903          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17904          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17905          esac
17906        fi
17907        case $p in
17908        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17909        esac
17910        if test "$pre_test_object_deps_done" = no; then
17911          case ${prev} in
17912          -L | -R)
17913            # Internal compiler library paths should come after those
17914            # provided the user.  The postdeps already come after the
17915            # user supplied libs so there is no need to process them.
17916            if test -z "$compiler_lib_search_path_CXX"; then
17917              compiler_lib_search_path_CXX="${prev}${p}"
17918            else
17919              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17920            fi
17921            ;;
17922          # The "-l" case would never come before the object being
17923          # linked, so don't bother handling this case.
17924          esac
17925        else
17926          if test -z "$postdeps_CXX"; then
17927            postdeps_CXX="${prev}${p}"
17928          else
17929            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17930          fi
17931        fi
17932        prev=
17933        ;;
17934
17935     *.lto.$objext) ;; # Ignore GCC LTO objects
17936     *.$objext)
17937        # This assumes that the test object file only shows up
17938        # once in the compiler output.
17939        if test "$p" = "conftest.$objext"; then
17940          pre_test_object_deps_done=yes
17941          continue
17942        fi
17943
17944        if test "$pre_test_object_deps_done" = no; then
17945          if test -z "$predep_objects_CXX"; then
17946            predep_objects_CXX="$p"
17947          else
17948            predep_objects_CXX="$predep_objects_CXX $p"
17949          fi
17950        else
17951          if test -z "$postdep_objects_CXX"; then
17952            postdep_objects_CXX="$p"
17953          else
17954            postdep_objects_CXX="$postdep_objects_CXX $p"
17955          fi
17956        fi
17957        ;;
17958
17959     *) ;; # Ignore the rest.
17960
17961     esac
17962   done
17963
17964   # Clean up.
17965   rm -f a.out a.exe
17966 else
17967   echo "libtool.m4: error: problem compiling CXX test program"
17968 fi
17969
17970 $RM -f confest.$objext
17971 CFLAGS=$_lt_libdeps_save_CFLAGS
17972
17973 # PORTME: override above test on systems where it is broken
17974 case $host_os in
17975 interix[3-9]*)
17976   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17977   # hack all around it, let's just trust "g++" to DTRT.
17978   predep_objects_CXX=
17979   postdep_objects_CXX=
17980   postdeps_CXX=
17981   ;;
17982
17983 linux*)
17984   case `$CC -V 2>&1 | sed 5q` in
17985   *Sun\ C*)
17986     # Sun C++ 5.9
17987
17988     # The more standards-conforming stlport4 library is
17989     # incompatible with the Cstd library. Avoid specifying
17990     # it if it's in CXXFLAGS. Ignore libCrun as
17991     # -library=stlport4 depends on it.
17992     case " $CXX $CXXFLAGS " in
17993     *" -library=stlport4 "*)
17994       solaris_use_stlport4=yes
17995       ;;
17996     esac
17997
17998     if test "$solaris_use_stlport4" != yes; then
17999       postdeps_CXX='-library=Cstd -library=Crun'
18000     fi
18001     ;;
18002   esac
18003   ;;
18004
18005 solaris*)
18006   case $cc_basename in
18007   CC* | sunCC*)
18008     # The more standards-conforming stlport4 library is
18009     # incompatible with the Cstd library. Avoid specifying
18010     # it if it's in CXXFLAGS. Ignore libCrun as
18011     # -library=stlport4 depends on it.
18012     case " $CXX $CXXFLAGS " in
18013     *" -library=stlport4 "*)
18014       solaris_use_stlport4=yes
18015       ;;
18016     esac
18017
18018     # Adding this requires a known-good setup of shared libraries for
18019     # Sun compiler versions before 5.6, else PIC objects from an old
18020     # archive will be linked into the output, leading to subtle bugs.
18021     if test "$solaris_use_stlport4" != yes; then
18022       postdeps_CXX='-library=Cstd -library=Crun'
18023     fi
18024     ;;
18025   esac
18026   ;;
18027 esac
18028
18029
18030 case " $postdeps_CXX " in
18031 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18032 esac
18033  compiler_lib_search_dirs_CXX=
18034 if test -n "${compiler_lib_search_path_CXX}"; then
18035  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18036 fi
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068     lt_prog_compiler_wl_CXX=
18069 lt_prog_compiler_pic_CXX=
18070 lt_prog_compiler_static_CXX=
18071
18072
18073   # C++ specific cases for pic, static, wl, etc.
18074   if test "$GXX" = yes; then
18075     lt_prog_compiler_wl_CXX='-Wl,'
18076     lt_prog_compiler_static_CXX='-static'
18077
18078     case $host_os in
18079     aix*)
18080       # All AIX code is PIC.
18081       if test "$host_cpu" = ia64; then
18082         # AIX 5 now supports IA64 processor
18083         lt_prog_compiler_static_CXX='-Bstatic'
18084       fi
18085       ;;
18086
18087     amigaos*)
18088       case $host_cpu in
18089       powerpc)
18090             # see comment about AmigaOS4 .so support
18091             lt_prog_compiler_pic_CXX='-fPIC'
18092         ;;
18093       m68k)
18094             # FIXME: we need at least 68020 code to build shared libraries, but
18095             # adding the `-m68020' flag to GCC prevents building anything better,
18096             # like `-m68040'.
18097             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18098         ;;
18099       esac
18100       ;;
18101
18102     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18103       # PIC is the default for these OSes.
18104       ;;
18105     mingw* | cygwin* | os2* | pw32* | cegcc*)
18106       # This hack is so that the source file can tell whether it is being
18107       # built for inclusion in a dll (and should export symbols for example).
18108       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18109       # (--disable-auto-import) libraries
18110       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18111       ;;
18112     darwin* | rhapsody*)
18113       # PIC is the default on this platform
18114       # Common symbols not allowed in MH_DYLIB files
18115       lt_prog_compiler_pic_CXX='-fno-common'
18116       ;;
18117     *djgpp*)
18118       # DJGPP does not support shared libraries at all
18119       lt_prog_compiler_pic_CXX=
18120       ;;
18121     haiku*)
18122       # PIC is the default for Haiku.
18123       # The "-static" flag exists, but is broken.
18124       lt_prog_compiler_static_CXX=
18125       ;;
18126     interix[3-9]*)
18127       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18128       # Instead, we relocate shared libraries at runtime.
18129       ;;
18130     sysv4*MP*)
18131       if test -d /usr/nec; then
18132         lt_prog_compiler_pic_CXX=-Kconform_pic
18133       fi
18134       ;;
18135     hpux*)
18136       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18137       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18138       # sets the default TLS model and affects inlining.
18139       case $host_cpu in
18140       hppa*64*)
18141         ;;
18142       *)
18143         lt_prog_compiler_pic_CXX='-fPIC'
18144         ;;
18145       esac
18146       ;;
18147     *qnx* | *nto*)
18148       # QNX uses GNU C++, but need to define -shared option too, otherwise
18149       # it will coredump.
18150       lt_prog_compiler_pic_CXX='-fPIC -shared'
18151       ;;
18152     *)
18153       lt_prog_compiler_pic_CXX='-fPIC'
18154       ;;
18155     esac
18156   else
18157     case $host_os in
18158       aix[4-9]*)
18159         # All AIX code is PIC.
18160         if test "$host_cpu" = ia64; then
18161           # AIX 5 now supports IA64 processor
18162           lt_prog_compiler_static_CXX='-Bstatic'
18163         else
18164           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18165         fi
18166         ;;
18167       chorus*)
18168         case $cc_basename in
18169         cxch68*)
18170           # Green Hills C++ Compiler
18171           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18172           ;;
18173         esac
18174         ;;
18175       mingw* | cygwin* | os2* | pw32* | cegcc*)
18176         # This hack is so that the source file can tell whether it is being
18177         # built for inclusion in a dll (and should export symbols for example).
18178         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18179         ;;
18180       dgux*)
18181         case $cc_basename in
18182           ec++*)
18183             lt_prog_compiler_pic_CXX='-KPIC'
18184             ;;
18185           ghcx*)
18186             # Green Hills C++ Compiler
18187             lt_prog_compiler_pic_CXX='-pic'
18188             ;;
18189           *)
18190             ;;
18191         esac
18192         ;;
18193       freebsd* | dragonfly*)
18194         # FreeBSD uses GNU C++
18195         ;;
18196       hpux9* | hpux10* | hpux11*)
18197         case $cc_basename in
18198           CC*)
18199             lt_prog_compiler_wl_CXX='-Wl,'
18200             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18201             if test "$host_cpu" != ia64; then
18202               lt_prog_compiler_pic_CXX='+Z'
18203             fi
18204             ;;
18205           aCC*)
18206             lt_prog_compiler_wl_CXX='-Wl,'
18207             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18208             case $host_cpu in
18209             hppa*64*|ia64*)
18210               # +Z the default
18211               ;;
18212             *)
18213               lt_prog_compiler_pic_CXX='+Z'
18214               ;;
18215             esac
18216             ;;
18217           *)
18218             ;;
18219         esac
18220         ;;
18221       interix*)
18222         # This is c89, which is MS Visual C++ (no shared libs)
18223         # Anyone wants to do a port?
18224         ;;
18225       irix5* | irix6* | nonstopux*)
18226         case $cc_basename in
18227           CC*)
18228             lt_prog_compiler_wl_CXX='-Wl,'
18229             lt_prog_compiler_static_CXX='-non_shared'
18230             # CC pic flag -KPIC is the default.
18231             ;;
18232           *)
18233             ;;
18234         esac
18235         ;;
18236       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18237         case $cc_basename in
18238           KCC*)
18239             # KAI C++ Compiler
18240             lt_prog_compiler_wl_CXX='--backend -Wl,'
18241             lt_prog_compiler_pic_CXX='-fPIC'
18242             ;;
18243           ecpc* )
18244             # old Intel C++ for x86_64 which still supported -KPIC.
18245             lt_prog_compiler_wl_CXX='-Wl,'
18246             lt_prog_compiler_pic_CXX='-KPIC'
18247             lt_prog_compiler_static_CXX='-static'
18248             ;;
18249           icpc* )
18250             # Intel C++, used to be incompatible with GCC.
18251             # ICC 10 doesn't accept -KPIC any more.
18252             lt_prog_compiler_wl_CXX='-Wl,'
18253             lt_prog_compiler_pic_CXX='-fPIC'
18254             lt_prog_compiler_static_CXX='-static'
18255             ;;
18256           pgCC* | pgcpp*)
18257             # Portland Group C++ compiler
18258             lt_prog_compiler_wl_CXX='-Wl,'
18259             lt_prog_compiler_pic_CXX='-fpic'
18260             lt_prog_compiler_static_CXX='-Bstatic'
18261             ;;
18262           cxx*)
18263             # Compaq C++
18264             # Make sure the PIC flag is empty.  It appears that all Alpha
18265             # Linux and Compaq Tru64 Unix objects are PIC.
18266             lt_prog_compiler_pic_CXX=
18267             lt_prog_compiler_static_CXX='-non_shared'
18268             ;;
18269           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18270             # IBM XL 8.0, 9.0 on PPC and BlueGene
18271             lt_prog_compiler_wl_CXX='-Wl,'
18272             lt_prog_compiler_pic_CXX='-qpic'
18273             lt_prog_compiler_static_CXX='-qstaticlink'
18274             ;;
18275           *)
18276             case `$CC -V 2>&1 | sed 5q` in
18277             *Sun\ C*)
18278               # Sun C++ 5.9
18279               lt_prog_compiler_pic_CXX='-KPIC'
18280               lt_prog_compiler_static_CXX='-Bstatic'
18281               lt_prog_compiler_wl_CXX='-Qoption ld '
18282               ;;
18283             esac
18284             ;;
18285         esac
18286         ;;
18287       lynxos*)
18288         ;;
18289       m88k*)
18290         ;;
18291       mvs*)
18292         case $cc_basename in
18293           cxx*)
18294             lt_prog_compiler_pic_CXX='-W c,exportall'
18295             ;;
18296           *)
18297             ;;
18298         esac
18299         ;;
18300       netbsd*)
18301         ;;
18302       *qnx* | *nto*)
18303         # QNX uses GNU C++, but need to define -shared option too, otherwise
18304         # it will coredump.
18305         lt_prog_compiler_pic_CXX='-fPIC -shared'
18306         ;;
18307       osf3* | osf4* | osf5*)
18308         case $cc_basename in
18309           KCC*)
18310             lt_prog_compiler_wl_CXX='--backend -Wl,'
18311             ;;
18312           RCC*)
18313             # Rational C++ 2.4.1
18314             lt_prog_compiler_pic_CXX='-pic'
18315             ;;
18316           cxx*)
18317             # Digital/Compaq C++
18318             lt_prog_compiler_wl_CXX='-Wl,'
18319             # Make sure the PIC flag is empty.  It appears that all Alpha
18320             # Linux and Compaq Tru64 Unix objects are PIC.
18321             lt_prog_compiler_pic_CXX=
18322             lt_prog_compiler_static_CXX='-non_shared'
18323             ;;
18324           *)
18325             ;;
18326         esac
18327         ;;
18328       psos*)
18329         ;;
18330       solaris*)
18331         case $cc_basename in
18332           CC* | sunCC*)
18333             # Sun C++ 4.2, 5.x and Centerline C++
18334             lt_prog_compiler_pic_CXX='-KPIC'
18335             lt_prog_compiler_static_CXX='-Bstatic'
18336             lt_prog_compiler_wl_CXX='-Qoption ld '
18337             ;;
18338           gcx*)
18339             # Green Hills C++ Compiler
18340             lt_prog_compiler_pic_CXX='-PIC'
18341             ;;
18342           *)
18343             ;;
18344         esac
18345         ;;
18346       sunos4*)
18347         case $cc_basename in
18348           CC*)
18349             # Sun C++ 4.x
18350             lt_prog_compiler_pic_CXX='-pic'
18351             lt_prog_compiler_static_CXX='-Bstatic'
18352             ;;
18353           lcc*)
18354             # Lucid
18355             lt_prog_compiler_pic_CXX='-pic'
18356             ;;
18357           *)
18358             ;;
18359         esac
18360         ;;
18361       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18362         case $cc_basename in
18363           CC*)
18364             lt_prog_compiler_wl_CXX='-Wl,'
18365             lt_prog_compiler_pic_CXX='-KPIC'
18366             lt_prog_compiler_static_CXX='-Bstatic'
18367             ;;
18368         esac
18369         ;;
18370       tandem*)
18371         case $cc_basename in
18372           NCC*)
18373             # NonStop-UX NCC 3.20
18374             lt_prog_compiler_pic_CXX='-KPIC'
18375             ;;
18376           *)
18377             ;;
18378         esac
18379         ;;
18380       vxworks*)
18381         ;;
18382       *)
18383         lt_prog_compiler_can_build_shared_CXX=no
18384         ;;
18385     esac
18386   fi
18387
18388 case $host_os in
18389   # For platforms which do not support PIC, -DPIC is meaningless:
18390   *djgpp*)
18391     lt_prog_compiler_pic_CXX=
18392     ;;
18393   *)
18394     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18395     ;;
18396 esac
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18400 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18401   $as_echo_n "(cached) " >&6
18402 else
18403   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18406 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18407 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18408
18409 #
18410 # Check to make sure the PIC flag actually works.
18411 #
18412 if test -n "$lt_prog_compiler_pic_CXX"; then
18413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18415 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18416   $as_echo_n "(cached) " >&6
18417 else
18418   lt_cv_prog_compiler_pic_works_CXX=no
18419    ac_outfile=conftest.$ac_objext
18420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18421    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18422    # Insert the option either (1) after the last *FLAGS variable, or
18423    # (2) before a word containing "conftest.", or (3) at the end.
18424    # Note that $ac_compile itself does not contain backslashes and begins
18425    # with a dollar sign (not a hyphen), so the echo should work correctly.
18426    # The option is referenced via a variable to avoid confusing sed.
18427    lt_compile=`echo "$ac_compile" | $SED \
18428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18430    -e 's:$: $lt_compiler_flag:'`
18431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18432    (eval "$lt_compile" 2>conftest.err)
18433    ac_status=$?
18434    cat conftest.err >&5
18435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436    if (exit $ac_status) && test -s "$ac_outfile"; then
18437      # The compiler can only warn and ignore the option if not recognized
18438      # So say no if there are warnings other than the usual output.
18439      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18440      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18441      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18442        lt_cv_prog_compiler_pic_works_CXX=yes
18443      fi
18444    fi
18445    $RM conftest*
18446
18447 fi
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18449 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18450
18451 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18452     case $lt_prog_compiler_pic_CXX in
18453      "" | " "*) ;;
18454      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18455      esac
18456 else
18457     lt_prog_compiler_pic_CXX=
18458      lt_prog_compiler_can_build_shared_CXX=no
18459 fi
18460
18461 fi
18462
18463
18464
18465
18466
18467 #
18468 # Check to make sure the static flag actually works.
18469 #
18470 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18473 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18474   $as_echo_n "(cached) " >&6
18475 else
18476   lt_cv_prog_compiler_static_works_CXX=no
18477    save_LDFLAGS="$LDFLAGS"
18478    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18479    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18480    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18481      # The linker can only warn and ignore the option if not recognized
18482      # So say no if there are warnings
18483      if test -s conftest.err; then
18484        # Append any errors to the config.log.
18485        cat conftest.err 1>&5
18486        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18487        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18488        if diff conftest.exp conftest.er2 >/dev/null; then
18489          lt_cv_prog_compiler_static_works_CXX=yes
18490        fi
18491      else
18492        lt_cv_prog_compiler_static_works_CXX=yes
18493      fi
18494    fi
18495    $RM -r conftest*
18496    LDFLAGS="$save_LDFLAGS"
18497
18498 fi
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18500 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18501
18502 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18503     :
18504 else
18505     lt_prog_compiler_static_CXX=
18506 fi
18507
18508
18509
18510
18511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18513 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18514   $as_echo_n "(cached) " >&6
18515 else
18516   lt_cv_prog_compiler_c_o_CXX=no
18517    $RM -r conftest 2>/dev/null
18518    mkdir conftest
18519    cd conftest
18520    mkdir out
18521    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18522
18523    lt_compiler_flag="-o out/conftest2.$ac_objext"
18524    # Insert the option either (1) after the last *FLAGS variable, or
18525    # (2) before a word containing "conftest.", or (3) at the end.
18526    # Note that $ac_compile itself does not contain backslashes and begins
18527    # with a dollar sign (not a hyphen), so the echo should work correctly.
18528    lt_compile=`echo "$ac_compile" | $SED \
18529    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18530    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18531    -e 's:$: $lt_compiler_flag:'`
18532    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18533    (eval "$lt_compile" 2>out/conftest.err)
18534    ac_status=$?
18535    cat out/conftest.err >&5
18536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18538    then
18539      # The compiler can only warn and ignore the option if not recognized
18540      # So say no if there are warnings
18541      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18542      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18543      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18544        lt_cv_prog_compiler_c_o_CXX=yes
18545      fi
18546    fi
18547    chmod u+w . 2>&5
18548    $RM conftest*
18549    # SGI C++ compiler will create directory out/ii_files/ for
18550    # template instantiation
18551    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18552    $RM out/* && rmdir out
18553    cd ..
18554    $RM -r conftest
18555    $RM conftest*
18556
18557 fi
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18559 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18560
18561
18562
18563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18565 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18566   $as_echo_n "(cached) " >&6
18567 else
18568   lt_cv_prog_compiler_c_o_CXX=no
18569    $RM -r conftest 2>/dev/null
18570    mkdir conftest
18571    cd conftest
18572    mkdir out
18573    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18574
18575    lt_compiler_flag="-o out/conftest2.$ac_objext"
18576    # Insert the option either (1) after the last *FLAGS variable, or
18577    # (2) before a word containing "conftest.", or (3) at the end.
18578    # Note that $ac_compile itself does not contain backslashes and begins
18579    # with a dollar sign (not a hyphen), so the echo should work correctly.
18580    lt_compile=`echo "$ac_compile" | $SED \
18581    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18583    -e 's:$: $lt_compiler_flag:'`
18584    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18585    (eval "$lt_compile" 2>out/conftest.err)
18586    ac_status=$?
18587    cat out/conftest.err >&5
18588    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18590    then
18591      # The compiler can only warn and ignore the option if not recognized
18592      # So say no if there are warnings
18593      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18594      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18595      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18596        lt_cv_prog_compiler_c_o_CXX=yes
18597      fi
18598    fi
18599    chmod u+w . 2>&5
18600    $RM conftest*
18601    # SGI C++ compiler will create directory out/ii_files/ for
18602    # template instantiation
18603    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18604    $RM out/* && rmdir out
18605    cd ..
18606    $RM -r conftest
18607    $RM conftest*
18608
18609 fi
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18611 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18612
18613
18614
18615
18616 hard_links="nottested"
18617 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18618   # do not overwrite the value of need_locks provided by the user
18619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18620 $as_echo_n "checking if we can lock with hard links... " >&6; }
18621   hard_links=yes
18622   $RM conftest*
18623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18624   touch conftest.a
18625   ln conftest.a conftest.b 2>&5 || hard_links=no
18626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18628 $as_echo "$hard_links" >&6; }
18629   if test "$hard_links" = no; then
18630     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18631 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18632     need_locks=warn
18633   fi
18634 else
18635   need_locks=no
18636 fi
18637
18638
18639
18640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18642
18643   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18644   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18645   case $host_os in
18646   aix[4-9]*)
18647     # If we're using GNU nm, then we don't want the "-C" option.
18648     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18649     # Also, AIX nm treats weak defined symbols like other global defined
18650     # symbols, whereas GNU nm marks them as "W".
18651     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18652       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18653     else
18654       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18655     fi
18656     ;;
18657   pw32*)
18658     export_symbols_cmds_CXX="$ltdll_cmds"
18659     ;;
18660   cygwin* | mingw* | cegcc*)
18661     case $cc_basename in
18662     cl*)
18663       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18664       ;;
18665     *)
18666       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18667       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18668       ;;
18669     esac
18670     ;;
18671   *)
18672     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18673     ;;
18674   esac
18675
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18677 $as_echo "$ld_shlibs_CXX" >&6; }
18678 test "$ld_shlibs_CXX" = no && can_build_shared=no
18679
18680 with_gnu_ld_CXX=$with_gnu_ld
18681
18682
18683
18684
18685
18686
18687 #
18688 # Do we need to explicitly link libc?
18689 #
18690 case "x$archive_cmds_need_lc_CXX" in
18691 x|xyes)
18692   # Assume -lc should be added
18693   archive_cmds_need_lc_CXX=yes
18694
18695   if test "$enable_shared" = yes && test "$GCC" = yes; then
18696     case $archive_cmds_CXX in
18697     *'~'*)
18698       # FIXME: we may have to deal with multi-command sequences.
18699       ;;
18700     '$CC '*)
18701       # Test whether the compiler implicitly links with -lc since on some
18702       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18703       # to ld, don't add -lc before -lgcc.
18704       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18706 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18707   $as_echo_n "(cached) " >&6
18708 else
18709   $RM conftest*
18710         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18711
18712         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18713   (eval $ac_compile) 2>&5
18714   ac_status=$?
18715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18716   test $ac_status = 0; } 2>conftest.err; then
18717           soname=conftest
18718           lib=conftest
18719           libobjs=conftest.$ac_objext
18720           deplibs=
18721           wl=$lt_prog_compiler_wl_CXX
18722           pic_flag=$lt_prog_compiler_pic_CXX
18723           compiler_flags=-v
18724           linker_flags=-v
18725           verstring=
18726           output_objdir=.
18727           libname=conftest
18728           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18729           allow_undefined_flag_CXX=
18730           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18731   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18732   ac_status=$?
18733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734   test $ac_status = 0; }
18735           then
18736             lt_cv_archive_cmds_need_lc_CXX=no
18737           else
18738             lt_cv_archive_cmds_need_lc_CXX=yes
18739           fi
18740           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18741         else
18742           cat conftest.err 1>&5
18743         fi
18744         $RM conftest*
18745
18746 fi
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18748 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18749       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18750       ;;
18751     esac
18752   fi
18753   ;;
18754 esac
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18818 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18819
18820 library_names_spec=
18821 libname_spec='lib$name'
18822 soname_spec=
18823 shrext_cmds=".so"
18824 postinstall_cmds=
18825 postuninstall_cmds=
18826 finish_cmds=
18827 finish_eval=
18828 shlibpath_var=
18829 shlibpath_overrides_runpath=unknown
18830 version_type=none
18831 dynamic_linker="$host_os ld.so"
18832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18833 need_lib_prefix=unknown
18834 hardcode_into_libs=no
18835
18836 # when you set need_version to no, make sure it does not cause -set_version
18837 # flags to be left without arguments
18838 need_version=unknown
18839
18840 case $host_os in
18841 aix3*)
18842   version_type=linux # correct to gnu/linux during the next big refactor
18843   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18844   shlibpath_var=LIBPATH
18845
18846   # AIX 3 has no versioning support, so we append a major version to the name.
18847   soname_spec='${libname}${release}${shared_ext}$major'
18848   ;;
18849
18850 aix[4-9]*)
18851   version_type=linux # correct to gnu/linux during the next big refactor
18852   need_lib_prefix=no
18853   need_version=no
18854   hardcode_into_libs=yes
18855   if test "$host_cpu" = ia64; then
18856     # AIX 5 supports IA64
18857     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18858     shlibpath_var=LD_LIBRARY_PATH
18859   else
18860     # With GCC up to 2.95.x, collect2 would create an import file
18861     # for dependence libraries.  The import file would start with
18862     # the line `#! .'.  This would cause the generated library to
18863     # depend on `.', always an invalid library.  This was fixed in
18864     # development snapshots of GCC prior to 3.0.
18865     case $host_os in
18866       aix4 | aix4.[01] | aix4.[01].*)
18867       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18868            echo ' yes '
18869            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18870         :
18871       else
18872         can_build_shared=no
18873       fi
18874       ;;
18875     esac
18876     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18877     # soname into executable. Probably we can add versioning support to
18878     # collect2, so additional links can be useful in future.
18879     if test "$aix_use_runtimelinking" = yes; then
18880       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18881       # instead of lib<name>.a to let people know that these are not
18882       # typical AIX shared libraries.
18883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884     else
18885       # We preserve .a as extension for shared libraries through AIX4.2
18886       # and later when we are not doing run time linking.
18887       library_names_spec='${libname}${release}.a $libname.a'
18888       soname_spec='${libname}${release}${shared_ext}$major'
18889     fi
18890     shlibpath_var=LIBPATH
18891   fi
18892   ;;
18893
18894 amigaos*)
18895   case $host_cpu in
18896   powerpc)
18897     # Since July 2007 AmigaOS4 officially supports .so libraries.
18898     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18900     ;;
18901   m68k)
18902     library_names_spec='$libname.ixlibrary $libname.a'
18903     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18904     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18905     ;;
18906   esac
18907   ;;
18908
18909 beos*)
18910   library_names_spec='${libname}${shared_ext}'
18911   dynamic_linker="$host_os ld.so"
18912   shlibpath_var=LIBRARY_PATH
18913   ;;
18914
18915 bsdi[45]*)
18916   version_type=linux # correct to gnu/linux during the next big refactor
18917   need_version=no
18918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919   soname_spec='${libname}${release}${shared_ext}$major'
18920   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18921   shlibpath_var=LD_LIBRARY_PATH
18922   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18923   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18924   # the default ld.so.conf also contains /usr/contrib/lib and
18925   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18926   # libtool to hard-code these into programs
18927   ;;
18928
18929 cygwin* | mingw* | pw32* | cegcc*)
18930   version_type=windows
18931   shrext_cmds=".dll"
18932   need_version=no
18933   need_lib_prefix=no
18934
18935   case $GCC,$cc_basename in
18936   yes,*)
18937     # gcc
18938     library_names_spec='$libname.dll.a'
18939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18940     postinstall_cmds='base_file=`basename \${file}`~
18941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18942       dldir=$destdir/`dirname \$dlpath`~
18943       test -d \$dldir || mkdir -p \$dldir~
18944       $install_prog $dir/$dlname \$dldir/$dlname~
18945       chmod a+x \$dldir/$dlname~
18946       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18947         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18948       fi'
18949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18950       dlpath=$dir/\$dldll~
18951        $RM \$dlpath'
18952     shlibpath_overrides_runpath=yes
18953
18954     case $host_os in
18955     cygwin*)
18956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18958
18959       ;;
18960     mingw* | cegcc*)
18961       # MinGW DLLs use traditional 'lib' prefix
18962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18963       ;;
18964     pw32*)
18965       # pw32 DLLs use 'pw' prefix rather than 'lib'
18966       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18967       ;;
18968     esac
18969     dynamic_linker='Win32 ld.exe'
18970     ;;
18971
18972   *,cl*)
18973     # Native MSVC
18974     libname_spec='$name'
18975     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18976     library_names_spec='${libname}.dll.lib'
18977
18978     case $build_os in
18979     mingw*)
18980       sys_lib_search_path_spec=
18981       lt_save_ifs=$IFS
18982       IFS=';'
18983       for lt_path in $LIB
18984       do
18985         IFS=$lt_save_ifs
18986         # Let DOS variable expansion print the short 8.3 style file name.
18987         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18988         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18989       done
18990       IFS=$lt_save_ifs
18991       # Convert to MSYS style.
18992       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18993       ;;
18994     cygwin*)
18995       # Convert to unix form, then to dos form, then back to unix form
18996       # but this time dos style (no spaces!) so that the unix form looks
18997       # like /cygdrive/c/PROGRA~1:/cygdr...
18998       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18999       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19000       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19001       ;;
19002     *)
19003       sys_lib_search_path_spec="$LIB"
19004       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19005         # It is most probably a Windows format PATH.
19006         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19007       else
19008         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19009       fi
19010       # FIXME: find the short name or the path components, as spaces are
19011       # common. (e.g. "Program Files" -> "PROGRA~1")
19012       ;;
19013     esac
19014
19015     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19016     postinstall_cmds='base_file=`basename \${file}`~
19017       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19018       dldir=$destdir/`dirname \$dlpath`~
19019       test -d \$dldir || mkdir -p \$dldir~
19020       $install_prog $dir/$dlname \$dldir/$dlname'
19021     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19022       dlpath=$dir/\$dldll~
19023        $RM \$dlpath'
19024     shlibpath_overrides_runpath=yes
19025     dynamic_linker='Win32 link.exe'
19026     ;;
19027
19028   *)
19029     # Assume MSVC wrapper
19030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19031     dynamic_linker='Win32 ld.exe'
19032     ;;
19033   esac
19034   # FIXME: first we should search . and the directory the executable is in
19035   shlibpath_var=PATH
19036   ;;
19037
19038 darwin* | rhapsody*)
19039   dynamic_linker="$host_os dyld"
19040   version_type=darwin
19041   need_lib_prefix=no
19042   need_version=no
19043   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19044   soname_spec='${libname}${release}${major}$shared_ext'
19045   shlibpath_overrides_runpath=yes
19046   shlibpath_var=DYLD_LIBRARY_PATH
19047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19048
19049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19050   ;;
19051
19052 dgux*)
19053   version_type=linux # correct to gnu/linux during the next big refactor
19054   need_lib_prefix=no
19055   need_version=no
19056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19057   soname_spec='${libname}${release}${shared_ext}$major'
19058   shlibpath_var=LD_LIBRARY_PATH
19059   ;;
19060
19061 freebsd* | dragonfly*)
19062   # DragonFly does not have aout.  When/if they implement a new
19063   # versioning mechanism, adjust this.
19064   if test -x /usr/bin/objformat; then
19065     objformat=`/usr/bin/objformat`
19066   else
19067     case $host_os in
19068     freebsd[23].*) objformat=aout ;;
19069     *) objformat=elf ;;
19070     esac
19071   fi
19072   version_type=freebsd-$objformat
19073   case $version_type in
19074     freebsd-elf*)
19075       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19076       need_version=no
19077       need_lib_prefix=no
19078       ;;
19079     freebsd-*)
19080       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19081       need_version=yes
19082       ;;
19083   esac
19084   shlibpath_var=LD_LIBRARY_PATH
19085   case $host_os in
19086   freebsd2.*)
19087     shlibpath_overrides_runpath=yes
19088     ;;
19089   freebsd3.[01]* | freebsdelf3.[01]*)
19090     shlibpath_overrides_runpath=yes
19091     hardcode_into_libs=yes
19092     ;;
19093   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19094   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19095     shlibpath_overrides_runpath=no
19096     hardcode_into_libs=yes
19097     ;;
19098   *) # from 4.6 on, and DragonFly
19099     shlibpath_overrides_runpath=yes
19100     hardcode_into_libs=yes
19101     ;;
19102   esac
19103   ;;
19104
19105 gnu*)
19106   version_type=linux # correct to gnu/linux during the next big refactor
19107   need_lib_prefix=no
19108   need_version=no
19109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19110   soname_spec='${libname}${release}${shared_ext}$major'
19111   shlibpath_var=LD_LIBRARY_PATH
19112   shlibpath_overrides_runpath=no
19113   hardcode_into_libs=yes
19114   ;;
19115
19116 haiku*)
19117   version_type=linux # correct to gnu/linux during the next big refactor
19118   need_lib_prefix=no
19119   need_version=no
19120   dynamic_linker="$host_os runtime_loader"
19121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19122   soname_spec='${libname}${release}${shared_ext}$major'
19123   shlibpath_var=LIBRARY_PATH
19124   shlibpath_overrides_runpath=yes
19125   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19126   hardcode_into_libs=yes
19127   ;;
19128
19129 hpux9* | hpux10* | hpux11*)
19130   # Give a soname corresponding to the major version so that dld.sl refuses to
19131   # link against other versions.
19132   version_type=sunos
19133   need_lib_prefix=no
19134   need_version=no
19135   case $host_cpu in
19136   ia64*)
19137     shrext_cmds='.so'
19138     hardcode_into_libs=yes
19139     dynamic_linker="$host_os dld.so"
19140     shlibpath_var=LD_LIBRARY_PATH
19141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19143     soname_spec='${libname}${release}${shared_ext}$major'
19144     if test "X$HPUX_IA64_MODE" = X32; then
19145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19146     else
19147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19148     fi
19149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19150     ;;
19151   hppa*64*)
19152     shrext_cmds='.sl'
19153     hardcode_into_libs=yes
19154     dynamic_linker="$host_os dld.sl"
19155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158     soname_spec='${libname}${release}${shared_ext}$major'
19159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19161     ;;
19162   *)
19163     shrext_cmds='.sl'
19164     dynamic_linker="$host_os dld.sl"
19165     shlibpath_var=SHLIB_PATH
19166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19168     soname_spec='${libname}${release}${shared_ext}$major'
19169     ;;
19170   esac
19171   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19172   postinstall_cmds='chmod 555 $lib'
19173   # or fails outright, so override atomically:
19174   install_override_mode=555
19175   ;;
19176
19177 interix[3-9]*)
19178   version_type=linux # correct to gnu/linux during the next big refactor
19179   need_lib_prefix=no
19180   need_version=no
19181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19182   soname_spec='${libname}${release}${shared_ext}$major'
19183   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19184   shlibpath_var=LD_LIBRARY_PATH
19185   shlibpath_overrides_runpath=no
19186   hardcode_into_libs=yes
19187   ;;
19188
19189 irix5* | irix6* | nonstopux*)
19190   case $host_os in
19191     nonstopux*) version_type=nonstopux ;;
19192     *)
19193         if test "$lt_cv_prog_gnu_ld" = yes; then
19194                 version_type=linux # correct to gnu/linux during the next big refactor
19195         else
19196                 version_type=irix
19197         fi ;;
19198   esac
19199   need_lib_prefix=no
19200   need_version=no
19201   soname_spec='${libname}${release}${shared_ext}$major'
19202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19203   case $host_os in
19204   irix5* | nonstopux*)
19205     libsuff= shlibsuff=
19206     ;;
19207   *)
19208     case $LD in # libtool.m4 will add one of these switches to LD
19209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19210       libsuff= shlibsuff= libmagic=32-bit;;
19211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19212       libsuff=32 shlibsuff=N32 libmagic=N32;;
19213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19215     *) libsuff= shlibsuff= libmagic=never-match;;
19216     esac
19217     ;;
19218   esac
19219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19220   shlibpath_overrides_runpath=no
19221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19223   hardcode_into_libs=yes
19224   ;;
19225
19226 # No shared lib support for Linux oldld, aout, or coff.
19227 linux*oldld* | linux*aout* | linux*coff*)
19228   dynamic_linker=no
19229   ;;
19230
19231 # This must be glibc/ELF.
19232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19233   version_type=linux # correct to gnu/linux during the next big refactor
19234   need_lib_prefix=no
19235   need_version=no
19236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237   soname_spec='${libname}${release}${shared_ext}$major'
19238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19239   shlibpath_var=LD_LIBRARY_PATH
19240   shlibpath_overrides_runpath=no
19241
19242   # Some binutils ld are patched to set DT_RUNPATH
19243   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19244   $as_echo_n "(cached) " >&6
19245 else
19246   lt_cv_shlibpath_overrides_runpath=no
19247     save_LDFLAGS=$LDFLAGS
19248     save_libdir=$libdir
19249     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19250          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19252 /* end confdefs.h.  */
19253
19254 int
19255 main ()
19256 {
19257
19258   ;
19259   return 0;
19260 }
19261 _ACEOF
19262 if ac_fn_cxx_try_link "$LINENO"; then :
19263   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19264   lt_cv_shlibpath_overrides_runpath=yes
19265 fi
19266 fi
19267 rm -f core conftest.err conftest.$ac_objext \
19268     conftest$ac_exeext conftest.$ac_ext
19269     LDFLAGS=$save_LDFLAGS
19270     libdir=$save_libdir
19271
19272 fi
19273
19274   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19275
19276   # This implies no fast_install, which is unacceptable.
19277   # Some rework will be needed to allow for fast_install
19278   # before this can be enabled.
19279   hardcode_into_libs=yes
19280
19281   # Add ABI-specific directories to the system library path.
19282   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19283
19284   # Append ld.so.conf contents to the search path
19285   if test -f /etc/ld.so.conf; then
19286     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' ' '`
19287     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19288
19289   fi
19290
19291   # We used to test for /lib/ld.so.1 and disable shared libraries on
19292   # powerpc, because MkLinux only supported shared libraries with the
19293   # GNU dynamic linker.  Since this was broken with cross compilers,
19294   # most powerpc-linux boxes support dynamic linking these days and
19295   # people can always --disable-shared, the test was removed, and we
19296   # assume the GNU/Linux dynamic linker is in use.
19297   dynamic_linker='GNU/Linux ld.so'
19298   ;;
19299
19300 netbsd*)
19301   version_type=sunos
19302   need_lib_prefix=no
19303   need_version=no
19304   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19306     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19307     dynamic_linker='NetBSD (a.out) ld.so'
19308   else
19309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19310     soname_spec='${libname}${release}${shared_ext}$major'
19311     dynamic_linker='NetBSD ld.elf_so'
19312   fi
19313   shlibpath_var=LD_LIBRARY_PATH
19314   shlibpath_overrides_runpath=yes
19315   hardcode_into_libs=yes
19316   ;;
19317
19318 newsos6)
19319   version_type=linux # correct to gnu/linux during the next big refactor
19320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19321   shlibpath_var=LD_LIBRARY_PATH
19322   shlibpath_overrides_runpath=yes
19323   ;;
19324
19325 *nto* | *qnx*)
19326   version_type=qnx
19327   need_lib_prefix=no
19328   need_version=no
19329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19330   soname_spec='${libname}${release}${shared_ext}$major'
19331   shlibpath_var=LD_LIBRARY_PATH
19332   shlibpath_overrides_runpath=no
19333   hardcode_into_libs=yes
19334   dynamic_linker='ldqnx.so'
19335   ;;
19336
19337 openbsd*)
19338   version_type=sunos
19339   sys_lib_dlsearch_path_spec="/usr/lib"
19340   need_lib_prefix=no
19341   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19342   case $host_os in
19343     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19344     *)                          need_version=no  ;;
19345   esac
19346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19348   shlibpath_var=LD_LIBRARY_PATH
19349   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19350     case $host_os in
19351       openbsd2.[89] | openbsd2.[89].*)
19352         shlibpath_overrides_runpath=no
19353         ;;
19354       *)
19355         shlibpath_overrides_runpath=yes
19356         ;;
19357       esac
19358   else
19359     shlibpath_overrides_runpath=yes
19360   fi
19361   ;;
19362
19363 os2*)
19364   libname_spec='$name'
19365   shrext_cmds=".dll"
19366   need_lib_prefix=no
19367   library_names_spec='$libname${shared_ext} $libname.a'
19368   dynamic_linker='OS/2 ld.exe'
19369   shlibpath_var=LIBPATH
19370   ;;
19371
19372 osf3* | osf4* | osf5*)
19373   version_type=osf
19374   need_lib_prefix=no
19375   need_version=no
19376   soname_spec='${libname}${release}${shared_ext}$major'
19377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19378   shlibpath_var=LD_LIBRARY_PATH
19379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19381   ;;
19382
19383 rdos*)
19384   dynamic_linker=no
19385   ;;
19386
19387 solaris*)
19388   version_type=linux # correct to gnu/linux during the next big refactor
19389   need_lib_prefix=no
19390   need_version=no
19391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19392   soname_spec='${libname}${release}${shared_ext}$major'
19393   shlibpath_var=LD_LIBRARY_PATH
19394   shlibpath_overrides_runpath=yes
19395   hardcode_into_libs=yes
19396   # ldd complains unless libraries are executable
19397   postinstall_cmds='chmod +x $lib'
19398   ;;
19399
19400 sunos4*)
19401   version_type=sunos
19402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19404   shlibpath_var=LD_LIBRARY_PATH
19405   shlibpath_overrides_runpath=yes
19406   if test "$with_gnu_ld" = yes; then
19407     need_lib_prefix=no
19408   fi
19409   need_version=yes
19410   ;;
19411
19412 sysv4 | sysv4.3*)
19413   version_type=linux # correct to gnu/linux during the next big refactor
19414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19415   soname_spec='${libname}${release}${shared_ext}$major'
19416   shlibpath_var=LD_LIBRARY_PATH
19417   case $host_vendor in
19418     sni)
19419       shlibpath_overrides_runpath=no
19420       need_lib_prefix=no
19421       runpath_var=LD_RUN_PATH
19422       ;;
19423     siemens)
19424       need_lib_prefix=no
19425       ;;
19426     motorola)
19427       need_lib_prefix=no
19428       need_version=no
19429       shlibpath_overrides_runpath=no
19430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19431       ;;
19432   esac
19433   ;;
19434
19435 sysv4*MP*)
19436   if test -d /usr/nec ;then
19437     version_type=linux # correct to gnu/linux during the next big refactor
19438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19439     soname_spec='$libname${shared_ext}.$major'
19440     shlibpath_var=LD_LIBRARY_PATH
19441   fi
19442   ;;
19443
19444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19445   version_type=freebsd-elf
19446   need_lib_prefix=no
19447   need_version=no
19448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19449   soname_spec='${libname}${release}${shared_ext}$major'
19450   shlibpath_var=LD_LIBRARY_PATH
19451   shlibpath_overrides_runpath=yes
19452   hardcode_into_libs=yes
19453   if test "$with_gnu_ld" = yes; then
19454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19455   else
19456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19457     case $host_os in
19458       sco3.2v5*)
19459         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19460         ;;
19461     esac
19462   fi
19463   sys_lib_dlsearch_path_spec='/usr/lib'
19464   ;;
19465
19466 tpf*)
19467   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19468   version_type=linux # correct to gnu/linux during the next big refactor
19469   need_lib_prefix=no
19470   need_version=no
19471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19472   shlibpath_var=LD_LIBRARY_PATH
19473   shlibpath_overrides_runpath=no
19474   hardcode_into_libs=yes
19475   ;;
19476
19477 uts4*)
19478   version_type=linux # correct to gnu/linux during the next big refactor
19479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19480   soname_spec='${libname}${release}${shared_ext}$major'
19481   shlibpath_var=LD_LIBRARY_PATH
19482   ;;
19483
19484 *)
19485   dynamic_linker=no
19486   ;;
19487 esac
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19489 $as_echo "$dynamic_linker" >&6; }
19490 test "$dynamic_linker" = no && can_build_shared=no
19491
19492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19493 if test "$GCC" = yes; then
19494   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19495 fi
19496
19497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19498   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19499 fi
19500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19501   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19502 fi
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19542 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19543 hardcode_action_CXX=
19544 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19545    test -n "$runpath_var_CXX" ||
19546    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19547
19548   # We can hardcode non-existent directories.
19549   if test "$hardcode_direct_CXX" != no &&
19550      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19551      # have to relink, otherwise we might link with an installed library
19552      # when we should be linking with a yet-to-be-installed one
19553      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19554      test "$hardcode_minus_L_CXX" != no; then
19555     # Linking always hardcodes the temporary library directory.
19556     hardcode_action_CXX=relink
19557   else
19558     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19559     hardcode_action_CXX=immediate
19560   fi
19561 else
19562   # We cannot hardcode anything, or else we can only hardcode existing
19563   # directories.
19564   hardcode_action_CXX=unsupported
19565 fi
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19567 $as_echo "$hardcode_action_CXX" >&6; }
19568
19569 if test "$hardcode_action_CXX" = relink ||
19570    test "$inherit_rpath_CXX" = yes; then
19571   # Fast installation is not supported
19572   enable_fast_install=no
19573 elif test "$shlibpath_overrides_runpath" = yes ||
19574      test "$enable_shared" = no; then
19575   # Fast installation is not necessary
19576   enable_fast_install=needless
19577 fi
19578
19579
19580
19581
19582
19583
19584
19585   fi # test -n "$compiler"
19586
19587   CC=$lt_save_CC
19588   CFLAGS=$lt_save_CFLAGS
19589   LDCXX=$LD
19590   LD=$lt_save_LD
19591   GCC=$lt_save_GCC
19592   with_gnu_ld=$lt_save_with_gnu_ld
19593   lt_cv_path_LDCXX=$lt_cv_path_LD
19594   lt_cv_path_LD=$lt_save_path_LD
19595   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19596   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19597 fi # test "$_lt_caught_CXX_error" != yes
19598
19599 ac_ext=c
19600 ac_cpp='$CPP $CPPFLAGS'
19601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619         ac_config_commands="$ac_config_commands libtool"
19620
19621
19622
19623
19624 # Only expand once:
19625
19626
19627 : ${CONFIG_LT=./config.lt}
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
19629 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
19630 as_write_fail=0
19631 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
19632 #! $SHELL
19633 # Generated by $as_me.
19634 # Run this file to recreate a libtool stub with the current configuration.
19635 SHELL=\${CONFIG_SHELL-$SHELL}
19636 export SHELL
19637 _ASEOF
19638 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
19639 ## -------------------- ##
19640 ## M4sh Initialization. ##
19641 ## -------------------- ##
19642
19643 # Be more Bourne compatible
19644 DUALCASE=1; export DUALCASE # for MKS sh
19645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19646   emulate sh
19647   NULLCMD=:
19648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19649   # is contrary to our usage.  Disable this feature.
19650   alias -g '${1+"$@"}'='"$@"'
19651   setopt NO_GLOB_SUBST
19652 else
19653   case `(set -o) 2>/dev/null` in #(
19654   *posix*) :
19655     set -o posix ;; #(
19656   *) :
19657      ;;
19658 esac
19659 fi
19660
19661
19662 as_nl='
19663 '
19664 export as_nl
19665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19669 # Prefer a ksh shell builtin over an external printf program on Solaris,
19670 # but without wasting forks for bash or zsh.
19671 if test -z "$BASH_VERSION$ZSH_VERSION" \
19672     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19673   as_echo='print -r --'
19674   as_echo_n='print -rn --'
19675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19676   as_echo='printf %s\n'
19677   as_echo_n='printf %s'
19678 else
19679   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19680     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19681     as_echo_n='/usr/ucb/echo -n'
19682   else
19683     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19684     as_echo_n_body='eval
19685       arg=$1;
19686       case $arg in #(
19687       *"$as_nl"*)
19688         expr "X$arg" : "X\\(.*\\)$as_nl";
19689         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19690       esac;
19691       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19692     '
19693     export as_echo_n_body
19694     as_echo_n='sh -c $as_echo_n_body as_echo'
19695   fi
19696   export as_echo_body
19697   as_echo='sh -c $as_echo_body as_echo'
19698 fi
19699
19700 # The user is always right.
19701 if test "${PATH_SEPARATOR+set}" != set; then
19702   PATH_SEPARATOR=:
19703   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19704     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19705       PATH_SEPARATOR=';'
19706   }
19707 fi
19708
19709
19710 # IFS
19711 # We need space, tab and new line, in precisely that order.  Quoting is
19712 # there to prevent editors from complaining about space-tab.
19713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19714 # splitting by setting IFS to empty value.)
19715 IFS=" ""        $as_nl"
19716
19717 # Find who we are.  Look in the path if we contain no directory separator.
19718 as_myself=
19719 case $0 in #((
19720   *[\\/]* ) as_myself=$0 ;;
19721   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19723 do
19724   IFS=$as_save_IFS
19725   test -z "$as_dir" && as_dir=.
19726     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19727   done
19728 IFS=$as_save_IFS
19729
19730      ;;
19731 esac
19732 # We did not find ourselves, most probably we were run as `sh COMMAND'
19733 # in which case we are not to be found in the path.
19734 if test "x$as_myself" = x; then
19735   as_myself=$0
19736 fi
19737 if test ! -f "$as_myself"; then
19738   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19739   exit 1
19740 fi
19741
19742 # Unset variables that we do not need and which cause bugs (e.g. in
19743 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19744 # suppresses any "Segmentation fault" message there.  '((' could
19745 # trigger a bug in pdksh 5.2.14.
19746 for as_var in BASH_ENV ENV MAIL MAILPATH
19747 do eval test x\${$as_var+set} = xset \
19748   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19749 done
19750 PS1='$ '
19751 PS2='> '
19752 PS4='+ '
19753
19754 # NLS nuisances.
19755 LC_ALL=C
19756 export LC_ALL
19757 LANGUAGE=C
19758 export LANGUAGE
19759
19760 # CDPATH.
19761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19762
19763
19764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19765 # ----------------------------------------
19766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19768 # script with STATUS, using 1 if that was 0.
19769 as_fn_error ()
19770 {
19771   as_status=$1; test $as_status -eq 0 && as_status=1
19772   if test "$4"; then
19773     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19774     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19775   fi
19776   $as_echo "$as_me: error: $2" >&2
19777   as_fn_exit $as_status
19778 } # as_fn_error
19779
19780
19781 # as_fn_set_status STATUS
19782 # -----------------------
19783 # Set $? to STATUS, without forking.
19784 as_fn_set_status ()
19785 {
19786   return $1
19787 } # as_fn_set_status
19788
19789 # as_fn_exit STATUS
19790 # -----------------
19791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19792 as_fn_exit ()
19793 {
19794   set +e
19795   as_fn_set_status $1
19796   exit $1
19797 } # as_fn_exit
19798
19799 # as_fn_unset VAR
19800 # ---------------
19801 # Portably unset VAR.
19802 as_fn_unset ()
19803 {
19804   { eval $1=; unset $1;}
19805 }
19806 as_unset=as_fn_unset
19807 # as_fn_append VAR VALUE
19808 # ----------------------
19809 # Append the text in VALUE to the end of the definition contained in VAR. Take
19810 # advantage of any shell optimizations that allow amortized linear growth over
19811 # repeated appends, instead of the typical quadratic growth present in naive
19812 # implementations.
19813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19814   eval 'as_fn_append ()
19815   {
19816     eval $1+=\$2
19817   }'
19818 else
19819   as_fn_append ()
19820   {
19821     eval $1=\$$1\$2
19822   }
19823 fi # as_fn_append
19824
19825 # as_fn_arith ARG...
19826 # ------------------
19827 # Perform arithmetic evaluation on the ARGs, and store the result in the
19828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19829 # must be portable across $(()) and expr.
19830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19831   eval 'as_fn_arith ()
19832   {
19833     as_val=$(( $* ))
19834   }'
19835 else
19836   as_fn_arith ()
19837   {
19838     as_val=`expr "$@" || test $? -eq 1`
19839   }
19840 fi # as_fn_arith
19841
19842
19843 if expr a : '\(a\)' >/dev/null 2>&1 &&
19844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19845   as_expr=expr
19846 else
19847   as_expr=false
19848 fi
19849
19850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19851   as_basename=basename
19852 else
19853   as_basename=false
19854 fi
19855
19856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19857   as_dirname=dirname
19858 else
19859   as_dirname=false
19860 fi
19861
19862 as_me=`$as_basename -- "$0" ||
19863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19864          X"$0" : 'X\(//\)$' \| \
19865          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19866 $as_echo X/"$0" |
19867     sed '/^.*\/\([^/][^/]*\)\/*$/{
19868             s//\1/
19869             q
19870           }
19871           /^X\/\(\/\/\)$/{
19872             s//\1/
19873             q
19874           }
19875           /^X\/\(\/\).*/{
19876             s//\1/
19877             q
19878           }
19879           s/.*/./; q'`
19880
19881 # Avoid depending upon Character Ranges.
19882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19885 as_cr_digits='0123456789'
19886 as_cr_alnum=$as_cr_Letters$as_cr_digits
19887
19888 ECHO_C= ECHO_N= ECHO_T=
19889 case `echo -n x` in #(((((
19890 -n*)
19891   case `echo 'xy\c'` in
19892   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19893   xy)  ECHO_C='\c';;
19894   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19895        ECHO_T=' ';;
19896   esac;;
19897 *)
19898   ECHO_N='-n';;
19899 esac
19900
19901 rm -f conf$$ conf$$.exe conf$$.file
19902 if test -d conf$$.dir; then
19903   rm -f conf$$.dir/conf$$.file
19904 else
19905   rm -f conf$$.dir
19906   mkdir conf$$.dir 2>/dev/null
19907 fi
19908 if (echo >conf$$.file) 2>/dev/null; then
19909   if ln -s conf$$.file conf$$ 2>/dev/null; then
19910     as_ln_s='ln -s'
19911     # ... but there are two gotchas:
19912     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19913     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19914     # In both cases, we have to default to `cp -p'.
19915     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19916       as_ln_s='cp -p'
19917   elif ln conf$$.file conf$$ 2>/dev/null; then
19918     as_ln_s=ln
19919   else
19920     as_ln_s='cp -p'
19921   fi
19922 else
19923   as_ln_s='cp -p'
19924 fi
19925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19926 rmdir conf$$.dir 2>/dev/null
19927
19928
19929 # as_fn_mkdir_p
19930 # -------------
19931 # Create "$as_dir" as a directory, including parents if necessary.
19932 as_fn_mkdir_p ()
19933 {
19934
19935   case $as_dir in #(
19936   -*) as_dir=./$as_dir;;
19937   esac
19938   test -d "$as_dir" || eval $as_mkdir_p || {
19939     as_dirs=
19940     while :; do
19941       case $as_dir in #(
19942       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19943       *) as_qdir=$as_dir;;
19944       esac
19945       as_dirs="'$as_qdir' $as_dirs"
19946       as_dir=`$as_dirname -- "$as_dir" ||
19947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19948          X"$as_dir" : 'X\(//\)[^/]' \| \
19949          X"$as_dir" : 'X\(//\)$' \| \
19950          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19951 $as_echo X"$as_dir" |
19952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19953             s//\1/
19954             q
19955           }
19956           /^X\(\/\/\)[^/].*/{
19957             s//\1/
19958             q
19959           }
19960           /^X\(\/\/\)$/{
19961             s//\1/
19962             q
19963           }
19964           /^X\(\/\).*/{
19965             s//\1/
19966             q
19967           }
19968           s/.*/./; q'`
19969       test -d "$as_dir" && break
19970     done
19971     test -z "$as_dirs" || eval "mkdir $as_dirs"
19972   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19973
19974
19975 } # as_fn_mkdir_p
19976 if mkdir -p . 2>/dev/null; then
19977   as_mkdir_p='mkdir -p "$as_dir"'
19978 else
19979   test -d ./-p && rmdir ./-p
19980   as_mkdir_p=false
19981 fi
19982
19983 if test -x / >/dev/null 2>&1; then
19984   as_test_x='test -x'
19985 else
19986   if ls -dL / >/dev/null 2>&1; then
19987     as_ls_L_option=L
19988   else
19989     as_ls_L_option=
19990   fi
19991   as_test_x='
19992     eval sh -c '\''
19993       if test -d "$1"; then
19994         test -d "$1/.";
19995       else
19996         case $1 in #(
19997         -*)set "./$1";;
19998         esac;
19999         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20000         ???[sx]*):;;*)false;;esac;fi
20001     '\'' sh
20002   '
20003 fi
20004 as_executable_p=$as_test_x
20005
20006 # Sed expression to map a string onto a valid CPP name.
20007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20008
20009 # Sed expression to map a string onto a valid variable name.
20010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20011
20012
20013 exec 6>&1
20014 ## --------------------------------- ##
20015 ## Main body of "$CONFIG_LT" script. ##
20016 ## --------------------------------- ##
20017 _ASEOF
20018 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
20019
20020 cat >>"$CONFIG_LT" <<\_LTEOF
20021 lt_cl_silent=false
20022 exec 5>>config.log
20023 {
20024   echo
20025   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20026 ## Running $as_me. ##
20027 _ASBOX
20028 } >&5
20029
20030 lt_cl_help="\
20031 \`$as_me' creates a local libtool stub from the current configuration,
20032 for use in further configure time tests before the real libtool is
20033 generated.
20034
20035 Usage: $0 [OPTIONS]
20036
20037   -h, --help      print this help, then exit
20038   -V, --version   print version number, then exit
20039   -q, --quiet     do not print progress messages
20040   -d, --debug     don't remove temporary files
20041
20042 Report bugs to <bug-libtool@gnu.org>."
20043
20044 lt_cl_version="\
20045 glib config.lt 2.32.3
20046 configured by $0, generated by GNU Autoconf 2.68.
20047
20048 Copyright (C) 2011 Free Software Foundation, Inc.
20049 This config.lt script is free software; the Free Software Foundation
20050 gives unlimited permision to copy, distribute and modify it."
20051
20052 while test $# != 0
20053 do
20054   case $1 in
20055     --version | --v* | -V )
20056       echo "$lt_cl_version"; exit 0 ;;
20057     --help | --h* | -h )
20058       echo "$lt_cl_help"; exit 0 ;;
20059     --debug | --d* | -d )
20060       debug=: ;;
20061     --quiet | --q* | --silent | --s* | -q )
20062       lt_cl_silent=: ;;
20063
20064     -*) as_fn_error $? "unrecognized option: $1
20065 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20066
20067     *) as_fn_error $? "unrecognized argument: $1
20068 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20069   esac
20070   shift
20071 done
20072
20073 if $lt_cl_silent; then
20074   exec 6>/dev/null
20075 fi
20076 _LTEOF
20077
20078 cat >>"$CONFIG_LT" <<_LTEOF
20079
20080
20081 # The HP-UX ksh and POSIX shell print the target directory to stdout
20082 # if CDPATH is set.
20083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20084
20085 sed_quote_subst='$sed_quote_subst'
20086 double_quote_subst='$double_quote_subst'
20087 delay_variable_subst='$delay_variable_subst'
20088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20090 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20091 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20092 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20093 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20094 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20097 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20098 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20099 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20100 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20101 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20102 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20103 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20104 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20105 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20106 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20107 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20108 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20109 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20110 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20111 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20112 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20113 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20114 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20115 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20116 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20117 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20118 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20119 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20120 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20122 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20123 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20124 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20125 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20126 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20127 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20128 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20129 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20130 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20131 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20132 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20133 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20134 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20135 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20136 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20137 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20138 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20139 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20140 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20141 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20142 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20143 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20144 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20145 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"`'
20146 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20147 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20148 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20149 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20150 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20151 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20152 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20153 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20154 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20155 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20156 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20157 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20158 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20159 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20160 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20161 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20162 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20163 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20164 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20165 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20166 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20167 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20168 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20169 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20170 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20171 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20172 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20173 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20174 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20175 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20176 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20177 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20178 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20179 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20180 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20181 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20182 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20183 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20184 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20185 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20186 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20187 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20188 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20189 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20190 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20191 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20192 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20193 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20194 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20195 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20196 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20197 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20198 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20199 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20200 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20201 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20202 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20203 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20204 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20205 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20206 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20207 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20208 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20209 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20210 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20211 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20212 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20213 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20214 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20215 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20216 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20217 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20218 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20219 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20220 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20221 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20222 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20223 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20224 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20225 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20226 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20228 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20229 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20230 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20231 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20232 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20233 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20234 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20235 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20236 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20237 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20238 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20239 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20240 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20241 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20242 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20244 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20245 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20246 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20247 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20248 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20249 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20250 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20251 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20252 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20253 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20254 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20255 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20256 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20257 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20258 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20259 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20260 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20261 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20262 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20263 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20264 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20265 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20266 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20267 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20268 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20269 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20270 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20271 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20272 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20273
20274 LTCC='$LTCC'
20275 LTCFLAGS='$LTCFLAGS'
20276 compiler='$compiler_DEFAULT'
20277
20278 # A function that is used when there is no print builtin or printf.
20279 func_fallback_echo ()
20280 {
20281   eval 'cat <<_LTECHO_EOF
20282 \$1
20283 _LTECHO_EOF'
20284 }
20285
20286 # Quote evaled strings.
20287 for var in AS \
20288 DLLTOOL \
20289 OBJDUMP \
20290 SHELL \
20291 ECHO \
20292 PATH_SEPARATOR \
20293 SED \
20294 GREP \
20295 EGREP \
20296 FGREP \
20297 LD \
20298 NM \
20299 LN_S \
20300 lt_SP2NL \
20301 lt_NL2SP \
20302 reload_flag \
20303 deplibs_check_method \
20304 file_magic_cmd \
20305 file_magic_glob \
20306 want_nocaseglob \
20307 sharedlib_from_linklib_cmd \
20308 AR \
20309 AR_FLAGS \
20310 archiver_list_spec \
20311 STRIP \
20312 RANLIB \
20313 CC \
20314 CFLAGS \
20315 compiler \
20316 lt_cv_sys_global_symbol_pipe \
20317 lt_cv_sys_global_symbol_to_cdecl \
20318 lt_cv_sys_global_symbol_to_c_name_address \
20319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20320 nm_file_list_spec \
20321 lt_prog_compiler_no_builtin_flag \
20322 lt_prog_compiler_pic \
20323 lt_prog_compiler_wl \
20324 lt_prog_compiler_static \
20325 lt_cv_prog_compiler_c_o \
20326 need_locks \
20327 MANIFEST_TOOL \
20328 DSYMUTIL \
20329 NMEDIT \
20330 LIPO \
20331 OTOOL \
20332 OTOOL64 \
20333 shrext_cmds \
20334 export_dynamic_flag_spec \
20335 whole_archive_flag_spec \
20336 compiler_needs_object \
20337 with_gnu_ld \
20338 allow_undefined_flag \
20339 no_undefined_flag \
20340 hardcode_libdir_flag_spec \
20341 hardcode_libdir_separator \
20342 exclude_expsyms \
20343 include_expsyms \
20344 file_list_spec \
20345 variables_saved_for_relink \
20346 libname_spec \
20347 library_names_spec \
20348 soname_spec \
20349 install_override_mode \
20350 finish_eval \
20351 old_striplib \
20352 striplib \
20353 compiler_lib_search_dirs \
20354 predep_objects \
20355 postdep_objects \
20356 predeps \
20357 postdeps \
20358 compiler_lib_search_path \
20359 LD_CXX \
20360 reload_flag_CXX \
20361 compiler_CXX \
20362 lt_prog_compiler_no_builtin_flag_CXX \
20363 lt_prog_compiler_pic_CXX \
20364 lt_prog_compiler_wl_CXX \
20365 lt_prog_compiler_static_CXX \
20366 lt_cv_prog_compiler_c_o_CXX \
20367 export_dynamic_flag_spec_CXX \
20368 whole_archive_flag_spec_CXX \
20369 compiler_needs_object_CXX \
20370 with_gnu_ld_CXX \
20371 allow_undefined_flag_CXX \
20372 no_undefined_flag_CXX \
20373 hardcode_libdir_flag_spec_CXX \
20374 hardcode_libdir_separator_CXX \
20375 exclude_expsyms_CXX \
20376 include_expsyms_CXX \
20377 file_list_spec_CXX \
20378 compiler_lib_search_dirs_CXX \
20379 predep_objects_CXX \
20380 postdep_objects_CXX \
20381 predeps_CXX \
20382 postdeps_CXX \
20383 compiler_lib_search_path_CXX; do
20384     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20385     *[\\\\\\\`\\"\\\$]*)
20386       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20387       ;;
20388     *)
20389       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20390       ;;
20391     esac
20392 done
20393
20394 # Double-quote double-evaled strings.
20395 for var in reload_cmds \
20396 old_postinstall_cmds \
20397 old_postuninstall_cmds \
20398 old_archive_cmds \
20399 extract_expsyms_cmds \
20400 old_archive_from_new_cmds \
20401 old_archive_from_expsyms_cmds \
20402 archive_cmds \
20403 archive_expsym_cmds \
20404 module_cmds \
20405 module_expsym_cmds \
20406 export_symbols_cmds \
20407 prelink_cmds \
20408 postlink_cmds \
20409 postinstall_cmds \
20410 postuninstall_cmds \
20411 finish_cmds \
20412 sys_lib_search_path_spec \
20413 sys_lib_dlsearch_path_spec \
20414 reload_cmds_CXX \
20415 old_archive_cmds_CXX \
20416 old_archive_from_new_cmds_CXX \
20417 old_archive_from_expsyms_cmds_CXX \
20418 archive_cmds_CXX \
20419 archive_expsym_cmds_CXX \
20420 module_cmds_CXX \
20421 module_expsym_cmds_CXX \
20422 export_symbols_cmds_CXX \
20423 prelink_cmds_CXX \
20424 postlink_cmds_CXX; do
20425     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20426     *[\\\\\\\`\\"\\\$]*)
20427       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20428       ;;
20429     *)
20430       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20431       ;;
20432     esac
20433 done
20434
20435 ac_aux_dir='$ac_aux_dir'
20436 xsi_shell='$xsi_shell'
20437 lt_shell_append='$lt_shell_append'
20438
20439 # See if we are running on zsh, and set the options which allow our
20440 # commands through without removal of \ escapes INIT.
20441 if test -n "\${ZSH_VERSION+set}" ; then
20442    setopt NO_GLOB_SUBST
20443 fi
20444
20445
20446     PACKAGE='$PACKAGE'
20447     VERSION='$VERSION'
20448     TIMESTAMP='$TIMESTAMP'
20449     RM='$RM'
20450     ofile='$ofile'
20451
20452
20453
20454
20455
20456 _LTEOF
20457
20458 cat >>"$CONFIG_LT" <<\_LTEOF
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
20460 $as_echo "$as_me: creating $ofile" >&6;}
20461
20462
20463     # See if we are running on zsh, and set the options which allow our
20464     # commands through without removal of \ escapes.
20465     if test -n "${ZSH_VERSION+set}" ; then
20466       setopt NO_GLOB_SUBST
20467     fi
20468
20469     cfgfile="${ofile}T"
20470     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20471     $RM "$cfgfile"
20472
20473     cat <<_LT_EOF >> "$cfgfile"
20474 #! $SHELL
20475
20476 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20477 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20478 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20480 #
20481 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20482 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20483 #                 Foundation, Inc.
20484 #   Written by Gordon Matzigkeit, 1996
20485 #
20486 #   This file is part of GNU Libtool.
20487 #
20488 # GNU Libtool is free software; you can redistribute it and/or
20489 # modify it under the terms of the GNU General Public License as
20490 # published by the Free Software Foundation; either version 2 of
20491 # the License, or (at your option) any later version.
20492 #
20493 # As a special exception to the GNU General Public License,
20494 # if you distribute this file as part of a program or library that
20495 # is built using GNU Libtool, you may include this file under the
20496 # same distribution terms that you use for the rest of that program.
20497 #
20498 # GNU Libtool is distributed in the hope that it will be useful,
20499 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20501 # GNU General Public License for more details.
20502 #
20503 # You should have received a copy of the GNU General Public License
20504 # along with GNU Libtool; see the file COPYING.  If not, a copy
20505 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20506 # obtained by writing to the Free Software Foundation, Inc.,
20507 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20508
20509
20510 # The names of the tagged configurations supported by this script.
20511 available_tags="CXX "
20512
20513 # ### BEGIN LIBTOOL CONFIG
20514
20515 # Which release of libtool.m4 was used?
20516 macro_version=$macro_version
20517 macro_revision=$macro_revision
20518
20519 # Whether or not to build static libraries.
20520 build_old_libs=$enable_static
20521
20522 # Assembler program.
20523 AS=$lt_AS
20524
20525 # DLL creation program.
20526 DLLTOOL=$lt_DLLTOOL
20527
20528 # Object dumper program.
20529 OBJDUMP=$lt_OBJDUMP
20530
20531 # Whether or not to build shared libraries.
20532 build_libtool_libs=$enable_shared
20533
20534 # What type of objects to build.
20535 pic_mode=$pic_mode
20536
20537 # Whether or not to optimize for fast installation.
20538 fast_install=$enable_fast_install
20539
20540 # Shell to use when invoking shell scripts.
20541 SHELL=$lt_SHELL
20542
20543 # An echo program that protects backslashes.
20544 ECHO=$lt_ECHO
20545
20546 # The PATH separator for the build system.
20547 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20548
20549 # The host system.
20550 host_alias=$host_alias
20551 host=$host
20552 host_os=$host_os
20553
20554 # The build system.
20555 build_alias=$build_alias
20556 build=$build
20557 build_os=$build_os
20558
20559 # A sed program that does not truncate output.
20560 SED=$lt_SED
20561
20562 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20563 Xsed="\$SED -e 1s/^X//"
20564
20565 # A grep program that handles long lines.
20566 GREP=$lt_GREP
20567
20568 # An ERE matcher.
20569 EGREP=$lt_EGREP
20570
20571 # A literal string matcher.
20572 FGREP=$lt_FGREP
20573
20574 # A BSD- or MS-compatible name lister.
20575 NM=$lt_NM
20576
20577 # Whether we need soft or hard links.
20578 LN_S=$lt_LN_S
20579
20580 # What is the maximum length of a command?
20581 max_cmd_len=$max_cmd_len
20582
20583 # Object file suffix (normally "o").
20584 objext=$ac_objext
20585
20586 # Executable file suffix (normally "").
20587 exeext=$exeext
20588
20589 # whether the shell understands "unset".
20590 lt_unset=$lt_unset
20591
20592 # turn spaces into newlines.
20593 SP2NL=$lt_lt_SP2NL
20594
20595 # turn newlines into spaces.
20596 NL2SP=$lt_lt_NL2SP
20597
20598 # convert \$build file names to \$host format.
20599 to_host_file_cmd=$lt_cv_to_host_file_cmd
20600
20601 # convert \$build files to toolchain format.
20602 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20603
20604 # Method to check whether dependent libraries are shared objects.
20605 deplibs_check_method=$lt_deplibs_check_method
20606
20607 # Command to use when deplibs_check_method = "file_magic".
20608 file_magic_cmd=$lt_file_magic_cmd
20609
20610 # How to find potential files when deplibs_check_method = "file_magic".
20611 file_magic_glob=$lt_file_magic_glob
20612
20613 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20614 want_nocaseglob=$lt_want_nocaseglob
20615
20616 # Command to associate shared and link libraries.
20617 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20618
20619 # The archiver.
20620 AR=$lt_AR
20621
20622 # Flags to create an archive.
20623 AR_FLAGS=$lt_AR_FLAGS
20624
20625 # How to feed a file listing to the archiver.
20626 archiver_list_spec=$lt_archiver_list_spec
20627
20628 # A symbol stripping program.
20629 STRIP=$lt_STRIP
20630
20631 # Commands used to install an old-style archive.
20632 RANLIB=$lt_RANLIB
20633 old_postinstall_cmds=$lt_old_postinstall_cmds
20634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20635
20636 # Whether to use a lock for old archive extraction.
20637 lock_old_archive_extraction=$lock_old_archive_extraction
20638
20639 # A C compiler.
20640 LTCC=$lt_CC
20641
20642 # LTCC compiler flags.
20643 LTCFLAGS=$lt_CFLAGS
20644
20645 # Take the output of nm and produce a listing of raw symbols and C names.
20646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20647
20648 # Transform the output of nm in a proper C declaration.
20649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20650
20651 # Transform the output of nm in a C name address pair.
20652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20653
20654 # Transform the output of nm in a C name address pair when lib prefix is needed.
20655 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20656
20657 # Specify filename containing input files for \$NM.
20658 nm_file_list_spec=$lt_nm_file_list_spec
20659
20660 # The root where to search for dependent libraries,and in which our libraries should be installed.
20661 lt_sysroot=$lt_sysroot
20662
20663 # The name of the directory that contains temporary libtool files.
20664 objdir=$objdir
20665
20666 # Used to examine libraries when file_magic_cmd begins with "file".
20667 MAGIC_CMD=$MAGIC_CMD
20668
20669 # Must we lock files when doing compilation?
20670 need_locks=$lt_need_locks
20671
20672 # Manifest tool.
20673 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20674
20675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20676 DSYMUTIL=$lt_DSYMUTIL
20677
20678 # Tool to change global to local symbols on Mac OS X.
20679 NMEDIT=$lt_NMEDIT
20680
20681 # Tool to manipulate fat objects and archives on Mac OS X.
20682 LIPO=$lt_LIPO
20683
20684 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20685 OTOOL=$lt_OTOOL
20686
20687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20688 OTOOL64=$lt_OTOOL64
20689
20690 # Old archive suffix (normally "a").
20691 libext=$libext
20692
20693 # Shared library suffix (normally ".so").
20694 shrext_cmds=$lt_shrext_cmds
20695
20696 # The commands to extract the exported symbol list from a shared archive.
20697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20698
20699 # Variables whose values should be saved in libtool wrapper scripts and
20700 # restored at link time.
20701 variables_saved_for_relink=$lt_variables_saved_for_relink
20702
20703 # Do we need the "lib" prefix for modules?
20704 need_lib_prefix=$need_lib_prefix
20705
20706 # Do we need a version for libraries?
20707 need_version=$need_version
20708
20709 # Library versioning type.
20710 version_type=$version_type
20711
20712 # Shared library runtime path variable.
20713 runpath_var=$runpath_var
20714
20715 # Shared library path variable.
20716 shlibpath_var=$shlibpath_var
20717
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720
20721 # Format of library name prefix.
20722 libname_spec=$lt_libname_spec
20723
20724 # List of archive names.  First name is the real one, the rest are links.
20725 # The last name is the one that the linker finds with -lNAME
20726 library_names_spec=$lt_library_names_spec
20727
20728 # The coded name of the library, if different from the real name.
20729 soname_spec=$lt_soname_spec
20730
20731 # Permission mode override for installation of shared libraries.
20732 install_override_mode=$lt_install_override_mode
20733
20734 # Command to use after installation of a shared archive.
20735 postinstall_cmds=$lt_postinstall_cmds
20736
20737 # Command to use after uninstallation of a shared archive.
20738 postuninstall_cmds=$lt_postuninstall_cmds
20739
20740 # Commands used to finish a libtool library installation in a directory.
20741 finish_cmds=$lt_finish_cmds
20742
20743 # As "finish_cmds", except a single script fragment to be evaled but
20744 # not shown.
20745 finish_eval=$lt_finish_eval
20746
20747 # Whether we should hardcode library paths into libraries.
20748 hardcode_into_libs=$hardcode_into_libs
20749
20750 # Compile-time system search path for libraries.
20751 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20752
20753 # Run-time system search path for libraries.
20754 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20755
20756 # Whether dlopen is supported.
20757 dlopen_support=$enable_dlopen
20758
20759 # Whether dlopen of programs is supported.
20760 dlopen_self=$enable_dlopen_self
20761
20762 # Whether dlopen of statically linked programs is supported.
20763 dlopen_self_static=$enable_dlopen_self_static
20764
20765 # Commands to strip libraries.
20766 old_striplib=$lt_old_striplib
20767 striplib=$lt_striplib
20768
20769
20770 # The linker used to build libraries.
20771 LD=$lt_LD
20772
20773 # How to create reloadable object files.
20774 reload_flag=$lt_reload_flag
20775 reload_cmds=$lt_reload_cmds
20776
20777 # Commands used to build an old-style archive.
20778 old_archive_cmds=$lt_old_archive_cmds
20779
20780 # A language specific compiler.
20781 CC=$lt_compiler
20782
20783 # Is the compiler the GNU compiler?
20784 with_gcc=$GCC
20785
20786 # Compiler flag to turn off builtin functions.
20787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20788
20789 # Additional compiler flags for building library objects.
20790 pic_flag=$lt_lt_prog_compiler_pic
20791
20792 # How to pass a linker flag through the compiler.
20793 wl=$lt_lt_prog_compiler_wl
20794
20795 # Compiler flag to prevent dynamic linking.
20796 link_static_flag=$lt_lt_prog_compiler_static
20797
20798 # Does compiler simultaneously support -c and -o options?
20799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20800
20801 # Whether or not to add -lc for building shared libraries.
20802 build_libtool_need_lc=$archive_cmds_need_lc
20803
20804 # Whether or not to disallow shared libs when runtime libs are static.
20805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20806
20807 # Compiler flag to allow reflexive dlopens.
20808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20809
20810 # Compiler flag to generate shared objects directly from archives.
20811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20812
20813 # Whether the compiler copes with passing no objects directly.
20814 compiler_needs_object=$lt_compiler_needs_object
20815
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20818
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20821
20822 # Commands used to build a shared archive.
20823 archive_cmds=$lt_archive_cmds
20824 archive_expsym_cmds=$lt_archive_expsym_cmds
20825
20826 # Commands used to build a loadable module if different from building
20827 # a shared archive.
20828 module_cmds=$lt_module_cmds
20829 module_expsym_cmds=$lt_module_expsym_cmds
20830
20831 # Whether we are building with GNU ld or not.
20832 with_gnu_ld=$lt_with_gnu_ld
20833
20834 # Flag that allows shared libraries with undefined symbols to be built.
20835 allow_undefined_flag=$lt_allow_undefined_flag
20836
20837 # Flag that enforces no undefined symbols.
20838 no_undefined_flag=$lt_no_undefined_flag
20839
20840 # Flag to hardcode \$libdir into a binary during linking.
20841 # This must work even if \$libdir does not exist
20842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20843
20844 # Whether we need a single "-rpath" flag with a separated argument.
20845 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20846
20847 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20848 # DIR into the resulting binary.
20849 hardcode_direct=$hardcode_direct
20850
20851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20852 # DIR into the resulting binary and the resulting library dependency is
20853 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20854 # library is relocated.
20855 hardcode_direct_absolute=$hardcode_direct_absolute
20856
20857 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20858 # into the resulting binary.
20859 hardcode_minus_L=$hardcode_minus_L
20860
20861 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20862 # into the resulting binary.
20863 hardcode_shlibpath_var=$hardcode_shlibpath_var
20864
20865 # Set to "yes" if building a shared library automatically hardcodes DIR
20866 # into the library and all subsequent libraries and executables linked
20867 # against it.
20868 hardcode_automatic=$hardcode_automatic
20869
20870 # Set to yes if linker adds runtime paths of dependent libraries
20871 # to runtime path list.
20872 inherit_rpath=$inherit_rpath
20873
20874 # Whether libtool must link a program against all its dependency libraries.
20875 link_all_deplibs=$link_all_deplibs
20876
20877 # Set to "yes" if exported symbols are required.
20878 always_export_symbols=$always_export_symbols
20879
20880 # The commands to list exported symbols.
20881 export_symbols_cmds=$lt_export_symbols_cmds
20882
20883 # Symbols that should not be listed in the preloaded symbols.
20884 exclude_expsyms=$lt_exclude_expsyms
20885
20886 # Symbols that must always be exported.
20887 include_expsyms=$lt_include_expsyms
20888
20889 # Commands necessary for linking programs (against libraries) with templates.
20890 prelink_cmds=$lt_prelink_cmds
20891
20892 # Commands necessary for finishing linking programs.
20893 postlink_cmds=$lt_postlink_cmds
20894
20895 # Specify filename containing input files.
20896 file_list_spec=$lt_file_list_spec
20897
20898 # How to hardcode a shared library path into an executable.
20899 hardcode_action=$hardcode_action
20900
20901 # The directories searched by this compiler when creating a shared library.
20902 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20903
20904 # Dependencies to place before and after the objects being linked to
20905 # create a shared library.
20906 predep_objects=$lt_predep_objects
20907 postdep_objects=$lt_postdep_objects
20908 predeps=$lt_predeps
20909 postdeps=$lt_postdeps
20910
20911 # The library search path used internally by the compiler when linking
20912 # a shared library.
20913 compiler_lib_search_path=$lt_compiler_lib_search_path
20914
20915 # ### END LIBTOOL CONFIG
20916
20917 _LT_EOF
20918
20919   case $host_os in
20920   aix3*)
20921     cat <<\_LT_EOF >> "$cfgfile"
20922 # AIX sometimes has problems with the GCC collect2 program.  For some
20923 # reason, if we set the COLLECT_NAMES environment variable, the problems
20924 # vanish in a puff of smoke.
20925 if test "X${COLLECT_NAMES+set}" != Xset; then
20926   COLLECT_NAMES=
20927   export COLLECT_NAMES
20928 fi
20929 _LT_EOF
20930     ;;
20931   esac
20932
20933
20934 ltmain="$ac_aux_dir/ltmain.sh"
20935
20936
20937   # We use sed instead of cat because bash on DJGPP gets confused if
20938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20939   # text mode, it properly converts lines to CR/LF.  This bash problem
20940   # is reportedly fixed, but why not run on old versions too?
20941   sed '$q' "$ltmain" >> "$cfgfile" \
20942      || (rm -f "$cfgfile"; exit 1)
20943
20944   if test x"$xsi_shell" = xyes; then
20945   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20946 func_dirname ()\
20947 {\
20948 \    case ${1} in\
20949 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20950 \      *  ) func_dirname_result="${3}" ;;\
20951 \    esac\
20952 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20953   && mv -f "$cfgfile.tmp" "$cfgfile" \
20954     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20955 test 0 -eq $? || _lt_function_replace_fail=:
20956
20957
20958   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20959 func_basename ()\
20960 {\
20961 \    func_basename_result="${1##*/}"\
20962 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20963   && mv -f "$cfgfile.tmp" "$cfgfile" \
20964     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20965 test 0 -eq $? || _lt_function_replace_fail=:
20966
20967
20968   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20969 func_dirname_and_basename ()\
20970 {\
20971 \    case ${1} in\
20972 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20973 \      *  ) func_dirname_result="${3}" ;;\
20974 \    esac\
20975 \    func_basename_result="${1##*/}"\
20976 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20977   && mv -f "$cfgfile.tmp" "$cfgfile" \
20978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20979 test 0 -eq $? || _lt_function_replace_fail=:
20980
20981
20982   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20983 func_stripname ()\
20984 {\
20985 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20986 \    # positional parameters, so assign one to ordinary parameter first.\
20987 \    func_stripname_result=${3}\
20988 \    func_stripname_result=${func_stripname_result#"${1}"}\
20989 \    func_stripname_result=${func_stripname_result%"${2}"}\
20990 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20991   && mv -f "$cfgfile.tmp" "$cfgfile" \
20992     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20993 test 0 -eq $? || _lt_function_replace_fail=:
20994
20995
20996   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20997 func_split_long_opt ()\
20998 {\
20999 \    func_split_long_opt_name=${1%%=*}\
21000 \    func_split_long_opt_arg=${1#*=}\
21001 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21002   && mv -f "$cfgfile.tmp" "$cfgfile" \
21003     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21004 test 0 -eq $? || _lt_function_replace_fail=:
21005
21006
21007   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21008 func_split_short_opt ()\
21009 {\
21010 \    func_split_short_opt_arg=${1#??}\
21011 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21012 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21013   && mv -f "$cfgfile.tmp" "$cfgfile" \
21014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21015 test 0 -eq $? || _lt_function_replace_fail=:
21016
21017
21018   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21019 func_lo2o ()\
21020 {\
21021 \    case ${1} in\
21022 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21023 \      *)    func_lo2o_result=${1} ;;\
21024 \    esac\
21025 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21026   && mv -f "$cfgfile.tmp" "$cfgfile" \
21027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21028 test 0 -eq $? || _lt_function_replace_fail=:
21029
21030
21031   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21032 func_xform ()\
21033 {\
21034     func_xform_result=${1%.*}.lo\
21035 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21036   && mv -f "$cfgfile.tmp" "$cfgfile" \
21037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21038 test 0 -eq $? || _lt_function_replace_fail=:
21039
21040
21041   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21042 func_arith ()\
21043 {\
21044     func_arith_result=$(( $* ))\
21045 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21046   && mv -f "$cfgfile.tmp" "$cfgfile" \
21047     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21048 test 0 -eq $? || _lt_function_replace_fail=:
21049
21050
21051   sed -e '/^func_len ()$/,/^} # func_len /c\
21052 func_len ()\
21053 {\
21054     func_len_result=${#1}\
21055 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21056   && mv -f "$cfgfile.tmp" "$cfgfile" \
21057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21058 test 0 -eq $? || _lt_function_replace_fail=:
21059
21060 fi
21061
21062 if test x"$lt_shell_append" = xyes; then
21063   sed -e '/^func_append ()$/,/^} # func_append /c\
21064 func_append ()\
21065 {\
21066     eval "${1}+=\\${2}"\
21067 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21068   && mv -f "$cfgfile.tmp" "$cfgfile" \
21069     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21070 test 0 -eq $? || _lt_function_replace_fail=:
21071
21072
21073   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21074 func_append_quoted ()\
21075 {\
21076 \    func_quote_for_eval "${2}"\
21077 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21078 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21079   && mv -f "$cfgfile.tmp" "$cfgfile" \
21080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21081 test 0 -eq $? || _lt_function_replace_fail=:
21082
21083
21084   # Save a `func_append' function call where possible by direct use of '+='
21085   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21086     && mv -f "$cfgfile.tmp" "$cfgfile" \
21087       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088   test 0 -eq $? || _lt_function_replace_fail=:
21089 else
21090   # Save a `func_append' function call even when '+=' is not available
21091   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21092     && mv -f "$cfgfile.tmp" "$cfgfile" \
21093       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21094   test 0 -eq $? || _lt_function_replace_fail=:
21095 fi
21096
21097 if test x"$_lt_function_replace_fail" = x":"; then
21098   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21099 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21100 fi
21101
21102
21103    mv -f "$cfgfile" "$ofile" ||
21104     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21105   chmod +x "$ofile"
21106
21107
21108     cat <<_LT_EOF >> "$ofile"
21109
21110 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21111
21112 # The linker used to build libraries.
21113 LD=$lt_LD_CXX
21114
21115 # How to create reloadable object files.
21116 reload_flag=$lt_reload_flag_CXX
21117 reload_cmds=$lt_reload_cmds_CXX
21118
21119 # Commands used to build an old-style archive.
21120 old_archive_cmds=$lt_old_archive_cmds_CXX
21121
21122 # A language specific compiler.
21123 CC=$lt_compiler_CXX
21124
21125 # Is the compiler the GNU compiler?
21126 with_gcc=$GCC_CXX
21127
21128 # Compiler flag to turn off builtin functions.
21129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21130
21131 # Additional compiler flags for building library objects.
21132 pic_flag=$lt_lt_prog_compiler_pic_CXX
21133
21134 # How to pass a linker flag through the compiler.
21135 wl=$lt_lt_prog_compiler_wl_CXX
21136
21137 # Compiler flag to prevent dynamic linking.
21138 link_static_flag=$lt_lt_prog_compiler_static_CXX
21139
21140 # Does compiler simultaneously support -c and -o options?
21141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21142
21143 # Whether or not to add -lc for building shared libraries.
21144 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21145
21146 # Whether or not to disallow shared libs when runtime libs are static.
21147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21148
21149 # Compiler flag to allow reflexive dlopens.
21150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21151
21152 # Compiler flag to generate shared objects directly from archives.
21153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21154
21155 # Whether the compiler copes with passing no objects directly.
21156 compiler_needs_object=$lt_compiler_needs_object_CXX
21157
21158 # Create an old-style archive from a shared archive.
21159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21160
21161 # Create a temporary old-style archive to link instead of a shared archive.
21162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21163
21164 # Commands used to build a shared archive.
21165 archive_cmds=$lt_archive_cmds_CXX
21166 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21167
21168 # Commands used to build a loadable module if different from building
21169 # a shared archive.
21170 module_cmds=$lt_module_cmds_CXX
21171 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21172
21173 # Whether we are building with GNU ld or not.
21174 with_gnu_ld=$lt_with_gnu_ld_CXX
21175
21176 # Flag that allows shared libraries with undefined symbols to be built.
21177 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21178
21179 # Flag that enforces no undefined symbols.
21180 no_undefined_flag=$lt_no_undefined_flag_CXX
21181
21182 # Flag to hardcode \$libdir into a binary during linking.
21183 # This must work even if \$libdir does not exist
21184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21185
21186 # Whether we need a single "-rpath" flag with a separated argument.
21187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21188
21189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21190 # DIR into the resulting binary.
21191 hardcode_direct=$hardcode_direct_CXX
21192
21193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21194 # DIR into the resulting binary and the resulting library dependency is
21195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21196 # library is relocated.
21197 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21198
21199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21200 # into the resulting binary.
21201 hardcode_minus_L=$hardcode_minus_L_CXX
21202
21203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21204 # into the resulting binary.
21205 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21206
21207 # Set to "yes" if building a shared library automatically hardcodes DIR
21208 # into the library and all subsequent libraries and executables linked
21209 # against it.
21210 hardcode_automatic=$hardcode_automatic_CXX
21211
21212 # Set to yes if linker adds runtime paths of dependent libraries
21213 # to runtime path list.
21214 inherit_rpath=$inherit_rpath_CXX
21215
21216 # Whether libtool must link a program against all its dependency libraries.
21217 link_all_deplibs=$link_all_deplibs_CXX
21218
21219 # Set to "yes" if exported symbols are required.
21220 always_export_symbols=$always_export_symbols_CXX
21221
21222 # The commands to list exported symbols.
21223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21224
21225 # Symbols that should not be listed in the preloaded symbols.
21226 exclude_expsyms=$lt_exclude_expsyms_CXX
21227
21228 # Symbols that must always be exported.
21229 include_expsyms=$lt_include_expsyms_CXX
21230
21231 # Commands necessary for linking programs (against libraries) with templates.
21232 prelink_cmds=$lt_prelink_cmds_CXX
21233
21234 # Commands necessary for finishing linking programs.
21235 postlink_cmds=$lt_postlink_cmds_CXX
21236
21237 # Specify filename containing input files.
21238 file_list_spec=$lt_file_list_spec_CXX
21239
21240 # How to hardcode a shared library path into an executable.
21241 hardcode_action=$hardcode_action_CXX
21242
21243 # The directories searched by this compiler when creating a shared library.
21244 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21245
21246 # Dependencies to place before and after the objects being linked to
21247 # create a shared library.
21248 predep_objects=$lt_predep_objects_CXX
21249 postdep_objects=$lt_postdep_objects_CXX
21250 predeps=$lt_predeps_CXX
21251 postdeps=$lt_postdeps_CXX
21252
21253 # The library search path used internally by the compiler when linking
21254 # a shared library.
21255 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21256
21257 # ### END LIBTOOL TAG CONFIG: CXX
21258 _LT_EOF
21259
21260
21261 as_fn_exit 0
21262 _LTEOF
21263 chmod +x "$CONFIG_LT"
21264
21265 # configure is writing to config.log, but config.lt does its own redirection,
21266 # appending to config.log, which fails on DOS, as config.log is still kept
21267 # open by configure.  Here we exec the FD to /dev/null, effectively closing
21268 # config.log, so it can be properly (re)opened and appended to by config.lt.
21269 lt_cl_success=:
21270 test "$silent" = yes &&
21271   lt_config_lt_args="$lt_config_lt_args --quiet"
21272 exec 5>/dev/null
21273 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
21274 exec 5>>config.log
21275 $lt_cl_success || as_fn_exit 1
21276
21277
21278
21279 if test "x$GCC" = "xyes"; then
21280   case " $CFLAGS " in
21281   *[\ \ ]-Wall[\ \      ]*) ;;
21282   *) CFLAGS="$CFLAGS -Wall" ;;
21283   esac
21284 fi
21285
21286 if test "$glib_native_win32" = "yes"; then
21287   if test x$enable_static = xyes -a x$enable_shared = xyes; then
21288     as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
21289   fi
21290   if test x$enable_static = xyes; then
21291     glib_win32_static_compilation=yes
21292     GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
21293 #define GOBJECT_STATIC_COMPILATION 1"
21294
21295   fi
21296 fi
21297  if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
21298   OS_WIN32_AND_DLL_COMPILATION_TRUE=
21299   OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
21300 else
21301   OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
21302   OS_WIN32_AND_DLL_COMPILATION_FALSE=
21303 fi
21304
21305
21306 if test $cross_compiling != yes ; then
21307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
21308 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
21309     glib_save_LIBS=$LIBS
21310     LIBS="$LIBS -lm"
21311     if test "$cross_compiling" = yes; then :
21312   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21314 as_fn_error $? "cannot run test program while cross compiling
21315 See \`config.log' for more details" "$LINENO" 5; }
21316 else
21317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h.  */
21319 #include <math.h>
21320                  int main (void) { return (log(1) != log(1.)); }
21321 _ACEOF
21322 if ac_fn_c_try_run "$LINENO"; then :
21323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21324 $as_echo "none needed" >&6; }
21325 else
21326   glib_save_CFLAGS=$CFLAGS
21327          CFLAGS="$CFLAGS -std1"
21328          if test "$cross_compiling" = yes; then :
21329   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21331 as_fn_error $? "cannot run test program while cross compiling
21332 See \`config.log' for more details" "$LINENO" 5; }
21333 else
21334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h.  */
21336 #include <math.h>
21337                      int main (void) { return (log(1) != log(1.)); }
21338 _ACEOF
21339 if ac_fn_c_try_run "$LINENO"; then :
21340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
21341 $as_echo "-std1" >&6; }
21342 else
21343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21344 $as_echo "" >&6; }
21345              CFLAGS=$glib_save_CFLAGS
21346              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
21347 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
21348
21349 fi
21350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21351   conftest.$ac_objext conftest.beam conftest.$ac_ext
21352 fi
21353
21354
21355 fi
21356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21357   conftest.$ac_objext conftest.beam conftest.$ac_ext
21358 fi
21359
21360     LIBS=$glib_save_LIBS
21361 fi
21362
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
21364 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h.  */
21367 #include <dirent.h>
21368 int
21369 main ()
21370 {
21371 DIR *dir;
21372   ;
21373   return 0;
21374 }
21375 _ACEOF
21376 if ac_fn_c_try_compile "$LINENO"; then :
21377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21378 $as_echo "none needed" >&6; }
21379 else
21380   glib_save_CFLAGS=$CFLAGS
21381   CFLAGS="$CFLAGS -posix"
21382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21383 /* end confdefs.h.  */
21384 #include <dirent.h>
21385 int
21386 main ()
21387 {
21388 DIR *dir;
21389   ;
21390   return 0;
21391 }
21392 _ACEOF
21393 if ac_fn_c_try_compile "$LINENO"; then :
21394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
21395 $as_echo "-posix" >&6; }
21396 else
21397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21398 $as_echo "" >&6; }
21399     CFLAGS=$glib_save_CFLAGS
21400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
21401 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
21402 fi
21403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21404 fi
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406
21407 # Checks for library functions.
21408 for ac_func in vprintf
21409 do :
21410   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21411 if test "x$ac_cv_func_vprintf" = xyes; then :
21412   cat >>confdefs.h <<_ACEOF
21413 #define HAVE_VPRINTF 1
21414 _ACEOF
21415
21416 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21417 if test "x$ac_cv_func__doprnt" = xyes; then :
21418
21419 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21420
21421 fi
21422
21423 fi
21424 done
21425
21426
21427 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21428 if test "x$ac_cv_type_size_t" = xyes; then :
21429
21430 else
21431
21432 cat >>confdefs.h <<_ACEOF
21433 #define size_t unsigned int
21434 _ACEOF
21435
21436 fi
21437
21438 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21439 # for constant arguments.  Useless!
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21441 $as_echo_n "checking for working alloca.h... " >&6; }
21442 if ${ac_cv_working_alloca_h+:} false; then :
21443   $as_echo_n "(cached) " >&6
21444 else
21445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21446 /* end confdefs.h.  */
21447 #include <alloca.h>
21448 int
21449 main ()
21450 {
21451 char *p = (char *) alloca (2 * sizeof (int));
21452                           if (p) return 0;
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 if ac_fn_c_try_link "$LINENO"; then :
21458   ac_cv_working_alloca_h=yes
21459 else
21460   ac_cv_working_alloca_h=no
21461 fi
21462 rm -f core conftest.err conftest.$ac_objext \
21463     conftest$ac_exeext conftest.$ac_ext
21464 fi
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21466 $as_echo "$ac_cv_working_alloca_h" >&6; }
21467 if test $ac_cv_working_alloca_h = yes; then
21468
21469 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21470
21471 fi
21472
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21474 $as_echo_n "checking for alloca... " >&6; }
21475 if ${ac_cv_func_alloca_works+:} false; then :
21476   $as_echo_n "(cached) " >&6
21477 else
21478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h.  */
21480 #ifdef __GNUC__
21481 # define alloca __builtin_alloca
21482 #else
21483 # ifdef _MSC_VER
21484 #  include <malloc.h>
21485 #  define alloca _alloca
21486 # else
21487 #  ifdef HAVE_ALLOCA_H
21488 #   include <alloca.h>
21489 #  else
21490 #   ifdef _AIX
21491  #pragma alloca
21492 #   else
21493 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21494 void *alloca (size_t);
21495 #    endif
21496 #   endif
21497 #  endif
21498 # endif
21499 #endif
21500
21501 int
21502 main ()
21503 {
21504 char *p = (char *) alloca (1);
21505                                     if (p) return 0;
21506   ;
21507   return 0;
21508 }
21509 _ACEOF
21510 if ac_fn_c_try_link "$LINENO"; then :
21511   ac_cv_func_alloca_works=yes
21512 else
21513   ac_cv_func_alloca_works=no
21514 fi
21515 rm -f core conftest.err conftest.$ac_objext \
21516     conftest$ac_exeext conftest.$ac_ext
21517 fi
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21519 $as_echo "$ac_cv_func_alloca_works" >&6; }
21520
21521 if test $ac_cv_func_alloca_works = yes; then
21522
21523 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21524
21525 else
21526   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21527 # that cause trouble.  Some versions do not even contain alloca or
21528 # contain a buggy version.  If you still want to use their alloca,
21529 # use ar to extract alloca.o from them instead of compiling alloca.c.
21530
21531 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21532
21533 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21534
21535
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21537 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21538 if ${ac_cv_os_cray+:} false; then :
21539   $as_echo_n "(cached) " >&6
21540 else
21541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h.  */
21543 #if defined CRAY && ! defined CRAY2
21544 webecray
21545 #else
21546 wenotbecray
21547 #endif
21548
21549 _ACEOF
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551   $EGREP "webecray" >/dev/null 2>&1; then :
21552   ac_cv_os_cray=yes
21553 else
21554   ac_cv_os_cray=no
21555 fi
21556 rm -f conftest*
21557
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21560 $as_echo "$ac_cv_os_cray" >&6; }
21561 if test $ac_cv_os_cray = yes; then
21562   for ac_func in _getb67 GETB67 getb67; do
21563     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21566
21567 cat >>confdefs.h <<_ACEOF
21568 #define CRAY_STACKSEG_END $ac_func
21569 _ACEOF
21570
21571     break
21572 fi
21573
21574   done
21575 fi
21576
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21578 $as_echo_n "checking stack direction for C alloca... " >&6; }
21579 if ${ac_cv_c_stack_direction+:} false; then :
21580   $as_echo_n "(cached) " >&6
21581 else
21582   if test "$cross_compiling" = yes; then :
21583   ac_cv_c_stack_direction=0
21584 else
21585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h.  */
21587 $ac_includes_default
21588 int
21589 find_stack_direction ()
21590 {
21591   static char *addr = 0;
21592   auto char dummy;
21593   if (addr == 0)
21594     {
21595       addr = &dummy;
21596       return find_stack_direction ();
21597     }
21598   else
21599     return (&dummy > addr) ? 1 : -1;
21600 }
21601
21602 int
21603 main ()
21604 {
21605   return find_stack_direction () < 0;
21606 }
21607 _ACEOF
21608 if ac_fn_c_try_run "$LINENO"; then :
21609   ac_cv_c_stack_direction=1
21610 else
21611   ac_cv_c_stack_direction=-1
21612 fi
21613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21614   conftest.$ac_objext conftest.beam conftest.$ac_ext
21615 fi
21616
21617 fi
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21619 $as_echo "$ac_cv_c_stack_direction" >&6; }
21620 cat >>confdefs.h <<_ACEOF
21621 #define STACK_DIRECTION $ac_cv_c_stack_direction
21622 _ACEOF
21623
21624
21625 fi
21626
21627 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
21628 do :
21629   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21632   cat >>confdefs.h <<_ACEOF
21633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21634 _ACEOF
21635
21636 fi
21637 done
21638
21639 for ac_func in atexit on_exit timegm gmtime_r
21640 do :
21641   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21643 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21644   cat >>confdefs.h <<_ACEOF
21645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21646 _ACEOF
21647
21648 fi
21649 done
21650
21651
21652 # The cast to long int works around a bug in the HP C Compiler
21653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21655 # This bug is HP SR number 8606223364.
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
21657 $as_echo_n "checking size of char... " >&6; }
21658 if ${ac_cv_sizeof_char+:} false; then :
21659   $as_echo_n "(cached) " >&6
21660 else
21661   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
21662
21663 else
21664   if test "$ac_cv_type_char" = yes; then
21665      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21667 as_fn_error 77 "cannot compute sizeof (char)
21668 See \`config.log' for more details" "$LINENO" 5; }
21669    else
21670      ac_cv_sizeof_char=0
21671    fi
21672 fi
21673
21674 fi
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
21676 $as_echo "$ac_cv_sizeof_char" >&6; }
21677
21678
21679
21680 cat >>confdefs.h <<_ACEOF
21681 #define SIZEOF_CHAR $ac_cv_sizeof_char
21682 _ACEOF
21683
21684
21685 # The cast to long int works around a bug in the HP C Compiler
21686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21688 # This bug is HP SR number 8606223364.
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21690 $as_echo_n "checking size of short... " >&6; }
21691 if ${ac_cv_sizeof_short+:} false; then :
21692   $as_echo_n "(cached) " >&6
21693 else
21694   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21695
21696 else
21697   if test "$ac_cv_type_short" = yes; then
21698      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21700 as_fn_error 77 "cannot compute sizeof (short)
21701 See \`config.log' for more details" "$LINENO" 5; }
21702    else
21703      ac_cv_sizeof_short=0
21704    fi
21705 fi
21706
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21709 $as_echo "$ac_cv_sizeof_short" >&6; }
21710
21711
21712
21713 cat >>confdefs.h <<_ACEOF
21714 #define SIZEOF_SHORT $ac_cv_sizeof_short
21715 _ACEOF
21716
21717
21718 # The cast to long int works around a bug in the HP C Compiler
21719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21721 # This bug is HP SR number 8606223364.
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21723 $as_echo_n "checking size of long... " >&6; }
21724 if ${ac_cv_sizeof_long+:} false; then :
21725   $as_echo_n "(cached) " >&6
21726 else
21727   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21728
21729 else
21730   if test "$ac_cv_type_long" = yes; then
21731      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21733 as_fn_error 77 "cannot compute sizeof (long)
21734 See \`config.log' for more details" "$LINENO" 5; }
21735    else
21736      ac_cv_sizeof_long=0
21737    fi
21738 fi
21739
21740 fi
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21742 $as_echo "$ac_cv_sizeof_long" >&6; }
21743
21744
21745
21746 cat >>confdefs.h <<_ACEOF
21747 #define SIZEOF_LONG $ac_cv_sizeof_long
21748 _ACEOF
21749
21750
21751 # The cast to long int works around a bug in the HP C Compiler
21752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21754 # This bug is HP SR number 8606223364.
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21756 $as_echo_n "checking size of int... " >&6; }
21757 if ${ac_cv_sizeof_int+:} false; then :
21758   $as_echo_n "(cached) " >&6
21759 else
21760   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21761
21762 else
21763   if test "$ac_cv_type_int" = yes; then
21764      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21766 as_fn_error 77 "cannot compute sizeof (int)
21767 See \`config.log' for more details" "$LINENO" 5; }
21768    else
21769      ac_cv_sizeof_int=0
21770    fi
21771 fi
21772
21773 fi
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21775 $as_echo "$ac_cv_sizeof_int" >&6; }
21776
21777
21778
21779 cat >>confdefs.h <<_ACEOF
21780 #define SIZEOF_INT $ac_cv_sizeof_int
21781 _ACEOF
21782
21783
21784 # The cast to long int works around a bug in the HP C Compiler
21785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21787 # This bug is HP SR number 8606223364.
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21789 $as_echo_n "checking size of void *... " >&6; }
21790 if ${ac_cv_sizeof_void_p+:} false; then :
21791   $as_echo_n "(cached) " >&6
21792 else
21793   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
21794
21795 else
21796   if test "$ac_cv_type_void_p" = yes; then
21797      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21799 as_fn_error 77 "cannot compute sizeof (void *)
21800 See \`config.log' for more details" "$LINENO" 5; }
21801    else
21802      ac_cv_sizeof_void_p=0
21803    fi
21804 fi
21805
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21808 $as_echo "$ac_cv_sizeof_void_p" >&6; }
21809
21810
21811
21812 cat >>confdefs.h <<_ACEOF
21813 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21814 _ACEOF
21815
21816
21817 # The cast to long int works around a bug in the HP C Compiler
21818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21820 # This bug is HP SR number 8606223364.
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21822 $as_echo_n "checking size of long long... " >&6; }
21823 if ${ac_cv_sizeof_long_long+:} false; then :
21824   $as_echo_n "(cached) " >&6
21825 else
21826   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
21827
21828 else
21829   if test "$ac_cv_type_long_long" = yes; then
21830      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21832 as_fn_error 77 "cannot compute sizeof (long long)
21833 See \`config.log' for more details" "$LINENO" 5; }
21834    else
21835      ac_cv_sizeof_long_long=0
21836    fi
21837 fi
21838
21839 fi
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21841 $as_echo "$ac_cv_sizeof_long_long" >&6; }
21842
21843
21844
21845 cat >>confdefs.h <<_ACEOF
21846 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21847 _ACEOF
21848
21849
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
21855 $as_echo_n "checking size of __int64... " >&6; }
21856 if ${ac_cv_sizeof___int64+:} false; then :
21857   $as_echo_n "(cached) " >&6
21858 else
21859   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
21860
21861 else
21862   if test "$ac_cv_type___int64" = yes; then
21863      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21865 as_fn_error 77 "cannot compute sizeof (__int64)
21866 See \`config.log' for more details" "$LINENO" 5; }
21867    else
21868      ac_cv_sizeof___int64=0
21869    fi
21870 fi
21871
21872 fi
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
21874 $as_echo "$ac_cv_sizeof___int64" >&6; }
21875
21876
21877
21878 cat >>confdefs.h <<_ACEOF
21879 #define SIZEOF___INT64 $ac_cv_sizeof___int64
21880 _ACEOF
21881
21882
21883
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
21885 $as_echo_n "checking for sig_atomic_t... " >&6; }
21886 if ${ac_cv_type_sig_atomic_t+:} false; then :
21887   $as_echo_n "(cached) " >&6
21888 else
21889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h.  */
21891 #include <signal.h>
21892      #include <sys/types.h>
21893      sig_atomic_t val = 42;
21894 int
21895 main ()
21896 {
21897 return val == 42 ? 0 : 1
21898   ;
21899   return 0;
21900 }
21901 _ACEOF
21902 if ac_fn_c_try_link "$LINENO"; then :
21903   ac_cv_type_sig_atomic_t=yes
21904 else
21905   ac_cv_type_sig_atomic_t=no
21906 fi
21907 rm -f core conftest.err conftest.$ac_objext \
21908     conftest$ac_exeext conftest.$ac_ext
21909 fi
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
21911 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
21912 if test x$ac_cv_type_sig_atomic_t = xyes; then
21913
21914 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
21915
21916 fi
21917
21918 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
21919   :
21920 else
21921   as_fn_error $? "
21922 *** GLib requires a 64 bit type. You might want to consider
21923 *** using the GNU C compiler.
21924 " "$LINENO" 5
21925 fi
21926
21927 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
21928         # long long is a 64 bit integer.
21929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21930 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21931         if ${glib_cv_long_long_format+:} false; then :
21932   $as_echo_n "(cached) " >&6
21933 else
21934
21935                 for format in ll q I64; do
21936                   if test "$cross_compiling" = yes; then :
21937   :
21938 else
21939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21940 /* end confdefs.h.  */
21941 #include <stdio.h>
21942                         int main()
21943                         {
21944                           long long b, a = -0x3AFAFAFAFAFAFAFALL;
21945                           char buffer[1000];
21946                           sprintf (buffer, "%${format}u", a);
21947                           sscanf (buffer, "%${format}u", &b);
21948                           exit (b!=a);
21949                         }
21950
21951 _ACEOF
21952 if ac_fn_c_try_run "$LINENO"; then :
21953   glib_cv_long_long_format=${format}
21954                         break
21955 fi
21956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21957   conftest.$ac_objext conftest.beam conftest.$ac_ext
21958 fi
21959
21960                 done
21961 fi
21962
21963         if test -n "$glib_cv_long_long_format"; then
21964           { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21965 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21966
21967 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21968
21969           if test x"$glib_cv_long_long_format" = xI64; then
21970
21971 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21972
21973           fi
21974         else
21975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21976 $as_echo "none" >&6; }
21977         fi
21978 elif test x$ac_cv_sizeof___int64 = x8; then
21979         # __int64 is a 64 bit integer.
21980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21981 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21982         # We know this is MSVCRT.DLL, and what the formats are
21983         glib_cv_long_long_format=I64
21984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21985 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21986
21987 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21988
21989
21990 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21991
21992 fi
21993
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21995 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21996 if ${ac_cv_c_const+:} false; then :
21997   $as_echo_n "(cached) " >&6
21998 else
21999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22000 /* end confdefs.h.  */
22001
22002 int
22003 main ()
22004 {
22005 /* FIXME: Include the comments suggested by Paul. */
22006 #ifndef __cplusplus
22007   /* Ultrix mips cc rejects this.  */
22008   typedef int charset[2];
22009   const charset cs;
22010   /* SunOS 4.1.1 cc rejects this.  */
22011   char const *const *pcpcc;
22012   char **ppc;
22013   /* NEC SVR4.0.2 mips cc rejects this.  */
22014   struct point {int x, y;};
22015   static struct point const zero = {0,0};
22016   /* AIX XL C 1.02.0.0 rejects this.
22017      It does not let you subtract one const X* pointer from another in
22018      an arm of an if-expression whose if-part is not a constant
22019      expression */
22020   const char *g = "string";
22021   pcpcc = &g + (g ? g-g : 0);
22022   /* HPUX 7.0 cc rejects these. */
22023   ++pcpcc;
22024   ppc = (char**) pcpcc;
22025   pcpcc = (char const *const *) ppc;
22026   { /* SCO 3.2v4 cc rejects this.  */
22027     char *t;
22028     char const *s = 0 ? (char *) 0 : (char const *) 0;
22029
22030     *t++ = 0;
22031     if (s) return 0;
22032   }
22033   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22034     int x[] = {25, 17};
22035     const int *foo = &x[0];
22036     ++foo;
22037   }
22038   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22039     typedef const int *iptr;
22040     iptr p = 0;
22041     ++p;
22042   }
22043   { /* AIX XL C 1.02.0.0 rejects this saying
22044        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22045     struct s { int j; const int *ap[3]; };
22046     struct s *b; b->j = 5;
22047   }
22048   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22049     const int foo = 10;
22050     if (!foo) return 0;
22051   }
22052   return !cs[0] && !zero.x;
22053 #endif
22054
22055   ;
22056   return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_compile "$LINENO"; then :
22060   ac_cv_c_const=yes
22061 else
22062   ac_cv_c_const=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22067 $as_echo "$ac_cv_c_const" >&6; }
22068 if test $ac_cv_c_const = no; then
22069
22070 $as_echo "#define const /**/" >>confdefs.h
22071
22072 fi
22073
22074
22075 SANE_MALLOC_PROTOS=no
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
22077 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
22078 glib_save_CFLAGS=$CFLAGS
22079 if test "x$GCC" = "xyes"; then
22080   CFLAGS="$CFLAGS -Werror"
22081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h.  */
22083 #include <stdlib.h>
22084 int
22085 main ()
22086 {
22087
22088     void* (*my_calloc_p)  (size_t, size_t) = calloc;
22089     void* (*my_malloc_p)  (size_t)         = malloc;
22090     void  (*my_free_p)    (void*)          = free;
22091     void* (*my_realloc_p) (void*, size_t)  = realloc;
22092     my_calloc_p = 0;
22093     my_malloc_p = 0;
22094     my_free_p = 0;
22095     my_realloc_p = 0;
22096
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 if ac_fn_c_try_compile "$LINENO"; then :
22102
22103 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
22104
22105     SANE_MALLOC_PROTOS=yes
22106 fi
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
22110 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
22111 CFLAGS=$glib_save_CFLAGS
22112
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
22114 $as_echo_n "checking for growing stack pointer... " >&6; }
22115 if ${glib_cv_stack_grows+:} false; then :
22116   $as_echo_n "(cached) " >&6
22117 else
22118
22119         if test "$cross_compiling" = yes; then :
22120   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22122 as_fn_error $? "cannot run test program while cross compiling
22123 See \`config.log' for more details" "$LINENO" 5; }
22124 else
22125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22126 /* end confdefs.h.  */
22127
22128         volatile int *a = 0, *b = 0;
22129         void foo (void);
22130         int main () { volatile int y = 7; a = &y; foo (); return b > a; }
22131         void foo (void) { volatile int x = 5; b = &x; }
22132
22133 _ACEOF
22134 if ac_fn_c_try_run "$LINENO"; then :
22135   glib_cv_stack_grows=no
22136
22137 else
22138   glib_cv_stack_grows=yes
22139
22140 fi
22141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22142   conftest.$ac_objext conftest.beam conftest.$ac_ext
22143 fi
22144
22145
22146 fi
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
22148 $as_echo "$glib_cv_stack_grows" >&6; }
22149
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
22151 $as_echo_n "checking for __inline... " >&6; }
22152 if ${glib_cv_has__inline+:} false; then :
22153   $as_echo_n "(cached) " >&6
22154 else
22155
22156         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h.  */
22158
22159         __inline int foo () { return 0; }
22160         int main () { return foo (); }
22161
22162 _ACEOF
22163 if ac_fn_c_try_compile "$LINENO"; then :
22164   glib_cv_has__inline=yes
22165
22166 else
22167   glib_cv_has__inline=no
22168
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171
22172 fi
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
22174 $as_echo "$glib_cv_has__inline" >&6; }
22175 case x$glib_cv_has__inline in
22176 xyes)
22177 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
22178
22179 esac
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
22181 $as_echo_n "checking for __inline__... " >&6; }
22182 if ${glib_cv_has__inline__+:} false; then :
22183   $as_echo_n "(cached) " >&6
22184 else
22185
22186         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22187 /* end confdefs.h.  */
22188
22189         __inline__ int foo () { return 0; }
22190         int main () { return foo (); }
22191
22192 _ACEOF
22193 if ac_fn_c_try_compile "$LINENO"; then :
22194   glib_cv_has__inline__=yes
22195
22196 else
22197   glib_cv_has__inline__=no
22198
22199 fi
22200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201
22202 fi
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
22204 $as_echo "$glib_cv_has__inline__" >&6; }
22205 case x$glib_cv_has__inline__ in
22206 xyes)
22207 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
22208
22209 esac
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22211 $as_echo_n "checking for inline... " >&6; }
22212 if ${glib_cv_hasinline+:} false; then :
22213   $as_echo_n "(cached) " >&6
22214 else
22215
22216         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h.  */
22218
22219         #undef inline
22220         inline int foo () { return 0; }
22221         int main () { return foo (); }
22222
22223 _ACEOF
22224 if ac_fn_c_try_compile "$LINENO"; then :
22225   glib_cv_hasinline=yes
22226
22227 else
22228   glib_cv_hasinline=no
22229
22230 fi
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232
22233 fi
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
22235 $as_echo "$glib_cv_hasinline" >&6; }
22236 case x$glib_cv_hasinline in
22237 xyes)
22238 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
22239
22240 esac
22241
22242 # if we can use inline functions in headers
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
22244 $as_echo_n "checking if inline functions in headers work... " >&6; }
22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22246 /* end confdefs.h.  */
22247
22248 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
22249 #  undef inline
22250 #  define inline __inline__
22251 #elif !defined (G_HAVE_INLINE)
22252 #  undef inline
22253 #  if defined (G_HAVE___INLINE__)
22254 #    define inline __inline__
22255 #  elif defined (G_HAVE___INLINE)
22256 #    define inline __inline
22257 #  endif
22258 #endif
22259
22260 int glib_test_func2 (int);
22261
22262 static inline int
22263 glib_test_func1 (void) {
22264   return glib_test_func2 (1);
22265 }
22266
22267 int
22268 main (void) {
22269   int i = 1;
22270 }
22271 _ACEOF
22272 if ac_fn_c_try_link "$LINENO"; then :
22273   g_can_inline=yes
22274 else
22275   g_can_inline=no
22276 fi
22277 rm -f core conftest.err conftest.$ac_objext \
22278     conftest$ac_exeext conftest.$ac_ext
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
22280 $as_echo "$g_can_inline" >&6; }
22281
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
22283 $as_echo_n "checking for working do while(0) macros... " >&6; }
22284 if ${g_cv_support_dowhile_macros+:} false; then :
22285   $as_echo_n "(cached) " >&6
22286 else
22287
22288         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h.  */
22290
22291 int
22292 main ()
22293 {
22294
22295         #define STMT_START do
22296         #define STMT_END while(0)
22297         #define STMT_TEST STMT_START { i = 0; } STMT_END
22298         int main(void) { int i = 1; STMT_TEST; return i; }
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 if ac_fn_c_try_compile "$LINENO"; then :
22304   g_cv_support_dowhile_macros=yes
22305 else
22306   g_cv_support_dowhile_macros=no
22307 fi
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309
22310 fi
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
22312 $as_echo "$g_cv_support_dowhile_macros" >&6; }
22313 if test x$g_cv_support_dowhile_macros = xyes; then
22314
22315 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
22316
22317 fi
22318
22319 # check for flavours of varargs macros
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
22321 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h.  */
22324
22325 int
22326 main ()
22327 {
22328
22329 int a(int p1, int p2, int p3);
22330 #define call_a(...) a(1,__VA_ARGS__)
22331 call_a(2,3);
22332
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 if ac_fn_c_try_compile "$LINENO"; then :
22338   g_have_iso_c_varargs=yes
22339 else
22340   g_have_iso_c_varargs=no
22341 fi
22342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
22344 $as_echo "$g_have_iso_c_varargs" >&6; }
22345
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
22347 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
22348 if test "$CXX" = ""; then
22349   g_have_iso_cxx_varargs=no
22350 else
22351   ac_ext=cpp
22352 ac_cpp='$CXXCPP $CPPFLAGS'
22353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22356
22357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h.  */
22359
22360 int
22361 main ()
22362 {
22363
22364 int a(int p1, int p2, int p3);
22365 #define call_a(...) a(1,__VA_ARGS__)
22366 call_a(2,3);
22367
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 if ac_fn_cxx_try_compile "$LINENO"; then :
22373   g_have_iso_cxx_varargs=yes
22374 else
22375   g_have_iso_cxx_varargs=no
22376 fi
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378   ac_ext=c
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383
22384 fi
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
22386 $as_echo "$g_have_iso_cxx_varargs" >&6; }
22387
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
22389 $as_echo_n "checking for GNUC varargs macros... " >&6; }
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h.  */
22392
22393 int
22394 main ()
22395 {
22396
22397 int a(int p1, int p2, int p3);
22398 #define call_a(params...) a(1,params)
22399 call_a(2,3);
22400
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 if ac_fn_c_try_compile "$LINENO"; then :
22406   g_have_gnuc_varargs=yes
22407 else
22408   g_have_gnuc_varargs=no
22409 fi
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
22412 $as_echo "$g_have_gnuc_varargs" >&6; }
22413
22414 # check for GNUC visibility support
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
22416 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h.  */
22419
22420 void
22421 __attribute__ ((visibility ("hidden")))
22422      f_hidden (void)
22423 {
22424 }
22425 void
22426 __attribute__ ((visibility ("internal")))
22427      f_internal (void)
22428 {
22429 }
22430 void
22431 __attribute__ ((visibility ("protected")))
22432      f_protected (void)
22433 {
22434 }
22435 void
22436 __attribute__ ((visibility ("default")))
22437      f_default (void)
22438 {
22439 }
22440 int main (int argc, char **argv)
22441 {
22442         f_hidden();
22443         f_internal();
22444         f_protected();
22445         f_default();
22446         return 0;
22447 }
22448
22449 _ACEOF
22450 rm -f conftest.$ac_objext
22451 glib_ac_compile_save="$ac_compile"
22452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22454   (eval $ac_compile) 2>conftest.err
22455   ac_status=$?
22456   if test -s conftest.err; then
22457     grep -v '^ *+' conftest.err >conftest.er1
22458     cat conftest.er1 >&5
22459     mv -f conftest.er1 conftest.err
22460   fi
22461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22462   test $ac_status = 0; } &&
22463          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22464   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465   (eval $ac_try) 2>&5
22466   ac_status=$?
22467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468   test $ac_status = 0; }; }; then :
22469   g_have_gnuc_visibility=yes
22470 else
22471   echo "$as_me: failed program was:" >&5
22472 cat conftest.$ac_ext >&5
22473 g_have_gnuc_visibility=no
22474 fi
22475 ac_compile="$glib_ac_compile_save"
22476 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
22478 $as_echo "$g_have_gnuc_visibility" >&6; }
22479  if test x$g_have_gnuc_visibility = xyes; then
22480   HAVE_GNUC_VISIBILITY_TRUE=
22481   HAVE_GNUC_VISIBILITY_FALSE='#'
22482 else
22483   HAVE_GNUC_VISIBILITY_TRUE='#'
22484   HAVE_GNUC_VISIBILITY_FALSE=
22485 fi
22486
22487
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
22489 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h.  */
22492 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
22493 #else
22494 # include "error: this is not Sun Studio."
22495 #endif
22496
22497 int
22498 main ()
22499 {
22500
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_compile "$LINENO"; then :
22506    g_have_sunstudio_visibility=yes
22507 else
22508    g_have_sunstudio_visibility=no
22509 fi
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
22512 $as_echo "$g_have_sunstudio_visibility" >&6; }
22513  if test x$g_have_sunstudio_visibility = xyes; then
22514   HAVE_SUNSTUDIO_VISIBILITY_TRUE=
22515   HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
22516 else
22517   HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
22518   HAVE_SUNSTUDIO_VISIBILITY_FALSE=
22519 fi
22520
22521
22522 # check for bytesex stuff
22523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22524 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22525 if ${ac_cv_c_bigendian+:} false; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528   ac_cv_c_bigendian=unknown
22529     # See if we're dealing with a universal compiler.
22530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h.  */
22532 #ifndef __APPLE_CC__
22533                not a universal capable compiler
22534              #endif
22535              typedef int dummy;
22536
22537 _ACEOF
22538 if ac_fn_c_try_compile "$LINENO"; then :
22539
22540         # Check for potential -arch flags.  It is not universal unless
22541         # there are at least two -arch flags with different values.
22542         ac_arch=
22543         ac_prev=
22544         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22545          if test -n "$ac_prev"; then
22546            case $ac_word in
22547              i?86 | x86_64 | ppc | ppc64)
22548                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22549                  ac_arch=$ac_word
22550                else
22551                  ac_cv_c_bigendian=universal
22552                  break
22553                fi
22554                ;;
22555            esac
22556            ac_prev=
22557          elif test "x$ac_word" = "x-arch"; then
22558            ac_prev=arch
22559          fi
22560        done
22561 fi
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563     if test $ac_cv_c_bigendian = unknown; then
22564       # See if sys/param.h defines the BYTE_ORDER macro.
22565       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h.  */
22567 #include <sys/types.h>
22568              #include <sys/param.h>
22569
22570 int
22571 main ()
22572 {
22573 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22574                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22575                      && LITTLE_ENDIAN)
22576               bogus endian macros
22577              #endif
22578
22579   ;
22580   return 0;
22581 }
22582 _ACEOF
22583 if ac_fn_c_try_compile "$LINENO"; then :
22584   # It does; now see whether it defined to BIG_ENDIAN or not.
22585          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22586 /* end confdefs.h.  */
22587 #include <sys/types.h>
22588                 #include <sys/param.h>
22589
22590 int
22591 main ()
22592 {
22593 #if BYTE_ORDER != BIG_ENDIAN
22594                  not big endian
22595                 #endif
22596
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 if ac_fn_c_try_compile "$LINENO"; then :
22602   ac_cv_c_bigendian=yes
22603 else
22604   ac_cv_c_bigendian=no
22605 fi
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607 fi
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609     fi
22610     if test $ac_cv_c_bigendian = unknown; then
22611       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613 /* end confdefs.h.  */
22614 #include <limits.h>
22615
22616 int
22617 main ()
22618 {
22619 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22620               bogus endian macros
22621              #endif
22622
22623   ;
22624   return 0;
22625 }
22626 _ACEOF
22627 if ac_fn_c_try_compile "$LINENO"; then :
22628   # It does; now see whether it defined to _BIG_ENDIAN or not.
22629          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h.  */
22631 #include <limits.h>
22632
22633 int
22634 main ()
22635 {
22636 #ifndef _BIG_ENDIAN
22637                  not big endian
22638                 #endif
22639
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 if ac_fn_c_try_compile "$LINENO"; then :
22645   ac_cv_c_bigendian=yes
22646 else
22647   ac_cv_c_bigendian=no
22648 fi
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 fi
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652     fi
22653     if test $ac_cv_c_bigendian = unknown; then
22654       # Compile a test program.
22655       if test "$cross_compiling" = yes; then :
22656   # Try to guess by grepping values from an object file.
22657          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22658 /* end confdefs.h.  */
22659 short int ascii_mm[] =
22660                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22661                 short int ascii_ii[] =
22662                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22663                 int use_ascii (int i) {
22664                   return ascii_mm[i] + ascii_ii[i];
22665                 }
22666                 short int ebcdic_ii[] =
22667                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22668                 short int ebcdic_mm[] =
22669                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22670                 int use_ebcdic (int i) {
22671                   return ebcdic_mm[i] + ebcdic_ii[i];
22672                 }
22673                 extern int foo;
22674
22675 int
22676 main ()
22677 {
22678 return use_ascii (foo) == use_ebcdic (foo);
22679   ;
22680   return 0;
22681 }
22682 _ACEOF
22683 if ac_fn_c_try_compile "$LINENO"; then :
22684   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22685               ac_cv_c_bigendian=yes
22686             fi
22687             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22688               if test "$ac_cv_c_bigendian" = unknown; then
22689                 ac_cv_c_bigendian=no
22690               else
22691                 # finding both strings is unlikely to happen, but who knows?
22692                 ac_cv_c_bigendian=unknown
22693               fi
22694             fi
22695 fi
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 else
22698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h.  */
22700 $ac_includes_default
22701 int
22702 main ()
22703 {
22704
22705              /* Are we little or big endian?  From Harbison&Steele.  */
22706              union
22707              {
22708                long int l;
22709                char c[sizeof (long int)];
22710              } u;
22711              u.l = 1;
22712              return u.c[sizeof (long int) - 1] == 1;
22713
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 if ac_fn_c_try_run "$LINENO"; then :
22719   ac_cv_c_bigendian=no
22720 else
22721   ac_cv_c_bigendian=yes
22722 fi
22723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22724   conftest.$ac_objext conftest.beam conftest.$ac_ext
22725 fi
22726
22727     fi
22728 fi
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22730 $as_echo "$ac_cv_c_bigendian" >&6; }
22731  case $ac_cv_c_bigendian in #(
22732    yes)
22733      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22734 ;; #(
22735    no)
22736       ;; #(
22737    universal)
22738
22739 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22740
22741      ;; #(
22742    *)
22743      as_fn_error $? "unknown endianness
22744  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22745  esac
22746
22747 if test x$ac_cv_c_bigendian = xuniversal ; then
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h.  */
22750 #include <endian.h>
22751 int
22752 main ()
22753 {
22754 #if __BYTE_ORDER == __BIG_ENDIAN
22755 #else
22756 #error Not a big endian.
22757 #endif
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 if ac_fn_c_try_compile "$LINENO"; then :
22763   ac_cv_c_bigendian=yes
22764
22765 else
22766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h.  */
22768 #include <endian.h>
22769 int
22770 main ()
22771 {
22772 #if __BYTE_ORDER == __LITTLE_ENDIAN
22773 #else
22774 #error Not a little endian.
22775 #endif
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 if ac_fn_c_try_compile "$LINENO"; then :
22781   ac_cv_c_bigendian=no
22782
22783 else
22784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
22785 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
22786 fi
22787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 fi
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790 fi
22791
22792
22793 # check for header files
22794 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
22795 do :
22796   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22797 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22799   cat >>confdefs.h <<_ACEOF
22800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22801 _ACEOF
22802
22803 fi
22804
22805 done
22806
22807 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
22808 do :
22809   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22810 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22812   cat >>confdefs.h <<_ACEOF
22813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22814 _ACEOF
22815
22816 fi
22817
22818 done
22819
22820 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
22821 do :
22822   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22825   cat >>confdefs.h <<_ACEOF
22826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22827 _ACEOF
22828
22829 fi
22830
22831 done
22832
22833 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
22834 do :
22835   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22838   cat >>confdefs.h <<_ACEOF
22839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22840 _ACEOF
22841
22842 fi
22843
22844 done
22845
22846 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
22847 do :
22848   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22849 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22851   cat >>confdefs.h <<_ACEOF
22852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22853 _ACEOF
22854
22855 fi
22856
22857 done
22858
22859 for ac_header in sys/uio.h sys/mkdev.h
22860 do :
22861   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22862 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22864   cat >>confdefs.h <<_ACEOF
22865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22866 _ACEOF
22867
22868 fi
22869
22870 done
22871
22872 for ac_header in linux/magic.h
22873 do :
22874   ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
22875 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
22876   cat >>confdefs.h <<_ACEOF
22877 #define HAVE_LINUX_MAGIC_H 1
22878 _ACEOF
22879
22880 fi
22881
22882 done
22883
22884 for ac_header in sys/prctl.h
22885 do :
22886   ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
22887 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
22888   cat >>confdefs.h <<_ACEOF
22889 #define HAVE_SYS_PRCTL_H 1
22890 _ACEOF
22891
22892 fi
22893
22894 done
22895
22896
22897 for ac_header in sys/mount.h sys/sysctl.h
22898 do :
22899   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
22901  #include <sys/param.h>
22902  #endif
22903
22904 "
22905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22906   cat >>confdefs.h <<_ACEOF
22907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22908 _ACEOF
22909
22910 fi
22911
22912 done
22913
22914
22915 for ac_header in xlocale.h
22916 do :
22917   ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22918 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22919   cat >>confdefs.h <<_ACEOF
22920 #define HAVE_XLOCALE_H 1
22921 _ACEOF
22922
22923 fi
22924
22925 done
22926
22927
22928 # check for structure fields
22929 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
22930 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
22931
22932 cat >>confdefs.h <<_ACEOF
22933 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
22934 _ACEOF
22935
22936
22937 fi
22938 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
22939 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
22943 _ACEOF
22944
22945
22946 fi
22947 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
22948 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
22949
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22952 _ACEOF
22953
22954
22955 fi
22956 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
22957 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
22958
22959 cat >>confdefs.h <<_ACEOF
22960 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22961 _ACEOF
22962
22963
22964 fi
22965 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
22966 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
22967
22968 cat >>confdefs.h <<_ACEOF
22969 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
22970 _ACEOF
22971
22972
22973 fi
22974 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
22975 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
22976
22977 cat >>confdefs.h <<_ACEOF
22978 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
22979 _ACEOF
22980
22981
22982 fi
22983
22984 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
22985 #include <sys/stat.h>
22986 #include <unistd.h>
22987 #ifdef HAVE_SYS_STATFS_H
22988 #include <sys/statfs.h>
22989 #endif
22990 #ifdef HAVE_SYS_PARAM_H
22991 #include <sys/param.h>
22992 #endif
22993 #ifdef HAVE_SYS_MOUNT_H
22994 #include <sys/mount.h>
22995 #endif
22996 "
22997 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22998
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23001 _ACEOF
23002
23003
23004 fi
23005 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
23006 #include <sys/stat.h>
23007 #include <unistd.h>
23008 #ifdef HAVE_SYS_STATFS_H
23009 #include <sys/statfs.h>
23010 #endif
23011 #ifdef HAVE_SYS_PARAM_H
23012 #include <sys/param.h>
23013 #endif
23014 #ifdef HAVE_SYS_MOUNT_H
23015 #include <sys/mount.h>
23016 #endif
23017 "
23018 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23019
23020 cat >>confdefs.h <<_ACEOF
23021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23022 _ACEOF
23023
23024
23025 fi
23026 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
23027 #include <sys/stat.h>
23028 #include <unistd.h>
23029 #ifdef HAVE_SYS_STATFS_H
23030 #include <sys/statfs.h>
23031 #endif
23032 #ifdef HAVE_SYS_PARAM_H
23033 #include <sys/param.h>
23034 #endif
23035 #ifdef HAVE_SYS_MOUNT_H
23036 #include <sys/mount.h>
23037 #endif
23038 "
23039 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
23040
23041 cat >>confdefs.h <<_ACEOF
23042 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
23043 _ACEOF
23044
23045
23046 fi
23047 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
23048 #include <sys/stat.h>
23049 #include <unistd.h>
23050 #ifdef HAVE_SYS_STATFS_H
23051 #include <sys/statfs.h>
23052 #endif
23053 #ifdef HAVE_SYS_PARAM_H
23054 #include <sys/param.h>
23055 #endif
23056 #ifdef HAVE_SYS_MOUNT_H
23057 #include <sys/mount.h>
23058 #endif
23059 "
23060 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
23061
23062 cat >>confdefs.h <<_ACEOF
23063 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
23064 _ACEOF
23065
23066
23067 fi
23068
23069 # struct statvfs.f_basetype is available on Solaris but not for Linux.
23070 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
23071 "
23072 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
23073
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
23076 _ACEOF
23077
23078
23079 fi
23080
23081 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
23082 "
23083 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
23084
23085 cat >>confdefs.h <<_ACEOF
23086 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
23087 _ACEOF
23088
23089
23090 fi
23091
23092 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
23093 "
23094 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
23095
23096 cat >>confdefs.h <<_ACEOF
23097 #define HAVE_STRUCT_TM_TM_GMTOFF 1
23098 _ACEOF
23099
23100
23101 fi
23102 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
23103 "
23104 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
23105
23106 cat >>confdefs.h <<_ACEOF
23107 #define HAVE_STRUCT_TM___TM_GMTOFF 1
23108 _ACEOF
23109
23110
23111 fi
23112
23113
23114 ac_header_dirent=no
23115 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23116   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23118 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23119 if eval \${$as_ac_Header+:} false; then :
23120   $as_echo_n "(cached) " >&6
23121 else
23122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123 /* end confdefs.h.  */
23124 #include <sys/types.h>
23125 #include <$ac_hdr>
23126
23127 int
23128 main ()
23129 {
23130 if ((DIR *) 0)
23131 return 0;
23132   ;
23133   return 0;
23134 }
23135 _ACEOF
23136 if ac_fn_c_try_compile "$LINENO"; then :
23137   eval "$as_ac_Header=yes"
23138 else
23139   eval "$as_ac_Header=no"
23140 fi
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 fi
23143 eval ac_res=\$$as_ac_Header
23144                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23145 $as_echo "$ac_res" >&6; }
23146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23147   cat >>confdefs.h <<_ACEOF
23148 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23149 _ACEOF
23150
23151 ac_header_dirent=$ac_hdr; break
23152 fi
23153
23154 done
23155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23156 if test $ac_header_dirent = dirent.h; then
23157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23158 $as_echo_n "checking for library containing opendir... " >&6; }
23159 if ${ac_cv_search_opendir+:} false; then :
23160   $as_echo_n "(cached) " >&6
23161 else
23162   ac_func_search_save_LIBS=$LIBS
23163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164 /* end confdefs.h.  */
23165
23166 /* Override any GCC internal prototype to avoid an error.
23167    Use char because int might match the return type of a GCC
23168    builtin and then its argument prototype would still apply.  */
23169 #ifdef __cplusplus
23170 extern "C"
23171 #endif
23172 char opendir ();
23173 int
23174 main ()
23175 {
23176 return opendir ();
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 for ac_lib in '' dir; do
23182   if test -z "$ac_lib"; then
23183     ac_res="none required"
23184   else
23185     ac_res=-l$ac_lib
23186     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23187   fi
23188   if ac_fn_c_try_link "$LINENO"; then :
23189   ac_cv_search_opendir=$ac_res
23190 fi
23191 rm -f core conftest.err conftest.$ac_objext \
23192     conftest$ac_exeext
23193   if ${ac_cv_search_opendir+:} false; then :
23194   break
23195 fi
23196 done
23197 if ${ac_cv_search_opendir+:} false; then :
23198
23199 else
23200   ac_cv_search_opendir=no
23201 fi
23202 rm conftest.$ac_ext
23203 LIBS=$ac_func_search_save_LIBS
23204 fi
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23206 $as_echo "$ac_cv_search_opendir" >&6; }
23207 ac_res=$ac_cv_search_opendir
23208 if test "$ac_res" != no; then :
23209   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23210
23211 fi
23212
23213 else
23214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23215 $as_echo_n "checking for library containing opendir... " >&6; }
23216 if ${ac_cv_search_opendir+:} false; then :
23217   $as_echo_n "(cached) " >&6
23218 else
23219   ac_func_search_save_LIBS=$LIBS
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h.  */
23222
23223 /* Override any GCC internal prototype to avoid an error.
23224    Use char because int might match the return type of a GCC
23225    builtin and then its argument prototype would still apply.  */
23226 #ifdef __cplusplus
23227 extern "C"
23228 #endif
23229 char opendir ();
23230 int
23231 main ()
23232 {
23233 return opendir ();
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 for ac_lib in '' x; do
23239   if test -z "$ac_lib"; then
23240     ac_res="none required"
23241   else
23242     ac_res=-l$ac_lib
23243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23244   fi
23245   if ac_fn_c_try_link "$LINENO"; then :
23246   ac_cv_search_opendir=$ac_res
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext \
23249     conftest$ac_exeext
23250   if ${ac_cv_search_opendir+:} false; then :
23251   break
23252 fi
23253 done
23254 if ${ac_cv_search_opendir+:} false; then :
23255
23256 else
23257   ac_cv_search_opendir=no
23258 fi
23259 rm conftest.$ac_ext
23260 LIBS=$ac_func_search_save_LIBS
23261 fi
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23263 $as_echo "$ac_cv_search_opendir" >&6; }
23264 ac_res=$ac_cv_search_opendir
23265 if test "$ac_res" != no; then :
23266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23267
23268 fi
23269
23270 fi
23271
23272
23273
23274   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
23275 #include <sys/types.h>
23276 #ifdef HAVE_DIRENT_H
23277 # include <dirent.h>
23278 #else
23279 # define dirent direct
23280 # ifdef HAVE_SYS_NDIR_H
23281 #  include <sys/ndir.h>
23282 # endif
23283 # ifdef HAVE_SYS_DIR_H
23284 #  include <sys/dir.h>
23285 # endif
23286 # ifdef HAVE_NDIR_H
23287 #  include <ndir.h>
23288 # endif
23289 #endif
23290
23291 "
23292 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_STRUCT_DIRENT_D_TYPE 1
23296 _ACEOF
23297
23298
23299 fi
23300
23301
23302
23303 # Checks for libcharset
23304
23305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23306 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23307 if ${am_cv_langinfo_codeset+:} false; then :
23308   $as_echo_n "(cached) " >&6
23309 else
23310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h.  */
23312 #include <langinfo.h>
23313 int
23314 main ()
23315 {
23316 char* cs = nl_langinfo(CODESET);
23317   ;
23318   return 0;
23319 }
23320 _ACEOF
23321 if ac_fn_c_try_link "$LINENO"; then :
23322   am_cv_langinfo_codeset=yes
23323 else
23324   am_cv_langinfo_codeset=no
23325 fi
23326 rm -f core conftest.err conftest.$ac_objext \
23327     conftest$ac_exeext conftest.$ac_ext
23328
23329 fi
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23331 $as_echo "$am_cv_langinfo_codeset" >&6; }
23332   if test $am_cv_langinfo_codeset = yes; then
23333
23334 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23335
23336   fi
23337
23338 for ac_header in stddef.h stdlib.h string.h
23339 do :
23340   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23341 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23343   cat >>confdefs.h <<_ACEOF
23344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23345 _ACEOF
23346
23347 fi
23348
23349 done
23350
23351 for ac_func in setlocale
23352 do :
23353   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
23354 if test "x$ac_cv_func_setlocale" = xyes; then :
23355   cat >>confdefs.h <<_ACEOF
23356 #define HAVE_SETLOCALE 1
23357 _ACEOF
23358
23359 fi
23360 done
23361
23362
23363 # check additional type sizes
23364 # The cast to long int works around a bug in the HP C Compiler
23365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23367 # This bug is HP SR number 8606223364.
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23369 $as_echo_n "checking size of size_t... " >&6; }
23370 if ${ac_cv_sizeof_size_t+:} false; then :
23371   $as_echo_n "(cached) " >&6
23372 else
23373   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23374
23375 else
23376   if test "$ac_cv_type_size_t" = yes; then
23377      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23379 as_fn_error 77 "cannot compute sizeof (size_t)
23380 See \`config.log' for more details" "$LINENO" 5; }
23381    else
23382      ac_cv_sizeof_size_t=0
23383    fi
23384 fi
23385
23386 fi
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23388 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23389
23390
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23394 _ACEOF
23395
23396
23397
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
23399 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
23400
23401 case $ac_cv_sizeof_size_t in
23402   $ac_cv_sizeof_short)
23403       glib_size_type=short
23404       ;;
23405   $ac_cv_sizeof_int)
23406       glib_size_type=int
23407       ;;
23408   $ac_cv_sizeof_long)
23409       glib_size_type=long
23410       ;;
23411   $ac_cv_sizeof_long_long)
23412       glib_size_type='long long'
23413       ;;
23414   $ac_cv_sizeof__int64)
23415       glib_size_type='__int64'
23416       ;;
23417   *)  as_fn_error $? "No type matching size_t in size" "$LINENO" 5
23418       ;;
23419 esac
23420
23421 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
23422    test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
23423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h.  */
23425
23426 #if defined(_AIX) && !defined(__GNUC__)
23427 #pragma options langlvl=stdc89
23428 #endif
23429 #include <stddef.h>
23430 int main ()
23431 {
23432   size_t s = 1;
23433   unsigned int *size_int = &s;
23434   return (int)*size_int;
23435 }
23436
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 glib_ac_compile_save="$ac_compile"
23440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23442   (eval $ac_compile) 2>conftest.err
23443   ac_status=$?
23444   if test -s conftest.err; then
23445     grep -v '^ *+' conftest.err >conftest.er1
23446     cat conftest.er1 >&5
23447     mv -f conftest.er1 conftest.err
23448   fi
23449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450   test $ac_status = 0; } &&
23451          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23452   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23456   test $ac_status = 0; }; }; then :
23457   glib_size_type=int
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 cat conftest.$ac_ext >&5
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h.  */
23463
23464 #if defined(_AIX) && !defined(__GNUC__)
23465 #pragma options langlvl=stdc89
23466 #endif
23467 #include <stddef.h>
23468 int main ()
23469 {
23470    size_t s = 1;
23471    unsigned long *size_long = &s;
23472    return (int)*size_long;
23473 }
23474
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 glib_ac_compile_save="$ac_compile"
23478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23480   (eval $ac_compile) 2>conftest.err
23481   ac_status=$?
23482   if test -s conftest.err; then
23483     grep -v '^ *+' conftest.err >conftest.er1
23484     cat conftest.er1 >&5
23485     mv -f conftest.er1 conftest.err
23486   fi
23487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23488   test $ac_status = 0; } &&
23489          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23491   (eval $ac_try) 2>&5
23492   ac_status=$?
23493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23494   test $ac_status = 0; }; }; then :
23495   glib_size_type=long
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 cat conftest.$ac_ext >&5
23499 fi
23500 ac_compile="$glib_ac_compile_save"
23501 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23502 fi
23503 ac_compile="$glib_ac_compile_save"
23504 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23505 fi
23506
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
23508 $as_echo "unsigned $glib_size_type" >&6; }
23509
23510 # Check for some functions
23511 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
23512 do :
23513   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23516   cat >>confdefs.h <<_ACEOF
23517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23518 _ACEOF
23519
23520 fi
23521 done
23522
23523 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
23524 do :
23525   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23528   cat >>confdefs.h <<_ACEOF
23529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23530 _ACEOF
23531
23532 fi
23533 done
23534
23535 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
23536 do :
23537   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23540   cat >>confdefs.h <<_ACEOF
23541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23542 _ACEOF
23543
23544 fi
23545 done
23546
23547 # Check for high-resolution sleep functions
23548 for ac_func in splice
23549 do :
23550   ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
23551 if test "x$ac_cv_func_splice" = xyes; then :
23552   cat >>confdefs.h <<_ACEOF
23553 #define HAVE_SPLICE 1
23554 _ACEOF
23555
23556 fi
23557 done
23558
23559 for ac_func in prlimit
23560 do :
23561   ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
23562 if test "x$ac_cv_func_prlimit" = xyes; then :
23563   cat >>confdefs.h <<_ACEOF
23564 #define HAVE_PRLIMIT 1
23565 _ACEOF
23566
23567 fi
23568 done
23569
23570
23571 # To avoid finding a compatibility unusable statfs, which typically
23572 # successfully compiles, but warns to use the newer statvfs interface:
23573 if test $ac_cv_header_sys_statvfs_h = yes; then :
23574   for ac_func in statvfs
23575 do :
23576   ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
23577 if test "x$ac_cv_func_statvfs" = xyes; then :
23578   cat >>confdefs.h <<_ACEOF
23579 #define HAVE_STATVFS 1
23580 _ACEOF
23581
23582 fi
23583 done
23584
23585 fi
23586 if test $ac_cv_header_sys_statfs_h  = yes -o $ac_cv_header_sys_mount_h = yes; then :
23587   for ac_func in statfs
23588 do :
23589   ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
23590 if test "x$ac_cv_func_statfs" = xyes; then :
23591   cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STATFS 1
23593 _ACEOF
23594
23595 fi
23596 done
23597
23598 fi
23599
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
23601 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
23602 # Some systems have both statfs and statvfs, pick the most "native" for these
23603 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
23604
23605    # on solaris and irix, statfs doesn't even have the f_bavail field
23606    if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
23607   ac_cv_func_statfs=no
23608 else
23609   # else, at least on linux, statfs is the actual syscall
23610       ac_cv_func_statvfs=no
23611 fi
23612
23613 fi
23614
23615 if test x$ac_cv_func_statfs = xyes; then :
23616
23617
23618 $as_echo "#define USE_STATFS 1" >>confdefs.h
23619
23620          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
23621 $as_echo "statfs" >&6; }
23622
23623 elif test x$ac_cv_func_statvfs = xyes; then :
23624
23625
23626 $as_echo "#define USE_STATVFS 1" >>confdefs.h
23627
23628          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
23629 $as_echo "statvfs" >&6; }
23630
23631 else
23632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
23633 $as_echo "neither" >&6; }
23634 fi
23635
23636 for ac_header in crt_externs.h
23637 do :
23638   ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
23639 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
23640   cat >>confdefs.h <<_ACEOF
23641 #define HAVE_CRT_EXTERNS_H 1
23642 _ACEOF
23643
23644 fi
23645
23646 done
23647
23648 for ac_func in _NSGetEnviron
23649 do :
23650   ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
23651 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
23652   cat >>confdefs.h <<_ACEOF
23653 #define HAVE__NSGETENVIRON 1
23654 _ACEOF
23655
23656 fi
23657 done
23658
23659
23660 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
23661 do :
23662   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23665   cat >>confdefs.h <<_ACEOF
23666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23667 _ACEOF
23668
23669 fi
23670 done
23671
23672
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
23674 $as_echo_n "checking for C99 vsnprintf... " >&6; }
23675 if ${ac_cv_func_vsnprintf_c99+:} false; then :
23676   $as_echo_n "(cached) " >&6
23677 else
23678   if test "$cross_compiling" = yes; then :
23679   ac_cv_func_vsnprintf_c99=no
23680 else
23681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h.  */
23683 #include <stdio.h>
23684 #include <stdarg.h>
23685
23686 int
23687 doit(char * s, ...)
23688 {
23689   char buffer[32];
23690   va_list args;
23691   int r;
23692
23693   va_start(args, s);
23694   r = vsnprintf(buffer, 5, s, args);
23695   va_end(args);
23696
23697   if (r != 7)
23698     exit(1);
23699
23700   /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
23701      implementation. The above will return 7 but if you replace
23702      the size of the buffer with 0, it borks! */
23703   va_start(args, s);
23704   r = vsnprintf(buffer, 0, s, args);
23705   va_end(args);
23706
23707   if (r != 7)
23708     exit(1);
23709
23710   exit(0);
23711 }
23712
23713 int
23714 main(void)
23715 {
23716   doit("1234567");
23717   exit(1);
23718 }
23719 _ACEOF
23720 if ac_fn_c_try_run "$LINENO"; then :
23721   ac_cv_func_vsnprintf_c99=yes
23722 else
23723   ac_cv_func_vsnprintf_c99=no
23724 fi
23725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23726   conftest.$ac_objext conftest.beam conftest.$ac_ext
23727 fi
23728
23729 fi
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
23731 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
23732 if test $ac_cv_func_vsnprintf_c99 = yes; then
23733
23734 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
23735
23736 fi
23737
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
23739 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
23740 if ${ac_cv_func_printf_unix98+:} false; then :
23741   $as_echo_n "(cached) " >&6
23742 else
23743   if test "$cross_compiling" = yes; then :
23744   ac_cv_func_printf_unix98=no
23745 else
23746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h.  */
23748 #include <stdio.h>
23749
23750 int
23751 main (void)
23752 {
23753   char buffer[128];
23754
23755   sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
23756   if (strcmp ("2 3 1", buffer) == 0)
23757     exit (0);
23758   exit (1);
23759 }
23760 _ACEOF
23761 if ac_fn_c_try_run "$LINENO"; then :
23762   ac_cv_func_printf_unix98=yes
23763 else
23764   ac_cv_func_printf_unix98=no
23765 fi
23766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23767   conftest.$ac_objext conftest.beam conftest.$ac_ext
23768 fi
23769
23770 fi
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
23772 $as_echo "$ac_cv_func_printf_unix98" >&6; }
23773 if test $ac_cv_func_printf_unix98 = yes; then
23774
23775 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
23776
23777 fi
23778
23779
23780 # Internet address families
23781 if test $glib_native_win32 = yes; then
23782   glib_inet_includes="
23783 #include <winsock2.h>
23784   "
23785 else
23786   glib_inet_includes="
23787 #include <sys/types.h>
23788 #include <sys/socket.h>
23789   "
23790 fi
23791
23792 glib_failed=false
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
23794 $as_echo_n "checking value of AF_INET... " >&6; }
23795 if ${glib_cv_value_AF_INET+:} false; then :
23796   $as_echo_n "(cached) " >&6
23797 else
23798   if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET"        "$glib_inet_includes"; then :
23799
23800 else
23801   glib_failed=true
23802 fi
23803
23804
23805 fi
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
23807 $as_echo "$glib_cv_value_AF_INET" >&6; }
23808
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
23810 $as_echo_n "checking value of AF_INET6... " >&6; }
23811 if ${glib_cv_value_AF_INET6+:} false; then :
23812   $as_echo_n "(cached) " >&6
23813 else
23814   if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6"        "$glib_inet_includes"; then :
23815
23816 else
23817   glib_failed=true
23818 fi
23819
23820
23821 fi
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
23823 $as_echo "$glib_cv_value_AF_INET6" >&6; }
23824
23825 # winsock defines this even though it doesn't support it
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
23827 $as_echo_n "checking value of AF_UNIX... " >&6; }
23828 if ${glib_cv_value_AF_UNIX+:} false; then :
23829   $as_echo_n "(cached) " >&6
23830 else
23831   if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX"        "$glib_inet_includes"; then :
23832
23833 else
23834   glib_failed=true
23835 fi
23836
23837
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
23840 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
23841
23842 if $glib_failed ; then
23843   as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
23844 fi
23845
23846 glib_failed=false
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
23848 $as_echo_n "checking value of MSG_PEEK... " >&6; }
23849 if ${glib_cv_value_MSG_PEEK+:} false; then :
23850   $as_echo_n "(cached) " >&6
23851 else
23852   if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK"        "$glib_inet_includes"; then :
23853
23854 else
23855   glib_failed=true
23856 fi
23857
23858
23859 fi
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
23861 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
23862
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
23864 $as_echo_n "checking value of MSG_OOB... " >&6; }
23865 if ${glib_cv_value_MSG_OOB+:} false; then :
23866   $as_echo_n "(cached) " >&6
23867 else
23868   if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB"        "$glib_inet_includes"; then :
23869
23870 else
23871   glib_failed=true
23872 fi
23873
23874
23875 fi
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
23877 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
23878
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
23880 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
23881 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
23882   $as_echo_n "(cached) " >&6
23883 else
23884   if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE"        "$glib_inet_includes"; then :
23885
23886 else
23887   glib_failed=true
23888 fi
23889
23890
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
23893 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
23894
23895 if $glib_failed ; then
23896   as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
23897 fi
23898
23899 for ac_func in getprotobyname_r endservent if_nametoindex
23900 do :
23901   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23904   cat >>confdefs.h <<_ACEOF
23905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23906 _ACEOF
23907
23908 fi
23909 done
23910
23911 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
23912 do :
23913   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23915 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23916   cat >>confdefs.h <<_ACEOF
23917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23918 _ACEOF
23919
23920 fi
23921
23922 done
23923
23924
23925 if test $glib_native_win32 = no; then
23926   # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
23927   NETWORK_LIBS=""
23928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
23929 $as_echo_n "checking for res_query... " >&6; }
23930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h.  */
23932 #include <sys/types.h>
23933                #include <netinet/in.h>
23934                #include <arpa/nameser.h>
23935                #include <resolv.h>
23936
23937 int
23938 main ()
23939 {
23940
23941                res_query("test", 0, 0, (void *)0, 0);
23942
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 if ac_fn_c_try_link "$LINENO"; then :
23948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23949 $as_echo "yes" >&6; }
23950 else
23951   save_libs="$LIBS"
23952                LIBS="-lresolv $LIBS"
23953                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h.  */
23955 #include <sys/types.h>
23956                             #include <netinet/in.h>
23957                             #include <arpa/nameser.h>
23958                             #include <resolv.h>
23959
23960 int
23961 main ()
23962 {
23963
23964                             res_query("test", 0, 0, (void *)0, 0);
23965
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 if ac_fn_c_try_link "$LINENO"; then :
23971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
23972 $as_echo "in -lresolv" >&6; }
23973                               NETWORK_LIBS="-lresolv $NETWORK_LIBS"
23974 else
23975   LIBS="-lbind $save_libs"
23976                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h.  */
23978 #include <resolv.h>
23979 int
23980 main ()
23981 {
23982 res_query("test", 0, 0, (void *)0, 0);
23983   ;
23984   return 0;
23985 }
23986 _ACEOF
23987 if ac_fn_c_try_link "$LINENO"; then :
23988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
23989 $as_echo "in -lbind" >&6; }
23990                                          NETWORK_LIBS="-lbind $NETWORK_LIBS"
23991 else
23992   as_fn_error $? "not found" "$LINENO" 5
23993 fi
23994 rm -f core conftest.err conftest.$ac_objext \
23995     conftest$ac_exeext conftest.$ac_ext
23996 fi
23997 rm -f core conftest.err conftest.$ac_objext \
23998     conftest$ac_exeext conftest.$ac_ext
23999                LIBS="$save_libs"
24000 fi
24001 rm -f core conftest.err conftest.$ac_objext \
24002     conftest$ac_exeext conftest.$ac_ext
24003   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24004 if test "x$ac_cv_func_socket" = xyes; then :
24005   :
24006 else
24007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24008 $as_echo_n "checking for socket in -lsocket... " >&6; }
24009 if ${ac_cv_lib_socket_socket+:} false; then :
24010   $as_echo_n "(cached) " >&6
24011 else
24012   ac_check_lib_save_LIBS=$LIBS
24013 LIBS="-lsocket  $LIBS"
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h.  */
24016
24017 /* Override any GCC internal prototype to avoid an error.
24018    Use char because int might match the return type of a GCC
24019    builtin and then its argument prototype would still apply.  */
24020 #ifdef __cplusplus
24021 extern "C"
24022 #endif
24023 char socket ();
24024 int
24025 main ()
24026 {
24027 return socket ();
24028   ;
24029   return 0;
24030 }
24031 _ACEOF
24032 if ac_fn_c_try_link "$LINENO"; then :
24033   ac_cv_lib_socket_socket=yes
24034 else
24035   ac_cv_lib_socket_socket=no
24036 fi
24037 rm -f core conftest.err conftest.$ac_objext \
24038     conftest$ac_exeext conftest.$ac_ext
24039 LIBS=$ac_check_lib_save_LIBS
24040 fi
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24042 $as_echo "$ac_cv_lib_socket_socket" >&6; }
24043 if test "x$ac_cv_lib_socket_socket" = xyes; then :
24044   NETWORK_LIBS="-lsocket $NETWORK_LIBS"
24045 else
24046   as_fn_error $? "Could not find socket()" "$LINENO" 5
24047 fi
24048
24049 fi
24050
24051 fi
24052
24053
24054 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
24055 "
24056 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
24057
24058 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
24059
24060 fi
24061
24062
24063  if test "$ac_cv_header_linux_netlink_h" = "yes"; then
24064   HAVE_NETLINK_TRUE=
24065   HAVE_NETLINK_FALSE='#'
24066 else
24067   HAVE_NETLINK_TRUE='#'
24068   HAVE_NETLINK_FALSE=
24069 fi
24070
24071
24072 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
24073 "
24074 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
24075
24076
24077 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
24078
24079 fi
24080
24081
24082 case $host in
24083   *-*-solaris* )
24084
24085 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
24086
24087
24088 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
24089
24090
24091 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
24092
24093      ;;
24094 esac
24095
24096 if test "$ac_cv_func_statfs" = yes ; then
24097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
24098 $as_echo_n "checking number of arguments to statfs()... " >&6; }
24099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h.  */
24101 #include <unistd.h>
24102   #ifdef HAVE_SYS_PARAM_H
24103   #include <sys/param.h>
24104   #endif
24105   #ifdef HAVE_SYS_VFS_H
24106   #include <sys/vfs.h>
24107   #endif
24108   #ifdef HAVE_SYS_MOUNT_H
24109   #include <sys/mount.h>
24110   #endif
24111   #ifdef HAVE_SYS_STATFS_H
24112   #include <sys/statfs.h>
24113   #endif
24114 int
24115 main ()
24116 {
24117 struct statfs st;
24118   statfs(NULL, &st);
24119   ;
24120   return 0;
24121 }
24122 _ACEOF
24123 if ac_fn_c_try_compile "$LINENO"; then :
24124
24125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
24126 $as_echo "2" >&6; }
24127
24128 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
24129
24130 else
24131
24132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h.  */
24134 #include <unistd.h>
24135   #ifdef HAVE_SYS_PARAM_H
24136   #include <sys/param.h>
24137   #endif
24138   #ifdef HAVE_SYS_VFS_H
24139   #include <sys/vfs.h>
24140   #endif
24141   #ifdef HAVE_SYS_MOUNT_H
24142   #include <sys/mount.h>
24143   #endif
24144   #ifdef HAVE_SYS_STATFS_H
24145   #include <sys/statfs.h>
24146   #endif
24147 int
24148 main ()
24149 {
24150 struct statfs st;
24151   statfs(NULL, &st, sizeof (st), 0);
24152   ;
24153   return 0;
24154 }
24155 _ACEOF
24156 if ac_fn_c_try_compile "$LINENO"; then :
24157
24158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
24159 $as_echo "4" >&6; }
24160
24161 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
24162
24163 else
24164
24165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
24166 $as_echo "unknown" >&6; }
24167       as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
24168 fi
24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24170 fi
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24172 fi
24173
24174 #
24175 # Check whether to use an included printf
24176 #
24177
24178 # Check whether --enable-included-printf was given.
24179 if test "${enable_included_printf+set}" = set; then :
24180   enableval=$enable_included_printf; enable_included_printf="$enableval"
24181 fi
24182
24183
24184 need_included_printf=no
24185 if test "x$enable_included_printf" = "xyes" ; then
24186   need_included_printf=yes
24187 fi
24188 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
24189   need_included_printf=yes
24190 fi
24191 if test "$ac_cv_func_printf_unix98" != "yes" ; then
24192   need_included_printf=yes
24193 fi
24194 if test "x$ac_cv_sizeof_long_long" = "x8" &&
24195    test -z "$glib_cv_long_long_format" ; then
24196   need_included_printf=yes
24197 fi
24198
24199 if test "x$enable_included_printf" = "xno" &&
24200    test "x$need_included_printf" = "xyes" ; then
24201   as_fn_error $? "
24202 *** Your C library's printf doesn't appear to have the features that
24203 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
24204 fi
24205
24206 enable_included_printf=$need_included_printf
24207
24208  if test "$enable_included_printf" != "yes"; then
24209   HAVE_GOOD_PRINTF_TRUE=
24210   HAVE_GOOD_PRINTF_FALSE='#'
24211 else
24212   HAVE_GOOD_PRINTF_TRUE='#'
24213   HAVE_GOOD_PRINTF_FALSE=
24214 fi
24215
24216 if test "$enable_included_printf" != "yes" ; then
24217
24218 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
24219
24220 else
24221   if test -z "$glib_cv_long_long_format" ; then
24222     glib_cv_long_long_format="ll"
24223   fi
24224   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
24225
24226 fi
24227
24228 # Checks needed for gnulib vasnprintf
24229
24230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
24231 $as_echo_n "checking for signed... " >&6; }
24232 if ${bh_cv_c_signed+:} false; then :
24233   $as_echo_n "(cached) " >&6
24234 else
24235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h.  */
24237
24238 int
24239 main ()
24240 {
24241 signed char x;
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 if ac_fn_c_try_compile "$LINENO"; then :
24247   bh_cv_c_signed=yes
24248 else
24249   bh_cv_c_signed=no
24250 fi
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 fi
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
24254 $as_echo "$bh_cv_c_signed" >&6; }
24255   if test $bh_cv_c_signed = no; then
24256
24257 $as_echo "#define signed /**/" >>confdefs.h
24258
24259   fi
24260
24261
24262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
24263 $as_echo_n "checking for long long... " >&6; }
24264 if ${ac_cv_type_long_long+:} false; then :
24265   $as_echo_n "(cached) " >&6
24266 else
24267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h.  */
24269 long long ll = 1LL; int i = 63;
24270 int
24271 main ()
24272 {
24273 long long llmax = (long long) -1;
24274      return ll << i | ll >> i | llmax / ll | llmax % ll;
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 if ac_fn_c_try_link "$LINENO"; then :
24280   ac_cv_type_long_long=yes
24281 else
24282   ac_cv_type_long_long=no
24283 fi
24284 rm -f core conftest.err conftest.$ac_objext \
24285     conftest$ac_exeext conftest.$ac_ext
24286 fi
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
24288 $as_echo "$ac_cv_type_long_long" >&6; }
24289   if test $ac_cv_type_long_long = yes; then
24290
24291 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
24292
24293   fi
24294
24295
24296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24297 $as_echo_n "checking for long double... " >&6; }
24298 if ${gt_cv_c_long_double+:} false; then :
24299   $as_echo_n "(cached) " >&6
24300 else
24301   if test "$GCC" = yes; then
24302        gt_cv_c_long_double=yes
24303      else
24304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h.  */
24306
24307          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
24308          long double foo = 0.0;
24309          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
24310          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
24311
24312 int
24313 main ()
24314 {
24315
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 if ac_fn_c_try_compile "$LINENO"; then :
24321   gt_cv_c_long_double=yes
24322 else
24323   gt_cv_c_long_double=no
24324 fi
24325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24326      fi
24327 fi
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
24329 $as_echo "$gt_cv_c_long_double" >&6; }
24330   if test $gt_cv_c_long_double = yes; then
24331
24332 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
24333
24334   fi
24335
24336
24337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24338 $as_echo_n "checking for wchar_t... " >&6; }
24339 if ${gt_cv_c_wchar_t+:} false; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h.  */
24344 #include <stddef.h>
24345        wchar_t foo = (wchar_t)'\0';
24346 int
24347 main ()
24348 {
24349
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 if ac_fn_c_try_compile "$LINENO"; then :
24355   gt_cv_c_wchar_t=yes
24356 else
24357   gt_cv_c_wchar_t=no
24358 fi
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24362 $as_echo "$gt_cv_c_wchar_t" >&6; }
24363   if test $gt_cv_c_wchar_t = yes; then
24364
24365 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
24366
24367   fi
24368
24369
24370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
24371 $as_echo_n "checking for wint_t... " >&6; }
24372 if ${gt_cv_c_wint_t+:} false; then :
24373   $as_echo_n "(cached) " >&6
24374 else
24375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h.  */
24377 #include <wchar.h>
24378        wint_t foo = (wchar_t)'\0';
24379 int
24380 main ()
24381 {
24382
24383   ;
24384   return 0;
24385 }
24386 _ACEOF
24387 if ac_fn_c_try_compile "$LINENO"; then :
24388   gt_cv_c_wint_t=yes
24389 else
24390   gt_cv_c_wint_t=no
24391 fi
24392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 fi
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
24395 $as_echo "$gt_cv_c_wint_t" >&6; }
24396   if test $gt_cv_c_wint_t = yes; then
24397
24398 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
24399
24400   fi
24401
24402 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24403 if test "x$ac_cv_type_size_t" = xyes; then :
24404
24405 else
24406
24407 cat >>confdefs.h <<_ACEOF
24408 #define size_t unsigned int
24409 _ACEOF
24410
24411 fi
24412
24413 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24414 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24415
24416 cat >>confdefs.h <<_ACEOF
24417 #define HAVE_PTRDIFF_T 1
24418 _ACEOF
24419
24420
24421 fi
24422
24423
24424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
24425 $as_echo_n "checking for inttypes.h... " >&6; }
24426 if ${jm_ac_cv_header_inttypes_h+:} false; then :
24427   $as_echo_n "(cached) " >&6
24428 else
24429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430 /* end confdefs.h.  */
24431 #include <sys/types.h>
24432 #include <inttypes.h>
24433 int
24434 main ()
24435 {
24436 uintmax_t i = (uintmax_t) -1;
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 if ac_fn_c_try_compile "$LINENO"; then :
24442   jm_ac_cv_header_inttypes_h=yes
24443 else
24444   jm_ac_cv_header_inttypes_h=no
24445 fi
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 fi
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
24449 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
24450   if test $jm_ac_cv_header_inttypes_h = yes; then
24451
24452 cat >>confdefs.h <<_ACEOF
24453 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24454 _ACEOF
24455
24456   fi
24457
24458
24459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
24460 $as_echo_n "checking for stdint.h... " >&6; }
24461 if ${jm_ac_cv_header_stdint_h+:} false; then :
24462   $as_echo_n "(cached) " >&6
24463 else
24464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24465 /* end confdefs.h.  */
24466 #include <sys/types.h>
24467 #include <stdint.h>
24468 int
24469 main ()
24470 {
24471 uintmax_t i = (uintmax_t) -1;
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 if ac_fn_c_try_compile "$LINENO"; then :
24477   jm_ac_cv_header_stdint_h=yes
24478 else
24479   jm_ac_cv_header_stdint_h=no
24480 fi
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 fi
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
24484 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
24485   if test $jm_ac_cv_header_stdint_h = yes; then
24486
24487 cat >>confdefs.h <<_ACEOF
24488 #define HAVE_STDINT_H_WITH_UINTMAX 1
24489 _ACEOF
24490
24491   fi
24492
24493
24494
24495
24496   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
24497
24498     test $ac_cv_type_long_long = yes \
24499       && ac_type='long long' \
24500       || ac_type='long'
24501
24502 cat >>confdefs.h <<_ACEOF
24503 #define intmax_t $ac_type
24504 _ACEOF
24505
24506   else
24507
24508 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24509
24510   fi
24511
24512 for ac_func in snprintf wcslen
24513 do :
24514   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24515 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24516 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24517   cat >>confdefs.h <<_ACEOF
24518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24519 _ACEOF
24520
24521 fi
24522 done
24523
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
24525 $as_echo_n "checking for C99 snprintf... " >&6; }
24526 if ${ac_cv_func_snprintf_c99+:} false; then :
24527   $as_echo_n "(cached) " >&6
24528 else
24529   if test "$cross_compiling" = yes; then :
24530   ac_cv_func_snprintf_c99=no
24531 else
24532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24533 /* end confdefs.h.  */
24534 #include <stdio.h>
24535 #include <stdarg.h>
24536
24537 int
24538 doit()
24539 {
24540   char buffer[32];
24541   va_list args;
24542   int r;
24543
24544   r = snprintf(buffer, 5, "1234567");
24545
24546   if (r != 7)
24547     exit(1);
24548
24549   r = snprintf(buffer, 0, "1234567");
24550
24551   if (r != 7)
24552     exit(1);
24553
24554   r = snprintf(NULL, 0, "1234567");
24555
24556   if (r != 7)
24557     exit(1);
24558
24559   exit(0);
24560 }
24561
24562 int
24563 main(void)
24564 {
24565   doit();
24566   exit(1);
24567 }
24568 _ACEOF
24569 if ac_fn_c_try_run "$LINENO"; then :
24570   ac_cv_func_snprintf_c99=yes
24571 else
24572   ac_cv_func_snprintf_c99=no
24573 fi
24574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24575   conftest.$ac_objext conftest.beam conftest.$ac_ext
24576 fi
24577
24578 fi
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
24580 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
24581 if test $ac_cv_func_snprintf_c99 = yes; then
24582
24583 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
24584
24585 fi
24586
24587
24588 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
24589 # The check is borrowed from the PERL Configure script.
24590 if test "$ac_cv_func_memmove" != "yes"; then
24591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
24592 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
24593 if ${glib_cv_working_bcopy+:} false; then :
24594   $as_echo_n "(cached) " >&6
24595 else
24596   if test "$cross_compiling" = yes; then :
24597   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24599 as_fn_error $? "cannot run test program while cross compiling
24600 See \`config.log' for more details" "$LINENO" 5; }
24601 else
24602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h.  */
24604
24605       int main() {
24606         char buf[128], abc[128], *b;
24607         int len, off, align;
24608         bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
24609         for (align = 7; align >= 0; align--) {
24610           for (len = 36; len; len--) {
24611             b = buf+align; bcopy(abc, b, len);
24612             for (off = 1; off <= len; off++) {
24613               bcopy(b, b+off, len); bcopy(b+off, b, len);
24614                 if (bcmp(b, abc, len)) return(1);
24615             }
24616           }
24617         }
24618         return(0);
24619       }
24620 _ACEOF
24621 if ac_fn_c_try_run "$LINENO"; then :
24622   glib_cv_working_bcopy=yes
24623 else
24624   glib_cv_working_bcopy=no
24625 fi
24626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24627   conftest.$ac_objext conftest.beam conftest.$ac_ext
24628 fi
24629
24630 fi
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
24632 $as_echo "$glib_cv_working_bcopy" >&6; }
24633
24634   if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
24635   as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
24636 fi
24637
24638   if test "$glib_cv_working_bcopy" = "yes"; then
24639
24640 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
24641
24642   fi
24643 fi
24644
24645 # Check if <sys/select.h> needs to be included for fd_set
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
24647 $as_echo_n "checking for fd_set... " >&6; }
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h.  */
24650 #include <sys/types.h>
24651 int
24652 main ()
24653 {
24654 fd_set readMask, writeMask;
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 if ac_fn_c_try_compile "$LINENO"; then :
24660   gtk_ok=yes
24661 else
24662   gtk_ok=no
24663 fi
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 if test "$gtk_ok" = "yes"; then
24666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
24667 $as_echo "yes, found in sys/types.h" >&6; }
24668 else
24669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h.  */
24671 #include <sys/select.h>
24672
24673 _ACEOF
24674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24675   $EGREP "fd_set" >/dev/null 2>&1; then :
24676   gtk_ok=yes
24677 fi
24678 rm -f conftest*
24679
24680     if test "$gtk_ok" = "yes"; then
24681         # *** FIXME: give it a different name
24682
24683 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24684
24685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
24686 $as_echo "yes, found in sys/select.h" >&6; }
24687     else
24688
24689 $as_echo "#define NO_FD_SET 1" >>confdefs.h
24690
24691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24692 $as_echo "no" >&6; }
24693     fi
24694 fi
24695
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
24697 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
24698 if ${glib_cv_sane_realloc+:} false; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701
24702         if test "$cross_compiling" = yes; then :
24703   glib_cv_sane_realloc=yes
24704 else
24705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h.  */
24707 #include <stdlib.h>
24708         int main() {
24709           return realloc (0, sizeof (int)) == 0;
24710         }
24711 _ACEOF
24712 if ac_fn_c_try_run "$LINENO"; then :
24713   glib_cv_sane_realloc=yes
24714 else
24715   glib_cv_sane_realloc=no
24716 fi
24717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24718   conftest.$ac_objext conftest.beam conftest.$ac_ext
24719 fi
24720
24721
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
24724 $as_echo "$glib_cv_sane_realloc" >&6; }
24725 if test x$glib_cv_sane_realloc = xyes; then
24726
24727 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
24728
24729 fi
24730
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
24732 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
24733 if ${glib_cv_langinfo_codeset+:} false; then :
24734   $as_echo_n "(cached) " >&6
24735 else
24736
24737         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738 /* end confdefs.h.  */
24739 #include <langinfo.h>
24740 int
24741 main ()
24742 {
24743 char *codeset = nl_langinfo (CODESET);
24744   ;
24745   return 0;
24746 }
24747 _ACEOF
24748 if ac_fn_c_try_compile "$LINENO"; then :
24749   glib_cv_langinfo_codeset=yes
24750 else
24751   glib_cv_langinfo_codeset=no
24752 fi
24753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
24756 $as_echo "$glib_cv_langinfo_codeset" >&6; }
24757 if test x$glib_cv_langinfo_codeset = xyes; then
24758
24759 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
24760
24761 fi
24762
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
24764 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
24765 if ${glib_cv_langinfo_time+:} false; then :
24766   $as_echo_n "(cached) " >&6
24767 else
24768
24769         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24770 /* end confdefs.h.  */
24771 #include <langinfo.h>
24772 int
24773 main ()
24774 {
24775 char *str;
24776                  str = nl_langinfo (PM_STR);
24777                  str = nl_langinfo (D_T_FMT);
24778                  str = nl_langinfo (D_FMT);
24779                  str = nl_langinfo (T_FMT);
24780                  str = nl_langinfo (T_FMT_AMPM);
24781                  str = nl_langinfo (MON_1);
24782                  str = nl_langinfo (ABMON_12);
24783                  str = nl_langinfo (DAY_1);
24784                  str = nl_langinfo (ABDAY_7);
24785   ;
24786   return 0;
24787 }
24788 _ACEOF
24789 if ac_fn_c_try_compile "$LINENO"; then :
24790   glib_cv_langinfo_time=yes
24791 else
24792   glib_cv_langinfo_time=no
24793 fi
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
24797 $as_echo "$glib_cv_langinfo_time" >&6; }
24798 if test x$glib_cv_langinfo_time = xyes; then
24799
24800 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
24801
24802 fi
24803
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
24805 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
24806 if ${glib_cv_langinfo_outdigit+:} false; then :
24807   $as_echo_n "(cached) " >&6
24808 else
24809
24810         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811 /* end confdefs.h.  */
24812 #include <langinfo.h>
24813 int
24814 main ()
24815 {
24816 char *str;
24817                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
24818                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
24819                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
24820                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
24821                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
24822                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
24823                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
24824                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
24825                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
24826                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 if ac_fn_c_try_compile "$LINENO"; then :
24832   glib_cv_langinfo_outdigit=yes
24833 else
24834   glib_cv_langinfo_outdigit=no
24835 fi
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 fi
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
24839 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
24840 if test x$glib_cv_langinfo_outdigit = xyes; then
24841
24842 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
24843
24844 fi
24845
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
24847 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
24848 if ${glib_cv_compliant_posix_memalign+:} false; then :
24849   $as_echo_n "(cached) " >&6
24850 else
24851
24852     glib_cv_compliant_posix_memalign=0
24853     if test "$ac_cv_func_posix_memalign" = "yes" ; then
24854         if test "$cross_compiling" = yes; then :
24855   :
24856 else
24857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h.  */
24859
24860                 #define _XOPEN_SOURCE 600
24861                 #include <stdlib.h> /* posix_memalign() should be defined here */
24862                 /* some systems break if #include <malloc.h> used */
24863                 static void test_memalign (size_t boundary, size_t size) {
24864                     void *mem = 0;
24865                     if (posix_memalign (&mem, boundary, size) != 0 || !mem)
24866                         exit (1);
24867                     else
24868                       free (mem);
24869                 }
24870                 int main() {
24871                     test_memalign (  128,   128 - 2 * sizeof (void*));
24872                     test_memalign (  256,   256 - 2 * sizeof (void*));
24873                     test_memalign (  512,   512 - 2 * sizeof (void*));
24874                     test_memalign ( 1024,  1024 - 2 * sizeof (void*));
24875                     test_memalign ( 2048,  2048 - 2 * sizeof (void*));
24876                     test_memalign ( 4096,  4096 - 2 * sizeof (void*));
24877                     test_memalign ( 8192,  8192 - 2 * sizeof (void*));
24878                     test_memalign (16384, 16384 - 2 * sizeof (void*));
24879                     test_memalign (32768, 32768 - 2 * sizeof (void*));
24880                     exit (0); /* success */
24881                 }
24882
24883 _ACEOF
24884 if ac_fn_c_try_run "$LINENO"; then :
24885   glib_cv_compliant_posix_memalign=1
24886 fi
24887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24888   conftest.$ac_objext conftest.beam conftest.$ac_ext
24889 fi
24890
24891       :
24892     fi
24893
24894 fi
24895
24896 if test "$glib_cv_compliant_posix_memalign" = "1"; then
24897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24898 $as_echo "yes" >&6; }
24899
24900 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
24901
24902 else
24903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24904 $as_echo "no" >&6; }
24905 fi
24906
24907
24908 # Check for strlcpy
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
24910 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
24911 if ${glib_cv_have_strlcpy+:} false; then :
24912   $as_echo_n "(cached) " >&6
24913 else
24914
24915 if test "$cross_compiling" = yes; then :
24916   glib_cv_have_strlcpy=no
24917 else
24918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24919 /* end confdefs.h.  */
24920 #include <stdlib.h>
24921 #include <string.h>
24922 int main() {
24923   char p[10];
24924   (void) strlcpy (p, "hi", 10);
24925   if (strlcat (p, "bye", 0) != 3)
24926     return 1;
24927   return 0;
24928 }
24929 _ACEOF
24930 if ac_fn_c_try_run "$LINENO"; then :
24931   glib_cv_have_strlcpy=yes
24932 else
24933   glib_cv_have_strlcpy=no
24934 fi
24935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24936   conftest.$ac_objext conftest.beam conftest.$ac_ext
24937 fi
24938
24939 fi
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
24941 $as_echo "$glib_cv_have_strlcpy" >&6; }
24942 if test "$glib_cv_have_strlcpy" = "yes"; then
24943
24944 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
24945
24946 fi
24947
24948
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
24950 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
24951 if ${glib_cv_va_copy+:} false; then :
24952   $as_echo_n "(cached) " >&6
24953 else
24954
24955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h.  */
24957 #include <stdarg.h>
24958 #include <stdlib.h>
24959         void f (int i, ...) {
24960         va_list args1, args2;
24961         va_start (args1, i);
24962         va_copy (args2, args1);
24963         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24964           exit (1);
24965         va_end (args1); va_end (args2);
24966         }
24967         int main() {
24968           f (0, 42);
24969           return 0;
24970         }
24971 _ACEOF
24972 if ac_fn_c_try_link "$LINENO"; then :
24973   glib_cv_va_copy=yes
24974 else
24975   glib_cv_va_copy=no
24976 fi
24977 rm -f core conftest.err conftest.$ac_objext \
24978     conftest$ac_exeext conftest.$ac_ext
24979
24980 fi
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
24982 $as_echo "$glib_cv_va_copy" >&6; }
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
24984 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
24985 if ${glib_cv___va_copy+:} false; then :
24986   $as_echo_n "(cached) " >&6
24987 else
24988
24989         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990 /* end confdefs.h.  */
24991 #include <stdarg.h>
24992 #include <stdlib.h>
24993         void f (int i, ...) {
24994         va_list args1, args2;
24995         va_start (args1, i);
24996         __va_copy (args2, args1);
24997         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24998           exit (1);
24999         va_end (args1); va_end (args2);
25000         }
25001         int main() {
25002           f (0, 42);
25003           return 0;
25004         }
25005 _ACEOF
25006 if ac_fn_c_try_link "$LINENO"; then :
25007   glib_cv___va_copy=yes
25008 else
25009   glib_cv___va_copy=no
25010 fi
25011 rm -f core conftest.err conftest.$ac_objext \
25012     conftest$ac_exeext conftest.$ac_ext
25013
25014 fi
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
25016 $as_echo "$glib_cv___va_copy" >&6; }
25017
25018 if test "x$glib_cv_va_copy" = "xyes"; then
25019   g_va_copy_func=va_copy
25020 else if test "x$glib_cv___va_copy" = "xyes"; then
25021   g_va_copy_func=__va_copy
25022 fi
25023 fi
25024
25025 if test -n "$g_va_copy_func"; then
25026
25027 cat >>confdefs.h <<_ACEOF
25028 #define G_VA_COPY $g_va_copy_func
25029 _ACEOF
25030
25031 fi
25032
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
25034 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
25035 if ${glib_cv_va_val_copy+:} false; then :
25036   $as_echo_n "(cached) " >&6
25037 else
25038
25039         if test "$cross_compiling" = yes; then :
25040   glib_cv_va_val_copy=yes
25041 else
25042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h.  */
25044 #include <stdarg.h>
25045 #include <stdlib.h>
25046         void f (int i, ...) {
25047         va_list args1, args2;
25048         va_start (args1, i);
25049         args2 = args1;
25050         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
25051           exit (1);
25052         va_end (args1); va_end (args2);
25053         }
25054         int main() {
25055           f (0, 42);
25056           return 0;
25057         }
25058 _ACEOF
25059 if ac_fn_c_try_run "$LINENO"; then :
25060   glib_cv_va_val_copy=yes
25061 else
25062   glib_cv_va_val_copy=no
25063 fi
25064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25065   conftest.$ac_objext conftest.beam conftest.$ac_ext
25066 fi
25067
25068
25069 fi
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
25071 $as_echo "$glib_cv_va_val_copy" >&6; }
25072
25073 if test "x$glib_cv_va_val_copy" = "xno"; then
25074
25075 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
25076
25077 fi
25078
25079 G_MODULE_LIBS=
25080 G_MODULE_LIBS_EXTRA=
25081 G_MODULE_PLUGIN_LIBS=
25082 if test x"$glib_native_win32" = xyes; then
25083     G_MODULE_LDFLAGS=
25084 else
25085   export SED
25086   G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
25087 fi
25088 G_MODULE_NEED_USCORE=0
25089 G_MODULE_BROKEN_RTLD_GLOBAL=0
25090 G_MODULE_HAVE_DLERROR=0
25091 if test -z "$G_MODULE_IMPL"; then
25092   case "$host" in
25093   *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
25094   esac
25095 fi
25096 if test -z "$G_MODULE_IMPL"; then
25097   case "$host" in
25098   *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
25099   esac
25100 fi
25101 if test -z "$G_MODULE_IMPL"; then
25102         ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25103 if test "x$ac_cv_func_dlopen" = xyes; then :
25104   ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
25105 if test "x$ac_cv_func_dlsym" = xyes; then :
25106   G_MODULE_IMPL=G_MODULE_IMPL_DL
25107 fi
25108
25109 fi
25110
25111 fi
25112 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
25113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
25114 $as_echo_n "checking for load_image in -lroot... " >&6; }
25115 if ${ac_cv_lib_root_load_image+:} false; then :
25116   $as_echo_n "(cached) " >&6
25117 else
25118   ac_check_lib_save_LIBS=$LIBS
25119 LIBS="-lroot  $LIBS"
25120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h.  */
25122
25123 /* Override any GCC internal prototype to avoid an error.
25124    Use char because int might match the return type of a GCC
25125    builtin and then its argument prototype would still apply.  */
25126 #ifdef __cplusplus
25127 extern "C"
25128 #endif
25129 char load_image ();
25130 int
25131 main ()
25132 {
25133 return load_image ();
25134   ;
25135   return 0;
25136 }
25137 _ACEOF
25138 if ac_fn_c_try_link "$LINENO"; then :
25139   ac_cv_lib_root_load_image=yes
25140 else
25141   ac_cv_lib_root_load_image=no
25142 fi
25143 rm -f core conftest.err conftest.$ac_objext \
25144     conftest$ac_exeext conftest.$ac_ext
25145 LIBS=$ac_check_lib_save_LIBS
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
25148 $as_echo "$ac_cv_lib_root_load_image" >&6; }
25149 if test "x$ac_cv_lib_root_load_image" = xyes; then :
25150   G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
25151       G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
25152       G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
25153       G_MODULE_IMPL=G_MODULE_IMPL_BEOS
25154 fi
25155
25156 fi
25157 if test -z "$G_MODULE_IMPL"; then
25158         ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
25159 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
25160   G_MODULE_IMPL=G_MODULE_IMPL_DYLD
25161                        G_MODULE_NEED_USCORE=1
25162 fi
25163
25164 fi
25165 if test -z "$G_MODULE_IMPL"; then
25166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25168 if ${ac_cv_lib_dl_dlopen+:} false; then :
25169   $as_echo_n "(cached) " >&6
25170 else
25171   ac_check_lib_save_LIBS=$LIBS
25172 LIBS="-ldl  $LIBS"
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h.  */
25175
25176 /* Override any GCC internal prototype to avoid an error.
25177    Use char because int might match the return type of a GCC
25178    builtin and then its argument prototype would still apply.  */
25179 #ifdef __cplusplus
25180 extern "C"
25181 #endif
25182 char dlopen ();
25183 int
25184 main ()
25185 {
25186 return dlopen ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 if ac_fn_c_try_link "$LINENO"; then :
25192   ac_cv_lib_dl_dlopen=yes
25193 else
25194   ac_cv_lib_dl_dlopen=no
25195 fi
25196 rm -f core conftest.err conftest.$ac_objext \
25197     conftest$ac_exeext conftest.$ac_ext
25198 LIBS=$ac_check_lib_save_LIBS
25199 fi
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25202 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
25204 $as_echo_n "checking for dlsym in -ldl... " >&6; }
25205 if ${ac_cv_lib_dl_dlsym+:} false; then :
25206   $as_echo_n "(cached) " >&6
25207 else
25208   ac_check_lib_save_LIBS=$LIBS
25209 LIBS="-ldl  $LIBS"
25210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25211 /* end confdefs.h.  */
25212
25213 /* Override any GCC internal prototype to avoid an error.
25214    Use char because int might match the return type of a GCC
25215    builtin and then its argument prototype would still apply.  */
25216 #ifdef __cplusplus
25217 extern "C"
25218 #endif
25219 char dlsym ();
25220 int
25221 main ()
25222 {
25223 return dlsym ();
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 if ac_fn_c_try_link "$LINENO"; then :
25229   ac_cv_lib_dl_dlsym=yes
25230 else
25231   ac_cv_lib_dl_dlsym=no
25232 fi
25233 rm -f core conftest.err conftest.$ac_objext \
25234     conftest$ac_exeext conftest.$ac_ext
25235 LIBS=$ac_check_lib_save_LIBS
25236 fi
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
25238 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
25239 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
25240   G_MODULE_LIBS=-ldl
25241                                    G_MODULE_IMPL=G_MODULE_IMPL_DL
25242 fi
25243
25244 fi
25245
25246 fi
25247 if test -z "$G_MODULE_IMPL"; then
25248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
25249 $as_echo_n "checking for shl_load in -ldld... " >&6; }
25250 if ${ac_cv_lib_dld_shl_load+:} false; then :
25251   $as_echo_n "(cached) " >&6
25252 else
25253   ac_check_lib_save_LIBS=$LIBS
25254 LIBS="-ldld  $LIBS"
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h.  */
25257
25258 /* Override any GCC internal prototype to avoid an error.
25259    Use char because int might match the return type of a GCC
25260    builtin and then its argument prototype would still apply.  */
25261 #ifdef __cplusplus
25262 extern "C"
25263 #endif
25264 char shl_load ();
25265 int
25266 main ()
25267 {
25268 return shl_load ();
25269   ;
25270   return 0;
25271 }
25272 _ACEOF
25273 if ac_fn_c_try_link "$LINENO"; then :
25274   ac_cv_lib_dld_shl_load=yes
25275 else
25276   ac_cv_lib_dld_shl_load=no
25277 fi
25278 rm -f core conftest.err conftest.$ac_objext \
25279     conftest$ac_exeext conftest.$ac_ext
25280 LIBS=$ac_check_lib_save_LIBS
25281 fi
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
25283 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
25284 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
25285   G_MODULE_LIBS=-ldld
25286                 G_MODULE_IMPL=G_MODULE_IMPL_DLD
25287 fi
25288
25289 fi
25290 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
25291         LIBS_orig="$LIBS"
25292         LDFLAGS_orig="$LDFLAGS"
25293         LIBS="$G_MODULE_LIBS $LIBS"
25294         LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
25295         echo "void glib_plugin_test(void) { }" > plugin.c
25296         ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
25297                 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
25298         ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
25299                 ${LDFLAGS} -module -o plugin.la -export-dynamic \
25300                 -shrext ".o" -avoid-version plugin.lo \
25301                 -rpath /dont/care >/dev/null 2>&1
25302         eval `./libtool --config | grep ^objdir`
25303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
25304 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
25305 if ${glib_cv_rtldglobal_broken+:} false; then :
25306   $as_echo_n "(cached) " >&6
25307 else
25308
25309                 if test "$cross_compiling" = yes; then :
25310   glib_cv_rtldglobal_broken=no
25311 else
25312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314
25315 #include <dlfcn.h>
25316 #ifndef RTLD_GLOBAL
25317 #  define RTLD_GLOBAL 0
25318 #endif
25319 #ifndef RTLD_LAZY
25320 #  define RTLD_LAZY 0
25321 #endif
25322 int glib_plugin_test;
25323 int main () {
25324     void *handle, *global, *local;
25325     global = &glib_plugin_test;
25326     handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
25327     if (!handle) return 0;
25328     local = dlsym (handle, "glib_plugin_test");
25329     return global == local;
25330 }
25331 _ACEOF
25332 if ac_fn_c_try_run "$LINENO"; then :
25333   glib_cv_rtldglobal_broken=no
25334 else
25335   glib_cv_rtldglobal_broken=yes
25336 fi
25337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25338   conftest.$ac_objext conftest.beam conftest.$ac_ext
25339 fi
25340
25341                 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
25342                 rmdir ${objdir} 2>/dev/null
25343
25344 fi
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
25346 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
25347         if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
25348                 G_MODULE_BROKEN_RTLD_GLOBAL=1
25349         else
25350                 G_MODULE_BROKEN_RTLD_GLOBAL=0
25351         fi
25352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
25353 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
25354 if ${glib_cv_uscore+:} false; then :
25355   $as_echo_n "(cached) " >&6
25356 else
25357
25358                 if test "$cross_compiling" = yes; then :
25359   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25361 as_fn_error $? "cannot run test program while cross compiling
25362 See \`config.log' for more details" "$LINENO" 5; }
25363 else
25364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366 #include <dlfcn.h>
25367                 int glib_underscore_test (void) { return 42; }
25368                 int main() {
25369                   void *f1 = (void*)0, *f2 = (void*)0, *handle;
25370                   handle = dlopen ((void*)0, 0);
25371                   if (handle) {
25372                     f1 = dlsym (handle, "glib_underscore_test");
25373                     f2 = dlsym (handle, "_glib_underscore_test");
25374                   } return (!f2 || f1);
25375                 }
25376 _ACEOF
25377 if ac_fn_c_try_run "$LINENO"; then :
25378   glib_cv_uscore=yes
25379 else
25380   glib_cv_uscore=no
25381 fi
25382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25383   conftest.$ac_objext conftest.beam conftest.$ac_ext
25384 fi
25385
25386                 rm -f plugin.c plugin.$ac_objext plugin.lo
25387
25388 fi
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
25390 $as_echo "$glib_cv_uscore" >&6; }
25391         if test "x${glib_cv_uscore+set}" != "xset" ; then
25392   as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
25393 fi
25394
25395         if test "x$glib_cv_uscore" = "xyes"; then
25396                 G_MODULE_NEED_USCORE=1
25397         else
25398                 G_MODULE_NEED_USCORE=0
25399         fi
25400
25401         LDFLAGS="$LDFLAGS_orig"
25402         ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
25403 if test "x$ac_cv_func_dlerror" = xyes; then :
25404   G_MODULE_HAVE_DLERROR=1
25405 else
25406   G_MODULE_HAVE_DLERROR=0
25407 fi
25408
25409         LIBS="$LIBS_orig"
25410 fi
25411 if test -z "$G_MODULE_IMPL"; then
25412         G_MODULE_IMPL=0
25413         G_MODULE_SUPPORTED=false
25414 else
25415         G_MODULE_SUPPORTED=true
25416 fi
25417
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
25419 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
25420 export SED
25421 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
25422 eval $shrext_cmds
25423 module=yes eval std_shrext=$shrext_cmds
25424 # chop the initial dot
25425 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
25427 $as_echo ".$glib_gmodule_suffix" >&6; }
25428 # any reason it may fail?
25429 if test "x$glib_gmodule_suffix" = x; then
25430         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
25431 fi
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
25446 $as_echo_n "checking for gspawn implementation... " >&6; }
25447 case "$host" in
25448   *-*-mingw*)
25449     GSPAWN=gspawn-win32.lo
25450     ;;
25451   *)
25452     GSPAWN=gspawn.lo
25453     ;;
25454 esac
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
25456 $as_echo "$GSPAWN" >&6; }
25457
25458
25459
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
25461 $as_echo_n "checking for GIOChannel implementation... " >&6; }
25462 case "$host" in
25463   *-*-mingw*)
25464     GIO=giowin32.lo
25465     ;;
25466   *)
25467     GIO=giounix.lo
25468     ;;
25469 esac
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
25471 $as_echo "$GIO" >&6; }
25472
25473
25474
25475
25476 # Check whether --with-gio-module-dir was given.
25477 if test "${with_gio_module_dir+set}" = set; then :
25478   withval=$with_gio_module_dir;
25479 else
25480   with_gio_module_dir='${libdir}/gio/modules'
25481 fi
25482
25483 GIO_MODULE_DIR=$with_gio_module_dir
25484
25485
25486 # Check whether --enable-selinux was given.
25487 if test "${enable_selinux+set}" = set; then :
25488   enableval=$enable_selinux;
25489 fi
25490
25491 msg_selinux=no
25492 SELINUX_LIBS=
25493 if test "x$enable_selinux" != "xno"; then
25494
25495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25496 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25497 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
25498   $as_echo_n "(cached) " >&6
25499 else
25500   ac_check_lib_save_LIBS=$LIBS
25501 LIBS="-lselinux  $LIBS"
25502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25503 /* end confdefs.h.  */
25504
25505 /* Override any GCC internal prototype to avoid an error.
25506    Use char because int might match the return type of a GCC
25507    builtin and then its argument prototype would still apply.  */
25508 #ifdef __cplusplus
25509 extern "C"
25510 #endif
25511 char is_selinux_enabled ();
25512 int
25513 main ()
25514 {
25515 return is_selinux_enabled ();
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 if ac_fn_c_try_link "$LINENO"; then :
25521   ac_cv_lib_selinux_is_selinux_enabled=yes
25522 else
25523   ac_cv_lib_selinux_is_selinux_enabled=no
25524 fi
25525 rm -f core conftest.err conftest.$ac_objext \
25526     conftest$ac_exeext conftest.$ac_ext
25527 LIBS=$ac_check_lib_save_LIBS
25528 fi
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25530 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25531 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
25532   for ac_header in selinux/selinux.h
25533 do :
25534   ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25535 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
25536   cat >>confdefs.h <<_ACEOF
25537 #define HAVE_SELINUX_SELINUX_H 1
25538 _ACEOF
25539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
25540 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
25541 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
25542   $as_echo_n "(cached) " >&6
25543 else
25544   ac_check_lib_save_LIBS=$LIBS
25545 LIBS="-lselinux  $LIBS"
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h.  */
25548
25549 /* Override any GCC internal prototype to avoid an error.
25550    Use char because int might match the return type of a GCC
25551    builtin and then its argument prototype would still apply.  */
25552 #ifdef __cplusplus
25553 extern "C"
25554 #endif
25555 char lgetfilecon_raw ();
25556 int
25557 main ()
25558 {
25559 return lgetfilecon_raw ();
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 if ac_fn_c_try_link "$LINENO"; then :
25565   ac_cv_lib_selinux_lgetfilecon_raw=yes
25566 else
25567   ac_cv_lib_selinux_lgetfilecon_raw=no
25568 fi
25569 rm -f core conftest.err conftest.$ac_objext \
25570     conftest$ac_exeext conftest.$ac_ext
25571 LIBS=$ac_check_lib_save_LIBS
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
25574 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
25575 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
25576
25577 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
25578
25579         SELINUX_LIBS="-lselinux"
25580         msg_selinux=yes
25581 fi
25582
25583
25584 fi
25585
25586 done
25587
25588
25589 fi
25590
25591 fi
25592
25593
25594 inotify_support=no
25595 for ac_header in sys/inotify.h
25596 do :
25597   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
25598 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
25599   cat >>confdefs.h <<_ACEOF
25600 #define HAVE_SYS_INOTIFY_H 1
25601 _ACEOF
25602
25603         inotify_support=yes
25604         for ac_func in inotify_init1
25605 do :
25606   ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
25607 if test "x$ac_cv_func_inotify_init1" = xyes; then :
25608   cat >>confdefs.h <<_ACEOF
25609 #define HAVE_INOTIFY_INIT1 1
25610 _ACEOF
25611
25612 fi
25613 done
25614
25615
25616 fi
25617
25618 done
25619
25620
25621  if test "$inotify_support" = "yes"; then
25622   HAVE_INOTIFY_TRUE=
25623   HAVE_INOTIFY_FALSE='#'
25624 else
25625   HAVE_INOTIFY_TRUE='#'
25626   HAVE_INOTIFY_FALSE=
25627 fi
25628
25629
25630 fen_support=no
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h.  */
25633
25634 #include <port.h>
25635 #ifndef PORT_SOURCE_FILE
25636 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
25637 #endif
25638 int main() { return 0; }
25639 _ACEOF
25640 if ac_fn_c_try_compile "$LINENO"; then :
25641
25642         fen_support=yes
25643
25644 fi
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646
25647  if test "$fen_support" = "yes"; then
25648   HAVE_FEN_TRUE=
25649   HAVE_FEN_FALSE='#'
25650 else
25651   HAVE_FEN_TRUE='#'
25652   HAVE_FEN_FALSE=
25653 fi
25654
25655
25656
25657 should_disable_fam=no
25658
25659 # Check whether --enable-fam was given.
25660 if test "${enable_fam+set}" = set; then :
25661   enableval=$enable_fam;
25662                                 if test "x$enable_fam" = "xno"; then
25663                                         should_disable_fam=yes
25664                                 fi
25665
25666
25667 fi
25668
25669 fam_support=no
25670 FAM_LIBS=
25671 if test "x$should_disable_fam" = "xno"; then
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
25673 $as_echo_n "checking for FAMOpen in -lfam... " >&6; }
25674 if ${ac_cv_lib_fam_FAMOpen+:} false; then :
25675   $as_echo_n "(cached) " >&6
25676 else
25677   ac_check_lib_save_LIBS=$LIBS
25678 LIBS="-lfam  $LIBS"
25679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680 /* end confdefs.h.  */
25681
25682 /* Override any GCC internal prototype to avoid an error.
25683    Use char because int might match the return type of a GCC
25684    builtin and then its argument prototype would still apply.  */
25685 #ifdef __cplusplus
25686 extern "C"
25687 #endif
25688 char FAMOpen ();
25689 int
25690 main ()
25691 {
25692 return FAMOpen ();
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 if ac_fn_c_try_link "$LINENO"; then :
25698   ac_cv_lib_fam_FAMOpen=yes
25699 else
25700   ac_cv_lib_fam_FAMOpen=no
25701 fi
25702 rm -f core conftest.err conftest.$ac_objext \
25703     conftest$ac_exeext conftest.$ac_ext
25704 LIBS=$ac_check_lib_save_LIBS
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
25707 $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
25708 if test "x$ac_cv_lib_fam_FAMOpen" = xyes; then :
25709   for ac_header in fam.h
25710 do :
25711   ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
25712 if test "x$ac_cv_header_fam_h" = xyes; then :
25713   cat >>confdefs.h <<_ACEOF
25714 #define HAVE_FAM_H 1
25715 _ACEOF
25716
25717 $as_echo "#define HAVE_FAM /**/" >>confdefs.h
25718
25719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5
25720 $as_echo_n "checking for FAMNoExists in -lfam... " >&6; }
25721 if ${ac_cv_lib_fam_FAMNoExists+:} false; then :
25722   $as_echo_n "(cached) " >&6
25723 else
25724   ac_check_lib_save_LIBS=$LIBS
25725 LIBS="-lfam  $LIBS"
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h.  */
25728
25729 /* Override any GCC internal prototype to avoid an error.
25730    Use char because int might match the return type of a GCC
25731    builtin and then its argument prototype would still apply.  */
25732 #ifdef __cplusplus
25733 extern "C"
25734 #endif
25735 char FAMNoExists ();
25736 int
25737 main ()
25738 {
25739 return FAMNoExists ();
25740   ;
25741   return 0;
25742 }
25743 _ACEOF
25744 if ac_fn_c_try_link "$LINENO"; then :
25745   ac_cv_lib_fam_FAMNoExists=yes
25746 else
25747   ac_cv_lib_fam_FAMNoExists=no
25748 fi
25749 rm -f core conftest.err conftest.$ac_objext \
25750     conftest$ac_exeext conftest.$ac_ext
25751 LIBS=$ac_check_lib_save_LIBS
25752 fi
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5
25754 $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; }
25755 if test "x$ac_cv_lib_fam_FAMNoExists" = xyes; then :
25756
25757 $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h
25758
25759 fi
25760
25761      FAM_LIBS="-lfam"
25762      fam_support=yes
25763 else
25764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5
25765 $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;}
25766 fi
25767
25768 done
25769
25770 else
25771   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5
25772 $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;}
25773 fi
25774
25775
25776 fi
25777  if test "$fam_support" = "yes"; then
25778   HAVE_FAM_TRUE=
25779   HAVE_FAM_FALSE='#'
25780 else
25781   HAVE_FAM_TRUE='#'
25782   HAVE_FAM_FALSE=
25783 fi
25784
25785
25786
25787 # Check whether --enable-xattr was given.
25788 if test "${enable_xattr+set}" = set; then :
25789   enableval=$enable_xattr;
25790 fi
25791
25792 msg_xattr=no
25793 XATTR_LIBS=
25794 if test "x$enable_xattr" != "xno"; then
25795
25796
25797
25798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
25799 $as_echo_n "checking for getxattr in -lc... " >&6; }
25800 if ${ac_cv_lib_c_getxattr+:} false; then :
25801   $as_echo_n "(cached) " >&6
25802 else
25803   ac_check_lib_save_LIBS=$LIBS
25804 LIBS="-lc  $LIBS"
25805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25806 /* end confdefs.h.  */
25807
25808 /* Override any GCC internal prototype to avoid an error.
25809    Use char because int might match the return type of a GCC
25810    builtin and then its argument prototype would still apply.  */
25811 #ifdef __cplusplus
25812 extern "C"
25813 #endif
25814 char getxattr ();
25815 int
25816 main ()
25817 {
25818 return getxattr ();
25819   ;
25820   return 0;
25821 }
25822 _ACEOF
25823 if ac_fn_c_try_link "$LINENO"; then :
25824   ac_cv_lib_c_getxattr=yes
25825 else
25826   ac_cv_lib_c_getxattr=no
25827 fi
25828 rm -f core conftest.err conftest.$ac_objext \
25829     conftest$ac_exeext conftest.$ac_ext
25830 LIBS=$ac_check_lib_save_LIBS
25831 fi
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
25833 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
25834 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
25835   for ac_header in sys/xattr.h
25836 do :
25837   ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
25838 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
25839   cat >>confdefs.h <<_ACEOF
25840 #define HAVE_SYS_XATTR_H 1
25841 _ACEOF
25842
25843 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25844
25845       msg_xattr=yes
25846 fi
25847
25848 done
25849
25850
25851 fi
25852
25853
25854   if test "x$msg_xattr" != "xyes"; then
25855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
25856 $as_echo_n "checking for getxattr in -lattr... " >&6; }
25857 if ${ac_cv_lib_attr_getxattr+:} false; then :
25858   $as_echo_n "(cached) " >&6
25859 else
25860   ac_check_lib_save_LIBS=$LIBS
25861 LIBS="-lattr  $LIBS"
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h.  */
25864
25865 /* Override any GCC internal prototype to avoid an error.
25866    Use char because int might match the return type of a GCC
25867    builtin and then its argument prototype would still apply.  */
25868 #ifdef __cplusplus
25869 extern "C"
25870 #endif
25871 char getxattr ();
25872 int
25873 main ()
25874 {
25875 return getxattr ();
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 if ac_fn_c_try_link "$LINENO"; then :
25881   ac_cv_lib_attr_getxattr=yes
25882 else
25883   ac_cv_lib_attr_getxattr=no
25884 fi
25885 rm -f core conftest.err conftest.$ac_objext \
25886     conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
25890 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
25891 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
25892   for ac_header in attr/xattr.h
25893 do :
25894   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
25895 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
25896   cat >>confdefs.h <<_ACEOF
25897 #define HAVE_ATTR_XATTR_H 1
25898 _ACEOF
25899
25900 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25901
25902         XATTR_LIBS="-lattr"
25903         msg_xattr=yes
25904 fi
25905
25906 done
25907
25908
25909 fi
25910
25911   fi
25912
25913   if test "x$msg_xattr" = "xyes"; then
25914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
25915 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
25916     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25917 /* end confdefs.h.  */
25918
25919       #include <stdio.h>
25920       #ifdef HAVE_SYS_TYPES_H
25921       #include <sys/types.h>
25922       #endif
25923       #ifdef HAVE_SYS_XATTR_H
25924       #include <sys/xattr.h>
25925       #elif HAVE_ATTR_XATTR_H
25926       #include <attr/xattr.h>
25927       #endif
25928
25929 int
25930 main ()
25931 {
25932 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938
25939
25940 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
25941
25942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25943 $as_echo "yes" >&6; }
25944
25945 else
25946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25947 $as_echo "no" >&6; }
25948
25949 fi
25950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25951   fi
25952
25953 fi
25954
25955
25956
25957
25958 pkg_failed=no
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBELF" >&5
25960 $as_echo_n "checking for LIBELF... " >&6; }
25961
25962 if test -n "$LIBELF_CFLAGS"; then
25963     pkg_cv_LIBELF_CFLAGS="$LIBELF_CFLAGS"
25964  elif test -n "$PKG_CONFIG"; then
25965     if test -n "$PKG_CONFIG" && \
25966     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
25967   ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
25968   ac_status=$?
25969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970   test $ac_status = 0; }; then
25971   pkg_cv_LIBELF_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null`
25972 else
25973   pkg_failed=yes
25974 fi
25975  else
25976     pkg_failed=untried
25977 fi
25978 if test -n "$LIBELF_LIBS"; then
25979     pkg_cv_LIBELF_LIBS="$LIBELF_LIBS"
25980  elif test -n "$PKG_CONFIG"; then
25981     if test -n "$PKG_CONFIG" && \
25982     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5
25983   ($PKG_CONFIG --exists --print-errors "libelf") 2>&5
25984   ac_status=$?
25985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986   test $ac_status = 0; }; then
25987   pkg_cv_LIBELF_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null`
25988 else
25989   pkg_failed=yes
25990 fi
25991  else
25992     pkg_failed=untried
25993 fi
25994
25995
25996
25997 if test $pkg_failed = yes; then
25998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25999 $as_echo "no" >&6; }
26000
26001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26002         _pkg_short_errors_supported=yes
26003 else
26004         _pkg_short_errors_supported=no
26005 fi
26006         if test $_pkg_short_errors_supported = yes; then
26007                 LIBELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libelf" 2>&1`
26008         else
26009                 LIBELF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libelf" 2>&1`
26010         fi
26011         # Put the nasty error message in config.log where it belongs
26012         echo "$LIBELF_PKG_ERRORS" >&5
26013
26014         have_libelf=maybe
26015 elif test $pkg_failed = untried; then
26016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26018         have_libelf=maybe
26019 else
26020         LIBELF_CFLAGS=$pkg_cv_LIBELF_CFLAGS
26021         LIBELF_LIBS=$pkg_cv_LIBELF_LIBS
26022         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26023 $as_echo "yes" >&6; }
26024         have_libelf=yes
26025 fi
26026
26027 if test $have_libelf = maybe; then
26028   glib_save_LIBS=$LIBS
26029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
26030 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
26031 if ${ac_cv_lib_elf_elf_begin+:} false; then :
26032   $as_echo_n "(cached) " >&6
26033 else
26034   ac_check_lib_save_LIBS=$LIBS
26035 LIBS="-lelf  $LIBS"
26036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26037 /* end confdefs.h.  */
26038
26039 /* Override any GCC internal prototype to avoid an error.
26040    Use char because int might match the return type of a GCC
26041    builtin and then its argument prototype would still apply.  */
26042 #ifdef __cplusplus
26043 extern "C"
26044 #endif
26045 char elf_begin ();
26046 int
26047 main ()
26048 {
26049 return elf_begin ();
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 if ac_fn_c_try_link "$LINENO"; then :
26055   ac_cv_lib_elf_elf_begin=yes
26056 else
26057   ac_cv_lib_elf_elf_begin=no
26058 fi
26059 rm -f core conftest.err conftest.$ac_objext \
26060     conftest$ac_exeext conftest.$ac_ext
26061 LIBS=$ac_check_lib_save_LIBS
26062 fi
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
26064 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
26065 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
26066   cat >>confdefs.h <<_ACEOF
26067 #define HAVE_LIBELF 1
26068 _ACEOF
26069
26070   LIBS="-lelf $LIBS"
26071
26072 else
26073   have_libelf=no
26074 fi
26075
26076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
26077 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
26078 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
26079   $as_echo_n "(cached) " >&6
26080 else
26081   ac_check_lib_save_LIBS=$LIBS
26082 LIBS="-lelf  $LIBS"
26083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h.  */
26085
26086 /* Override any GCC internal prototype to avoid an error.
26087    Use char because int might match the return type of a GCC
26088    builtin and then its argument prototype would still apply.  */
26089 #ifdef __cplusplus
26090 extern "C"
26091 #endif
26092 char elf_getshdrstrndx ();
26093 int
26094 main ()
26095 {
26096 return elf_getshdrstrndx ();
26097   ;
26098   return 0;
26099 }
26100 _ACEOF
26101 if ac_fn_c_try_link "$LINENO"; then :
26102   ac_cv_lib_elf_elf_getshdrstrndx=yes
26103 else
26104   ac_cv_lib_elf_elf_getshdrstrndx=no
26105 fi
26106 rm -f core conftest.err conftest.$ac_objext \
26107     conftest$ac_exeext conftest.$ac_ext
26108 LIBS=$ac_check_lib_save_LIBS
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
26111 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
26112 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
26113   cat >>confdefs.h <<_ACEOF
26114 #define HAVE_LIBELF 1
26115 _ACEOF
26116
26117   LIBS="-lelf $LIBS"
26118
26119 else
26120   have_libelf=no
26121 fi
26122
26123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrnum in -lelf" >&5
26124 $as_echo_n "checking for elf_getshdrnum in -lelf... " >&6; }
26125 if ${ac_cv_lib_elf_elf_getshdrnum+:} false; then :
26126   $as_echo_n "(cached) " >&6
26127 else
26128   ac_check_lib_save_LIBS=$LIBS
26129 LIBS="-lelf  $LIBS"
26130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131 /* end confdefs.h.  */
26132
26133 /* Override any GCC internal prototype to avoid an error.
26134    Use char because int might match the return type of a GCC
26135    builtin and then its argument prototype would still apply.  */
26136 #ifdef __cplusplus
26137 extern "C"
26138 #endif
26139 char elf_getshdrnum ();
26140 int
26141 main ()
26142 {
26143 return elf_getshdrnum ();
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 if ac_fn_c_try_link "$LINENO"; then :
26149   ac_cv_lib_elf_elf_getshdrnum=yes
26150 else
26151   ac_cv_lib_elf_elf_getshdrnum=no
26152 fi
26153 rm -f core conftest.err conftest.$ac_objext \
26154     conftest$ac_exeext conftest.$ac_ext
26155 LIBS=$ac_check_lib_save_LIBS
26156 fi
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrnum" >&5
26158 $as_echo "$ac_cv_lib_elf_elf_getshdrnum" >&6; }
26159 if test "x$ac_cv_lib_elf_elf_getshdrnum" = xyes; then :
26160   cat >>confdefs.h <<_ACEOF
26161 #define HAVE_LIBELF 1
26162 _ACEOF
26163
26164   LIBS="-lelf $LIBS"
26165
26166 else
26167   have_libelf=no
26168 fi
26169
26170   ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
26171 if test "x$ac_cv_header_libelf_h" = xyes; then :
26172
26173 else
26174   have_libelf=no
26175 fi
26176
26177
26178   LIBS=$glib_save_LIBS
26179
26180   if test $have_libelf != no; then
26181     LIBELF_LIBS=-lelf
26182     have_libelf=yes
26183   fi
26184 fi
26185
26186 if test $have_libelf = yes; then
26187
26188 $as_echo "#define HAVE_LIBELF 1" >>confdefs.h
26189
26190 fi
26191
26192
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
26194 $as_echo_n "checking for platform-dependent source... " >&6; }
26195 case "$host" in
26196   *-*-cygwin*|*-*-mingw*)
26197     PLATFORMDEP=gwin32.lo
26198     ;;
26199   *)
26200     PLATFORMDEP=
26201     ;;
26202 esac
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
26204 $as_echo "$PLATFORMDEP" >&6; }
26205
26206
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
26208 $as_echo_n "checking whether to compile timeloop... " >&6; }
26209 case "$host" in
26210   *-*-cygwin*|*-*-mingw*|*-*-minix)
26211     enable_timeloop=no
26212     ;;
26213   *)
26214     enable_timeloop=yes
26215     ;;
26216 esac
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
26218 $as_echo "$enable_timeloop" >&6; }
26219  if test x$enable_timeloop = xyes; then
26220   ENABLE_TIMELOOP_TRUE=
26221   ENABLE_TIMELOOP_FALSE='#'
26222 else
26223   ENABLE_TIMELOOP_TRUE='#'
26224   ENABLE_TIMELOOP_FALSE=
26225 fi
26226
26227
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
26229 $as_echo_n "checking if building for some Win32 platform... " >&6; }
26230 case "$host" in
26231   *-*-mingw*|*-*-cygwin*)
26232     platform_win32=yes
26233     ;;
26234   *)
26235     platform_win32=no
26236     ;;
26237 esac
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
26239 $as_echo "$platform_win32" >&6; }
26240  if test x$platform_win32 = xyes; then
26241   PLATFORM_WIN32_TRUE=
26242   PLATFORM_WIN32_FALSE='#'
26243 else
26244   PLATFORM_WIN32_TRUE='#'
26245   PLATFORM_WIN32_FALSE=
26246 fi
26247
26248
26249
26250
26251 # Check whether --with-threads was given.
26252 if test "${with_threads+set}" = set; then :
26253   withval=$with_threads;
26254 else
26255   with_threads=yes
26256 fi
26257
26258
26259
26260 THREAD_NO_IMPLEMENTATION="No thread implementation found."
26261
26262 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
26263                 platform (normally it's "_REENTRANT"). I'll not use any flag on
26264                 compilation now, but then your programs might not work.
26265                 Please provide information on how it is done on your system."
26266
26267 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
26268                  "
26269
26270 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
26271                   provide information on your thread implementation."
26272
26273 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
26274                 functions will not be MT-safe during their first call because
26275                 there is no working 'getpwuid_r' on your system."
26276
26277 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
26278                 because there is no 'localtime_r' on your system."
26279
26280 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
26281                 linking threaded applications. As GLib cannot do that
26282                 automatically, you will get an linkg error everytime you are
26283                 not using the right compiler. In that case you have to relink
26284                 with the right compiler. Ususally just '_r' is appended
26285                 to the compiler name."
26286
26287
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
26289 $as_echo_n "checking for thread implementation... " >&6; }
26290
26291 have_threads=no
26292 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
26293         # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
26294         # -U_OSF_SOURCE is for Digital UNIX 4.0d
26295         GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
26296         glib_save_CPPFLAGS="$CPPFLAGS"
26297         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26298         if test "x$have_threads" = xno; then
26299                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300 /* end confdefs.h.  */
26301 #include <pthread.h>
26302 int
26303 main ()
26304 {
26305 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26306   ;
26307   return 0;
26308 }
26309 _ACEOF
26310 if ac_fn_c_try_compile "$LINENO"; then :
26311   have_threads=posix
26312 fi
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314         fi
26315         # Tru64Unix requires -pthread to find pthread.h. See #103020
26316         CPPFLAGS="$CPPFLAGS -pthread"
26317         if test "x$have_threads" = xno; then
26318         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h.  */
26320 #include <pthread.h>
26321 int
26322 main ()
26323 {
26324 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26325   ;
26326   return 0;
26327 }
26328 _ACEOF
26329 if ac_fn_c_try_compile "$LINENO"; then :
26330   have_threads=posix
26331 fi
26332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333         fi
26334         CPPFLAGS="$glib_save_CPPFLAGS"
26335 fi
26336 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
26337         case $host in
26338                 *-*-mingw*)
26339                 have_threads=win32
26340                 ;;
26341         esac
26342 fi
26343
26344 if test "x$have_threads" = xno; then
26345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
26346 $as_echo "none available" >&6; }
26347         as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
26348 else
26349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
26350 $as_echo "$have_threads" >&6; }
26351 fi
26352
26353
26354
26355 G_THREAD_LIBS=
26356 G_THREAD_LIBS_EXTRA=
26357 G_THREAD_CFLAGS=
26358
26359
26360
26361 if test x"$have_threads" = xposix; then
26362   # First we test for posix, whether -pthread or -pthreads do the trick as
26363   # both CPPFLAG and LIBS.
26364   # One of them does for most gcc versions and some other platforms/compilers
26365   # too and could be considered as the canonical way to go.
26366   case $host in
26367     *-*-cygwin*|*-*-darwin*)
26368        # skip cygwin and darwin -pthread or -pthreads test
26369        ;;
26370     *-solaris*)
26371       # These compiler/linker flags work with both Sun Studio and gcc
26372       # Sun Studio expands -mt to -D_REENTRANT and -lthread
26373       # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
26374       G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
26375       G_THREAD_LIBS="-lpthread -lthread"
26376       ;;
26377     *)
26378       for flag in pthread pthreads mt; do
26379         glib_save_CFLAGS="$CFLAGS"
26380         CFLAGS="$CFLAGS -$flag"
26381         if test "$cross_compiling" = yes; then :
26382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h.  */
26384
26385 #include <pthread.h>
26386 int check_me = 0;
26387 void* func(void* data) {check_me = 42; return &check_me;}
26388 int main()
26389  { pthread_t t;
26390    void *ret;
26391    pthread_create (&t, 0, func, 0);
26392    pthread_join (t, &ret);
26393    return (check_me != 42 || ret != &check_me);
26394 }
26395 _ACEOF
26396 if ac_fn_c_try_link "$LINENO"; then :
26397   glib_flag_works=yes
26398 else
26399   glib_flag_works=no
26400 fi
26401 rm -f core conftest.err conftest.$ac_objext \
26402     conftest$ac_exeext conftest.$ac_ext
26403 else
26404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26405 /* end confdefs.h.  */
26406
26407 #include <pthread.h>
26408 int check_me = 0;
26409 void* func(void* data) {check_me = 42; return &check_me;}
26410 int main()
26411  { pthread_t t;
26412    void *ret;
26413    pthread_create (&t, 0, func, 0);
26414    pthread_join (t, &ret);
26415    return (check_me != 42 || ret != &check_me);
26416 }
26417 _ACEOF
26418 if ac_fn_c_try_run "$LINENO"; then :
26419   glib_flag_works=yes
26420 else
26421   glib_flag_works=no
26422 fi
26423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26424   conftest.$ac_objext conftest.beam conftest.$ac_ext
26425 fi
26426
26427         CFLAGS="$glib_save_CFLAGS"
26428         if test $glib_flag_works = yes ; then
26429            G_THREAD_CFLAGS=-$flag
26430         G_THREAD_LIBS=-$flag
26431         break;
26432         fi
26433       done
26434        ;;
26435   esac
26436 fi
26437
26438 if test x"$G_THREAD_CFLAGS" = x; then
26439
26440   # The canonical -pthread[s] does not work. Try something different.
26441
26442   case $host in
26443         *-aix*)
26444                 if test x"$GCC" = xyes; then
26445                         # GCC 3.0 and above needs -pthread.
26446                         # Should be coverd by the case above.
26447                         # GCC 2.x and below needs -mthreads
26448                         G_THREAD_CFLAGS="-mthreads"
26449                         G_THREAD_LIBS=$G_THREAD_CFLAGS
26450                 else
26451                         # We are probably using the aix compiler. Normaly a
26452                         # program would have to be compiled with the _r variant
26453                         # of the corresponding compiler, but we as GLib cannot
26454                         # do that: but the good news is that for compiling the
26455                         # only difference is the added -D_THREAD_SAFE compile
26456                         # option. This is according to the "C for AIX User's
26457                         # Guide".
26458                         G_THREAD_CFLAGS="-D_THREAD_SAFE"
26459                 fi
26460                 ;;
26461         *-dg-dgux*)  # DG/UX
26462                 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
26463                 ;;
26464         *-sysv5uw7*) # UnixWare 7
26465                 # We are not using gcc with -pthread. Catched above.
26466                 G_THREAD_CFLAGS="-Kthread"
26467                 G_THREAD_LIBS=$G_THREAD_CFLAGS
26468                 ;;
26469         *-mingw*)
26470                 # No flag needed when using MSVCRT.DLL
26471                 G_THREAD_CFLAGS=""
26472                 ;;
26473         *)
26474                 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
26475                 ;;
26476   esac
26477
26478 fi
26479
26480 # if we are not finding the localtime_r function, then we probably are
26481 # not using the proper multithread flag
26482
26483 glib_save_CPPFLAGS="$CPPFLAGS"
26484 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26485
26486 # First we test, whether localtime_r is declared in time.h
26487 # directly. Then we test whether a macro localtime_r exists, in
26488 # which case localtime_r in the test program is replaced and thus
26489 # if we still find localtime_r in the output, it is not defined as
26490 # a macro.
26491
26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h.  */
26494 #include <time.h>
26495 _ACEOF
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26498
26499 else
26500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26501 /* end confdefs.h.  */
26502 #include <time.h>
26503                                                            localtime_r(a,b)
26504 _ACEOF
26505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26506   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
26508 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
26509 fi
26510 rm -f conftest*
26511
26512 fi
26513 rm -f conftest*
26514
26515
26516 CPPFLAGS="$glib_save_CPPFLAGS"
26517
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
26519 $as_echo_n "checking thread related cflags... " >&6; }
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
26521 $as_echo "$G_THREAD_CFLAGS" >&6; }
26522 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26523
26524
26525 case $have_threads in
26526         posix)
26527           glib_save_CPPFLAGS="$CPPFLAGS"
26528           CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26529           if test x"$G_THREAD_LIBS" = x; then
26530             case $host in
26531               *-aix*)
26532                 # We are not using gcc (would have set G_THREAD_LIBS) and thus
26533                 # probably using the aix compiler.
26534                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
26535 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
26536                 ;;
26537               *)
26538                 G_THREAD_LIBS=error
26539                 glib_save_LIBS="$LIBS"
26540                 for thread_lib in "" pthread pthread32 pthreads thread; do
26541                         if test x"$thread_lib" = x; then
26542                                 add_thread_lib=""
26543                                 IN=""
26544                         else
26545                                 add_thread_lib="-l$thread_lib"
26546                                 IN=" in -l$thread_lib"
26547                         fi
26548                         if test x"$have_threads" = xposix; then
26549                                 defattr=0
26550                         else
26551                                 defattr=pthread_attr_default
26552                         fi
26553
26554                         LIBS="$add_thread_lib $glib_save_LIBS"
26555
26556                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
26557 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
26558                         if test "$cross_compiling" = yes; then :
26559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560 /* end confdefs.h.  */
26561
26562 #include <pthread.h>
26563 int check_me = 0;
26564 void* func(void* data) {check_me = 42; return &check_me;}
26565 int main()
26566  { pthread_t t;
26567    void *ret;
26568    pthread_create (&t, $defattr, func, 0);
26569    pthread_join (t, &ret);
26570    return (check_me != 42 || ret != &check_me);
26571 }
26572 _ACEOF
26573 if ac_fn_c_try_link "$LINENO"; then :
26574   glib_result=yes
26575 else
26576   glib_result=no
26577 fi
26578 rm -f core conftest.err conftest.$ac_objext \
26579     conftest$ac_exeext conftest.$ac_ext
26580 else
26581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582 /* end confdefs.h.  */
26583
26584 #include <pthread.h>
26585 int check_me = 0;
26586 void* func(void* data) {check_me = 42; return &check_me;}
26587 int main()
26588  { pthread_t t;
26589    void *ret;
26590    pthread_create (&t, $defattr, func, 0);
26591    pthread_join (t, &ret);
26592    return (check_me != 42 || ret != &check_me);
26593 }
26594 _ACEOF
26595 if ac_fn_c_try_run "$LINENO"; then :
26596   glib_result=yes
26597 else
26598   glib_result=no
26599 fi
26600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26601   conftest.$ac_objext conftest.beam conftest.$ac_ext
26602 fi
26603
26604                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
26605 $as_echo "$glib_result" >&6; }
26606
26607                         if test "$glib_result" = "yes" ; then
26608                           G_THREAD_LIBS="$add_thread_lib"
26609                           break
26610                         fi
26611                 done
26612                 if test "x$G_THREAD_LIBS" = xerror; then
26613                   as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26614                 fi
26615                 LIBS="$glib_save_LIBS"
26616                 ;;
26617             esac
26618           fi
26619
26620           g_threads_impl="POSIX"
26621
26622           CPPFLAGS="$glib_save_CPPFLAGS"
26623           ;;
26624         win32)
26625            g_threads_impl="WIN32"
26626            ;;
26627         *)
26628            g_threads_impl="NONE"
26629            G_THREAD_LIBS=error
26630            ;;
26631 esac
26632
26633 if test "x$G_THREAD_LIBS" = xerror; then
26634         as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26635 fi
26636
26637 case $host in
26638   *-*-beos*)
26639     G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
26640     G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
26641     ;;
26642   *)
26643     ;;
26644 esac
26645
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
26647 $as_echo_n "checking thread related libraries... " >&6; }
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
26649 $as_echo "$G_THREAD_LIBS" >&6; }
26650
26651
26652 glib_save_LIBS="$LIBS"
26653 # we are not doing the following for now, as this might require glib
26654 # to always be linked with the thread libs on some platforms.
26655 # LIBS="$LIBS $G_THREAD_LIBS"
26656 for ac_func in localtime_r gmtime_r
26657 do :
26658   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26661   cat >>confdefs.h <<_ACEOF
26662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26663 _ACEOF
26664
26665 fi
26666 done
26667
26668 if test "$ac_cv_header_pwd_h" = "yes"; then
26669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
26670 $as_echo_n "checking for posix getpwuid_r... " >&6; }
26671 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
26672   $as_echo_n "(cached) " >&6
26673 else
26674   if test "$cross_compiling" = yes; then :
26675   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26677 as_fn_error $? "cannot run test program while cross compiling
26678 See \`config.log' for more details" "$LINENO" 5; }
26679 else
26680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26681 /* end confdefs.h.  */
26682
26683 #include <errno.h>
26684 #include <pwd.h>
26685 int main () {
26686     char buffer[10000];
26687     struct passwd pwd, *pwptr = &pwd;
26688     int error;
26689     errno = 0;
26690     error = getpwuid_r (0, &pwd, buffer,
26691                         sizeof (buffer), &pwptr);
26692    return (error < 0 && errno == ENOSYS)
26693            || error == ENOSYS;
26694 }
26695 _ACEOF
26696 if ac_fn_c_try_run "$LINENO"; then :
26697   ac_cv_func_posix_getpwuid_r=yes
26698 else
26699   ac_cv_func_posix_getpwuid_r=no
26700 fi
26701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26702   conftest.$ac_objext conftest.beam conftest.$ac_ext
26703 fi
26704
26705 fi
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
26707 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
26708         if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
26709   as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26710 fi
26711
26712         if test "$ac_cv_func_posix_getpwuid_r" = yes; then
26713
26714 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26715
26716         else
26717                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
26718 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
26719 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
26720   $as_echo_n "(cached) " >&6
26721 else
26722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26723 /* end confdefs.h.  */
26724 #include <pwd.h>
26725 int
26726 main ()
26727 {
26728 char buffer[10000];
26729                                 struct passwd pwd;
26730                                 getpwuid_r (0, &pwd, buffer,
26731                                                 sizeof (buffer));
26732   ;
26733   return 0;
26734 }
26735 _ACEOF
26736 if ac_fn_c_try_link "$LINENO"; then :
26737   ac_cv_func_nonposix_getpwuid_r=yes
26738 else
26739   ac_cv_func_nonposix_getpwuid_r=no
26740 fi
26741 rm -f core conftest.err conftest.$ac_objext \
26742     conftest$ac_exeext conftest.$ac_ext
26743 fi
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
26745 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
26746                 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
26747   as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26748 fi
26749
26750                 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
26751
26752 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
26753
26754                 fi
26755         fi
26756 fi
26757 if test "$ac_cv_header_grp_h" = "yes"; then
26758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
26759 $as_echo_n "checking for posix getgrgid_r... " >&6; }
26760 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
26761   $as_echo_n "(cached) " >&6
26762 else
26763   if test "$cross_compiling" = yes; then :
26764   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26766 as_fn_error $? "cannot run test program while cross compiling
26767 See \`config.log' for more details" "$LINENO" 5; }
26768 else
26769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26770 /* end confdefs.h.  */
26771
26772 #include <errno.h>
26773 #include <grp.h>
26774 int main () {
26775     char buffer[10000];
26776     struct group grp, *grpptr = &grp;
26777     int error;
26778     errno = 0;
26779     error = getgrgid_r (0, &grp, buffer,
26780                         sizeof (buffer), &grpptr);
26781    return (error < 0 && errno == ENOSYS)
26782            || error == ENOSYS;
26783 }
26784 _ACEOF
26785 if ac_fn_c_try_run "$LINENO"; then :
26786   ac_cv_func_posix_getgrgid_r=yes
26787 else
26788   ac_cv_func_posix_getgrgid_r=no
26789 fi
26790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26791   conftest.$ac_objext conftest.beam conftest.$ac_ext
26792 fi
26793
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
26796 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
26797         if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
26798   as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26799 fi
26800
26801         if test "$ac_cv_func_posix_getgrgid_r" = yes; then
26802
26803 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
26804
26805         else
26806                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
26807 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
26808 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
26809   $as_echo_n "(cached) " >&6
26810 else
26811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h.  */
26813 #include <grp.h>
26814 int
26815 main ()
26816 {
26817 char buffer[10000];
26818                                 struct group grp;
26819                                 getgrgid_r (0, &grp, buffer,
26820                                 sizeof (buffer));
26821   ;
26822   return 0;
26823 }
26824 _ACEOF
26825 if ac_fn_c_try_link "$LINENO"; then :
26826   ac_cv_func_nonposix_getgrgid_r=yes
26827 else
26828   ac_cv_func_nonposix_getgrgid_r=no
26829 fi
26830 rm -f core conftest.err conftest.$ac_objext \
26831     conftest$ac_exeext conftest.$ac_ext
26832 fi
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
26834 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
26835                 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
26836   as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26837 fi
26838
26839                 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
26840
26841 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
26842
26843                 fi
26844         fi
26845 fi
26846 LIBS="$G_THREAD_LIBS $LIBS"
26847 if test x"$have_threads" = xposix; then
26848         glib_save_CPPFLAGS="$CPPFLAGS"
26849         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26850         # This is not AC_CHECK_FUNC to also work with function
26851         # name mangling in header files.
26852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
26853 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
26854         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h.  */
26856 #include <pthread.h>
26857 int
26858 main ()
26859 {
26860 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 if ac_fn_c_try_link "$LINENO"; then :
26866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26867 $as_echo "yes" >&6; }
26868
26869 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
26870
26871 else
26872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26873 $as_echo "no" >&6; }
26874 fi
26875 rm -f core conftest.err conftest.$ac_objext \
26876     conftest$ac_exeext conftest.$ac_ext
26877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
26878 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
26879         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26880 /* end confdefs.h.  */
26881 #include <pthread.h>
26882 int
26883 main ()
26884 {
26885 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
26886   ;
26887   return 0;
26888 }
26889 _ACEOF
26890 if ac_fn_c_try_link "$LINENO"; then :
26891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892 $as_echo "yes" >&6; }
26893
26894 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
26895
26896 else
26897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26898 $as_echo "no" >&6; }
26899 fi
26900 rm -f core conftest.err conftest.$ac_objext \
26901     conftest$ac_exeext conftest.$ac_ext
26902         CPPFLAGS="$glib_save_CPPFLAGS"
26903 fi
26904
26905 LIBS="$glib_save_LIBS"
26906
26907 # now spit out all the warnings.
26908 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
26909    test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
26910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
26911 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
26912 fi
26913 if test "$ac_cv_func_localtime_r" != "yes"; then
26914         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
26915 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
26916 fi
26917
26918 #
26919 # Hack to deal with:
26920 #
26921 #  a) GCC < 3.3 for Linux doesn't include -lpthread when
26922 #     building shared libraries with linux.
26923 #  b) FreeBSD doesn't do this either.
26924 #
26925 case $host in
26926   *-*-freebsd*|*-*-linux*)
26927     G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
26928     ;;
26929   *-*-openbsd*)
26930     LDFLAGS="$LDFLAGS -pthread"
26931     ;;
26932   *)
26933     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
26934     ;;
26935 esac
26936
26937
26938
26939
26940
26941
26942 for ac_func in clock_gettime
26943 do :
26944   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26945 if test "x$ac_cv_func_clock_gettime" = xyes; then :
26946   cat >>confdefs.h <<_ACEOF
26947 #define HAVE_CLOCK_GETTIME 1
26948 _ACEOF
26949
26950 else
26951
26952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26953 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26954 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26955   $as_echo_n "(cached) " >&6
26956 else
26957   ac_check_lib_save_LIBS=$LIBS
26958 LIBS="-lrt  $LIBS"
26959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h.  */
26961
26962 /* Override any GCC internal prototype to avoid an error.
26963    Use char because int might match the return type of a GCC
26964    builtin and then its argument prototype would still apply.  */
26965 #ifdef __cplusplus
26966 extern "C"
26967 #endif
26968 char clock_gettime ();
26969 int
26970 main ()
26971 {
26972 return clock_gettime ();
26973   ;
26974   return 0;
26975 }
26976 _ACEOF
26977 if ac_fn_c_try_link "$LINENO"; then :
26978   ac_cv_lib_rt_clock_gettime=yes
26979 else
26980   ac_cv_lib_rt_clock_gettime=no
26981 fi
26982 rm -f core conftest.err conftest.$ac_objext \
26983     conftest$ac_exeext conftest.$ac_ext
26984 LIBS=$ac_check_lib_save_LIBS
26985 fi
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26987 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26988 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26989
26990     $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26991
26992     G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
26993     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
26994
26995 fi
26996
26997
26998 fi
26999 done
27000
27001
27002
27003
27004
27005
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
27007 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
27008 if ${glib_cv_g_atomic_lock_free+:} false; then :
27009   $as_echo_n "(cached) " >&6
27010 else
27011
27012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27013 /* end confdefs.h.  */
27014
27015 int
27016 main ()
27017 {
27018 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
27019   ;
27020   return 0;
27021 }
27022 _ACEOF
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024   glib_cv_g_atomic_lock_free=yes
27025 else
27026   glib_cv_g_atomic_lock_free=no
27027 fi
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029 fi
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
27031 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
27032
27033 if test "$glib_cv_g_atomic_lock_free" = "no"; then
27034   SAVE_CFLAGS="${CFLAGS}"
27035   CFLAGS="-march=i486"
27036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h.  */
27038
27039 int
27040 main ()
27041 {
27042 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 if ac_fn_c_try_compile "$LINENO"; then :
27048   as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
27049 fi
27050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27051   CFLAGS="${SAVE_CFLAGS}"
27052 fi
27053
27054 case $host_cpu in
27055   i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
27056     glib_memory_barrier_needed=no
27057     ;;
27058   sparc*|alpha*|powerpc*|ia64)
27059     glib_memory_barrier_needed=yes
27060     ;;
27061   *)
27062     glib_memory_barrier_needed=yes
27063     ;;
27064 esac
27065
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
27067 $as_echo_n "checking for futex(2) system call... " >&6; }
27068 if ${glib_cv_futex+:} false; then :
27069   $as_echo_n "(cached) " >&6
27070 else
27071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27072 /* end confdefs.h.  */
27073
27074 #include <linux/futex.h>
27075 #include <sys/syscall.h>
27076 #include <unistd.h>
27077
27078 int
27079 main ()
27080 {
27081
27082 int
27083 main (void)
27084 {
27085   /* it is not like this actually runs or anything... */
27086   syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
27087   return 0;
27088 }
27089
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 if ac_fn_c_try_compile "$LINENO"; then :
27095   glib_cv_futex=yes
27096 else
27097   glib_cv_futex=no
27098 fi
27099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27100 fi
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
27102 $as_echo "$glib_cv_futex" >&6; }
27103 if test x"$glib_cv_futex" = xyes; then
27104
27105 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
27106
27107 fi
27108
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
27110 $as_echo_n "checking for eventfd(2) system call... " >&6; }
27111 if ${glib_cv_eventfd+:} false; then :
27112   $as_echo_n "(cached) " >&6
27113 else
27114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27115 /* end confdefs.h.  */
27116
27117 #include <sys/eventfd.h>
27118 #include <unistd.h>
27119
27120 int
27121 main ()
27122 {
27123
27124 int
27125 main (void)
27126 {
27127   eventfd (0, EFD_CLOEXEC);
27128   return 0;
27129 }
27130
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 if ac_fn_c_try_compile "$LINENO"; then :
27136   glib_cv_eventfd=yes
27137 else
27138   glib_cv_eventfd=no
27139 fi
27140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27141 fi
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
27143 $as_echo "$glib_cv_eventfd" >&6; }
27144 if test x"$glib_cv_eventfd" = x"yes"; then
27145
27146 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
27147
27148 fi
27149  if test "$glib_cv_eventfd" = "yes"; then
27150   HAVE_EVENTFD_TRUE=
27151   HAVE_EVENTFD_FALSE='#'
27152 else
27153   HAVE_EVENTFD_TRUE='#'
27154   HAVE_EVENTFD_FALSE=
27155 fi
27156
27157
27158
27159 glib_poll_includes="
27160 #include <sys/types.h>
27161 #include <sys/poll.h>
27162 "
27163
27164 if test $ac_cv_header_sys_types_h = yes &&
27165    test $ac_cv_header_sys_poll_h = yes ; then
27166   glib_failed=false
27167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
27168 $as_echo_n "checking value of POLLIN... " >&6; }
27169 if ${glib_cv_value_POLLIN+:} false; then :
27170   $as_echo_n "(cached) " >&6
27171 else
27172   if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN"        "$glib_poll_includes"; then :
27173
27174 else
27175   glib_failed=true
27176 fi
27177
27178
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
27181 $as_echo "$glib_cv_value_POLLIN" >&6; }
27182
27183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
27184 $as_echo_n "checking value of POLLOUT... " >&6; }
27185 if ${glib_cv_value_POLLOUT+:} false; then :
27186   $as_echo_n "(cached) " >&6
27187 else
27188   if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT"        "$glib_poll_includes"; then :
27189
27190 else
27191   glib_failed=true
27192 fi
27193
27194
27195 fi
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
27197 $as_echo "$glib_cv_value_POLLOUT" >&6; }
27198
27199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
27200 $as_echo_n "checking value of POLLPRI... " >&6; }
27201 if ${glib_cv_value_POLLPRI+:} false; then :
27202   $as_echo_n "(cached) " >&6
27203 else
27204   if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI"        "$glib_poll_includes"; then :
27205
27206 else
27207   glib_failed=true
27208 fi
27209
27210
27211 fi
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
27213 $as_echo "$glib_cv_value_POLLPRI" >&6; }
27214
27215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
27216 $as_echo_n "checking value of POLLERR... " >&6; }
27217 if ${glib_cv_value_POLLERR+:} false; then :
27218   $as_echo_n "(cached) " >&6
27219 else
27220   if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR"        "$glib_poll_includes"; then :
27221
27222 else
27223   glib_failed=true
27224 fi
27225
27226
27227 fi
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
27229 $as_echo "$glib_cv_value_POLLERR" >&6; }
27230
27231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
27232 $as_echo_n "checking value of POLLHUP... " >&6; }
27233 if ${glib_cv_value_POLLHUP+:} false; then :
27234   $as_echo_n "(cached) " >&6
27235 else
27236   if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP"        "$glib_poll_includes"; then :
27237
27238 else
27239   glib_failed=true
27240 fi
27241
27242
27243 fi
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
27245 $as_echo "$glib_cv_value_POLLHUP" >&6; }
27246
27247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
27248 $as_echo_n "checking value of POLLNVAL... " >&6; }
27249 if ${glib_cv_value_POLLNVAL+:} false; then :
27250   $as_echo_n "(cached) " >&6
27251 else
27252   if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL"        "$glib_poll_includes"; then :
27253
27254 else
27255   glib_failed=true
27256 fi
27257
27258
27259 fi
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
27261 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
27262
27263   if $glib_failed ; then
27264     as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
27265   fi
27266 else
27267   glib_cv_value_POLLIN=1
27268   glib_cv_value_POLLOUT=4
27269   glib_cv_value_POLLPRI=2
27270   glib_cv_value_POLLERR=8
27271   glib_cv_value_POLLHUP=16
27272   glib_cv_value_POLLNVAL=32
27273 fi
27274
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
27276 $as_echo_n "checking for broken poll... " >&6; }
27277 if test "$cross_compiling" = yes; then :
27278   broken_poll="no (cross compiling)"
27279 else
27280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281 /* end confdefs.h.  */
27282
27283         #include <stdlib.h>
27284         #include <fcntl.h>
27285         #include <poll.h>
27286         #ifdef HAVE_SYS_POLL_H
27287         #include <sys/poll.h>
27288         #endif
27289         int main(void) {
27290           struct pollfd fds[1];
27291           int fd;
27292           fd = open("/dev/null", 1);
27293           fds[0].fd = fd;
27294           fds[0].events = POLLIN;
27295           fds[0].revents = 0;
27296           if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
27297                 exit(1);  /* Does not work for devices -- fail */
27298           }
27299           exit(0);
27300         }
27301 _ACEOF
27302 if ac_fn_c_try_run "$LINENO"; then :
27303   broken_poll=no
27304 else
27305   broken_poll=yes
27306
27307 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
27308
27309 fi
27310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27311   conftest.$ac_objext conftest.beam conftest.$ac_ext
27312 fi
27313
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
27315 $as_echo "$broken_poll" >&6; }
27316
27317
27318 PCRE_REQUIRED_VERSION=8.11
27319
27320 # Check if we should use the internal or the system-supplied pcre
27321
27322 # Check whether --with-pcre was given.
27323 if test "${with_pcre+set}" = set; then :
27324   withval=$with_pcre;
27325 fi
27326
27327
27328  if test "x$with_pcre" = xsystem; then
27329   USE_SYSTEM_PCRE_TRUE=
27330   USE_SYSTEM_PCRE_FALSE='#'
27331 else
27332   USE_SYSTEM_PCRE_TRUE='#'
27333   USE_SYSTEM_PCRE_FALSE=
27334 fi
27335
27336
27337 if test "x$with_pcre" = xsystem; then
27338
27339 pkg_failed=no
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
27341 $as_echo_n "checking for PCRE... " >&6; }
27342
27343 if test -n "$PCRE_CFLAGS"; then
27344     pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
27345  elif test -n "$PKG_CONFIG"; then
27346     if test -n "$PKG_CONFIG" && \
27347     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27348   ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27349   ac_status=$?
27350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27351   test $ac_status = 0; }; then
27352   pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27353 else
27354   pkg_failed=yes
27355 fi
27356  else
27357     pkg_failed=untried
27358 fi
27359 if test -n "$PCRE_LIBS"; then
27360     pkg_cv_PCRE_LIBS="$PCRE_LIBS"
27361  elif test -n "$PKG_CONFIG"; then
27362     if test -n "$PKG_CONFIG" && \
27363     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27364   ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27365   ac_status=$?
27366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27367   test $ac_status = 0; }; then
27368   pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27369 else
27370   pkg_failed=yes
27371 fi
27372  else
27373     pkg_failed=untried
27374 fi
27375
27376
27377
27378 if test $pkg_failed = yes; then
27379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27380 $as_echo "no" >&6; }
27381
27382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27383         _pkg_short_errors_supported=yes
27384 else
27385         _pkg_short_errors_supported=no
27386 fi
27387         if test $_pkg_short_errors_supported = yes; then
27388                 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27389         else
27390                 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27391         fi
27392         # Put the nasty error message in config.log where it belongs
27393         echo "$PCRE_PKG_ERRORS" >&5
27394
27395         as_fn_error $? "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met:
27396
27397 $PCRE_PKG_ERRORS
27398
27399 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27400 installed software in a non-standard prefix.
27401
27402 Alternatively, you may set the environment variables PCRE_CFLAGS
27403 and PCRE_LIBS to avoid the need to call pkg-config.
27404 See the pkg-config man page for more details." "$LINENO" 5
27405
27406 elif test $pkg_failed = untried; then
27407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27408 $as_echo "no" >&6; }
27409         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27411 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27412 is in your PATH or set the PKG_CONFIG environment variable to the full
27413 path to pkg-config.
27414
27415 Alternatively, you may set the environment variables PCRE_CFLAGS
27416 and PCRE_LIBS to avoid the need to call pkg-config.
27417 See the pkg-config man page for more details.
27418
27419 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27420 See \`config.log' for more details" "$LINENO" 5; }
27421
27422 else
27423         PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
27424         PCRE_LIBS=$pkg_cv_PCRE_LIBS
27425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27426 $as_echo "yes" >&6; }
27427
27428 fi
27429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5
27430 $as_echo_n "checking for Unicode support in PCRE... " >&6; }
27431 if ${glib_cv_pcre_has_unicode+:} false; then :
27432   $as_echo_n "(cached) " >&6
27433 else
27434
27435                   glib_save_CFLAGS="$CFLAGS"
27436                   glib_save_LIBS="$LIBS"
27437                   CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
27438                   if test "$cross_compiling" = yes; then :
27439   glib_cv_pcre_has_unicode=yes
27440 else
27441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442 /* end confdefs.h.  */
27443 #include <pcre.h>
27444                               int main () {
27445                                 int support;
27446                                 pcre_config (PCRE_CONFIG_UTF8, &support);
27447                                 if (!support)
27448                                   return 1;
27449                                 pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
27450                                 if (!support)
27451                                   return 1;
27452                                 return 0;
27453                               }
27454 _ACEOF
27455 if ac_fn_c_try_run "$LINENO"; then :
27456   glib_cv_pcre_has_unicode=yes
27457 else
27458   glib_cv_pcre_has_unicode=no
27459 fi
27460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27461   conftest.$ac_objext conftest.beam conftest.$ac_ext
27462 fi
27463
27464                   CFLAGS="$glib_save_CFLAGS"
27465                   LIBS="$glib_save_LIBS"
27466
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5
27469 $as_echo "$glib_cv_pcre_has_unicode" >&6; }
27470   if test "$glib_cv_pcre_has_unicode" = "no"; then
27471     as_fn_error $? "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5
27472   fi
27473
27474
27475
27476 $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h
27477
27478   PCRE_REQUIRES=libpcre
27479
27480 else
27481   # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
27482   if test x"$GCC" = xyes; then
27483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5
27484 $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; }
27485     save_CFLAGS="$CFLAGS"
27486     CFLAGS="$CFLAGS -Wno-pointer-sign"
27487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h.  */
27489
27490 int
27491 main ()
27492 {
27493
27494   ;
27495   return 0;
27496 }
27497 _ACEOF
27498 if ac_fn_c_try_compile "$LINENO"; then :
27499   PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
27500                           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27501 $as_echo "yes" >&6; }
27502 else
27503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27504 $as_echo "no" >&6; }
27505 fi
27506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27507     CFLAGS="$save_CFLAGS"
27508   fi
27509 fi
27510
27511
27512
27513 case $host in
27514   *-*-cygwin*)
27515         G_LIBS_EXTRA="-luser32 -lkernel32"
27516     ;;
27517   *-*-mingw*)
27518         G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
27519     ;;
27520   *)
27521         G_LIBS_EXTRA=""
27522     ;;
27523 esac
27524
27525
27526
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
27528 $as_echo_n "checking for EILSEQ... " >&6; }
27529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27530 /* end confdefs.h.  */
27531
27532 #include <errno.h>
27533
27534 int
27535 main ()
27536 {
27537
27538 int error = EILSEQ;
27539
27540   ;
27541   return 0;
27542 }
27543 _ACEOF
27544 if ac_fn_c_try_compile "$LINENO"; then :
27545   have_eilseq=yes
27546 else
27547   have_eilseq=no
27548 fi
27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
27551 $as_echo "$have_eilseq" >&6; }
27552
27553
27554  if test $cross_compiling = yes; then
27555   CROSS_COMPILING_TRUE=
27556   CROSS_COMPILING_FALSE='#'
27557 else
27558   CROSS_COMPILING_TRUE='#'
27559   CROSS_COMPILING_FALSE=
27560 fi
27561
27562
27563 if test $cross_compiling = yes; then
27564   # Extract the first word of "glib-genmarshal", so it can be a program name with args.
27565 set dummy glib-genmarshal; ac_word=$2
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27567 $as_echo_n "checking for $ac_word... " >&6; }
27568 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
27569   $as_echo_n "(cached) " >&6
27570 else
27571   case $GLIB_GENMARSHAL in
27572   [\\/]* | ?:[\\/]*)
27573   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
27574   ;;
27575   *)
27576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27577 for as_dir in $PATH
27578 do
27579   IFS=$as_save_IFS
27580   test -z "$as_dir" && as_dir=.
27581     for ac_exec_ext in '' $ac_executable_extensions; do
27582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27583     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
27584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27585     break 2
27586   fi
27587 done
27588   done
27589 IFS=$as_save_IFS
27590
27591   test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="no"
27592   ;;
27593 esac
27594 fi
27595 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
27596 if test -n "$GLIB_GENMARSHAL"; then
27597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
27598 $as_echo "$GLIB_GENMARSHAL" >&6; }
27599 else
27600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27601 $as_echo "no" >&6; }
27602 fi
27603
27604
27605   if test x$GLIB_GENMARSHAL = xno; then
27606     as_fn_error $? "Could not find a glib-genmarshal in your PATH" "$LINENO" 5
27607   fi
27608
27609   # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
27610 set dummy glib-compile-schemas; ac_word=$2
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27612 $as_echo_n "checking for $ac_word... " >&6; }
27613 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
27614   $as_echo_n "(cached) " >&6
27615 else
27616   case $GLIB_COMPILE_SCHEMAS in
27617   [\\/]* | ?:[\\/]*)
27618   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
27619   ;;
27620   *)
27621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27622 for as_dir in $PATH
27623 do
27624   IFS=$as_save_IFS
27625   test -z "$as_dir" && as_dir=.
27626     for ac_exec_ext in '' $ac_executable_extensions; do
27627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27628     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
27629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27630     break 2
27631   fi
27632 done
27633   done
27634 IFS=$as_save_IFS
27635
27636   test -z "$ac_cv_path_GLIB_COMPILE_SCHEMAS" && ac_cv_path_GLIB_COMPILE_SCHEMAS="no"
27637   ;;
27638 esac
27639 fi
27640 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
27641 if test -n "$GLIB_COMPILE_SCHEMAS"; then
27642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
27643 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
27644 else
27645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27646 $as_echo "no" >&6; }
27647 fi
27648
27649
27650   if test x$GLIB_COMPILE_SCHEMAS = xno; then
27651     as_fn_error $? "Could not find a glib-compile-schemas in your PATH" "$LINENO" 5
27652   fi
27653
27654   # Extract the first word of "glib-compile-resources", so it can be a program name with args.
27655 set dummy glib-compile-resources; ac_word=$2
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27657 $as_echo_n "checking for $ac_word... " >&6; }
27658 if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
27659   $as_echo_n "(cached) " >&6
27660 else
27661   case $GLIB_COMPILE_RESOURCES in
27662   [\\/]* | ?:[\\/]*)
27663   ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
27664   ;;
27665   *)
27666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27667 for as_dir in $PATH
27668 do
27669   IFS=$as_save_IFS
27670   test -z "$as_dir" && as_dir=.
27671     for ac_exec_ext in '' $ac_executable_extensions; do
27672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27673     ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
27674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27675     break 2
27676   fi
27677 done
27678   done
27679 IFS=$as_save_IFS
27680
27681   test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
27682   ;;
27683 esac
27684 fi
27685 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
27686 if test -n "$GLIB_COMPILE_RESOURCES"; then
27687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
27688 $as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
27689 else
27690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27691 $as_echo "no" >&6; }
27692 fi
27693
27694
27695   if test x$GLIB_COMPILE_RESOURCES = xno; then
27696     as_fn_error $? "Could not find a glib-compile-resources in your PATH" "$LINENO" 5
27697   fi
27698 fi
27699
27700
27701
27702
27703
27704     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
27705 set dummy gtkdoc-check; ac_word=$2
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27707 $as_echo_n "checking for $ac_word... " >&6; }
27708 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
27709   $as_echo_n "(cached) " >&6
27710 else
27711   case $GTKDOC_CHECK in
27712   [\\/]* | ?:[\\/]*)
27713   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
27714   ;;
27715   *)
27716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27717 for as_dir in $PATH
27718 do
27719   IFS=$as_save_IFS
27720   test -z "$as_dir" && as_dir=.
27721     for ac_exec_ext in '' $ac_executable_extensions; do
27722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27723     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
27724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27725     break 2
27726   fi
27727 done
27728   done
27729 IFS=$as_save_IFS
27730
27731   ;;
27732 esac
27733 fi
27734 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
27735 if test -n "$GTKDOC_CHECK"; then
27736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
27737 $as_echo "$GTKDOC_CHECK" >&6; }
27738 else
27739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27740 $as_echo "no" >&6; }
27741 fi
27742
27743
27744   for ac_prog in gtkdoc-rebase
27745 do
27746   # Extract the first word of "$ac_prog", so it can be a program name with args.
27747 set dummy $ac_prog; ac_word=$2
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27749 $as_echo_n "checking for $ac_word... " >&6; }
27750 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
27751   $as_echo_n "(cached) " >&6
27752 else
27753   case $GTKDOC_REBASE in
27754   [\\/]* | ?:[\\/]*)
27755   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
27756   ;;
27757   *)
27758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27759 for as_dir in $PATH
27760 do
27761   IFS=$as_save_IFS
27762   test -z "$as_dir" && as_dir=.
27763     for ac_exec_ext in '' $ac_executable_extensions; do
27764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27765     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
27766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27767     break 2
27768   fi
27769 done
27770   done
27771 IFS=$as_save_IFS
27772
27773   ;;
27774 esac
27775 fi
27776 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
27777 if test -n "$GTKDOC_REBASE"; then
27778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
27779 $as_echo "$GTKDOC_REBASE" >&6; }
27780 else
27781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782 $as_echo "no" >&6; }
27783 fi
27784
27785
27786   test -n "$GTKDOC_REBASE" && break
27787 done
27788 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
27789
27790   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
27791 set dummy gtkdoc-mkpdf; ac_word=$2
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27793 $as_echo_n "checking for $ac_word... " >&6; }
27794 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
27795   $as_echo_n "(cached) " >&6
27796 else
27797   case $GTKDOC_MKPDF in
27798   [\\/]* | ?:[\\/]*)
27799   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
27800   ;;
27801   *)
27802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27803 for as_dir in $PATH
27804 do
27805   IFS=$as_save_IFS
27806   test -z "$as_dir" && as_dir=.
27807     for ac_exec_ext in '' $ac_executable_extensions; do
27808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27809     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
27810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27811     break 2
27812   fi
27813 done
27814   done
27815 IFS=$as_save_IFS
27816
27817   ;;
27818 esac
27819 fi
27820 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
27821 if test -n "$GTKDOC_MKPDF"; then
27822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
27823 $as_echo "$GTKDOC_MKPDF" >&6; }
27824 else
27825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27826 $as_echo "no" >&6; }
27827 fi
27828
27829
27830
27831
27832 # Check whether --with-html-dir was given.
27833 if test "${with_html_dir+set}" = set; then :
27834   withval=$with_html_dir;
27835 else
27836   with_html_dir='${datadir}/gtk-doc/html'
27837 fi
27838
27839   HTML_DIR="$with_html_dir"
27840
27841
27842     # Check whether --enable-gtk-doc was given.
27843 if test "${enable_gtk_doc+set}" = set; then :
27844   enableval=$enable_gtk_doc;
27845 else
27846   enable_gtk_doc=no
27847 fi
27848
27849
27850   if test x$enable_gtk_doc = xyes; then
27851     if test -n "$PKG_CONFIG" && \
27852     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
27853   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
27854   ac_status=$?
27855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27856   test $ac_status = 0; }; then
27857   :
27858 else
27859   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
27860 fi
27861         if test "x$PACKAGE_NAME" != "xglib"; then
27862
27863 pkg_failed=no
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
27865 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
27866
27867 if test -n "$GTKDOC_DEPS_CFLAGS"; then
27868     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
27869  elif test -n "$PKG_CONFIG"; then
27870     if test -n "$PKG_CONFIG" && \
27871     { { $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
27872   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
27873   ac_status=$?
27874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27875   test $ac_status = 0; }; then
27876   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
27877 else
27878   pkg_failed=yes
27879 fi
27880  else
27881     pkg_failed=untried
27882 fi
27883 if test -n "$GTKDOC_DEPS_LIBS"; then
27884     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
27885  elif test -n "$PKG_CONFIG"; then
27886     if test -n "$PKG_CONFIG" && \
27887     { { $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
27888   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
27889   ac_status=$?
27890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27891   test $ac_status = 0; }; then
27892   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
27893 else
27894   pkg_failed=yes
27895 fi
27896  else
27897     pkg_failed=untried
27898 fi
27899
27900
27901
27902 if test $pkg_failed = yes; then
27903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27904 $as_echo "no" >&6; }
27905
27906 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27907         _pkg_short_errors_supported=yes
27908 else
27909         _pkg_short_errors_supported=no
27910 fi
27911         if test $_pkg_short_errors_supported = yes; then
27912                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
27913         else
27914                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
27915         fi
27916         # Put the nasty error message in config.log where it belongs
27917         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
27918
27919         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
27920
27921 $GTKDOC_DEPS_PKG_ERRORS
27922
27923 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27924 installed software in a non-standard prefix.
27925
27926 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27927 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27928 See the pkg-config man page for more details." "$LINENO" 5
27929
27930 elif test $pkg_failed = untried; then
27931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27932 $as_echo "no" >&6; }
27933         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27936 is in your PATH or set the PKG_CONFIG environment variable to the full
27937 path to pkg-config.
27938
27939 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27940 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27941 See the pkg-config man page for more details.
27942
27943 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27944 See \`config.log' for more details" "$LINENO" 5; }
27945
27946 else
27947         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
27948         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
27949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27950 $as_echo "yes" >&6; }
27951
27952 fi
27953     fi
27954   fi
27955
27956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
27957 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
27958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
27959 $as_echo "$enable_gtk_doc" >&6; }
27960
27961     # Check whether --enable-gtk-doc-html was given.
27962 if test "${enable_gtk_doc_html+set}" = set; then :
27963   enableval=$enable_gtk_doc_html;
27964 else
27965   enable_gtk_doc_html=yes
27966 fi
27967
27968     # Check whether --enable-gtk-doc-pdf was given.
27969 if test "${enable_gtk_doc_pdf+set}" = set; then :
27970   enableval=$enable_gtk_doc_pdf;
27971 else
27972   enable_gtk_doc_pdf=no
27973 fi
27974
27975
27976   if test -z "$GTKDOC_MKPDF"; then
27977     enable_gtk_doc_pdf=no
27978   fi
27979
27980
27981    if test x$enable_gtk_doc = xyes; then
27982   ENABLE_GTK_DOC_TRUE=
27983   ENABLE_GTK_DOC_FALSE='#'
27984 else
27985   ENABLE_GTK_DOC_TRUE='#'
27986   ENABLE_GTK_DOC_FALSE=
27987 fi
27988
27989    if test x$enable_gtk_doc_html = xyes; then
27990   GTK_DOC_BUILD_HTML_TRUE=
27991   GTK_DOC_BUILD_HTML_FALSE='#'
27992 else
27993   GTK_DOC_BUILD_HTML_TRUE='#'
27994   GTK_DOC_BUILD_HTML_FALSE=
27995 fi
27996
27997    if test x$enable_gtk_doc_pdf = xyes; then
27998   GTK_DOC_BUILD_PDF_TRUE=
27999   GTK_DOC_BUILD_PDF_FALSE='#'
28000 else
28001   GTK_DOC_BUILD_PDF_TRUE='#'
28002   GTK_DOC_BUILD_PDF_FALSE=
28003 fi
28004
28005    if test -n "$LIBTOOL"; then
28006   GTK_DOC_USE_LIBTOOL_TRUE=
28007   GTK_DOC_USE_LIBTOOL_FALSE='#'
28008 else
28009   GTK_DOC_USE_LIBTOOL_TRUE='#'
28010   GTK_DOC_USE_LIBTOOL_FALSE=
28011 fi
28012
28013    if test -n "$GTKDOC_REBASE"; then
28014   GTK_DOC_USE_REBASE_TRUE=
28015   GTK_DOC_USE_REBASE_FALSE='#'
28016 else
28017   GTK_DOC_USE_REBASE_TRUE='#'
28018   GTK_DOC_USE_REBASE_FALSE=
28019 fi
28020
28021
28022
28023 # Check whether --enable-man was given.
28024 if test "${enable_man+set}" = set; then :
28025   enableval=$enable_man; enable_man=yes
28026 else
28027   enable_man=no
28028 fi
28029
28030
28031 if test "${enable_man}" != no; then
28032 # Extract the first word of "xsltproc", so it can be a program name with args.
28033 set dummy xsltproc; ac_word=$2
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28035 $as_echo_n "checking for $ac_word... " >&6; }
28036 if ${ac_cv_path_XSLTPROC+:} false; then :
28037   $as_echo_n "(cached) " >&6
28038 else
28039   case $XSLTPROC in
28040   [\\/]* | ?:[\\/]*)
28041   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
28042   ;;
28043   *)
28044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28045 for as_dir in $PATH
28046 do
28047   IFS=$as_save_IFS
28048   test -z "$as_dir" && as_dir=.
28049     for ac_exec_ext in '' $ac_executable_extensions; do
28050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28051     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
28052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28053     break 2
28054   fi
28055 done
28056   done
28057 IFS=$as_save_IFS
28058
28059   ;;
28060 esac
28061 fi
28062 XSLTPROC=$ac_cv_path_XSLTPROC
28063 if test -n "$XSLTPROC"; then
28064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
28065 $as_echo "$XSLTPROC" >&6; }
28066 else
28067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28068 $as_echo "no" >&6; }
28069 fi
28070
28071
28072   if test -z "$XSLTPROC"; then
28073     enable_man=no
28074   fi
28075
28076
28077   # check for the presence of the XML catalog
28078
28079 # Check whether --with-xml-catalog was given.
28080 if test "${with_xml_catalog+set}" = set; then :
28081   withval=$with_xml_catalog;
28082 else
28083   with_xml_catalog=/etc/xml/catalog
28084 fi
28085
28086   jh_found_xmlcatalog=true
28087   XML_CATALOG_FILE="$with_xml_catalog"
28088
28089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
28090 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
28091   if test -f "$XML_CATALOG_FILE"; then
28092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28093 $as_echo "found" >&6; }
28094   else
28095     jh_found_xmlcatalog=false
28096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28097 $as_echo "not found" >&6; }
28098   fi
28099
28100   # check for the xmlcatalog program
28101   # Extract the first word of "xmlcatalog", so it can be a program name with args.
28102 set dummy xmlcatalog; ac_word=$2
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28104 $as_echo_n "checking for $ac_word... " >&6; }
28105 if ${ac_cv_path_XMLCATALOG+:} false; then :
28106   $as_echo_n "(cached) " >&6
28107 else
28108   case $XMLCATALOG in
28109   [\\/]* | ?:[\\/]*)
28110   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
28111   ;;
28112   *)
28113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28114 for as_dir in $PATH
28115 do
28116   IFS=$as_save_IFS
28117   test -z "$as_dir" && as_dir=.
28118     for ac_exec_ext in '' $ac_executable_extensions; do
28119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28120     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
28121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28122     break 2
28123   fi
28124 done
28125   done
28126 IFS=$as_save_IFS
28127
28128   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
28129   ;;
28130 esac
28131 fi
28132 XMLCATALOG=$ac_cv_path_XMLCATALOG
28133 if test -n "$XMLCATALOG"; then
28134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
28135 $as_echo "$XMLCATALOG" >&6; }
28136 else
28137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28138 $as_echo "no" >&6; }
28139 fi
28140
28141
28142   if test "x$XMLCATALOG" = xno; then
28143     jh_found_xmlcatalog=false
28144   fi
28145
28146   if $jh_found_xmlcatalog; then
28147     :
28148   else
28149     :
28150   fi
28151
28152
28153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
28154 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
28155   if $jh_found_xmlcatalog && \
28156      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
28157   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
28158   ac_status=$?
28159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28160   test $ac_status = 0; }; then
28161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28162 $as_echo "found" >&6; }
28163       else
28164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28165 $as_echo "not found" >&6; }
28166     enable_man=no
28167   fi
28168
28169
28170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
28171 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
28172   if $jh_found_xmlcatalog && \
28173      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
28174   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
28175   ac_status=$?
28176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28177   test $ac_status = 0; }; then
28178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28179 $as_echo "found" >&6; }
28180       else
28181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28182 $as_echo "not found" >&6; }
28183     enable_man=no
28184   fi
28185
28186 fi
28187
28188  if test x$enable_man != xno; then
28189   ENABLE_MAN_TRUE=
28190   ENABLE_MAN_FALSE='#'
28191 else
28192   ENABLE_MAN_TRUE='#'
28193   ENABLE_MAN_FALSE=
28194 fi
28195
28196
28197
28198 # Check whether --enable-dtrace was given.
28199 if test "${enable_dtrace+set}" = set; then :
28200   enableval=$enable_dtrace;
28201 fi
28202
28203 have_dtrace=no
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5
28205 $as_echo_n "checking whether to include dtrace tracing support... " >&6; }
28206 if test "x$enable_dtrace" != xno; then
28207   if test x$glib_have_carbon = xyes; then
28208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5
28209 $as_echo "no (not yet compatible with MacOS dtrace)" >&6; }
28210   else
28211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28212 $as_echo "yes" >&6; }
28213     for ac_prog in dtrace
28214 do
28215   # Extract the first word of "$ac_prog", so it can be a program name with args.
28216 set dummy $ac_prog; ac_word=$2
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28218 $as_echo_n "checking for $ac_word... " >&6; }
28219 if ${ac_cv_prog_DTRACE+:} false; then :
28220   $as_echo_n "(cached) " >&6
28221 else
28222   if test -n "$DTRACE"; then
28223   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
28224 else
28225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28226 for as_dir in $PATH
28227 do
28228   IFS=$as_save_IFS
28229   test -z "$as_dir" && as_dir=.
28230     for ac_exec_ext in '' $ac_executable_extensions; do
28231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28232     ac_cv_prog_DTRACE="$ac_prog"
28233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28234     break 2
28235   fi
28236 done
28237   done
28238 IFS=$as_save_IFS
28239
28240 fi
28241 fi
28242 DTRACE=$ac_cv_prog_DTRACE
28243 if test -n "$DTRACE"; then
28244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
28245 $as_echo "$DTRACE" >&6; }
28246 else
28247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28248 $as_echo "no" >&6; }
28249 fi
28250
28251
28252   test -n "$DTRACE" && break
28253 done
28254
28255     if test -z "$DTRACE"; then
28256       if test "x$enable_dtrace" = xyes; then
28257         as_fn_error $? "dtrace not found" "$LINENO" 5
28258       fi
28259     else
28260       ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
28261 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
28262   have_dtrace=yes
28263 else
28264   if test "x$enable_dtrace" = xyes; then
28265                         as_fn_error $? "dtrace support needs sys/sdt.h header" "$LINENO" 5
28266                        fi
28267 fi
28268
28269
28270     fi
28271   fi
28272 else
28273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28274 $as_echo "no" >&6; }
28275 fi
28276 if test "x$have_dtrace" = xyes; then
28277
28278 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
28279
28280 fi
28281  if test x$have_dtrace = xyes ; then
28282   ENABLE_DTRACE_TRUE=
28283   ENABLE_DTRACE_FALSE='#'
28284 else
28285   ENABLE_DTRACE_TRUE='#'
28286   ENABLE_DTRACE_FALSE=
28287 fi
28288
28289
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5
28291 $as_echo_n "checking whether to include systemtap tracing support... " >&6; }
28292 # Check whether --enable-systemtap was given.
28293 if test "${enable_systemtap+set}" = set; then :
28294   enableval=$enable_systemtap;
28295 fi
28296
28297 have_systemtap=no
28298 if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
28299   have_systemtap=yes
28300 fi
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5
28302 $as_echo "${have_systemtap}" >&6; }
28303
28304  if test x$have_systemtap = xyes; then
28305   ENABLE_SYSTEMTAP_TRUE=
28306   ENABLE_SYSTEMTAP_FALSE='#'
28307 else
28308   ENABLE_SYSTEMTAP_TRUE='#'
28309   ENABLE_SYSTEMTAP_FALSE=
28310 fi
28311
28312
28313
28314 # Check whether --with-tapset-install-dir was given.
28315 if test "${with_tapset_install_dir+set}" = set; then :
28316   withval=$with_tapset_install_dir; if test "x${withval}" = x; then
28317                ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28318              else
28319                ABS_TAPSET_DIR="${withval}"
28320               fi
28321 else
28322   ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28323 fi
28324
28325
28326
28327
28328 # Check whether --enable-gcov was given.
28329 if test "${enable_gcov+set}" = set; then :
28330   enableval=$enable_gcov; use_gcov=$enableval
28331 else
28332   use_gcov=no
28333 fi
28334
28335
28336 if test "x$use_gcov" = "xyes"; then
28337     if test "$GCC" != "yes"; then
28338     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
28339   fi
28340
28341     # Extract the first word of "shtool", so it can be a program name with args.
28342 set dummy shtool; ac_word=$2
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28344 $as_echo_n "checking for $ac_word... " >&6; }
28345 if ${ac_cv_prog_SHTOOL+:} false; then :
28346   $as_echo_n "(cached) " >&6
28347 else
28348   if test -n "$SHTOOL"; then
28349   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
28350 else
28351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28352 for as_dir in $PATH
28353 do
28354   IFS=$as_save_IFS
28355   test -z "$as_dir" && as_dir=.
28356     for ac_exec_ext in '' $ac_executable_extensions; do
28357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28358     ac_cv_prog_SHTOOL="shtool"
28359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28360     break 2
28361   fi
28362 done
28363   done
28364 IFS=$as_save_IFS
28365
28366 fi
28367 fi
28368 SHTOOL=$ac_cv_prog_SHTOOL
28369 if test -n "$SHTOOL"; then
28370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
28371 $as_echo "$SHTOOL" >&6; }
28372 else
28373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28374 $as_echo "no" >&6; }
28375 fi
28376
28377
28378   case `$SHTOOL path $CC` in
28379     *ccache*) gcc_ccache=yes;;
28380     *) gcc_ccache=no;;
28381   esac
28382
28383   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
28384     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
28385   fi
28386
28387   ltp_version_list="1.6 1.7 1.8 1.9"
28388   # Extract the first word of "lcov", so it can be a program name with args.
28389 set dummy lcov; ac_word=$2
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28391 $as_echo_n "checking for $ac_word... " >&6; }
28392 if ${ac_cv_prog_LTP+:} false; then :
28393   $as_echo_n "(cached) " >&6
28394 else
28395   if test -n "$LTP"; then
28396   ac_cv_prog_LTP="$LTP" # Let the user override the test.
28397 else
28398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28399 for as_dir in $PATH
28400 do
28401   IFS=$as_save_IFS
28402   test -z "$as_dir" && as_dir=.
28403     for ac_exec_ext in '' $ac_executable_extensions; do
28404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28405     ac_cv_prog_LTP="lcov"
28406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28407     break 2
28408   fi
28409 done
28410   done
28411 IFS=$as_save_IFS
28412
28413 fi
28414 fi
28415 LTP=$ac_cv_prog_LTP
28416 if test -n "$LTP"; then
28417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
28418 $as_echo "$LTP" >&6; }
28419 else
28420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28421 $as_echo "no" >&6; }
28422 fi
28423
28424
28425   # Extract the first word of "genhtml", so it can be a program name with args.
28426 set dummy genhtml; ac_word=$2
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28428 $as_echo_n "checking for $ac_word... " >&6; }
28429 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
28430   $as_echo_n "(cached) " >&6
28431 else
28432   if test -n "$LTP_GENHTML"; then
28433   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
28434 else
28435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28436 for as_dir in $PATH
28437 do
28438   IFS=$as_save_IFS
28439   test -z "$as_dir" && as_dir=.
28440     for ac_exec_ext in '' $ac_executable_extensions; do
28441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28442     ac_cv_prog_LTP_GENHTML="genhtml"
28443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28444     break 2
28445   fi
28446 done
28447   done
28448 IFS=$as_save_IFS
28449
28450 fi
28451 fi
28452 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
28453 if test -n "$LTP_GENHTML"; then
28454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
28455 $as_echo "$LTP_GENHTML" >&6; }
28456 else
28457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28458 $as_echo "no" >&6; }
28459 fi
28460
28461
28462
28463   if test "$LTP"; then
28464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
28465 $as_echo_n "checking for ltp version... " >&6; }
28466 if ${glib_cv_ltp_version+:} false; then :
28467   $as_echo_n "(cached) " >&6
28468 else
28469
28470       glib_cv_ltp_version=invalid
28471       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
28472       for ltp_check_version in $ltp_version_list; do
28473         if test "$ltp_version" = "$ltp_check_version"; then
28474           glib_cv_ltp_version="$ltp_check_version (ok)"
28475         fi
28476       done
28477
28478 fi
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
28480 $as_echo "$glib_cv_ltp_version" >&6; }
28481   else
28482     ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
28483     as_fn_error $? "$ltp_msg" "$LINENO" 5
28484   fi
28485
28486   case $glib_cv_ltp_version in
28487     ""|invalid)
28488       ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
28489       as_fn_error $? "$ltp_msg" "$LINENO" 5
28490       LTP="exit 0;"
28491       ;;
28492   esac
28493
28494   if test -z "$LTP_GENHTML"; then
28495     as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
28496   fi
28497
28498
28499   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
28500
28501
28502     CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
28503   LDFLAGS="$LDFLAGS -lgcov"
28504 fi
28505
28506
28507 ac_config_commands="$ac_config_commands glib/glibconfig.h"
28508
28509
28510 # Redo enough to get guint32 and guint64 for the alignment checks below
28511 case 4 in
28512 $ac_cv_sizeof_short)
28513   gint32=short
28514   ;;
28515 $ac_cv_sizeof_int)
28516   gint32=int
28517   ;;
28518 $ac_cv_sizeof_long)
28519   gint32=long
28520   ;;
28521 esac
28522 case 8 in
28523 $ac_cv_sizeof_int)
28524   gint64=int
28525   ;;
28526 $ac_cv_sizeof_long)
28527   gint64=long
28528   ;;
28529 $ac_cv_sizeof_long_long)
28530   gint64='long long'
28531   ;;
28532 $ac_cv_sizeof___int64)
28533   gint64='__int64'
28534   ;;
28535 esac
28536
28537 ac_fn_c_check_type "$LINENO" "guint32" "ac_cv_type_guint32" "typedef unsigned $gint32 guint32;
28538 "
28539 if test "x$ac_cv_type_guint32" = xyes; then :
28540
28541 fi
28542
28543 # The cast to long int works around a bug in the HP C Compiler,
28544 # see AC_CHECK_SIZEOF for more information.
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint32" >&5
28546 $as_echo_n "checking alignment of guint32... " >&6; }
28547 if ${ac_cv_alignof_guint32+:} false; then :
28548   $as_echo_n "(cached) " >&6
28549 else
28550   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint32"        "$ac_includes_default
28551 typedef unsigned $gint32 guint32;
28552
28553 #ifndef offsetof
28554 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28555 #endif
28556 typedef struct { char x; guint32 y; } ac__type_alignof_;"; then :
28557
28558 else
28559   if test "$ac_cv_type_guint32" = yes; then
28560      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28562 as_fn_error 77 "cannot compute alignment of guint32
28563 See \`config.log' for more details" "$LINENO" 5; }
28564    else
28565      ac_cv_alignof_guint32=0
28566    fi
28567 fi
28568
28569 fi
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint32" >&5
28571 $as_echo "$ac_cv_alignof_guint32" >&6; }
28572
28573
28574
28575 cat >>confdefs.h <<_ACEOF
28576 #define ALIGNOF_GUINT32 $ac_cv_alignof_guint32
28577 _ACEOF
28578
28579
28580 ac_fn_c_check_type "$LINENO" "guint64" "ac_cv_type_guint64" "typedef unsigned $gint64 guint64;
28581 "
28582 if test "x$ac_cv_type_guint64" = xyes; then :
28583
28584 fi
28585
28586 # The cast to long int works around a bug in the HP C Compiler,
28587 # see AC_CHECK_SIZEOF for more information.
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint64" >&5
28589 $as_echo_n "checking alignment of guint64... " >&6; }
28590 if ${ac_cv_alignof_guint64+:} false; then :
28591   $as_echo_n "(cached) " >&6
28592 else
28593   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint64"        "$ac_includes_default
28594 typedef unsigned $gint64 guint64;
28595
28596 #ifndef offsetof
28597 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28598 #endif
28599 typedef struct { char x; guint64 y; } ac__type_alignof_;"; then :
28600
28601 else
28602   if test "$ac_cv_type_guint64" = yes; then
28603      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28605 as_fn_error 77 "cannot compute alignment of guint64
28606 See \`config.log' for more details" "$LINENO" 5; }
28607    else
28608      ac_cv_alignof_guint64=0
28609    fi
28610 fi
28611
28612 fi
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint64" >&5
28614 $as_echo "$ac_cv_alignof_guint64" >&6; }
28615
28616
28617
28618 cat >>confdefs.h <<_ACEOF
28619 #define ALIGNOF_GUINT64 $ac_cv_alignof_guint64
28620 _ACEOF
28621
28622
28623 ac_fn_c_check_type "$LINENO" "unsigned long" "ac_cv_type_unsigned_long" "$ac_includes_default"
28624 if test "x$ac_cv_type_unsigned_long" = xyes; then :
28625
28626 fi
28627
28628 # The cast to long int works around a bug in the HP C Compiler,
28629 # see AC_CHECK_SIZEOF for more information.
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5
28631 $as_echo_n "checking alignment of unsigned long... " >&6; }
28632 if ${ac_cv_alignof_unsigned_long+:} false; then :
28633   $as_echo_n "(cached) " >&6
28634 else
28635   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long"        "$ac_includes_default
28636 #ifndef offsetof
28637 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28638 #endif
28639 typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then :
28640
28641 else
28642   if test "$ac_cv_type_unsigned_long" = yes; then
28643      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28645 as_fn_error 77 "cannot compute alignment of unsigned long
28646 See \`config.log' for more details" "$LINENO" 5; }
28647    else
28648      ac_cv_alignof_unsigned_long=0
28649    fi
28650 fi
28651
28652 fi
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5
28654 $as_echo "$ac_cv_alignof_unsigned_long" >&6; }
28655
28656
28657
28658 cat >>confdefs.h <<_ACEOF
28659 #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long
28660 _ACEOF
28661
28662
28663
28664 # Check for libdbus1 - Optional - is only used in the GDBus test cases
28665 #
28666 # 1.2.14 required for dbus_message_set_serial
28667
28668 pkg_failed=no
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5
28670 $as_echo_n "checking for DBUS1... " >&6; }
28671
28672 if test -n "$DBUS1_CFLAGS"; then
28673     pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS"
28674  elif test -n "$PKG_CONFIG"; then
28675     if test -n "$PKG_CONFIG" && \
28676     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28677   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28678   ac_status=$?
28679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28680   test $ac_status = 0; }; then
28681   pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null`
28682 else
28683   pkg_failed=yes
28684 fi
28685  else
28686     pkg_failed=untried
28687 fi
28688 if test -n "$DBUS1_LIBS"; then
28689     pkg_cv_DBUS1_LIBS="$DBUS1_LIBS"
28690  elif test -n "$PKG_CONFIG"; then
28691     if test -n "$PKG_CONFIG" && \
28692     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28693   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28694   ac_status=$?
28695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28696   test $ac_status = 0; }; then
28697   pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null`
28698 else
28699   pkg_failed=yes
28700 fi
28701  else
28702     pkg_failed=untried
28703 fi
28704
28705
28706
28707 if test $pkg_failed = yes; then
28708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709 $as_echo "no" >&6; }
28710
28711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28712         _pkg_short_errors_supported=yes
28713 else
28714         _pkg_short_errors_supported=no
28715 fi
28716         if test $_pkg_short_errors_supported = yes; then
28717                 DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.2.14" 2>&1`
28718         else
28719                 DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.2.14" 2>&1`
28720         fi
28721         # Put the nasty error message in config.log where it belongs
28722         echo "$DBUS1_PKG_ERRORS" >&5
28723
28724         have_dbus1=no
28725 elif test $pkg_failed = untried; then
28726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28727 $as_echo "no" >&6; }
28728         have_dbus1=no
28729 else
28730         DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS
28731         DBUS1_LIBS=$pkg_cv_DBUS1_LIBS
28732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }
28734
28735 $as_echo "#define HAVE_DBUS1 1" >>confdefs.h
28736  have_dbus1=yes
28737 fi
28738
28739
28740  if test "x$have_dbus1" = "xyes"; then
28741   HAVE_DBUS1_TRUE=
28742   HAVE_DBUS1_FALSE='#'
28743 else
28744   HAVE_DBUS1_TRUE='#'
28745   HAVE_DBUS1_FALSE=
28746 fi
28747
28748
28749
28750 # Check whether --enable-Bsymbolic was given.
28751 if test "${enable_Bsymbolic+set}" = set; then :
28752   enableval=$enable_Bsymbolic;
28753 else
28754   SAVED_LDFLAGS="${LDFLAGS}"
28755                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
28756 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
28757                LDFLAGS=-Wl,-Bsymbolic-functions
28758                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h.  */
28760
28761 int
28762 main ()
28763 {
28764 int main (void) { return 0; }
28765   ;
28766   return 0;
28767 }
28768 _ACEOF
28769 if ac_fn_c_try_link "$LINENO"; then :
28770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28771 $as_echo "yes" >&6; }
28772                            enable_Bsymbolic=yes
28773 else
28774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28775 $as_echo "no" >&6; }
28776                            enable_Bsymbolic=no
28777 fi
28778 rm -f core conftest.err conftest.$ac_objext \
28779     conftest$ac_exeext conftest.$ac_ext
28780                LDFLAGS="${SAVED_LDFLAGS}"
28781 fi
28782
28783
28784 if test "x${enable_Bsymbolic}" = "xyes"; then
28785   GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
28786 fi
28787
28788
28789
28790 #
28791 # Define variables corresponding to the correct include paths to use for
28792 # in-tree building.
28793 #
28794
28795 # for config.h:
28796 config_h_INCLUDES='-I$(top_builddir)'
28797
28798
28799 # glib:
28800 #   config.h
28801 #   $(top_builddir)/glib: for glibconfig.h
28802 #   $(top_srcdir)/glib:   for glib.h
28803 #   $(top_srcdir):        for everything
28804 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
28805
28806
28807 # gthread:
28808 #   same as glib
28809 gthread_INCLUDES='$(glib_INCLUDES)'
28810
28811
28812 # gobject:
28813 #   same as gthread
28814 gobject_INCLUDES='$(gthread_INCLUDES)'
28815
28816
28817 # gmodule:
28818 #   glib includes
28819 #   $(top_srcdir)/gmodule: for gmodule.h
28820 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
28821
28822
28823 # gio:
28824 #   same as gmodule
28825 gio_INCLUDES='$(gmodule_INCLUDES)'
28826
28827
28828
28829 ac_config_files="$ac_config_files glib-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gobject-2.0.pc gio-2.0.pc gio-unix-2.0.pc gio-windows-2.0.pc glib-zip glib-gettextize Makefile build/Makefile build/win32/Makefile build/win32/dirent/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile glib/Makefile glib/glib.stp glib/libcharset/Makefile glib/gnulib/Makefile glib/pcre/Makefile glib/update-pcre/Makefile glib/tests/Makefile gmodule/Makefile gmodule/gmoduleconf.h gobject/Makefile gobject/gobject.stp gobject/glib-mkenums gobject/tests/Makefile gthread/Makefile gio/Makefile gio/gdbus-2.0/codegen/Makefile gio/gdbus-2.0/codegen/config.py gio/xdgmime/Makefile gio/inotify/Makefile gio/fen/Makefile gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile gio/tests/gdbus-object-manager-example/Makefile po/Makefile.in docs/Makefile docs/reference/Makefile docs/reference/glib/Makefile docs/reference/glib/version.xml docs/reference/gobject/Makefile docs/reference/gobject/version.xml docs/reference/gio/Makefile docs/reference/gio/gdbus-object-manager-example/Makefile docs/reference/gio/version.xml tests/Makefile tests/gobject/Makefile tests/refcount/Makefile m4macros/Makefile"
28830
28831
28832 ac_config_commands="$ac_config_commands chmod-scripts"
28833
28834
28835 # we want to invoke this macro solely so that the config.status script
28836 # and automake generated makefiles know about these generated files.
28837 # They are only needed to distcheck the package
28838 if false; then
28839   ac_config_files="$ac_config_files INSTALL README config.h.win32 glib/glibconfig.h.win32 glib/makefile.msc glib/glib.rc gmodule/makefile.msc gmodule/gmodule.rc gobject/makefile.msc gobject/gobject.rc gthread/makefile.msc gthread/gthread.rc gio/gio.rc tests/makefile.msc"
28840
28841 fi
28842
28843 cat >confcache <<\_ACEOF
28844 # This file is a shell script that caches the results of configure
28845 # tests run on this system so they can be shared between configure
28846 # scripts and configure runs, see configure's option --config-cache.
28847 # It is not useful on other systems.  If it contains results you don't
28848 # want to keep, you may remove or edit it.
28849 #
28850 # config.status only pays attention to the cache file if you give it
28851 # the --recheck option to rerun configure.
28852 #
28853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28855 # following values.
28856
28857 _ACEOF
28858
28859 # The following way of writing the cache mishandles newlines in values,
28860 # but we know of no workaround that is simple, portable, and efficient.
28861 # So, we kill variables containing newlines.
28862 # Ultrix sh set writes to stderr and can't be redirected directly,
28863 # and sets the high bit in the cache file unless we assign to the vars.
28864 (
28865   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28866     eval ac_val=\$$ac_var
28867     case $ac_val in #(
28868     *${as_nl}*)
28869       case $ac_var in #(
28870       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28872       esac
28873       case $ac_var in #(
28874       _ | IFS | as_nl) ;; #(
28875       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28876       *) { eval $ac_var=; unset $ac_var;} ;;
28877       esac ;;
28878     esac
28879   done
28880
28881   (set) 2>&1 |
28882     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28883     *${as_nl}ac_space=\ *)
28884       # `set' does not quote correctly, so add quotes: double-quote
28885       # substitution turns \\\\ into \\, and sed turns \\ into \.
28886       sed -n \
28887         "s/'/'\\\\''/g;
28888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28889       ;; #(
28890     *)
28891       # `set' quotes correctly as required by POSIX, so do not add quotes.
28892       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28893       ;;
28894     esac |
28895     sort
28896 ) |
28897   sed '
28898      /^ac_cv_env_/b end
28899      t clear
28900      :clear
28901      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28902      t end
28903      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28904      :end' >>confcache
28905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28906   if test -w "$cache_file"; then
28907     if test "x$cache_file" != "x/dev/null"; then
28908       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28909 $as_echo "$as_me: updating cache $cache_file" >&6;}
28910       if test ! -f "$cache_file" || test -h "$cache_file"; then
28911         cat confcache >"$cache_file"
28912       else
28913         case $cache_file in #(
28914         */* | ?:*)
28915           mv -f confcache "$cache_file"$$ &&
28916           mv -f "$cache_file"$$ "$cache_file" ;; #(
28917         *)
28918           mv -f confcache "$cache_file" ;;
28919         esac
28920       fi
28921     fi
28922   else
28923     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28925   fi
28926 fi
28927 rm -f confcache
28928
28929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28930 # Let make expand exec_prefix.
28931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28932
28933 DEFS=-DHAVE_CONFIG_H
28934
28935 ac_libobjs=
28936 ac_ltlibobjs=
28937 U=
28938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28939   # 1. Remove the extension, and $U if already installed.
28940   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28941   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28942   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28943   #    will be set to the directory where LIBOBJS objects are built.
28944   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28945   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28946 done
28947 LIBOBJS=$ac_libobjs
28948
28949 LTLIBOBJS=$ac_ltlibobjs
28950
28951
28952  if test -n "$EXEEXT"; then
28953   am__EXEEXT_TRUE=
28954   am__EXEEXT_FALSE='#'
28955 else
28956   am__EXEEXT_TRUE='#'
28957   am__EXEEXT_FALSE=
28958 fi
28959
28960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28961   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28963 fi
28964 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28965   as_fn_error $? "conditional \"AMDEP\" was never defined.
28966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28967 fi
28968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28969   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28971 fi
28972 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
28973   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
28974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28975 fi
28976 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
28977   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
28978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28979 fi
28980 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
28981   as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
28982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28983 fi
28984 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
28985   as_fn_error $? "conditional \"OS_UNIX\" was never defined.
28986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28987 fi
28988 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
28989   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
28990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28991 fi
28992 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
28993   as_fn_error $? "conditional \"OS_CARBON\" was never defined.
28994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28995 fi
28996 if test -z "${OS_COCOA_TRUE}" && test -z "${OS_COCOA_FALSE}"; then
28997   as_fn_error $? "conditional \"OS_COCOA\" was never defined.
28998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28999 fi
29000 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
29001   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
29002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29003 fi
29004 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
29005   as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
29006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29007 fi
29008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29009   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
29010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29011 fi
29012 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
29013   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
29014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29015 fi
29016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29017   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
29018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29019 fi
29020 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
29021   as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
29022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29023 fi
29024 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
29025   as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
29026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29027 fi
29028 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
29029   as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
29030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29031 fi
29032
29033 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
29034   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
29035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29036 fi
29037 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
29038   as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
29039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29040 fi
29041 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
29042   as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
29043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29044 fi
29045 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
29046   as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
29047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29048 fi
29049 if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then
29050   as_fn_error $? "conditional \"HAVE_FAM\" was never defined.
29051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29052 fi
29053 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
29054   as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
29055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29056 fi
29057 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
29058   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
29059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29060 fi
29061 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
29062   as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
29063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29064 fi
29065 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
29066   as_fn_error $? "conditional \"USE_SYSTEM_PCRE\" was never defined.
29067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29068 fi
29069 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
29070   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
29071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29072 fi
29073 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
29074   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
29075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29076 fi
29077 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
29078   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
29079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29080 fi
29081 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
29082   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
29083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29084 fi
29085 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
29086   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
29087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29088 fi
29089 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
29090   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
29091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29092 fi
29093 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
29094   as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
29095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29096 fi
29097 if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then
29098   as_fn_error $? "conditional \"ENABLE_DTRACE\" was never defined.
29099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29100 fi
29101 if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then
29102   as_fn_error $? "conditional \"ENABLE_SYSTEMTAP\" was never defined.
29103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29104 fi
29105 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
29106   as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
29107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29108 fi
29109
29110 : "${CONFIG_STATUS=./config.status}"
29111 ac_write_fail=0
29112 ac_clean_files_save=$ac_clean_files
29113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29116 as_write_fail=0
29117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29118 #! $SHELL
29119 # Generated by $as_me.
29120 # Run this file to recreate the current configuration.
29121 # Compiler output produced by configure, useful for debugging
29122 # configure, is in config.log if it exists.
29123
29124 debug=false
29125 ac_cs_recheck=false
29126 ac_cs_silent=false
29127
29128 SHELL=\${CONFIG_SHELL-$SHELL}
29129 export SHELL
29130 _ASEOF
29131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29132 ## -------------------- ##
29133 ## M4sh Initialization. ##
29134 ## -------------------- ##
29135
29136 # Be more Bourne compatible
29137 DUALCASE=1; export DUALCASE # for MKS sh
29138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29139   emulate sh
29140   NULLCMD=:
29141   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29142   # is contrary to our usage.  Disable this feature.
29143   alias -g '${1+"$@"}'='"$@"'
29144   setopt NO_GLOB_SUBST
29145 else
29146   case `(set -o) 2>/dev/null` in #(
29147   *posix*) :
29148     set -o posix ;; #(
29149   *) :
29150      ;;
29151 esac
29152 fi
29153
29154
29155 as_nl='
29156 '
29157 export as_nl
29158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29162 # Prefer a ksh shell builtin over an external printf program on Solaris,
29163 # but without wasting forks for bash or zsh.
29164 if test -z "$BASH_VERSION$ZSH_VERSION" \
29165     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29166   as_echo='print -r --'
29167   as_echo_n='print -rn --'
29168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29169   as_echo='printf %s\n'
29170   as_echo_n='printf %s'
29171 else
29172   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29173     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29174     as_echo_n='/usr/ucb/echo -n'
29175   else
29176     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29177     as_echo_n_body='eval
29178       arg=$1;
29179       case $arg in #(
29180       *"$as_nl"*)
29181         expr "X$arg" : "X\\(.*\\)$as_nl";
29182         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29183       esac;
29184       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29185     '
29186     export as_echo_n_body
29187     as_echo_n='sh -c $as_echo_n_body as_echo'
29188   fi
29189   export as_echo_body
29190   as_echo='sh -c $as_echo_body as_echo'
29191 fi
29192
29193 # The user is always right.
29194 if test "${PATH_SEPARATOR+set}" != set; then
29195   PATH_SEPARATOR=:
29196   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29197     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29198       PATH_SEPARATOR=';'
29199   }
29200 fi
29201
29202
29203 # IFS
29204 # We need space, tab and new line, in precisely that order.  Quoting is
29205 # there to prevent editors from complaining about space-tab.
29206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29207 # splitting by setting IFS to empty value.)
29208 IFS=" ""        $as_nl"
29209
29210 # Find who we are.  Look in the path if we contain no directory separator.
29211 as_myself=
29212 case $0 in #((
29213   *[\\/]* ) as_myself=$0 ;;
29214   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29215 for as_dir in $PATH
29216 do
29217   IFS=$as_save_IFS
29218   test -z "$as_dir" && as_dir=.
29219     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29220   done
29221 IFS=$as_save_IFS
29222
29223      ;;
29224 esac
29225 # We did not find ourselves, most probably we were run as `sh COMMAND'
29226 # in which case we are not to be found in the path.
29227 if test "x$as_myself" = x; then
29228   as_myself=$0
29229 fi
29230 if test ! -f "$as_myself"; then
29231   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29232   exit 1
29233 fi
29234
29235 # Unset variables that we do not need and which cause bugs (e.g. in
29236 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29237 # suppresses any "Segmentation fault" message there.  '((' could
29238 # trigger a bug in pdksh 5.2.14.
29239 for as_var in BASH_ENV ENV MAIL MAILPATH
29240 do eval test x\${$as_var+set} = xset \
29241   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29242 done
29243 PS1='$ '
29244 PS2='> '
29245 PS4='+ '
29246
29247 # NLS nuisances.
29248 LC_ALL=C
29249 export LC_ALL
29250 LANGUAGE=C
29251 export LANGUAGE
29252
29253 # CDPATH.
29254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29255
29256
29257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29258 # ----------------------------------------
29259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29261 # script with STATUS, using 1 if that was 0.
29262 as_fn_error ()
29263 {
29264   as_status=$1; test $as_status -eq 0 && as_status=1
29265   if test "$4"; then
29266     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29267     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29268   fi
29269   $as_echo "$as_me: error: $2" >&2
29270   as_fn_exit $as_status
29271 } # as_fn_error
29272
29273
29274 # as_fn_set_status STATUS
29275 # -----------------------
29276 # Set $? to STATUS, without forking.
29277 as_fn_set_status ()
29278 {
29279   return $1
29280 } # as_fn_set_status
29281
29282 # as_fn_exit STATUS
29283 # -----------------
29284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29285 as_fn_exit ()
29286 {
29287   set +e
29288   as_fn_set_status $1
29289   exit $1
29290 } # as_fn_exit
29291
29292 # as_fn_unset VAR
29293 # ---------------
29294 # Portably unset VAR.
29295 as_fn_unset ()
29296 {
29297   { eval $1=; unset $1;}
29298 }
29299 as_unset=as_fn_unset
29300 # as_fn_append VAR VALUE
29301 # ----------------------
29302 # Append the text in VALUE to the end of the definition contained in VAR. Take
29303 # advantage of any shell optimizations that allow amortized linear growth over
29304 # repeated appends, instead of the typical quadratic growth present in naive
29305 # implementations.
29306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29307   eval 'as_fn_append ()
29308   {
29309     eval $1+=\$2
29310   }'
29311 else
29312   as_fn_append ()
29313   {
29314     eval $1=\$$1\$2
29315   }
29316 fi # as_fn_append
29317
29318 # as_fn_arith ARG...
29319 # ------------------
29320 # Perform arithmetic evaluation on the ARGs, and store the result in the
29321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29322 # must be portable across $(()) and expr.
29323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29324   eval 'as_fn_arith ()
29325   {
29326     as_val=$(( $* ))
29327   }'
29328 else
29329   as_fn_arith ()
29330   {
29331     as_val=`expr "$@" || test $? -eq 1`
29332   }
29333 fi # as_fn_arith
29334
29335
29336 if expr a : '\(a\)' >/dev/null 2>&1 &&
29337    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29338   as_expr=expr
29339 else
29340   as_expr=false
29341 fi
29342
29343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29344   as_basename=basename
29345 else
29346   as_basename=false
29347 fi
29348
29349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29350   as_dirname=dirname
29351 else
29352   as_dirname=false
29353 fi
29354
29355 as_me=`$as_basename -- "$0" ||
29356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29357          X"$0" : 'X\(//\)$' \| \
29358          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29359 $as_echo X/"$0" |
29360     sed '/^.*\/\([^/][^/]*\)\/*$/{
29361             s//\1/
29362             q
29363           }
29364           /^X\/\(\/\/\)$/{
29365             s//\1/
29366             q
29367           }
29368           /^X\/\(\/\).*/{
29369             s//\1/
29370             q
29371           }
29372           s/.*/./; q'`
29373
29374 # Avoid depending upon Character Ranges.
29375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29378 as_cr_digits='0123456789'
29379 as_cr_alnum=$as_cr_Letters$as_cr_digits
29380
29381 ECHO_C= ECHO_N= ECHO_T=
29382 case `echo -n x` in #(((((
29383 -n*)
29384   case `echo 'xy\c'` in
29385   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29386   xy)  ECHO_C='\c';;
29387   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29388        ECHO_T=' ';;
29389   esac;;
29390 *)
29391   ECHO_N='-n';;
29392 esac
29393
29394 rm -f conf$$ conf$$.exe conf$$.file
29395 if test -d conf$$.dir; then
29396   rm -f conf$$.dir/conf$$.file
29397 else
29398   rm -f conf$$.dir
29399   mkdir conf$$.dir 2>/dev/null
29400 fi
29401 if (echo >conf$$.file) 2>/dev/null; then
29402   if ln -s conf$$.file conf$$ 2>/dev/null; then
29403     as_ln_s='ln -s'
29404     # ... but there are two gotchas:
29405     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29406     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29407     # In both cases, we have to default to `cp -p'.
29408     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29409       as_ln_s='cp -p'
29410   elif ln conf$$.file conf$$ 2>/dev/null; then
29411     as_ln_s=ln
29412   else
29413     as_ln_s='cp -p'
29414   fi
29415 else
29416   as_ln_s='cp -p'
29417 fi
29418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29419 rmdir conf$$.dir 2>/dev/null
29420
29421
29422 # as_fn_mkdir_p
29423 # -------------
29424 # Create "$as_dir" as a directory, including parents if necessary.
29425 as_fn_mkdir_p ()
29426 {
29427
29428   case $as_dir in #(
29429   -*) as_dir=./$as_dir;;
29430   esac
29431   test -d "$as_dir" || eval $as_mkdir_p || {
29432     as_dirs=
29433     while :; do
29434       case $as_dir in #(
29435       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29436       *) as_qdir=$as_dir;;
29437       esac
29438       as_dirs="'$as_qdir' $as_dirs"
29439       as_dir=`$as_dirname -- "$as_dir" ||
29440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29441          X"$as_dir" : 'X\(//\)[^/]' \| \
29442          X"$as_dir" : 'X\(//\)$' \| \
29443          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29444 $as_echo X"$as_dir" |
29445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29446             s//\1/
29447             q
29448           }
29449           /^X\(\/\/\)[^/].*/{
29450             s//\1/
29451             q
29452           }
29453           /^X\(\/\/\)$/{
29454             s//\1/
29455             q
29456           }
29457           /^X\(\/\).*/{
29458             s//\1/
29459             q
29460           }
29461           s/.*/./; q'`
29462       test -d "$as_dir" && break
29463     done
29464     test -z "$as_dirs" || eval "mkdir $as_dirs"
29465   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29466
29467
29468 } # as_fn_mkdir_p
29469 if mkdir -p . 2>/dev/null; then
29470   as_mkdir_p='mkdir -p "$as_dir"'
29471 else
29472   test -d ./-p && rmdir ./-p
29473   as_mkdir_p=false
29474 fi
29475
29476 if test -x / >/dev/null 2>&1; then
29477   as_test_x='test -x'
29478 else
29479   if ls -dL / >/dev/null 2>&1; then
29480     as_ls_L_option=L
29481   else
29482     as_ls_L_option=
29483   fi
29484   as_test_x='
29485     eval sh -c '\''
29486       if test -d "$1"; then
29487         test -d "$1/.";
29488       else
29489         case $1 in #(
29490         -*)set "./$1";;
29491         esac;
29492         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29493         ???[sx]*):;;*)false;;esac;fi
29494     '\'' sh
29495   '
29496 fi
29497 as_executable_p=$as_test_x
29498
29499 # Sed expression to map a string onto a valid CPP name.
29500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29501
29502 # Sed expression to map a string onto a valid variable name.
29503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29504
29505
29506 exec 6>&1
29507 ## ----------------------------------- ##
29508 ## Main body of $CONFIG_STATUS script. ##
29509 ## ----------------------------------- ##
29510 _ASEOF
29511 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29512
29513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29514 # Save the log message, to keep $0 and so on meaningful, and to
29515 # report actual input values of CONFIG_FILES etc. instead of their
29516 # values after options handling.
29517 ac_log="
29518 This file was extended by glib $as_me 2.32.3, which was
29519 generated by GNU Autoconf 2.68.  Invocation command line was
29520
29521   CONFIG_FILES    = $CONFIG_FILES
29522   CONFIG_HEADERS  = $CONFIG_HEADERS
29523   CONFIG_LINKS    = $CONFIG_LINKS
29524   CONFIG_COMMANDS = $CONFIG_COMMANDS
29525   $ $0 $@
29526
29527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29528 "
29529
29530 _ACEOF
29531
29532 case $ac_config_files in *"
29533 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29534 esac
29535
29536 case $ac_config_headers in *"
29537 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29538 esac
29539
29540
29541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29542 # Files that config.status was made for.
29543 config_files="$ac_config_files"
29544 config_headers="$ac_config_headers"
29545 config_commands="$ac_config_commands"
29546
29547 _ACEOF
29548
29549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29550 ac_cs_usage="\
29551 \`$as_me' instantiates files and other configuration actions
29552 from templates according to the current configuration.  Unless the files
29553 and actions are specified as TAGs, all are instantiated by default.
29554
29555 Usage: $0 [OPTION]... [TAG]...
29556
29557   -h, --help       print this help, then exit
29558   -V, --version    print version number and configuration settings, then exit
29559       --config     print configuration, then exit
29560   -q, --quiet, --silent
29561                    do not print progress messages
29562   -d, --debug      don't remove temporary files
29563       --recheck    update $as_me by reconfiguring in the same conditions
29564       --file=FILE[:TEMPLATE]
29565                    instantiate the configuration file FILE
29566       --header=FILE[:TEMPLATE]
29567                    instantiate the configuration header FILE
29568
29569 Configuration files:
29570 $config_files
29571
29572 Configuration headers:
29573 $config_headers
29574
29575 Configuration commands:
29576 $config_commands
29577
29578 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
29579
29580 _ACEOF
29581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29583 ac_cs_version="\\
29584 glib config.status 2.32.3
29585 configured by $0, generated by GNU Autoconf 2.68,
29586   with options \\"\$ac_cs_config\\"
29587
29588 Copyright (C) 2010 Free Software Foundation, Inc.
29589 This config.status script is free software; the Free Software Foundation
29590 gives unlimited permission to copy, distribute and modify it."
29591
29592 ac_pwd='$ac_pwd'
29593 srcdir='$srcdir'
29594 INSTALL='$INSTALL'
29595 MKDIR_P='$MKDIR_P'
29596 AWK='$AWK'
29597 test -n "\$AWK" || AWK=awk
29598 _ACEOF
29599
29600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29601 # The default lists apply if the user does not specify any file.
29602 ac_need_defaults=:
29603 while test $# != 0
29604 do
29605   case $1 in
29606   --*=?*)
29607     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29608     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29609     ac_shift=:
29610     ;;
29611   --*=)
29612     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29613     ac_optarg=
29614     ac_shift=:
29615     ;;
29616   *)
29617     ac_option=$1
29618     ac_optarg=$2
29619     ac_shift=shift
29620     ;;
29621   esac
29622
29623   case $ac_option in
29624   # Handling of the options.
29625   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29626     ac_cs_recheck=: ;;
29627   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29628     $as_echo "$ac_cs_version"; exit ;;
29629   --config | --confi | --conf | --con | --co | --c )
29630     $as_echo "$ac_cs_config"; exit ;;
29631   --debug | --debu | --deb | --de | --d | -d )
29632     debug=: ;;
29633   --file | --fil | --fi | --f )
29634     $ac_shift
29635     case $ac_optarg in
29636     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29637     '') as_fn_error $? "missing file argument" ;;
29638     esac
29639     as_fn_append CONFIG_FILES " '$ac_optarg'"
29640     ac_need_defaults=false;;
29641   --header | --heade | --head | --hea )
29642     $ac_shift
29643     case $ac_optarg in
29644     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29645     esac
29646     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29647     ac_need_defaults=false;;
29648   --he | --h)
29649     # Conflict between --help and --header
29650     as_fn_error $? "ambiguous option: \`$1'
29651 Try \`$0 --help' for more information.";;
29652   --help | --hel | -h )
29653     $as_echo "$ac_cs_usage"; exit ;;
29654   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29655   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29656     ac_cs_silent=: ;;
29657
29658   # This is an error.
29659   -*) as_fn_error $? "unrecognized option: \`$1'
29660 Try \`$0 --help' for more information." ;;
29661
29662   *) as_fn_append ac_config_targets " $1"
29663      ac_need_defaults=false ;;
29664
29665   esac
29666   shift
29667 done
29668
29669 ac_configure_extra_args=
29670
29671 if $ac_cs_silent; then
29672   exec 6>/dev/null
29673   ac_configure_extra_args="$ac_configure_extra_args --silent"
29674 fi
29675
29676 _ACEOF
29677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29678 if \$ac_cs_recheck; then
29679   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29680   shift
29681   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29682   CONFIG_SHELL='$SHELL'
29683   export CONFIG_SHELL
29684   exec "\$@"
29685 fi
29686
29687 _ACEOF
29688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29689 exec 5>>config.log
29690 {
29691   echo
29692   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29693 ## Running $as_me. ##
29694 _ASBOX
29695   $as_echo "$ac_log"
29696 } >&5
29697
29698 _ACEOF
29699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29700 #
29701 # INIT-COMMANDS
29702 #
29703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29704
29705
29706
29707 # The HP-UX ksh and POSIX shell print the target directory to stdout
29708 # if CDPATH is set.
29709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29710
29711 sed_quote_subst='$sed_quote_subst'
29712 double_quote_subst='$double_quote_subst'
29713 delay_variable_subst='$delay_variable_subst'
29714 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29715 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29716 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29717 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29718 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29719 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29720 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29721 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29722 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29723 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29724 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29725 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29726 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29727 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29728 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29729 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29730 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29731 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29732 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29733 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29734 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29735 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29736 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29737 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29738 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29739 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29740 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29741 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29742 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29743 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29744 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29745 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29746 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29747 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29748 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29749 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29750 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29751 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29752 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29753 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29754 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29755 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29756 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29757 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29758 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29759 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29760 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29761 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29762 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29763 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29764 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29765 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29766 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29767 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29768 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29769 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29770 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29771 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"`'
29772 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29773 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29774 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29775 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29776 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29778 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29779 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29780 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29781 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29782 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29783 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29784 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29785 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29786 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29787 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29788 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29789 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29790 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29791 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29792 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29793 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29794 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29795 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29796 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29797 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29798 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29799 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29800 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29801 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29802 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29803 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29804 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29805 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29806 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29807 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29808 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29809 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29810 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29811 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29812 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29813 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29819 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29820 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29821 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29822 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29823 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29824 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29825 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29826 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29827 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29828 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29829 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29830 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29831 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29832 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29833 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29834 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29835 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29836 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29837 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29838 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29839 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29840 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29841 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29842 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29843 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29844 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29845 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29846 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29847 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29848 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29849 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29850 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29851 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29852 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29853 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29854 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29855 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29856 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29857 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29858 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29859 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29860 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29861 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29862 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29863 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29864 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29865 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29866 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29867 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29868 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29869 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29870 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29871 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29872 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29873 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29874 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29875 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29876 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29877 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29878 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29879 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29880 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29881 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29882 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29883 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29884 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29885 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29886 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29887 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29888 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29889 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29890 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29891 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29892 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29893 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29894 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29895 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29896 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29897 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29898 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29899
29900 LTCC='$LTCC'
29901 LTCFLAGS='$LTCFLAGS'
29902 compiler='$compiler_DEFAULT'
29903
29904 # A function that is used when there is no print builtin or printf.
29905 func_fallback_echo ()
29906 {
29907   eval 'cat <<_LTECHO_EOF
29908 \$1
29909 _LTECHO_EOF'
29910 }
29911
29912 # Quote evaled strings.
29913 for var in AS \
29914 DLLTOOL \
29915 OBJDUMP \
29916 SHELL \
29917 ECHO \
29918 PATH_SEPARATOR \
29919 SED \
29920 GREP \
29921 EGREP \
29922 FGREP \
29923 LD \
29924 NM \
29925 LN_S \
29926 lt_SP2NL \
29927 lt_NL2SP \
29928 reload_flag \
29929 deplibs_check_method \
29930 file_magic_cmd \
29931 file_magic_glob \
29932 want_nocaseglob \
29933 sharedlib_from_linklib_cmd \
29934 AR \
29935 AR_FLAGS \
29936 archiver_list_spec \
29937 STRIP \
29938 RANLIB \
29939 CC \
29940 CFLAGS \
29941 compiler \
29942 lt_cv_sys_global_symbol_pipe \
29943 lt_cv_sys_global_symbol_to_cdecl \
29944 lt_cv_sys_global_symbol_to_c_name_address \
29945 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29946 nm_file_list_spec \
29947 lt_prog_compiler_no_builtin_flag \
29948 lt_prog_compiler_pic \
29949 lt_prog_compiler_wl \
29950 lt_prog_compiler_static \
29951 lt_cv_prog_compiler_c_o \
29952 need_locks \
29953 MANIFEST_TOOL \
29954 DSYMUTIL \
29955 NMEDIT \
29956 LIPO \
29957 OTOOL \
29958 OTOOL64 \
29959 shrext_cmds \
29960 export_dynamic_flag_spec \
29961 whole_archive_flag_spec \
29962 compiler_needs_object \
29963 with_gnu_ld \
29964 allow_undefined_flag \
29965 no_undefined_flag \
29966 hardcode_libdir_flag_spec \
29967 hardcode_libdir_separator \
29968 exclude_expsyms \
29969 include_expsyms \
29970 file_list_spec \
29971 variables_saved_for_relink \
29972 libname_spec \
29973 library_names_spec \
29974 soname_spec \
29975 install_override_mode \
29976 finish_eval \
29977 old_striplib \
29978 striplib \
29979 compiler_lib_search_dirs \
29980 predep_objects \
29981 postdep_objects \
29982 predeps \
29983 postdeps \
29984 compiler_lib_search_path \
29985 LD_CXX \
29986 reload_flag_CXX \
29987 compiler_CXX \
29988 lt_prog_compiler_no_builtin_flag_CXX \
29989 lt_prog_compiler_pic_CXX \
29990 lt_prog_compiler_wl_CXX \
29991 lt_prog_compiler_static_CXX \
29992 lt_cv_prog_compiler_c_o_CXX \
29993 export_dynamic_flag_spec_CXX \
29994 whole_archive_flag_spec_CXX \
29995 compiler_needs_object_CXX \
29996 with_gnu_ld_CXX \
29997 allow_undefined_flag_CXX \
29998 no_undefined_flag_CXX \
29999 hardcode_libdir_flag_spec_CXX \
30000 hardcode_libdir_separator_CXX \
30001 exclude_expsyms_CXX \
30002 include_expsyms_CXX \
30003 file_list_spec_CXX \
30004 compiler_lib_search_dirs_CXX \
30005 predep_objects_CXX \
30006 postdep_objects_CXX \
30007 predeps_CXX \
30008 postdeps_CXX \
30009 compiler_lib_search_path_CXX; do
30010     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30011     *[\\\\\\\`\\"\\\$]*)
30012       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30013       ;;
30014     *)
30015       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30016       ;;
30017     esac
30018 done
30019
30020 # Double-quote double-evaled strings.
30021 for var in reload_cmds \
30022 old_postinstall_cmds \
30023 old_postuninstall_cmds \
30024 old_archive_cmds \
30025 extract_expsyms_cmds \
30026 old_archive_from_new_cmds \
30027 old_archive_from_expsyms_cmds \
30028 archive_cmds \
30029 archive_expsym_cmds \
30030 module_cmds \
30031 module_expsym_cmds \
30032 export_symbols_cmds \
30033 prelink_cmds \
30034 postlink_cmds \
30035 postinstall_cmds \
30036 postuninstall_cmds \
30037 finish_cmds \
30038 sys_lib_search_path_spec \
30039 sys_lib_dlsearch_path_spec \
30040 reload_cmds_CXX \
30041 old_archive_cmds_CXX \
30042 old_archive_from_new_cmds_CXX \
30043 old_archive_from_expsyms_cmds_CXX \
30044 archive_cmds_CXX \
30045 archive_expsym_cmds_CXX \
30046 module_cmds_CXX \
30047 module_expsym_cmds_CXX \
30048 export_symbols_cmds_CXX \
30049 prelink_cmds_CXX \
30050 postlink_cmds_CXX; do
30051     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
30052     *[\\\\\\\`\\"\\\$]*)
30053       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30054       ;;
30055     *)
30056       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30057       ;;
30058     esac
30059 done
30060
30061 ac_aux_dir='$ac_aux_dir'
30062 xsi_shell='$xsi_shell'
30063 lt_shell_append='$lt_shell_append'
30064
30065 # See if we are running on zsh, and set the options which allow our
30066 # commands through without removal of \ escapes INIT.
30067 if test -n "\${ZSH_VERSION+set}" ; then
30068    setopt NO_GLOB_SUBST
30069 fi
30070
30071
30072     PACKAGE='$PACKAGE'
30073     VERSION='$VERSION'
30074     TIMESTAMP='$TIMESTAMP'
30075     RM='$RM'
30076     ofile='$ofile'
30077
30078
30079
30080 ac_aux_dir='$ac_aux_dir'
30081
30082
30083
30084
30085 # Note that if two cases are the same, case goes with the first one.
30086 # Note also that this is inside an AC_OUTPUT_COMMAND.  We do not depend
30087 # on variable expansion in case labels.  Look at the generated config.status
30088 # for a hint.
30089
30090 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
30091   glib_header_alloca_h="$ac_cv_working_alloca_h"
30092 else
30093   glib_header_alloca_h="$ac_cv_header_alloca_h"
30094 fi
30095
30096 case xyes in
30097 x$ac_cv_header_float_h)
30098   glib_float_h=yes
30099   glib_mf=FLT_MIN glib_Mf=FLT_MAX
30100   glib_md=DBL_MIN glib_Md=DBL_MAX
30101   ;;
30102 x$ac_cv_header_values_h)
30103   glib_values_h=yes
30104   glib_mf=MINFLOAT  glib_Mf=MAXFLOAT
30105   glib_md=MINDOUBLE glib_Md=MAXDOUBLE
30106   ;;
30107 esac
30108
30109 case xyes in
30110 x$ac_cv_header_limits_h)
30111   glib_limits_h=yes
30112   glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
30113   glib_mi=INT_MIN  glib_Mi=INT_MAX  glib_Mui=UINT_MAX
30114   glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
30115   ;;
30116 x$ac_cv_header_values_h)
30117   glib_values_h=yes
30118   glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
30119   glib_mi=MININT   glib_Mi=MAXINT   glib_Mui="(((guint)G_MAXINT)*2+1)"
30120   glib_ml=MINLONG  glib_Ml=MAXLONG  glib_Mul="(((gulong)G_MAXLONG)*2+1)"
30121   ;;
30122 esac
30123
30124 if test x$ac_cv_header_sys_poll_h = xyes ; then
30125   glib_sys_poll_h=yes
30126 fi
30127
30128 if test x$enable_included_printf = xyes ; then
30129   glib_included_printf=yes
30130 fi
30131
30132 case 2 in
30133 $ac_cv_sizeof_short)
30134   gint16=short
30135   gint16_modifier='"h"'
30136   gint16_format='"hi"'
30137   guint16_format='"hu"'
30138   ;;
30139 $ac_cv_sizeof_int)
30140   gint16=int
30141   gint16_modifier='""'
30142   gint16_format='"i"'
30143   guint16_format='"u"'
30144   ;;
30145 esac
30146 case 4 in
30147 $ac_cv_sizeof_short)
30148   gint32=short
30149   gint32_modifier='"h"'
30150   gint32_format='"hi"'
30151   guint32_format='"hu"'
30152   ;;
30153 $ac_cv_sizeof_int)
30154   gint32=int
30155   gint32_modifier='""'
30156   gint32_format='"i"'
30157   guint32_format='"u"'
30158   ;;
30159 $ac_cv_sizeof_long)
30160   gint32=long
30161   gint32_modifier='"l"'
30162   gint32_format='"li"'
30163   guint32_format='"lu"'
30164   ;;
30165 esac
30166 case 8 in
30167 $ac_cv_sizeof_int)
30168   gint64=int
30169   gint64_modifier='""'
30170   gint64_format='"i"'
30171   guint64_format='"u"'
30172   glib_extension=
30173   gint64_constant='(val)'
30174   guint64_constant='(val)'
30175   ;;
30176 $ac_cv_sizeof_long)
30177   gint64=long
30178   gint64_modifier='"l"'
30179   gint64_format='"li"'
30180   guint64_format='"lu"'
30181   glib_extension=
30182   gint64_constant='(val##L)'
30183   guint64_constant='(val##UL)'
30184   ;;
30185 $ac_cv_sizeof_long_long)
30186   gint64='long long'
30187   if test -n "$glib_cv_long_long_format"; then
30188     gint64_modifier='"'$glib_cv_long_long_format'"'
30189     gint64_format='"'$glib_cv_long_long_format'i"'
30190     guint64_format='"'$glib_cv_long_long_format'u"'
30191   fi
30192   glib_extension='G_GNUC_EXTENSION '
30193   gint64_constant='(G_GNUC_EXTENSION (val##LL))'
30194   guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
30195   ;;
30196 $ac_cv_sizeof___int64)
30197   gint64='__int64'
30198   if test -n "$glib_cv_long_long_format"; then
30199     gint64_modifier='"'$glib_cv_long_long_format'"'
30200     gint64_format='"'$glib_cv_long_long_format'i"'
30201     guint64_format='"'$glib_cv_long_long_format'u"'
30202   fi
30203   glib_extension=
30204   gint64_constant='(val##i64)'
30205   guint64_constant='(val##ui64)'
30206   ;;
30207 esac
30208 glib_size_t=$ac_cv_sizeof_size_t
30209 glib_size_type_define="$glib_size_type"
30210 glib_void_p=$ac_cv_sizeof_void_p
30211 glib_long=$ac_cv_sizeof_long
30212
30213 case "$glib_size_type" in
30214 short)
30215   gsize_modifier='"h"'
30216   gsize_format='"hu"'
30217   gssize_format='"hi"'
30218   glib_msize_type='SHRT'
30219   ;;
30220 int)
30221   gsize_modifier='""'
30222   gsize_format='"u"'
30223   gssize_format='"i"'
30224   glib_msize_type='INT'
30225   ;;
30226 long)
30227   gsize_modifier='"l"'
30228   gsize_format='"lu"'
30229   gssize_format='"li"'
30230   glib_msize_type='LONG'
30231   ;;
30232 "long long"|__int64)
30233   gsize_modifier='"I64"'
30234   gsize_format='"I64u"'
30235   gssize_format='"I64i"'
30236   glib_msize_type='INT64'
30237   ;;
30238 esac
30239
30240 gintbits=`expr $ac_cv_sizeof_int \* 8`
30241 glongbits=`expr $ac_cv_sizeof_long \* 8`
30242 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
30243
30244 case $ac_cv_sizeof_void_p in
30245 $ac_cv_sizeof_int)
30246   glib_intptr_type_define=int
30247   gintptr_modifier='""'
30248   gintptr_format='"i"'
30249   guintptr_format='"u"'
30250   glib_gpi_cast='(gint)'
30251   glib_gpui_cast='(guint)'
30252   ;;
30253 $ac_cv_sizeof_long)
30254   glib_intptr_type_define=long
30255   gintptr_modifier='"l"'
30256   gintptr_format='"li"'
30257   guintptr_format='"lu"'
30258   glib_gpi_cast='(glong)'
30259   glib_gpui_cast='(gulong)'
30260   ;;
30261 $ac_cv_sizeof_long_long)
30262   glib_intptr_type_define='long long'
30263   gintptr_modifier='"I64"'
30264   gintptr_format='"I64i"'
30265   guintptr_format='"I64u"'
30266   glib_gpi_cast='(gint64)'
30267   glib_gpui_cast='(guint64)'
30268   ;;
30269 $ac_cv_sizeof___int64)
30270   glib_intptr_type_define=__int64
30271   gintptr_modifier='"I64"'
30272   gintptr_format='"I64i"'
30273   guintptr_format='"I64u"'
30274   glib_gpi_cast='(gint64)'
30275   glib_gpui_cast='(guint64)'
30276   ;;
30277 *)
30278   glib_unknown_void_p=yes
30279   ;;
30280 esac
30281
30282
30283 case xyes in
30284 x$ac_cv_func_atexit)
30285   glib_atexit="
30286 #ifdef NeXT /* @#%@! NeXTStep */
30287 # define g_ATEXIT(proc) (!atexit (proc))
30288 #else
30289 # define g_ATEXIT(proc) (atexit (proc))
30290 #endif"
30291   ;;
30292 x$ac_cv_func_on_exit)
30293   glib_atexit="
30294 #define g_ATEXIT(proc)  (on_exit ((void (*)(int, void*))(proc), NULL))"
30295   ;;
30296 esac
30297
30298 case xyes in
30299 x$ac_cv_func_memmove)
30300   glib_memmove='
30301 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
30302   ;;
30303 x$glib_cv_working_bcopy)
30304   glib_memmove="
30305 /* memmove isn't available, but bcopy can copy overlapping memory regions */
30306 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
30307   ;;
30308 *)
30309   glib_memmove="
30310 /* memmove isn't found and bcopy can't copy overlapping memory regions,
30311  * so we have to roll our own copy routine. */
30312 void g_memmove (void* dest, const void * src, unsigned long len);"
30313   ;;
30314 esac
30315
30316 glib_defines="
30317 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
30318 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
30319 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
30320 "
30321
30322 case xyes in
30323 x$glib_cv_va_copy)      glib_vacopy='#define G_VA_COPY  va_copy' ;;
30324 x$glib_cv___va_copy)    glib_vacopy='#define G_VA_COPY  __va_copy' ;;
30325 *)                      glib_vacopy=''
30326 esac
30327
30328 if test x$glib_cv_va_val_copy = xno; then
30329   glib_vacopy="\$glib_vacopy
30330 #define G_VA_COPY_AS_ARRAY 1"
30331 fi
30332
30333 if test x$glib_cv_hasinline = xyes; then
30334     glib_inline='#define G_HAVE_INLINE 1'
30335 fi
30336 if test x$glib_cv_has__inline = xyes; then
30337     glib_inline="\$glib_inline
30338 #define G_HAVE___INLINE 1"
30339 fi
30340 if test x$glib_cv_has__inline__ = xyes; then
30341     glib_inline="\$glib_inline
30342 #define G_HAVE___INLINE__ 1"
30343 fi
30344
30345 g_have_gnuc_varargs=$g_have_gnuc_varargs
30346 g_have_iso_c_varargs=$g_have_iso_c_varargs
30347 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
30348
30349 g_can_inline=$g_can_inline
30350 g_have_gnuc_visibility=$g_have_gnuc_visibility
30351 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
30352
30353 if test x$ac_cv_c_bigendian = xyes; then
30354   g_byte_order=G_BIG_ENDIAN
30355   g_bs_native=BE
30356   g_bs_alien=LE
30357 else
30358   g_byte_order=G_LITTLE_ENDIAN
30359   g_bs_native=LE
30360   g_bs_alien=BE
30361 fi
30362
30363 g_pollin=$glib_cv_value_POLLIN
30364 g_pollout=$glib_cv_value_POLLOUT
30365 g_pollpri=$glib_cv_value_POLLPRI
30366 g_pollhup=$glib_cv_value_POLLHUP
30367 g_pollerr=$glib_cv_value_POLLERR
30368 g_pollnval=$glib_cv_value_POLLNVAL
30369
30370 # If a family is not found on the system, define that family to
30371 # a negative value, picking a different one for each undefined
30372 # family (-1 for AF_UNIX, -2 for the next one, -3 ...)
30373 # This is needed because glib-mkenums doesn't handle optional
30374 # values in enums, and thus we have to have all existing values
30375 # defined in the enum.
30376 if test "x$glib_cv_value_AF_UNIX" != "x"; then
30377   g_af_unix=$glib_cv_value_AF_UNIX
30378 else
30379   g_af_unix=-1
30380 fi
30381 g_af_inet=$glib_cv_value_AF_INET
30382 g_af_inet6=$glib_cv_value_AF_INET6
30383
30384 g_msg_peek=$glib_cv_value_MSG_PEEK
30385 g_msg_oob=$glib_cv_value_MSG_OOB
30386 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
30387
30388 g_stack_grows=$glib_cv_stack_grows
30389
30390 g_have_eilseq=$have_eilseq
30391
30392 g_threads_impl_def=$g_threads_impl
30393
30394 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
30395 g_memory_barrier_needed="$glib_memory_barrier_needed"
30396 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
30397
30398 g_module_suffix="$glib_gmodule_suffix"
30399
30400 g_pid_type="$glib_pid_type"
30401 case $host in
30402   *-*-beos*)
30403     glib_os="#define G_OS_BEOS"
30404     ;;
30405   *-*-cygwin*)
30406     glib_os="#define G_OS_UNIX
30407 #define G_PLATFORM_WIN32
30408 #define G_WITH_CYGWIN"
30409     ;;
30410   *-*-mingw*)
30411     glib_os="#define G_OS_WIN32
30412 #define G_PLATFORM_WIN32"
30413     ;;
30414   *)
30415     glib_os="#define G_OS_UNIX"
30416     ;;
30417 esac
30418 glib_static_compilation=""
30419 if test x$glib_win32_static_compilation = xyes; then
30420   glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
30421 #define GOBJECT_STATIC_COMPILATION 1"
30422 fi
30423
30424
30425 _ACEOF
30426
30427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30428
30429 # Handling of arguments.
30430 for ac_config_target in $ac_config_targets
30431 do
30432   case $ac_config_target in
30433     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30434     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30435     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30436     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30437     "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
30438     "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;;
30439     "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;;
30440     "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;;
30441     "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;;
30442     "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;;
30443     "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;;
30444     "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;;
30445     "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;;
30446     "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;;
30447     "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;;
30448     "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;;
30449     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30450     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
30451     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
30452     "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;;
30453     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
30454     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
30455     "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
30456     "glib/glib.stp") CONFIG_FILES="$CONFIG_FILES glib/glib.stp" ;;
30457     "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
30458     "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
30459     "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;;
30460     "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;;
30461     "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;;
30462     "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
30463     "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
30464     "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;;
30465     "gobject/gobject.stp") CONFIG_FILES="$CONFIG_FILES gobject/gobject.stp" ;;
30466     "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;;
30467     "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;;
30468     "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
30469     "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;;
30470     "gio/gdbus-2.0/codegen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/Makefile" ;;
30471     "gio/gdbus-2.0/codegen/config.py") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/config.py" ;;
30472     "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;;
30473     "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;;
30474     "gio/fen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fen/Makefile" ;;
30475     "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;;
30476     "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;;
30477     "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;;
30478     "gio/tests/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/gdbus-object-manager-example/Makefile" ;;
30479     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30480     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30481     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
30482     "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;;
30483     "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;;
30484     "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;;
30485     "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;;
30486     "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;;
30487     "docs/reference/gio/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/gdbus-object-manager-example/Makefile" ;;
30488     "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;;
30489     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30490     "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;;
30491     "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;;
30492     "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
30493     "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
30494     "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
30495     "README") CONFIG_FILES="$CONFIG_FILES README" ;;
30496     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
30497     "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;;
30498     "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;;
30499     "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
30500     "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;;
30501     "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;;
30502     "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;;
30503     "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;;
30504     "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;;
30505     "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;;
30506     "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;;
30507     "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;;
30508
30509   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30510   esac
30511 done
30512
30513
30514 # If the user did not use the arguments to specify the items to instantiate,
30515 # then the envvar interface is used.  Set only those that are not.
30516 # We use the long form for the default assignment because of an extremely
30517 # bizarre bug on SunOS 4.1.3.
30518 if $ac_need_defaults; then
30519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30521   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30522 fi
30523
30524 # Have a temporary directory for convenience.  Make it in the build tree
30525 # simply because there is no reason against having it here, and in addition,
30526 # creating and moving files from /tmp can sometimes cause problems.
30527 # Hook for its removal unless debugging.
30528 # Note that there is a small window in which the directory will not be cleaned:
30529 # after its creation but before its name has been assigned to `$tmp'.
30530 $debug ||
30531 {
30532   tmp= ac_tmp=
30533   trap 'exit_status=$?
30534   : "${ac_tmp:=$tmp}"
30535   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30536 ' 0
30537   trap 'as_fn_exit 1' 1 2 13 15
30538 }
30539 # Create a (secure) tmp directory for tmp files.
30540
30541 {
30542   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30543   test -d "$tmp"
30544 }  ||
30545 {
30546   tmp=./conf$$-$RANDOM
30547   (umask 077 && mkdir "$tmp")
30548 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30549 ac_tmp=$tmp
30550
30551 # Set up the scripts for CONFIG_FILES section.
30552 # No need to generate them if there are no CONFIG_FILES.
30553 # This happens for instance with `./config.status config.h'.
30554 if test -n "$CONFIG_FILES"; then
30555
30556
30557 ac_cr=`echo X | tr X '\015'`
30558 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30559 # But we know of no other shell where ac_cr would be empty at this
30560 # point, so we can use a bashism as a fallback.
30561 if test "x$ac_cr" = x; then
30562   eval ac_cr=\$\'\\r\'
30563 fi
30564 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30565 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30566   ac_cs_awk_cr='\\r'
30567 else
30568   ac_cs_awk_cr=$ac_cr
30569 fi
30570
30571 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30572 _ACEOF
30573
30574
30575 {
30576   echo "cat >conf$$subs.awk <<_ACEOF" &&
30577   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30578   echo "_ACEOF"
30579 } >conf$$subs.sh ||
30580   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30581 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30582 ac_delim='%!_!# '
30583 for ac_last_try in false false false false false :; do
30584   . ./conf$$subs.sh ||
30585     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30586
30587   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30588   if test $ac_delim_n = $ac_delim_num; then
30589     break
30590   elif $ac_last_try; then
30591     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30592   else
30593     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30594   fi
30595 done
30596 rm -f conf$$subs.sh
30597
30598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30599 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30600 _ACEOF
30601 sed -n '
30602 h
30603 s/^/S["/; s/!.*/"]=/
30604 p
30605 g
30606 s/^[^!]*!//
30607 :repl
30608 t repl
30609 s/'"$ac_delim"'$//
30610 t delim
30611 :nl
30612 h
30613 s/\(.\{148\}\)..*/\1/
30614 t more1
30615 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30616 p
30617 n
30618 b repl
30619 :more1
30620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30621 p
30622 g
30623 s/.\{148\}//
30624 t nl
30625 :delim
30626 h
30627 s/\(.\{148\}\)..*/\1/
30628 t more2
30629 s/["\\]/\\&/g; s/^/"/; s/$/"/
30630 p
30631 b
30632 :more2
30633 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30634 p
30635 g
30636 s/.\{148\}//
30637 t delim
30638 ' <conf$$subs.awk | sed '
30639 /^[^""]/{
30640   N
30641   s/\n//
30642 }
30643 ' >>$CONFIG_STATUS || ac_write_fail=1
30644 rm -f conf$$subs.awk
30645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30646 _ACAWK
30647 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30648   for (key in S) S_is_set[key] = 1
30649   FS = "\a"
30650
30651 }
30652 {
30653   line = $ 0
30654   nfields = split(line, field, "@")
30655   substed = 0
30656   len = length(field[1])
30657   for (i = 2; i < nfields; i++) {
30658     key = field[i]
30659     keylen = length(key)
30660     if (S_is_set[key]) {
30661       value = S[key]
30662       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30663       len += length(value) + length(field[++i])
30664       substed = 1
30665     } else
30666       len += 1 + keylen
30667   }
30668
30669   print line
30670 }
30671
30672 _ACAWK
30673 _ACEOF
30674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30675 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30676   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30677 else
30678   cat
30679 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30680   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30681 _ACEOF
30682
30683 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30684 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30685 # trailing colons and then remove the whole line if VPATH becomes empty
30686 # (actually we leave an empty line to preserve line numbers).
30687 if test "x$srcdir" = x.; then
30688   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30689 h
30690 s///
30691 s/^/:/
30692 s/[      ]*$/:/
30693 s/:\$(srcdir):/:/g
30694 s/:\${srcdir}:/:/g
30695 s/:@srcdir@:/:/g
30696 s/^:*//
30697 s/:*$//
30698 x
30699 s/\(=[   ]*\).*/\1/
30700 G
30701 s/\n//
30702 s/^[^=]*=[       ]*$//
30703 }'
30704 fi
30705
30706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30707 fi # test -n "$CONFIG_FILES"
30708
30709 # Set up the scripts for CONFIG_HEADERS section.
30710 # No need to generate them if there are no CONFIG_HEADERS.
30711 # This happens for instance with `./config.status Makefile'.
30712 if test -n "$CONFIG_HEADERS"; then
30713 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30714 BEGIN {
30715 _ACEOF
30716
30717 # Transform confdefs.h into an awk script `defines.awk', embedded as
30718 # here-document in config.status, that substitutes the proper values into
30719 # config.h.in to produce config.h.
30720
30721 # Create a delimiter string that does not exist in confdefs.h, to ease
30722 # handling of long lines.
30723 ac_delim='%!_!# '
30724 for ac_last_try in false false :; do
30725   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30726   if test -z "$ac_tt"; then
30727     break
30728   elif $ac_last_try; then
30729     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30730   else
30731     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30732   fi
30733 done
30734
30735 # For the awk script, D is an array of macro values keyed by name,
30736 # likewise P contains macro parameters if any.  Preserve backslash
30737 # newline sequences.
30738
30739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30740 sed -n '
30741 s/.\{148\}/&'"$ac_delim"'/g
30742 t rset
30743 :rset
30744 s/^[     ]*#[    ]*define[       ][      ]*/ /
30745 t def
30746 d
30747 :def
30748 s/\\$//
30749 t bsnl
30750 s/["\\]/\\&/g
30751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30752 D["\1"]=" \3"/p
30753 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30754 d
30755 :bsnl
30756 s/["\\]/\\&/g
30757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30758 D["\1"]=" \3\\\\\\n"\\/p
30759 t cont
30760 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30761 t cont
30762 d
30763 :cont
30764 n
30765 s/.\{148\}/&'"$ac_delim"'/g
30766 t clear
30767 :clear
30768 s/\\$//
30769 t bsnlc
30770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30771 d
30772 :bsnlc
30773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30774 b cont
30775 ' <confdefs.h | sed '
30776 s/'"$ac_delim"'/"\\\
30777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30778
30779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30780   for (key in D) D_is_set[key] = 1
30781   FS = "\a"
30782 }
30783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30784   line = \$ 0
30785   split(line, arg, " ")
30786   if (arg[1] == "#") {
30787     defundef = arg[2]
30788     mac1 = arg[3]
30789   } else {
30790     defundef = substr(arg[1], 2)
30791     mac1 = arg[2]
30792   }
30793   split(mac1, mac2, "(") #)
30794   macro = mac2[1]
30795   prefix = substr(line, 1, index(line, defundef) - 1)
30796   if (D_is_set[macro]) {
30797     # Preserve the white space surrounding the "#".
30798     print prefix "define", macro P[macro] D[macro]
30799     next
30800   } else {
30801     # Replace #undef with comments.  This is necessary, for example,
30802     # in the case of _POSIX_SOURCE, which is predefined and required
30803     # on some systems where configure will not decide to define it.
30804     if (defundef == "undef") {
30805       print "/*", prefix defundef, macro, "*/"
30806       next
30807     }
30808   }
30809 }
30810 { print }
30811 _ACAWK
30812 _ACEOF
30813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30814   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30815 fi # test -n "$CONFIG_HEADERS"
30816
30817
30818 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30819 shift
30820 for ac_tag
30821 do
30822   case $ac_tag in
30823   :[FHLC]) ac_mode=$ac_tag; continue;;
30824   esac
30825   case $ac_mode$ac_tag in
30826   :[FHL]*:*);;
30827   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30828   :[FH]-) ac_tag=-:-;;
30829   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30830   esac
30831   ac_save_IFS=$IFS
30832   IFS=:
30833   set x $ac_tag
30834   IFS=$ac_save_IFS
30835   shift
30836   ac_file=$1
30837   shift
30838
30839   case $ac_mode in
30840   :L) ac_source=$1;;
30841   :[FH])
30842     ac_file_inputs=
30843     for ac_f
30844     do
30845       case $ac_f in
30846       -) ac_f="$ac_tmp/stdin";;
30847       *) # Look for the file first in the build tree, then in the source tree
30848          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30849          # because $ac_f cannot contain `:'.
30850          test -f "$ac_f" ||
30851            case $ac_f in
30852            [\\/$]*) false;;
30853            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30854            esac ||
30855            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30856       esac
30857       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30858       as_fn_append ac_file_inputs " '$ac_f'"
30859     done
30860
30861     # Let's still pretend it is `configure' which instantiates (i.e., don't
30862     # use $as_me), people would be surprised to read:
30863     #    /* config.h.  Generated by config.status.  */
30864     configure_input='Generated from '`
30865           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30866         `' by configure.'
30867     if test x"$ac_file" != x-; then
30868       configure_input="$ac_file.  $configure_input"
30869       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30870 $as_echo "$as_me: creating $ac_file" >&6;}
30871     fi
30872     # Neutralize special characters interpreted by sed in replacement strings.
30873     case $configure_input in #(
30874     *\&* | *\|* | *\\* )
30875        ac_sed_conf_input=`$as_echo "$configure_input" |
30876        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30877     *) ac_sed_conf_input=$configure_input;;
30878     esac
30879
30880     case $ac_tag in
30881     *:-:* | *:-) cat >"$ac_tmp/stdin" \
30882       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30883     esac
30884     ;;
30885   esac
30886
30887   ac_dir=`$as_dirname -- "$ac_file" ||
30888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30889          X"$ac_file" : 'X\(//\)[^/]' \| \
30890          X"$ac_file" : 'X\(//\)$' \| \
30891          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30892 $as_echo X"$ac_file" |
30893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30894             s//\1/
30895             q
30896           }
30897           /^X\(\/\/\)[^/].*/{
30898             s//\1/
30899             q
30900           }
30901           /^X\(\/\/\)$/{
30902             s//\1/
30903             q
30904           }
30905           /^X\(\/\).*/{
30906             s//\1/
30907             q
30908           }
30909           s/.*/./; q'`
30910   as_dir="$ac_dir"; as_fn_mkdir_p
30911   ac_builddir=.
30912
30913 case "$ac_dir" in
30914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30915 *)
30916   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30917   # A ".." for each directory in $ac_dir_suffix.
30918   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30919   case $ac_top_builddir_sub in
30920   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30921   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30922   esac ;;
30923 esac
30924 ac_abs_top_builddir=$ac_pwd
30925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30926 # for backward compatibility:
30927 ac_top_builddir=$ac_top_build_prefix
30928
30929 case $srcdir in
30930   .)  # We are building in place.
30931     ac_srcdir=.
30932     ac_top_srcdir=$ac_top_builddir_sub
30933     ac_abs_top_srcdir=$ac_pwd ;;
30934   [\\/]* | ?:[\\/]* )  # Absolute name.
30935     ac_srcdir=$srcdir$ac_dir_suffix;
30936     ac_top_srcdir=$srcdir
30937     ac_abs_top_srcdir=$srcdir ;;
30938   *) # Relative name.
30939     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30940     ac_top_srcdir=$ac_top_build_prefix$srcdir
30941     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30942 esac
30943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30944
30945
30946   case $ac_mode in
30947   :F)
30948   #
30949   # CONFIG_FILE
30950   #
30951
30952   case $INSTALL in
30953   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30954   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30955   esac
30956   ac_MKDIR_P=$MKDIR_P
30957   case $MKDIR_P in
30958   [\\/$]* | ?:[\\/]* ) ;;
30959   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30960   esac
30961 _ACEOF
30962
30963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30964 # If the template does not know about datarootdir, expand it.
30965 # FIXME: This hack should be removed a few years after 2.60.
30966 ac_datarootdir_hack=; ac_datarootdir_seen=
30967 ac_sed_dataroot='
30968 /datarootdir/ {
30969   p
30970   q
30971 }
30972 /@datadir@/p
30973 /@docdir@/p
30974 /@infodir@/p
30975 /@localedir@/p
30976 /@mandir@/p'
30977 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30978 *datarootdir*) ac_datarootdir_seen=yes;;
30979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30980   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30981 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30982 _ACEOF
30983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30984   ac_datarootdir_hack='
30985   s&@datadir@&$datadir&g
30986   s&@docdir@&$docdir&g
30987   s&@infodir@&$infodir&g
30988   s&@localedir@&$localedir&g
30989   s&@mandir@&$mandir&g
30990   s&\\\${datarootdir}&$datarootdir&g' ;;
30991 esac
30992 _ACEOF
30993
30994 # Neutralize VPATH when `$srcdir' = `.'.
30995 # Shell code in configure.ac might set extrasub.
30996 # FIXME: do we really want to maintain this feature?
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 ac_sed_extra="$ac_vpsub
30999 $extrasub
31000 _ACEOF
31001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31002 :t
31003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31004 s|@configure_input@|$ac_sed_conf_input|;t t
31005 s&@top_builddir@&$ac_top_builddir_sub&;t t
31006 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31007 s&@srcdir@&$ac_srcdir&;t t
31008 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31009 s&@top_srcdir@&$ac_top_srcdir&;t t
31010 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31011 s&@builddir@&$ac_builddir&;t t
31012 s&@abs_builddir@&$ac_abs_builddir&;t t
31013 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31014 s&@INSTALL@&$ac_INSTALL&;t t
31015 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31016 $ac_datarootdir_hack
31017 "
31018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31019   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31020
31021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31022   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31023   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31024       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31025   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31026 which seems to be undefined.  Please make sure it is defined" >&5
31027 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31028 which seems to be undefined.  Please make sure it is defined" >&2;}
31029
31030   rm -f "$ac_tmp/stdin"
31031   case $ac_file in
31032   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31033   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31034   esac \
31035   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31036  ;;
31037   :H)
31038   #
31039   # CONFIG_HEADER
31040   #
31041   if test x"$ac_file" != x-; then
31042     {
31043       $as_echo "/* $configure_input  */" \
31044       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31045     } >"$ac_tmp/config.h" \
31046       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31047     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31048       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31049 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31050     else
31051       rm -f "$ac_file"
31052       mv "$ac_tmp/config.h" "$ac_file" \
31053         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31054     fi
31055   else
31056     $as_echo "/* $configure_input  */" \
31057       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31058       || as_fn_error $? "could not create -" "$LINENO" 5
31059   fi
31060 # Compute "$ac_file"'s index in $config_headers.
31061 _am_arg="$ac_file"
31062 _am_stamp_count=1
31063 for _am_header in $config_headers :; do
31064   case $_am_header in
31065     $_am_arg | $_am_arg:* )
31066       break ;;
31067     * )
31068       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31069   esac
31070 done
31071 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31072 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31073          X"$_am_arg" : 'X\(//\)[^/]' \| \
31074          X"$_am_arg" : 'X\(//\)$' \| \
31075          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31076 $as_echo X"$_am_arg" |
31077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31078             s//\1/
31079             q
31080           }
31081           /^X\(\/\/\)[^/].*/{
31082             s//\1/
31083             q
31084           }
31085           /^X\(\/\/\)$/{
31086             s//\1/
31087             q
31088           }
31089           /^X\(\/\).*/{
31090             s//\1/
31091             q
31092           }
31093           s/.*/./; q'`/stamp-h$_am_stamp_count
31094  ;;
31095
31096   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31097 $as_echo "$as_me: executing $ac_file commands" >&6;}
31098  ;;
31099   esac
31100
31101
31102   case $ac_file$ac_mode in
31103     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
31104   # Autoconf 2.62 quotes --file arguments for eval, but not when files
31105   # are listed without --file.  Let's play safe and only enable the eval
31106   # if we detect the quoting.
31107   case $CONFIG_FILES in
31108   *\'*) eval set x "$CONFIG_FILES" ;;
31109   *)   set x $CONFIG_FILES ;;
31110   esac
31111   shift
31112   for mf
31113   do
31114     # Strip MF so we end up with the name of the file.
31115     mf=`echo "$mf" | sed -e 's/:.*$//'`
31116     # Check whether this is an Automake generated Makefile or not.
31117     # We used to match only the files named `Makefile.in', but
31118     # some people rename them; so instead we look at the file content.
31119     # Grep'ing the first line is not enough: some people post-process
31120     # each Makefile.in and add a new line on top of each file to say so.
31121     # Grep'ing the whole file is not good either: AIX grep has a line
31122     # limit of 2048, but all sed's we know have understand at least 4000.
31123     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31124       dirpart=`$as_dirname -- "$mf" ||
31125 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31126          X"$mf" : 'X\(//\)[^/]' \| \
31127          X"$mf" : 'X\(//\)$' \| \
31128          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31129 $as_echo X"$mf" |
31130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31131             s//\1/
31132             q
31133           }
31134           /^X\(\/\/\)[^/].*/{
31135             s//\1/
31136             q
31137           }
31138           /^X\(\/\/\)$/{
31139             s//\1/
31140             q
31141           }
31142           /^X\(\/\).*/{
31143             s//\1/
31144             q
31145           }
31146           s/.*/./; q'`
31147     else
31148       continue
31149     fi
31150     # Extract the definition of DEPDIR, am__include, and am__quote
31151     # from the Makefile without running `make'.
31152     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31153     test -z "$DEPDIR" && continue
31154     am__include=`sed -n 's/^am__include = //p' < "$mf"`
31155     test -z "am__include" && continue
31156     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31157     # When using ansi2knr, U may be empty or an underscore; expand it
31158     U=`sed -n 's/^U = //p' < "$mf"`
31159     # Find all dependency output files, they are included files with
31160     # $(DEPDIR) in their names.  We invoke sed twice because it is the
31161     # simplest approach to changing $(DEPDIR) to its actual value in the
31162     # expansion.
31163     for file in `sed -n "
31164       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31165          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31166       # Make sure the directory exists.
31167       test -f "$dirpart/$file" && continue
31168       fdir=`$as_dirname -- "$file" ||
31169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31170          X"$file" : 'X\(//\)[^/]' \| \
31171          X"$file" : 'X\(//\)$' \| \
31172          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31173 $as_echo X"$file" |
31174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31175             s//\1/
31176             q
31177           }
31178           /^X\(\/\/\)[^/].*/{
31179             s//\1/
31180             q
31181           }
31182           /^X\(\/\/\)$/{
31183             s//\1/
31184             q
31185           }
31186           /^X\(\/\).*/{
31187             s//\1/
31188             q
31189           }
31190           s/.*/./; q'`
31191       as_dir=$dirpart/$fdir; as_fn_mkdir_p
31192       # echo "creating $dirpart/$file"
31193       echo '# dummy' > "$dirpart/$file"
31194     done
31195   done
31196 }
31197  ;;
31198     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
31199         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
31200       esac ;;
31201     "libtool":C)
31202
31203     # See if we are running on zsh, and set the options which allow our
31204     # commands through without removal of \ escapes.
31205     if test -n "${ZSH_VERSION+set}" ; then
31206       setopt NO_GLOB_SUBST
31207     fi
31208
31209     cfgfile="${ofile}T"
31210     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31211     $RM "$cfgfile"
31212
31213     cat <<_LT_EOF >> "$cfgfile"
31214 #! $SHELL
31215
31216 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31217 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31220 #
31221 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31222 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
31223 #                 Foundation, Inc.
31224 #   Written by Gordon Matzigkeit, 1996
31225 #
31226 #   This file is part of GNU Libtool.
31227 #
31228 # GNU Libtool is free software; you can redistribute it and/or
31229 # modify it under the terms of the GNU General Public License as
31230 # published by the Free Software Foundation; either version 2 of
31231 # the License, or (at your option) any later version.
31232 #
31233 # As a special exception to the GNU General Public License,
31234 # if you distribute this file as part of a program or library that
31235 # is built using GNU Libtool, you may include this file under the
31236 # same distribution terms that you use for the rest of that program.
31237 #
31238 # GNU Libtool is distributed in the hope that it will be useful,
31239 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31240 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31241 # GNU General Public License for more details.
31242 #
31243 # You should have received a copy of the GNU General Public License
31244 # along with GNU Libtool; see the file COPYING.  If not, a copy
31245 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31246 # obtained by writing to the Free Software Foundation, Inc.,
31247 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31248
31249
31250 # The names of the tagged configurations supported by this script.
31251 available_tags="CXX "
31252
31253 # ### BEGIN LIBTOOL CONFIG
31254
31255 # Which release of libtool.m4 was used?
31256 macro_version=$macro_version
31257 macro_revision=$macro_revision
31258
31259 # Whether or not to build static libraries.
31260 build_old_libs=$enable_static
31261
31262 # Assembler program.
31263 AS=$lt_AS
31264
31265 # DLL creation program.
31266 DLLTOOL=$lt_DLLTOOL
31267
31268 # Object dumper program.
31269 OBJDUMP=$lt_OBJDUMP
31270
31271 # Whether or not to build shared libraries.
31272 build_libtool_libs=$enable_shared
31273
31274 # What type of objects to build.
31275 pic_mode=$pic_mode
31276
31277 # Whether or not to optimize for fast installation.
31278 fast_install=$enable_fast_install
31279
31280 # Shell to use when invoking shell scripts.
31281 SHELL=$lt_SHELL
31282
31283 # An echo program that protects backslashes.
31284 ECHO=$lt_ECHO
31285
31286 # The PATH separator for the build system.
31287 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31288
31289 # The host system.
31290 host_alias=$host_alias
31291 host=$host
31292 host_os=$host_os
31293
31294 # The build system.
31295 build_alias=$build_alias
31296 build=$build
31297 build_os=$build_os
31298
31299 # A sed program that does not truncate output.
31300 SED=$lt_SED
31301
31302 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31303 Xsed="\$SED -e 1s/^X//"
31304
31305 # A grep program that handles long lines.
31306 GREP=$lt_GREP
31307
31308 # An ERE matcher.
31309 EGREP=$lt_EGREP
31310
31311 # A literal string matcher.
31312 FGREP=$lt_FGREP
31313
31314 # A BSD- or MS-compatible name lister.
31315 NM=$lt_NM
31316
31317 # Whether we need soft or hard links.
31318 LN_S=$lt_LN_S
31319
31320 # What is the maximum length of a command?
31321 max_cmd_len=$max_cmd_len
31322
31323 # Object file suffix (normally "o").
31324 objext=$ac_objext
31325
31326 # Executable file suffix (normally "").
31327 exeext=$exeext
31328
31329 # whether the shell understands "unset".
31330 lt_unset=$lt_unset
31331
31332 # turn spaces into newlines.
31333 SP2NL=$lt_lt_SP2NL
31334
31335 # turn newlines into spaces.
31336 NL2SP=$lt_lt_NL2SP
31337
31338 # convert \$build file names to \$host format.
31339 to_host_file_cmd=$lt_cv_to_host_file_cmd
31340
31341 # convert \$build files to toolchain format.
31342 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
31343
31344 # Method to check whether dependent libraries are shared objects.
31345 deplibs_check_method=$lt_deplibs_check_method
31346
31347 # Command to use when deplibs_check_method = "file_magic".
31348 file_magic_cmd=$lt_file_magic_cmd
31349
31350 # How to find potential files when deplibs_check_method = "file_magic".
31351 file_magic_glob=$lt_file_magic_glob
31352
31353 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
31354 want_nocaseglob=$lt_want_nocaseglob
31355
31356 # Command to associate shared and link libraries.
31357 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
31358
31359 # The archiver.
31360 AR=$lt_AR
31361
31362 # Flags to create an archive.
31363 AR_FLAGS=$lt_AR_FLAGS
31364
31365 # How to feed a file listing to the archiver.
31366 archiver_list_spec=$lt_archiver_list_spec
31367
31368 # A symbol stripping program.
31369 STRIP=$lt_STRIP
31370
31371 # Commands used to install an old-style archive.
31372 RANLIB=$lt_RANLIB
31373 old_postinstall_cmds=$lt_old_postinstall_cmds
31374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31375
31376 # Whether to use a lock for old archive extraction.
31377 lock_old_archive_extraction=$lock_old_archive_extraction
31378
31379 # A C compiler.
31380 LTCC=$lt_CC
31381
31382 # LTCC compiler flags.
31383 LTCFLAGS=$lt_CFLAGS
31384
31385 # Take the output of nm and produce a listing of raw symbols and C names.
31386 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31387
31388 # Transform the output of nm in a proper C declaration.
31389 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31390
31391 # Transform the output of nm in a C name address pair.
31392 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31393
31394 # Transform the output of nm in a C name address pair when lib prefix is needed.
31395 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31396
31397 # Specify filename containing input files for \$NM.
31398 nm_file_list_spec=$lt_nm_file_list_spec
31399
31400 # The root where to search for dependent libraries,and in which our libraries should be installed.
31401 lt_sysroot=$lt_sysroot
31402
31403 # The name of the directory that contains temporary libtool files.
31404 objdir=$objdir
31405
31406 # Used to examine libraries when file_magic_cmd begins with "file".
31407 MAGIC_CMD=$MAGIC_CMD
31408
31409 # Must we lock files when doing compilation?
31410 need_locks=$lt_need_locks
31411
31412 # Manifest tool.
31413 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31414
31415 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31416 DSYMUTIL=$lt_DSYMUTIL
31417
31418 # Tool to change global to local symbols on Mac OS X.
31419 NMEDIT=$lt_NMEDIT
31420
31421 # Tool to manipulate fat objects and archives on Mac OS X.
31422 LIPO=$lt_LIPO
31423
31424 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31425 OTOOL=$lt_OTOOL
31426
31427 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31428 OTOOL64=$lt_OTOOL64
31429
31430 # Old archive suffix (normally "a").
31431 libext=$libext
31432
31433 # Shared library suffix (normally ".so").
31434 shrext_cmds=$lt_shrext_cmds
31435
31436 # The commands to extract the exported symbol list from a shared archive.
31437 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31438
31439 # Variables whose values should be saved in libtool wrapper scripts and
31440 # restored at link time.
31441 variables_saved_for_relink=$lt_variables_saved_for_relink
31442
31443 # Do we need the "lib" prefix for modules?
31444 need_lib_prefix=$need_lib_prefix
31445
31446 # Do we need a version for libraries?
31447 need_version=$need_version
31448
31449 # Library versioning type.
31450 version_type=$version_type
31451
31452 # Shared library runtime path variable.
31453 runpath_var=$runpath_var
31454
31455 # Shared library path variable.
31456 shlibpath_var=$shlibpath_var
31457
31458 # Is shlibpath searched before the hard-coded library search path?
31459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31460
31461 # Format of library name prefix.
31462 libname_spec=$lt_libname_spec
31463
31464 # List of archive names.  First name is the real one, the rest are links.
31465 # The last name is the one that the linker finds with -lNAME
31466 library_names_spec=$lt_library_names_spec
31467
31468 # The coded name of the library, if different from the real name.
31469 soname_spec=$lt_soname_spec
31470
31471 # Permission mode override for installation of shared libraries.
31472 install_override_mode=$lt_install_override_mode
31473
31474 # Command to use after installation of a shared archive.
31475 postinstall_cmds=$lt_postinstall_cmds
31476
31477 # Command to use after uninstallation of a shared archive.
31478 postuninstall_cmds=$lt_postuninstall_cmds
31479
31480 # Commands used to finish a libtool library installation in a directory.
31481 finish_cmds=$lt_finish_cmds
31482
31483 # As "finish_cmds", except a single script fragment to be evaled but
31484 # not shown.
31485 finish_eval=$lt_finish_eval
31486
31487 # Whether we should hardcode library paths into libraries.
31488 hardcode_into_libs=$hardcode_into_libs
31489
31490 # Compile-time system search path for libraries.
31491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31492
31493 # Run-time system search path for libraries.
31494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31495
31496 # Whether dlopen is supported.
31497 dlopen_support=$enable_dlopen
31498
31499 # Whether dlopen of programs is supported.
31500 dlopen_self=$enable_dlopen_self
31501
31502 # Whether dlopen of statically linked programs is supported.
31503 dlopen_self_static=$enable_dlopen_self_static
31504
31505 # Commands to strip libraries.
31506 old_striplib=$lt_old_striplib
31507 striplib=$lt_striplib
31508
31509
31510 # The linker used to build libraries.
31511 LD=$lt_LD
31512
31513 # How to create reloadable object files.
31514 reload_flag=$lt_reload_flag
31515 reload_cmds=$lt_reload_cmds
31516
31517 # Commands used to build an old-style archive.
31518 old_archive_cmds=$lt_old_archive_cmds
31519
31520 # A language specific compiler.
31521 CC=$lt_compiler
31522
31523 # Is the compiler the GNU compiler?
31524 with_gcc=$GCC
31525
31526 # Compiler flag to turn off builtin functions.
31527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31528
31529 # Additional compiler flags for building library objects.
31530 pic_flag=$lt_lt_prog_compiler_pic
31531
31532 # How to pass a linker flag through the compiler.
31533 wl=$lt_lt_prog_compiler_wl
31534
31535 # Compiler flag to prevent dynamic linking.
31536 link_static_flag=$lt_lt_prog_compiler_static
31537
31538 # Does compiler simultaneously support -c and -o options?
31539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31540
31541 # Whether or not to add -lc for building shared libraries.
31542 build_libtool_need_lc=$archive_cmds_need_lc
31543
31544 # Whether or not to disallow shared libs when runtime libs are static.
31545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31546
31547 # Compiler flag to allow reflexive dlopens.
31548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31549
31550 # Compiler flag to generate shared objects directly from archives.
31551 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31552
31553 # Whether the compiler copes with passing no objects directly.
31554 compiler_needs_object=$lt_compiler_needs_object
31555
31556 # Create an old-style archive from a shared archive.
31557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31558
31559 # Create a temporary old-style archive to link instead of a shared archive.
31560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31561
31562 # Commands used to build a shared archive.
31563 archive_cmds=$lt_archive_cmds
31564 archive_expsym_cmds=$lt_archive_expsym_cmds
31565
31566 # Commands used to build a loadable module if different from building
31567 # a shared archive.
31568 module_cmds=$lt_module_cmds
31569 module_expsym_cmds=$lt_module_expsym_cmds
31570
31571 # Whether we are building with GNU ld or not.
31572 with_gnu_ld=$lt_with_gnu_ld
31573
31574 # Flag that allows shared libraries with undefined symbols to be built.
31575 allow_undefined_flag=$lt_allow_undefined_flag
31576
31577 # Flag that enforces no undefined symbols.
31578 no_undefined_flag=$lt_no_undefined_flag
31579
31580 # Flag to hardcode \$libdir into a binary during linking.
31581 # This must work even if \$libdir does not exist
31582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31583
31584 # Whether we need a single "-rpath" flag with a separated argument.
31585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31586
31587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31588 # DIR into the resulting binary.
31589 hardcode_direct=$hardcode_direct
31590
31591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31592 # DIR into the resulting binary and the resulting library dependency is
31593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31594 # library is relocated.
31595 hardcode_direct_absolute=$hardcode_direct_absolute
31596
31597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31598 # into the resulting binary.
31599 hardcode_minus_L=$hardcode_minus_L
31600
31601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31602 # into the resulting binary.
31603 hardcode_shlibpath_var=$hardcode_shlibpath_var
31604
31605 # Set to "yes" if building a shared library automatically hardcodes DIR
31606 # into the library and all subsequent libraries and executables linked
31607 # against it.
31608 hardcode_automatic=$hardcode_automatic
31609
31610 # Set to yes if linker adds runtime paths of dependent libraries
31611 # to runtime path list.
31612 inherit_rpath=$inherit_rpath
31613
31614 # Whether libtool must link a program against all its dependency libraries.
31615 link_all_deplibs=$link_all_deplibs
31616
31617 # Set to "yes" if exported symbols are required.
31618 always_export_symbols=$always_export_symbols
31619
31620 # The commands to list exported symbols.
31621 export_symbols_cmds=$lt_export_symbols_cmds
31622
31623 # Symbols that should not be listed in the preloaded symbols.
31624 exclude_expsyms=$lt_exclude_expsyms
31625
31626 # Symbols that must always be exported.
31627 include_expsyms=$lt_include_expsyms
31628
31629 # Commands necessary for linking programs (against libraries) with templates.
31630 prelink_cmds=$lt_prelink_cmds
31631
31632 # Commands necessary for finishing linking programs.
31633 postlink_cmds=$lt_postlink_cmds
31634
31635 # Specify filename containing input files.
31636 file_list_spec=$lt_file_list_spec
31637
31638 # How to hardcode a shared library path into an executable.
31639 hardcode_action=$hardcode_action
31640
31641 # The directories searched by this compiler when creating a shared library.
31642 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31643
31644 # Dependencies to place before and after the objects being linked to
31645 # create a shared library.
31646 predep_objects=$lt_predep_objects
31647 postdep_objects=$lt_postdep_objects
31648 predeps=$lt_predeps
31649 postdeps=$lt_postdeps
31650
31651 # The library search path used internally by the compiler when linking
31652 # a shared library.
31653 compiler_lib_search_path=$lt_compiler_lib_search_path
31654
31655 # ### END LIBTOOL CONFIG
31656
31657 _LT_EOF
31658
31659   case $host_os in
31660   aix3*)
31661     cat <<\_LT_EOF >> "$cfgfile"
31662 # AIX sometimes has problems with the GCC collect2 program.  For some
31663 # reason, if we set the COLLECT_NAMES environment variable, the problems
31664 # vanish in a puff of smoke.
31665 if test "X${COLLECT_NAMES+set}" != Xset; then
31666   COLLECT_NAMES=
31667   export COLLECT_NAMES
31668 fi
31669 _LT_EOF
31670     ;;
31671   esac
31672
31673
31674 ltmain="$ac_aux_dir/ltmain.sh"
31675
31676
31677   # We use sed instead of cat because bash on DJGPP gets confused if
31678   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31679   # text mode, it properly converts lines to CR/LF.  This bash problem
31680   # is reportedly fixed, but why not run on old versions too?
31681   sed '$q' "$ltmain" >> "$cfgfile" \
31682      || (rm -f "$cfgfile"; exit 1)
31683
31684   if test x"$xsi_shell" = xyes; then
31685   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31686 func_dirname ()\
31687 {\
31688 \    case ${1} in\
31689 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31690 \      *  ) func_dirname_result="${3}" ;;\
31691 \    esac\
31692 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31693   && mv -f "$cfgfile.tmp" "$cfgfile" \
31694     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31695 test 0 -eq $? || _lt_function_replace_fail=:
31696
31697
31698   sed -e '/^func_basename ()$/,/^} # func_basename /c\
31699 func_basename ()\
31700 {\
31701 \    func_basename_result="${1##*/}"\
31702 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31703   && mv -f "$cfgfile.tmp" "$cfgfile" \
31704     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31705 test 0 -eq $? || _lt_function_replace_fail=:
31706
31707
31708   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31709 func_dirname_and_basename ()\
31710 {\
31711 \    case ${1} in\
31712 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31713 \      *  ) func_dirname_result="${3}" ;;\
31714 \    esac\
31715 \    func_basename_result="${1##*/}"\
31716 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31717   && mv -f "$cfgfile.tmp" "$cfgfile" \
31718     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31719 test 0 -eq $? || _lt_function_replace_fail=:
31720
31721
31722   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31723 func_stripname ()\
31724 {\
31725 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31726 \    # positional parameters, so assign one to ordinary parameter first.\
31727 \    func_stripname_result=${3}\
31728 \    func_stripname_result=${func_stripname_result#"${1}"}\
31729 \    func_stripname_result=${func_stripname_result%"${2}"}\
31730 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31731   && mv -f "$cfgfile.tmp" "$cfgfile" \
31732     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31733 test 0 -eq $? || _lt_function_replace_fail=:
31734
31735
31736   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31737 func_split_long_opt ()\
31738 {\
31739 \    func_split_long_opt_name=${1%%=*}\
31740 \    func_split_long_opt_arg=${1#*=}\
31741 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31742   && mv -f "$cfgfile.tmp" "$cfgfile" \
31743     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31744 test 0 -eq $? || _lt_function_replace_fail=:
31745
31746
31747   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31748 func_split_short_opt ()\
31749 {\
31750 \    func_split_short_opt_arg=${1#??}\
31751 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31752 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31753   && mv -f "$cfgfile.tmp" "$cfgfile" \
31754     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31755 test 0 -eq $? || _lt_function_replace_fail=:
31756
31757
31758   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31759 func_lo2o ()\
31760 {\
31761 \    case ${1} in\
31762 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31763 \      *)    func_lo2o_result=${1} ;;\
31764 \    esac\
31765 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31766   && mv -f "$cfgfile.tmp" "$cfgfile" \
31767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31768 test 0 -eq $? || _lt_function_replace_fail=:
31769
31770
31771   sed -e '/^func_xform ()$/,/^} # func_xform /c\
31772 func_xform ()\
31773 {\
31774     func_xform_result=${1%.*}.lo\
31775 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31776   && mv -f "$cfgfile.tmp" "$cfgfile" \
31777     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31778 test 0 -eq $? || _lt_function_replace_fail=:
31779
31780
31781   sed -e '/^func_arith ()$/,/^} # func_arith /c\
31782 func_arith ()\
31783 {\
31784     func_arith_result=$(( $* ))\
31785 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31786   && mv -f "$cfgfile.tmp" "$cfgfile" \
31787     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31788 test 0 -eq $? || _lt_function_replace_fail=:
31789
31790
31791   sed -e '/^func_len ()$/,/^} # func_len /c\
31792 func_len ()\
31793 {\
31794     func_len_result=${#1}\
31795 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31796   && mv -f "$cfgfile.tmp" "$cfgfile" \
31797     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31798 test 0 -eq $? || _lt_function_replace_fail=:
31799
31800 fi
31801
31802 if test x"$lt_shell_append" = xyes; then
31803   sed -e '/^func_append ()$/,/^} # func_append /c\
31804 func_append ()\
31805 {\
31806     eval "${1}+=\\${2}"\
31807 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31808   && mv -f "$cfgfile.tmp" "$cfgfile" \
31809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31810 test 0 -eq $? || _lt_function_replace_fail=:
31811
31812
31813   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31814 func_append_quoted ()\
31815 {\
31816 \    func_quote_for_eval "${2}"\
31817 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31818 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31819   && mv -f "$cfgfile.tmp" "$cfgfile" \
31820     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31821 test 0 -eq $? || _lt_function_replace_fail=:
31822
31823
31824   # Save a `func_append' function call where possible by direct use of '+='
31825   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31826     && mv -f "$cfgfile.tmp" "$cfgfile" \
31827       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31828   test 0 -eq $? || _lt_function_replace_fail=:
31829 else
31830   # Save a `func_append' function call even when '+=' is not available
31831   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31832     && mv -f "$cfgfile.tmp" "$cfgfile" \
31833       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31834   test 0 -eq $? || _lt_function_replace_fail=:
31835 fi
31836
31837 if test x"$_lt_function_replace_fail" = x":"; then
31838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31839 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31840 fi
31841
31842
31843    mv -f "$cfgfile" "$ofile" ||
31844     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31845   chmod +x "$ofile"
31846
31847
31848     cat <<_LT_EOF >> "$ofile"
31849
31850 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31851
31852 # The linker used to build libraries.
31853 LD=$lt_LD_CXX
31854
31855 # How to create reloadable object files.
31856 reload_flag=$lt_reload_flag_CXX
31857 reload_cmds=$lt_reload_cmds_CXX
31858
31859 # Commands used to build an old-style archive.
31860 old_archive_cmds=$lt_old_archive_cmds_CXX
31861
31862 # A language specific compiler.
31863 CC=$lt_compiler_CXX
31864
31865 # Is the compiler the GNU compiler?
31866 with_gcc=$GCC_CXX
31867
31868 # Compiler flag to turn off builtin functions.
31869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31870
31871 # Additional compiler flags for building library objects.
31872 pic_flag=$lt_lt_prog_compiler_pic_CXX
31873
31874 # How to pass a linker flag through the compiler.
31875 wl=$lt_lt_prog_compiler_wl_CXX
31876
31877 # Compiler flag to prevent dynamic linking.
31878 link_static_flag=$lt_lt_prog_compiler_static_CXX
31879
31880 # Does compiler simultaneously support -c and -o options?
31881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31882
31883 # Whether or not to add -lc for building shared libraries.
31884 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31885
31886 # Whether or not to disallow shared libs when runtime libs are static.
31887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31888
31889 # Compiler flag to allow reflexive dlopens.
31890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31891
31892 # Compiler flag to generate shared objects directly from archives.
31893 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31894
31895 # Whether the compiler copes with passing no objects directly.
31896 compiler_needs_object=$lt_compiler_needs_object_CXX
31897
31898 # Create an old-style archive from a shared archive.
31899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31900
31901 # Create a temporary old-style archive to link instead of a shared archive.
31902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31903
31904 # Commands used to build a shared archive.
31905 archive_cmds=$lt_archive_cmds_CXX
31906 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31907
31908 # Commands used to build a loadable module if different from building
31909 # a shared archive.
31910 module_cmds=$lt_module_cmds_CXX
31911 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31912
31913 # Whether we are building with GNU ld or not.
31914 with_gnu_ld=$lt_with_gnu_ld_CXX
31915
31916 # Flag that allows shared libraries with undefined symbols to be built.
31917 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31918
31919 # Flag that enforces no undefined symbols.
31920 no_undefined_flag=$lt_no_undefined_flag_CXX
31921
31922 # Flag to hardcode \$libdir into a binary during linking.
31923 # This must work even if \$libdir does not exist
31924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31925
31926 # Whether we need a single "-rpath" flag with a separated argument.
31927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31928
31929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31930 # DIR into the resulting binary.
31931 hardcode_direct=$hardcode_direct_CXX
31932
31933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31934 # DIR into the resulting binary and the resulting library dependency is
31935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31936 # library is relocated.
31937 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31938
31939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31940 # into the resulting binary.
31941 hardcode_minus_L=$hardcode_minus_L_CXX
31942
31943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31944 # into the resulting binary.
31945 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31946
31947 # Set to "yes" if building a shared library automatically hardcodes DIR
31948 # into the library and all subsequent libraries and executables linked
31949 # against it.
31950 hardcode_automatic=$hardcode_automatic_CXX
31951
31952 # Set to yes if linker adds runtime paths of dependent libraries
31953 # to runtime path list.
31954 inherit_rpath=$inherit_rpath_CXX
31955
31956 # Whether libtool must link a program against all its dependency libraries.
31957 link_all_deplibs=$link_all_deplibs_CXX
31958
31959 # Set to "yes" if exported symbols are required.
31960 always_export_symbols=$always_export_symbols_CXX
31961
31962 # The commands to list exported symbols.
31963 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31964
31965 # Symbols that should not be listed in the preloaded symbols.
31966 exclude_expsyms=$lt_exclude_expsyms_CXX
31967
31968 # Symbols that must always be exported.
31969 include_expsyms=$lt_include_expsyms_CXX
31970
31971 # Commands necessary for linking programs (against libraries) with templates.
31972 prelink_cmds=$lt_prelink_cmds_CXX
31973
31974 # Commands necessary for finishing linking programs.
31975 postlink_cmds=$lt_postlink_cmds_CXX
31976
31977 # Specify filename containing input files.
31978 file_list_spec=$lt_file_list_spec_CXX
31979
31980 # How to hardcode a shared library path into an executable.
31981 hardcode_action=$hardcode_action_CXX
31982
31983 # The directories searched by this compiler when creating a shared library.
31984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31985
31986 # Dependencies to place before and after the objects being linked to
31987 # create a shared library.
31988 predep_objects=$lt_predep_objects_CXX
31989 postdep_objects=$lt_postdep_objects_CXX
31990 predeps=$lt_predeps_CXX
31991 postdeps=$lt_postdeps_CXX
31992
31993 # The library search path used internally by the compiler when linking
31994 # a shared library.
31995 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31996
31997 # ### END LIBTOOL TAG CONFIG: CXX
31998 _LT_EOF
31999
32000  ;;
32001     "glib/glibconfig.h":C)
32002         outfile=glib/glibconfig.h-tmp
32003         cat > $outfile <<\_______EOF
32004 /* glibconfig.h
32005  *
32006  * This is a generated file.  Please modify 'configure.ac'
32007  */
32008
32009 #ifndef __GLIBCONFIG_H__
32010 #define __GLIBCONFIG_H__
32011
32012 #include <glib/gmacros.h>
32013
32014 _______EOF
32015
32016         if test x$glib_limits_h = xyes; then
32017           echo '#include <limits.h>' >> $outfile
32018         fi
32019         if test x$glib_float_h = xyes; then
32020           echo '#include <float.h>' >> $outfile
32021         fi
32022         if test x$glib_values_h = xyes; then
32023           echo '#include <values.h>' >> $outfile
32024         fi
32025         if test "$glib_header_alloca_h" = "yes"; then
32026           echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
32027         fi
32028         if test x$glib_sys_poll_h = xyes; then
32029           echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
32030         fi
32031         if test x$glib_included_printf != xyes; then
32032           echo "
32033 /* Specifies that GLib's g_print*() functions wrap the
32034  * system printf functions.  This is useful to know, for example,
32035  * when using glibc's register_printf_function().
32036  */" >> $outfile
32037           echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
32038         fi
32039
32040         cat >> $outfile <<_______EOF
32041
32042 G_BEGIN_DECLS
32043
32044 #define G_MINFLOAT      $glib_mf
32045 #define G_MAXFLOAT      $glib_Mf
32046 #define G_MINDOUBLE     $glib_md
32047 #define G_MAXDOUBLE     $glib_Md
32048 #define G_MINSHORT      $glib_ms
32049 #define G_MAXSHORT      $glib_Ms
32050 #define G_MAXUSHORT     $glib_Mus
32051 #define G_MININT        $glib_mi
32052 #define G_MAXINT        $glib_Mi
32053 #define G_MAXUINT       $glib_Mui
32054 #define G_MINLONG       $glib_ml
32055 #define G_MAXLONG       $glib_Ml
32056 #define G_MAXULONG      $glib_Mul
32057
32058 _______EOF
32059
32060
32061         ### this should always be true in a modern C/C++ compiler
32062         cat >>$outfile <<_______EOF
32063 typedef signed char gint8;
32064 typedef unsigned char guint8;
32065 _______EOF
32066
32067
32068         if test -n "$gint16"; then
32069           cat >>$outfile <<_______EOF
32070 typedef signed $gint16 gint16;
32071 typedef unsigned $gint16 guint16;
32072 #define G_GINT16_MODIFIER $gint16_modifier
32073 #define G_GINT16_FORMAT $gint16_format
32074 #define G_GUINT16_FORMAT $guint16_format
32075 _______EOF
32076         fi
32077
32078
32079         if test -n "$gint32"; then
32080           cat >>$outfile <<_______EOF
32081 typedef signed $gint32 gint32;
32082 typedef unsigned $gint32 guint32;
32083 #define G_GINT32_MODIFIER $gint32_modifier
32084 #define G_GINT32_FORMAT $gint32_format
32085 #define G_GUINT32_FORMAT $guint32_format
32086 _______EOF
32087         fi
32088
32089         cat >>$outfile <<_______EOF
32090 #define G_HAVE_GINT64 1          /* deprecated, always true */
32091
32092 ${glib_extension}typedef signed $gint64 gint64;
32093 ${glib_extension}typedef unsigned $gint64 guint64;
32094
32095 #define G_GINT64_CONSTANT(val)  $gint64_constant
32096 #define G_GUINT64_CONSTANT(val) $guint64_constant
32097 _______EOF
32098
32099         if test x$gint64_format != x ; then
32100           cat >>$outfile <<_______EOF
32101 #define G_GINT64_MODIFIER $gint64_modifier
32102 #define G_GINT64_FORMAT $gint64_format
32103 #define G_GUINT64_FORMAT $guint64_format
32104 _______EOF
32105         else
32106           cat >>$outfile <<_______EOF
32107 #undef G_GINT64_MODIFIER
32108 #undef G_GINT64_FORMAT
32109 #undef G_GUINT64_FORMAT
32110 _______EOF
32111         fi
32112
32113         cat >>$outfile <<_______EOF
32114
32115 #define GLIB_SIZEOF_VOID_P $glib_void_p
32116 #define GLIB_SIZEOF_LONG   $glib_long
32117 #define GLIB_SIZEOF_SIZE_T $glib_size_t
32118
32119 _______EOF
32120
32121         cat >>$outfile <<_______EOF
32122 typedef signed $glib_size_type_define gssize;
32123 typedef unsigned $glib_size_type_define gsize;
32124 #define G_GSIZE_MODIFIER $gsize_modifier
32125 #define G_GSSIZE_FORMAT $gssize_format
32126 #define G_GSIZE_FORMAT $gsize_format
32127
32128 #define G_MAXSIZE       G_MAXU$glib_msize_type
32129 #define G_MINSSIZE      G_MIN$glib_msize_type
32130 #define G_MAXSSIZE      G_MAX$glib_msize_type
32131
32132 typedef gint64 goffset;
32133 #define G_MINOFFSET     G_MININT64
32134 #define G_MAXOFFSET     G_MAXINT64
32135
32136 #define G_GOFFSET_MODIFIER      G_GINT64_MODIFIER
32137 #define G_GOFFSET_FORMAT        G_GINT64_FORMAT
32138 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
32139
32140 _______EOF
32141
32142         if test -z "$glib_unknown_void_p"; then
32143           cat >>$outfile <<_______EOF
32144
32145 #define GPOINTER_TO_INT(p)      ((gint)  ${glib_gpi_cast} (p))
32146 #define GPOINTER_TO_UINT(p)     ((guint) ${glib_gpui_cast} (p))
32147
32148 #define GINT_TO_POINTER(i)      ((gpointer) ${glib_gpi_cast} (i))
32149 #define GUINT_TO_POINTER(u)     ((gpointer) ${glib_gpui_cast} (u))
32150
32151 typedef signed $glib_intptr_type_define gintptr;
32152 typedef unsigned $glib_intptr_type_define guintptr;
32153
32154 #define G_GINTPTR_MODIFIER      $gintptr_modifier
32155 #define G_GINTPTR_FORMAT        $gintptr_format
32156 #define G_GUINTPTR_FORMAT       $guintptr_format
32157 _______EOF
32158         else
32159           echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
32160         fi
32161
32162
32163
32164         cat >>$outfile <<_______EOF
32165 $glib_atexit
32166 $glib_memmove
32167 $glib_defines
32168 $glib_os
32169 $glib_static_compilation
32170
32171 $glib_vacopy
32172
32173 #ifdef  __cplusplus
32174 #define G_HAVE_INLINE   1
32175 #else   /* !__cplusplus */
32176 $glib_inline
32177 #endif  /* !__cplusplus */
32178
32179 #ifdef  __cplusplus
32180 #define G_CAN_INLINE    1
32181 _______EOF
32182
32183         if test x$g_can_inline = xyes ; then
32184                 cat >>$outfile <<_______EOF
32185 #else   /* !__cplusplus */
32186 #define G_CAN_INLINE    1
32187 _______EOF
32188         fi
32189
32190         cat >>$outfile <<_______EOF
32191 #endif
32192
32193 _______EOF
32194
32195         if test x$g_have_iso_c_varargs = xyes ; then
32196                 cat >>$outfile <<_______EOF
32197 #ifndef __cplusplus
32198 # define G_HAVE_ISO_VARARGS 1
32199 #endif
32200 _______EOF
32201         fi
32202         if test x$g_have_iso_cxx_varargs = xyes ; then
32203                 cat >>$outfile <<_______EOF
32204 #ifdef __cplusplus
32205 # define G_HAVE_ISO_VARARGS 1
32206 #endif
32207 _______EOF
32208         fi
32209         if test x$g_have_gnuc_varargs = xyes ; then
32210                 cat >>$outfile <<_______EOF
32211
32212 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
32213  * is passed ISO vararg support is turned off, and there is no work
32214  * around to turn it on, so we unconditionally turn it off.
32215  */
32216 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
32217 #  undef G_HAVE_ISO_VARARGS
32218 #endif
32219
32220 #define G_HAVE_GNUC_VARARGS 1
32221 _______EOF
32222         fi
32223
32224         case x$g_stack_grows in
32225         xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
32226         *)    echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
32227         esac
32228
32229
32230         echo >>$outfile
32231         if test x$g_have_eilseq = xno; then
32232                 cat >>$outfile <<_______EOF
32233 #ifndef EILSEQ
32234 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
32235  * The correspondence between this and the corresponding definition
32236  * in libiconv is essential.
32237  */
32238 #  define EILSEQ ENOENT
32239 #endif
32240 _______EOF
32241
32242         fi
32243
32244         if test x$g_have_gnuc_visibility = xyes; then
32245                 cat >>$outfile <<_______EOF
32246 #define G_HAVE_GNUC_VISIBILITY 1
32247 _______EOF
32248         fi
32249                 cat >>$outfile <<_______EOF
32250 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
32251 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
32252 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
32253 #define G_GNUC_INTERNAL __hidden
32254 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
32255 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
32256 #else
32257 #define G_GNUC_INTERNAL
32258 #endif
32259 _______EOF
32260
32261         echo >>$outfile
32262         cat >>$outfile <<_______EOF
32263 #define G_THREADS_ENABLED
32264 #define G_THREADS_IMPL_$g_threads_impl_def
32265 _______EOF
32266
32267         if test x"$g_memory_barrier_needed" != xno; then
32268           echo >>$outfile
32269           echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
32270         fi
32271         if test x"$g_atomic_lock_free" = xyes; then
32272           echo >>$outfile
32273           echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
32274         fi
32275         echo >>$outfile
32276         g_bit_sizes="16 32 64"
32277         for bits in $g_bit_sizes; do
32278           cat >>$outfile <<_______EOF
32279 #define GINT${bits}_TO_${g_bs_native}(val)      ((gint${bits}) (val))
32280 #define GUINT${bits}_TO_${g_bs_native}(val)     ((guint${bits}) (val))
32281 #define GINT${bits}_TO_${g_bs_alien}(val)       ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
32282 #define GUINT${bits}_TO_${g_bs_alien}(val)      (GUINT${bits}_SWAP_LE_BE (val))
32283 _______EOF
32284         done
32285
32286         cat >>$outfile <<_______EOF
32287 #define GLONG_TO_LE(val)        ((glong) GINT${glongbits}_TO_LE (val))
32288 #define GULONG_TO_LE(val)       ((gulong) GUINT${glongbits}_TO_LE (val))
32289 #define GLONG_TO_BE(val)        ((glong) GINT${glongbits}_TO_BE (val))
32290 #define GULONG_TO_BE(val)       ((gulong) GUINT${glongbits}_TO_BE (val))
32291 #define GINT_TO_LE(val)         ((gint) GINT${gintbits}_TO_LE (val))
32292 #define GUINT_TO_LE(val)        ((guint) GUINT${gintbits}_TO_LE (val))
32293 #define GINT_TO_BE(val)         ((gint) GINT${gintbits}_TO_BE (val))
32294 #define GUINT_TO_BE(val)        ((guint) GUINT${gintbits}_TO_BE (val))
32295 #define GSIZE_TO_LE(val)        ((gsize) GUINT${gsizebits}_TO_LE (val))
32296 #define GSSIZE_TO_LE(val)       ((gssize) GINT${gsizebits}_TO_LE (val))
32297 #define GSIZE_TO_BE(val)        ((gsize) GUINT${gsizebits}_TO_BE (val))
32298 #define GSSIZE_TO_BE(val)       ((gssize) GINT${gsizebits}_TO_BE (val))
32299 #define G_BYTE_ORDER $g_byte_order
32300
32301 #define GLIB_SYSDEF_POLLIN =$g_pollin
32302 #define GLIB_SYSDEF_POLLOUT =$g_pollout
32303 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
32304 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
32305 #define GLIB_SYSDEF_POLLERR =$g_pollerr
32306 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
32307
32308 #define G_MODULE_SUFFIX "$g_module_suffix"
32309
32310 typedef $g_pid_type GPid;
32311
32312 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
32313 #define GLIB_SYSDEF_AF_INET $g_af_inet
32314 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
32315
32316 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
32317 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
32318 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
32319
32320 G_END_DECLS
32321
32322 #endif /* __GLIBCONFIG_H__ */
32323 _______EOF
32324
32325
32326         if cmp -s $outfile glib/glibconfig.h; then
32327           { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
32328 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
32329           rm -f $outfile
32330         else
32331           mv $outfile glib/glibconfig.h
32332         fi
32333  ;;
32334     "chmod-scripts":C) chmod 0755 glib-zip
32335 chmod 0755 glib-gettextize
32336 chmod 0755 gobject/glib-mkenums ;;
32337
32338   esac
32339 done # for ac_tag
32340
32341
32342 as_fn_exit 0
32343 _ACEOF
32344 ac_clean_files=$ac_clean_files_save
32345
32346 test $ac_write_fail = 0 ||
32347   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32348
32349
32350 # configure is writing to config.log, and then calls config.status.
32351 # config.status does its own redirection, appending to config.log.
32352 # Unfortunately, on DOS this fails, as config.log is still kept open
32353 # by configure, so config.status won't be able to write to it; its
32354 # output is simply discarded.  So we exec the FD to /dev/null,
32355 # effectively closing config.log, so it can be properly (re)opened and
32356 # appended to by config.status.  When coming back to configure, we
32357 # need to make the FD available again.
32358 if test "$no_create" != yes; then
32359   ac_cs_success=:
32360   ac_config_status_args=
32361   test "$silent" = yes &&
32362     ac_config_status_args="$ac_config_status_args --quiet"
32363   exec 5>/dev/null
32364   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32365   exec 5>>config.log
32366   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32367   # would make configure fail if this is the last instruction.
32368   $ac_cs_success || as_fn_exit 1
32369 fi
32370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32373 fi
32374