Add gobject-introspection.changes file
[profile/ivi/gobject-introspection.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gobject-introspection 1.32.1.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
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
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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&component=introspection
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='gobject-introspection'
573 PACKAGE_TARNAME='gobject-introspection'
574 PACKAGE_VERSION='1.32.1'
575 PACKAGE_STRING='gobject-introspection 1.32.1'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection'
577 PACKAGE_URL=''
578
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 GLIBSRC
619 WITH_GLIBSRC_FALSE
620 WITH_GLIBSRC_TRUE
621 BUILD_DOCTOOL_FALSE
622 BUILD_DOCTOOL_TRUE
623 PYTHON_LIB_LOC
624 PYTHON_LIBS
625 PYTHON_INCLUDES
626 pkgpyexecdir
627 pyexecdir
628 pkgpythondir
629 pythondir
630 PYTHON_PLATFORM
631 PYTHON_EXEC_PREFIX
632 PYTHON_PREFIX
633 PYTHON_VERSION
634 PYTHON
635 LIBOBJS
636 POW_LIB
637 GTK_DOC_USE_REBASE_FALSE
638 GTK_DOC_USE_REBASE_TRUE
639 GTK_DOC_USE_LIBTOOL_FALSE
640 GTK_DOC_USE_LIBTOOL_TRUE
641 GTK_DOC_BUILD_PDF_FALSE
642 GTK_DOC_BUILD_PDF_TRUE
643 GTK_DOC_BUILD_HTML_FALSE
644 GTK_DOC_BUILD_HTML_TRUE
645 ENABLE_GTK_DOC_FALSE
646 ENABLE_GTK_DOC_TRUE
647 GTKDOC_DEPS_LIBS
648 GTKDOC_DEPS_CFLAGS
649 HTML_DIR
650 GTKDOC_MKPDF
651 GTKDOC_REBASE
652 GTKDOC_CHECK
653 GIREPO_LIBS
654 GIREPO_CFLAGS
655 FFI_PC_PACKAGES
656 FFI_PC_LIBS
657 FFI_PC_CFLAGS
658 FFI_LIBS
659 FFI_CFLAGS
660 SCANNER_LIBS
661 SCANNER_CFLAGS
662 HAVE_CAIRO_GOBJECT_FALSE
663 HAVE_CAIRO_GOBJECT_TRUE
664 HAVE_CAIRO_FALSE
665 HAVE_CAIRO_TRUE
666 BUILD_TESTS_FALSE
667 BUILD_TESTS_TRUE
668 CAIRO_GIR_PACKAGE
669 CAIRO_SHARED_LIBRARY
670 CAIRO_GOBJECT_LIBS
671 CAIRO_GOBJECT_CFLAGS
672 CAIRO_LIBS
673 CAIRO_CFLAGS
674 HAVE_GIO_UNIX_FALSE
675 HAVE_GIO_UNIX_TRUE
676 GIO_UNIX_LIBS
677 GIO_UNIX_CFLAGS
678 GIO_LIBS
679 GIO_CFLAGS
680 GMODULE_LIBS
681 GMODULE_CFLAGS
682 GOBJECT_LIBS
683 GOBJECT_CFLAGS
684 GLIB_LIBS
685 GLIB_CFLAGS
686 GIR_DIR
687 GIR_SUFFIX
688 GOBJECT_INTROSPECTION_LIBDIR
689 EXPANDED_DATADIR
690 EXPANDED_LIBEXECDIR
691 EXPANDED_LIBDIR
692 EXPANDED_BINDIR
693 EXPANDED_SYSCONFDIR
694 EXPANDED_LOCALSTATEDIR
695 YACC
696 LEXLIB
697 LEX_OUTPUT_ROOT
698 LEX
699 PKG_CONFIG_LIBDIR
700 PKG_CONFIG_PATH
701 PKG_CONFIG
702 CPP
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 MANIFEST_TOOL
709 RANLIB
710 ac_ct_AR
711 AR
712 DLLTOOL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 LIBTOOL
724 am__fastdepCC_FALSE
725 am__fastdepCC_TRUE
726 CCDEPMODE
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 OS_WIN32_FALSE
741 OS_WIN32_TRUE
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 AM_BACKSLASH
751 AM_DEFAULT_VERBOSITY
752 MAINT
753 MAINTAINER_MODE_FALSE
754 MAINTAINER_MODE_TRUE
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_maintainer_mode
820 enable_silent_rules
821 enable_dependency_tracking
822 enable_shared
823 enable_static
824 with_pic
825 enable_fast_install
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_tests
830 with_html_dir
831 enable_gtk_doc
832 enable_gtk_doc_html
833 enable_gtk_doc_pdf
834 enable_doctool
835 with_glib_src
836 '
837       ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 CPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 GLIB_CFLAGS
850 GLIB_LIBS
851 GOBJECT_CFLAGS
852 GOBJECT_LIBS
853 GMODULE_CFLAGS
854 GMODULE_LIBS
855 GIO_CFLAGS
856 GIO_LIBS
857 GIO_UNIX_CFLAGS
858 GIO_UNIX_LIBS
859 CAIRO_CFLAGS
860 CAIRO_LIBS
861 CAIRO_GOBJECT_CFLAGS
862 CAIRO_GOBJECT_LIBS
863 SCANNER_CFLAGS
864 SCANNER_LIBS
865 FFI_CFLAGS
866 FFI_LIBS
867 GIREPO_CFLAGS
868 GIREPO_LIBS
869 GTKDOC_DEPS_CFLAGS
870 GTKDOC_DEPS_LIBS'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925   # If the previous option needs an argument, assign it.
926   if test -n "$ac_prev"; then
927     eval $ac_prev=\$ac_option
928     ac_prev=
929     continue
930   fi
931
932   case $ac_option in
933   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934   *=)   ac_optarg= ;;
935   *)    ac_optarg=yes ;;
936   esac
937
938   # Accept the important Cygnus configure options, so we can diagnose typos.
939
940   case $ac_dashdash$ac_option in
941   --)
942     ac_dashdash=yes ;;
943
944   -bindir | --bindir | --bindi | --bind | --bin | --bi)
945     ac_prev=bindir ;;
946   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947     bindir=$ac_optarg ;;
948
949   -build | --build | --buil | --bui | --bu)
950     ac_prev=build_alias ;;
951   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952     build_alias=$ac_optarg ;;
953
954   -cache-file | --cache-file | --cache-fil | --cache-fi \
955   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956     ac_prev=cache_file ;;
957   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959     cache_file=$ac_optarg ;;
960
961   --config-cache | -C)
962     cache_file=config.cache ;;
963
964   -datadir | --datadir | --datadi | --datad)
965     ac_prev=datadir ;;
966   -datadir=* | --datadir=* | --datadi=* | --datad=*)
967     datadir=$ac_optarg ;;
968
969   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970   | --dataroo | --dataro | --datar)
971     ac_prev=datarootdir ;;
972   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974     datarootdir=$ac_optarg ;;
975
976   -disable-* | --disable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error $? "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006       as_fn_error $? "invalid feature name: $ac_useropt"
1007     ac_useropt_orig=$ac_useropt
1008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009     case $ac_user_opts in
1010       *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014          ac_unrecognized_sep=', ';;
1015     esac
1016     eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020   | --exec | --exe | --ex)
1021     ac_prev=exec_prefix ;;
1022   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024   | --exec=* | --exe=* | --ex=*)
1025     exec_prefix=$ac_optarg ;;
1026
1027   -gas | --gas | --ga | --g)
1028     # Obsolete; use --with-gas.
1029     with_gas=yes ;;
1030
1031   -help | --help | --hel | --he | -h)
1032     ac_init_help=long ;;
1033   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034     ac_init_help=recursive ;;
1035   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036     ac_init_help=short ;;
1037
1038   -host | --host | --hos | --ho)
1039     ac_prev=host_alias ;;
1040   -host=* | --host=* | --hos=* | --ho=*)
1041     host_alias=$ac_optarg ;;
1042
1043   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044     ac_prev=htmldir ;;
1045   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046   | --ht=*)
1047     htmldir=$ac_optarg ;;
1048
1049   -includedir | --includedir | --includedi | --included | --include \
1050   | --includ | --inclu | --incl | --inc)
1051     ac_prev=includedir ;;
1052   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053   | --includ=* | --inclu=* | --incl=* | --inc=*)
1054     includedir=$ac_optarg ;;
1055
1056   -infodir | --infodir | --infodi | --infod | --info | --inf)
1057     ac_prev=infodir ;;
1058   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059     infodir=$ac_optarg ;;
1060
1061   -libdir | --libdir | --libdi | --libd)
1062     ac_prev=libdir ;;
1063   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064     libdir=$ac_optarg ;;
1065
1066   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067   | --libexe | --libex | --libe)
1068     ac_prev=libexecdir ;;
1069   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070   | --libexe=* | --libex=* | --libe=*)
1071     libexecdir=$ac_optarg ;;
1072
1073   -localedir | --localedir | --localedi | --localed | --locale)
1074     ac_prev=localedir ;;
1075   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076     localedir=$ac_optarg ;;
1077
1078   -localstatedir | --localstatedir | --localstatedi | --localstated \
1079   | --localstate | --localstat | --localsta | --localst | --locals)
1080     ac_prev=localstatedir ;;
1081   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083     localstatedir=$ac_optarg ;;
1084
1085   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086     ac_prev=mandir ;;
1087   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088     mandir=$ac_optarg ;;
1089
1090   -nfp | --nfp | --nf)
1091     # Obsolete; use --without-fp.
1092     with_fp=no ;;
1093
1094   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095   | --no-cr | --no-c | -n)
1096     no_create=yes ;;
1097
1098   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100     no_recursion=yes ;;
1101
1102   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104   | --oldin | --oldi | --old | --ol | --o)
1105     ac_prev=oldincludedir ;;
1106   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109     oldincludedir=$ac_optarg ;;
1110
1111   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112     ac_prev=prefix ;;
1113   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114     prefix=$ac_optarg ;;
1115
1116   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117   | --program-pre | --program-pr | --program-p)
1118     ac_prev=program_prefix ;;
1119   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121     program_prefix=$ac_optarg ;;
1122
1123   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124   | --program-suf | --program-su | --program-s)
1125     ac_prev=program_suffix ;;
1126   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128     program_suffix=$ac_optarg ;;
1129
1130   -program-transform-name | --program-transform-name \
1131   | --program-transform-nam | --program-transform-na \
1132   | --program-transform-n | --program-transform- \
1133   | --program-transform | --program-transfor \
1134   | --program-transfo | --program-transf \
1135   | --program-trans | --program-tran \
1136   | --progr-tra | --program-tr | --program-t)
1137     ac_prev=program_transform_name ;;
1138   -program-transform-name=* | --program-transform-name=* \
1139   | --program-transform-nam=* | --program-transform-na=* \
1140   | --program-transform-n=* | --program-transform-=* \
1141   | --program-transform=* | --program-transfor=* \
1142   | --program-transfo=* | --program-transf=* \
1143   | --program-trans=* | --program-tran=* \
1144   | --progr-tra=* | --program-tr=* | --program-t=*)
1145     program_transform_name=$ac_optarg ;;
1146
1147   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148     ac_prev=pdfdir ;;
1149   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150     pdfdir=$ac_optarg ;;
1151
1152   -psdir | --psdir | --psdi | --psd | --ps)
1153     ac_prev=psdir ;;
1154   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155     psdir=$ac_optarg ;;
1156
1157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158   | -silent | --silent | --silen | --sile | --sil)
1159     silent=yes ;;
1160
1161   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162     ac_prev=sbindir ;;
1163   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164   | --sbi=* | --sb=*)
1165     sbindir=$ac_optarg ;;
1166
1167   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169   | --sharedst | --shareds | --shared | --share | --shar \
1170   | --sha | --sh)
1171     ac_prev=sharedstatedir ;;
1172   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175   | --sha=* | --sh=*)
1176     sharedstatedir=$ac_optarg ;;
1177
1178   -site | --site | --sit)
1179     ac_prev=site ;;
1180   -site=* | --site=* | --sit=*)
1181     site=$ac_optarg ;;
1182
1183   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184     ac_prev=srcdir ;;
1185   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186     srcdir=$ac_optarg ;;
1187
1188   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189   | --syscon | --sysco | --sysc | --sys | --sy)
1190     ac_prev=sysconfdir ;;
1191   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193     sysconfdir=$ac_optarg ;;
1194
1195   -target | --target | --targe | --targ | --tar | --ta | --t)
1196     ac_prev=target_alias ;;
1197   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198     target_alias=$ac_optarg ;;
1199
1200   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201     verbose=yes ;;
1202
1203   -version | --version | --versio | --versi | --vers | -V)
1204     ac_init_version=: ;;
1205
1206   -with-* | --with-*)
1207     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210       as_fn_error $? "invalid package name: $ac_useropt"
1211     ac_useropt_orig=$ac_useropt
1212     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213     case $ac_user_opts in
1214       *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218          ac_unrecognized_sep=', ';;
1219     esac
1220     eval with_$ac_useropt=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error $? "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=no ;;
1237
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1241
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1248
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1255
1256   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258     ;;
1259
1260   *=*)
1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262     # Reject names that are not valid shell variable names.
1263     case $ac_envvar in #(
1264       '' | [0-9]* | *[!_$as_cr_alnum]* )
1265       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266     esac
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1269
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276     ;;
1277
1278   esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287   case $enable_option_checking in
1288     no) ;;
1289     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1327     If a cross compiler is detected then cross compile mode will be used" >&2
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures gobject-introspection 1.32.1 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking ...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root
1462                           [DATAROOTDIR/doc/gobject-introspection]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 Program names:
1472   --program-prefix=PREFIX            prepend PREFIX to installed program names
1473   --program-suffix=SUFFIX            append SUFFIX to installed program names
1474   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483   case $ac_init_help in
1484      short | recursive ) echo "Configuration of gobject-introspection 1.32.1:";;
1485    esac
1486   cat <<\_ACEOF
1487
1488 Optional Features:
1489   --disable-option-checking  ignore unrecognized --enable/--with options
1490   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492   --disable-maintainer-mode  disable make rules and dependencies not useful
1493                           (and sometimes confusing) to the casual installer
1494   --enable-silent-rules          less verbose build output (undo: `make V=1')
1495   --disable-silent-rules         verbose build output (undo: `make V=0')
1496   --disable-dependency-tracking  speeds up one-time build
1497   --enable-dependency-tracking   do not reject slow dependency extractors
1498   --enable-shared[=PKGS]  build shared libraries [default=yes]
1499   --enable-static[=PKGS]  build static libraries [default=yes]
1500   --enable-fast-install[=PKGS]
1501                           optimize for fast installation [default=yes]
1502   --disable-libtool-lock  avoid locking (might break parallel builds)
1503   --disable-tests           disable test libraries
1504   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1505   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1506   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1507   --enable-doctool           enable g-ir-doctool
1508
1509 Optional Packages:
1510   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512   --with-pic              try to use only PIC/non-PIC objects [default=use
1513                           both]
1514   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515   --with-sysroot=DIR Search for dependent libraries within DIR
1516                         (or the compiler's sysroot if not specified).
1517   --with-html-dir=PATH    path to installed docs
1518   --with-glib-src=PATH    Source directory for glib - needed to add docs to gir
1519
1520 Some influential environment variables:
1521   CC          C compiler command
1522   CFLAGS      C compiler flags
1523   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524               nonstandard directory <lib dir>
1525   LIBS        libraries to pass to the linker, e.g. -l<library>
1526   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527               you have headers in a nonstandard directory <include dir>
1528   CPP         C preprocessor
1529   PKG_CONFIG  path to pkg-config utility
1530   PKG_CONFIG_PATH
1531               directories to add to pkg-config's search path
1532   PKG_CONFIG_LIBDIR
1533               path overriding pkg-config's built-in search path
1534   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1535   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1536   GOBJECT_CFLAGS
1537               C compiler flags for GOBJECT, overriding pkg-config
1538   GOBJECT_LIBS
1539               linker flags for GOBJECT, overriding pkg-config
1540   GMODULE_CFLAGS
1541               C compiler flags for GMODULE, overriding pkg-config
1542   GMODULE_LIBS
1543               linker flags for GMODULE, overriding pkg-config
1544   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1545   GIO_LIBS    linker flags for GIO, overriding pkg-config
1546   GIO_UNIX_CFLAGS
1547               C compiler flags for GIO_UNIX, overriding pkg-config
1548   GIO_UNIX_LIBS
1549               linker flags for GIO_UNIX, overriding pkg-config
1550   CAIRO_CFLAGS
1551               C compiler flags for CAIRO, overriding pkg-config
1552   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1553   CAIRO_GOBJECT_CFLAGS
1554               C compiler flags for CAIRO_GOBJECT, overriding pkg-config
1555   CAIRO_GOBJECT_LIBS
1556               linker flags for CAIRO_GOBJECT, overriding pkg-config
1557   SCANNER_CFLAGS
1558               C compiler flags for SCANNER, overriding pkg-config
1559   SCANNER_LIBS
1560               linker flags for SCANNER, overriding pkg-config
1561   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1562   FFI_LIBS    linker flags for FFI, overriding pkg-config
1563   GIREPO_CFLAGS
1564               C compiler flags for GIREPO, overriding pkg-config
1565   GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1566   GTKDOC_DEPS_CFLAGS
1567               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1568   GTKDOC_DEPS_LIBS
1569               linker flags for GTKDOC_DEPS, overriding pkg-config
1570
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1573
1574 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" ||
1583       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584       continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 gobject-introspection configure 1.32.1
1638 generated by GNU Autoconf 2.68
1639
1640 Copyright (C) 2010 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644   exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext
1658   if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_compile") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest.$ac_objext; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          $as_test_x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_cpp LINENO
1767 # ----------------------
1768 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_cpp ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780   ac_status=$?
1781   if test -s conftest.err; then
1782     grep -v '^ *+' conftest.err >conftest.er1
1783     cat conftest.er1 >&5
1784     mv -f conftest.er1 conftest.err
1785   fi
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } > conftest.i && {
1788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789          test ! -s conftest.err
1790        }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796     ac_retval=1
1797 fi
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_cpp
1802
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1807 ac_fn_c_try_run ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_link") 2>&5
1818   ac_status=$?
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821   { { case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_try") 2>&5
1828   ac_status=$?
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; }; }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: program exited with status $ac_status" >&5
1834        $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837        ac_retval=$ac_status
1838 fi
1839   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_run
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1916 # computed
1917 ac_fn_c_compute_int ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   if test "$cross_compiling" = yes; then
1921     # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 int
1926 main ()
1927 {
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1929 test_array [0] = 0
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936   ac_lo=0 ac_mid=0
1937   while :; do
1938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h.  */
1940 $4
1941 int
1942 main ()
1943 {
1944 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1945 test_array [0] = 0
1946
1947   ;
1948   return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952   ac_hi=$ac_mid; break
1953 else
1954   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1955                         if test $ac_lo -le $ac_mid; then
1956                           ac_lo= ac_hi=
1957                           break
1958                         fi
1959                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962   done
1963 else
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) < 0)];
1971 test_array [0] = 0
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978   ac_hi=-1 ac_mid=-1
1979   while :; do
1980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1987 test_array [0] = 0
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994   ac_lo=$ac_mid; break
1995 else
1996   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1997                         if test $ac_mid -le $ac_hi; then
1998                           ac_lo= ac_hi=
1999                           break
2000                         fi
2001                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004   done
2005 else
2006   ac_lo= ac_hi=
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid
2029 else
2030   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 done
2034 case $ac_lo in #((
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036 '') ac_retval=1 ;;
2037 esac
2038   else
2039     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2044 #include <stdio.h>
2045 #include <stdlib.h>
2046 int
2047 main ()
2048 {
2049
2050   FILE *f = fopen ("conftest.val", "w");
2051   if (! f)
2052     return 1;
2053   if (($2) < 0)
2054     {
2055       long int i = longval ();
2056       if (i != ($2))
2057         return 1;
2058       fprintf (f, "%ld", i);
2059     }
2060   else
2061     {
2062       unsigned long int i = ulongval ();
2063       if (i != ($2))
2064         return 1;
2065       fprintf (f, "%lu", i);
2066     }
2067   /* Do not output a trailing newline, as this causes \r\n confusion
2068      on some platforms.  */
2069   return ferror (f) || fclose (f) != 0;
2070
2071   ;
2072   return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_run "$LINENO"; then :
2076   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2077 else
2078   ac_retval=1
2079 fi
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081   conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 rm -f conftest.val
2083
2084   fi
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086   as_fn_set_status $ac_retval
2087
2088 } # ac_fn_c_compute_int
2089
2090 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2091 # -------------------------------------------------------
2092 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093 # the include files in INCLUDES and setting the cache variable VAR
2094 # accordingly.
2095 ac_fn_c_check_header_mongrel ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   if eval \${$3+:} false; then :
2099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if eval \${$3+:} false; then :
2102   $as_echo_n "(cached) " >&6
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 else
2108   # Is the header compilable?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110 $as_echo_n "checking $2 usability... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h.  */
2113 $4
2114 #include <$2>
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_header_compiler=yes
2118 else
2119   ac_header_compiler=no
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123 $as_echo "$ac_header_compiler" >&6; }
2124
2125 # Is the header present?
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127 $as_echo_n "checking $2 presence... " >&6; }
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h.  */
2130 #include <$2>
2131 _ACEOF
2132 if ac_fn_c_try_cpp "$LINENO"; then :
2133   ac_header_preproc=yes
2134 else
2135   ac_header_preproc=no
2136 fi
2137 rm -f conftest.err conftest.i conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139 $as_echo "$ac_header_preproc" >&6; }
2140
2141 # So?  What about this header?
2142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2143   yes:no: )
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148     ;;
2149   no:yes:* )
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2153 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2157 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
2161 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection ##
2162 ## ------------------------------------------------------------------------------------------- ##"
2163      ) | sed "s/^/$as_me: WARNING:     /" >&2
2164     ;;
2165 esac
2166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169   $as_echo_n "(cached) " >&6
2170 else
2171   eval "$3=\$ac_header_compiler"
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 fi
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178
2179 } # ac_fn_c_check_header_mongrel
2180 cat >config.log <<_ACEOF
2181 This file contains any messages produced by compilers while
2182 running configure, to aid debugging if configure makes a mistake.
2183
2184 It was created by gobject-introspection $as_me 1.32.1, which was
2185 generated by GNU Autoconf 2.68.  Invocation command line was
2186
2187   $ $0 $@
2188
2189 _ACEOF
2190 exec 5>>config.log
2191 {
2192 cat <<_ASUNAME
2193 ## --------- ##
2194 ## Platform. ##
2195 ## --------- ##
2196
2197 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2198 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2199 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2200 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2201 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2202
2203 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2204 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2205
2206 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2207 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2208 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2209 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2210 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2211 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2212 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2213
2214 _ASUNAME
2215
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221     $as_echo "PATH: $as_dir"
2222   done
2223 IFS=$as_save_IFS
2224
2225 } >&5
2226
2227 cat >&5 <<_ACEOF
2228
2229
2230 ## ----------- ##
2231 ## Core tests. ##
2232 ## ----------- ##
2233
2234 _ACEOF
2235
2236
2237 # Keep a trace of the command line.
2238 # Strip out --no-create and --no-recursion so they do not pile up.
2239 # Strip out --silent because we don't want to record it for future runs.
2240 # Also quote any args containing shell meta-characters.
2241 # Make two passes to allow for proper duplicate-argument suppression.
2242 ac_configure_args=
2243 ac_configure_args0=
2244 ac_configure_args1=
2245 ac_must_keep_next=false
2246 for ac_pass in 1 2
2247 do
2248   for ac_arg
2249   do
2250     case $ac_arg in
2251     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2252     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2253     | -silent | --silent | --silen | --sile | --sil)
2254       continue ;;
2255     *\'*)
2256       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2257     esac
2258     case $ac_pass in
2259     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2260     2)
2261       as_fn_append ac_configure_args1 " '$ac_arg'"
2262       if test $ac_must_keep_next = true; then
2263         ac_must_keep_next=false # Got value, back to normal.
2264       else
2265         case $ac_arg in
2266           *=* | --config-cache | -C | -disable-* | --disable-* \
2267           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2268           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2269           | -with-* | --with-* | -without-* | --without-* | --x)
2270             case "$ac_configure_args0 " in
2271               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2272             esac
2273             ;;
2274           -* ) ac_must_keep_next=true ;;
2275         esac
2276       fi
2277       as_fn_append ac_configure_args " '$ac_arg'"
2278       ;;
2279     esac
2280   done
2281 done
2282 { ac_configure_args0=; unset ac_configure_args0;}
2283 { ac_configure_args1=; unset ac_configure_args1;}
2284
2285 # When interrupted or exit'd, cleanup temporary files, and complete
2286 # config.log.  We remove comments because anyway the quotes in there
2287 # would cause problems or look ugly.
2288 # WARNING: Use '\'' to represent an apostrophe within the trap.
2289 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2290 trap 'exit_status=$?
2291   # Save into config.log some information that might help in debugging.
2292   {
2293     echo
2294
2295     $as_echo "## ---------------- ##
2296 ## Cache variables. ##
2297 ## ---------------- ##"
2298     echo
2299     # The following way of writing the cache mishandles newlines in values,
2300 (
2301   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2302     eval ac_val=\$$ac_var
2303     case $ac_val in #(
2304     *${as_nl}*)
2305       case $ac_var in #(
2306       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308       esac
2309       case $ac_var in #(
2310       _ | IFS | as_nl) ;; #(
2311       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2312       *) { eval $ac_var=; unset $ac_var;} ;;
2313       esac ;;
2314     esac
2315   done
2316   (set) 2>&1 |
2317     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2318     *${as_nl}ac_space=\ *)
2319       sed -n \
2320         "s/'\''/'\''\\\\'\'''\''/g;
2321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322       ;; #(
2323     *)
2324       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2325       ;;
2326     esac |
2327     sort
2328 )
2329     echo
2330
2331     $as_echo "## ----------------- ##
2332 ## Output variables. ##
2333 ## ----------------- ##"
2334     echo
2335     for ac_var in $ac_subst_vars
2336     do
2337       eval ac_val=\$$ac_var
2338       case $ac_val in
2339       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340       esac
2341       $as_echo "$ac_var='\''$ac_val'\''"
2342     done | sort
2343     echo
2344
2345     if test -n "$ac_subst_files"; then
2346       $as_echo "## ------------------- ##
2347 ## File substitutions. ##
2348 ## ------------------- ##"
2349       echo
2350       for ac_var in $ac_subst_files
2351       do
2352         eval ac_val=\$$ac_var
2353         case $ac_val in
2354         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355         esac
2356         $as_echo "$ac_var='\''$ac_val'\''"
2357       done | sort
2358       echo
2359     fi
2360
2361     if test -s confdefs.h; then
2362       $as_echo "## ----------- ##
2363 ## confdefs.h. ##
2364 ## ----------- ##"
2365       echo
2366       cat confdefs.h
2367       echo
2368     fi
2369     test "$ac_signal" != 0 &&
2370       $as_echo "$as_me: caught signal $ac_signal"
2371     $as_echo "$as_me: exit $exit_status"
2372   } >&5
2373   rm -f core *.core core.conftest.* &&
2374     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375     exit $exit_status
2376 ' 0
2377 for ac_signal in 1 2 13 15; do
2378   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379 done
2380 ac_signal=0
2381
2382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2383 rm -f -r conftest* confdefs.h
2384
2385 $as_echo "/* confdefs.h */" > confdefs.h
2386
2387 # Predefined preprocessor variables.
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_URL "$PACKAGE_URL"
2411 _ACEOF
2412
2413
2414 # Let the site file select an alternate cache file if it wants to.
2415 # Prefer an explicitly selected file to automatically selected ones.
2416 ac_site_file1=NONE
2417 ac_site_file2=NONE
2418 if test -n "$CONFIG_SITE"; then
2419   # We do not want a PATH search for config.site.
2420   case $CONFIG_SITE in #((
2421     -*)  ac_site_file1=./$CONFIG_SITE;;
2422     */*) ac_site_file1=$CONFIG_SITE;;
2423     *)   ac_site_file1=./$CONFIG_SITE;;
2424   esac
2425 elif test "x$prefix" != xNONE; then
2426   ac_site_file1=$prefix/share/config.site
2427   ac_site_file2=$prefix/etc/config.site
2428 else
2429   ac_site_file1=$ac_default_prefix/share/config.site
2430   ac_site_file2=$ac_default_prefix/etc/config.site
2431 fi
2432 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2433 do
2434   test "x$ac_site_file" = xNONE && continue
2435   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2436     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2437 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2438     sed 's/^/| /' "$ac_site_file" >&5
2439     . "$ac_site_file" \
2440       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 as_fn_error $? "failed to load site script $ac_site_file
2443 See \`config.log' for more details" "$LINENO" 5; }
2444   fi
2445 done
2446
2447 if test -r "$cache_file"; then
2448   # Some versions of bash will fail to source /dev/null (special files
2449   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2450   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2452 $as_echo "$as_me: loading cache $cache_file" >&6;}
2453     case $cache_file in
2454       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2455       *)                      . "./$cache_file";;
2456     esac
2457   fi
2458 else
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2460 $as_echo "$as_me: creating cache $cache_file" >&6;}
2461   >$cache_file
2462 fi
2463
2464 # Check that the precious variables saved in the cache have kept the same
2465 # value.
2466 ac_cache_corrupted=false
2467 for ac_var in $ac_precious_vars; do
2468   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2469   eval ac_new_set=\$ac_env_${ac_var}_set
2470   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2471   eval ac_new_val=\$ac_env_${ac_var}_value
2472   case $ac_old_set,$ac_new_set in
2473     set,)
2474       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2475 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2476       ac_cache_corrupted=: ;;
2477     ,set)
2478       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2479 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2480       ac_cache_corrupted=: ;;
2481     ,);;
2482     *)
2483       if test "x$ac_old_val" != "x$ac_new_val"; then
2484         # differences in whitespace do not lead to failure.
2485         ac_old_val_w=`echo x $ac_old_val`
2486         ac_new_val_w=`echo x $ac_new_val`
2487         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2488           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2489 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2490           ac_cache_corrupted=:
2491         else
2492           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2493 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2494           eval $ac_var=\$ac_old_val
2495         fi
2496         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2497 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2498         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2499 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2500       fi;;
2501   esac
2502   # Pass precious variables to config.status.
2503   if test "$ac_new_set" = set; then
2504     case $ac_new_val in
2505     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2506     *) ac_arg=$ac_var=$ac_new_val ;;
2507     esac
2508     case " $ac_configure_args " in
2509       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2510       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2511     esac
2512   fi
2513 done
2514 if $ac_cache_corrupted; then
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2518 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2519   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2520 fi
2521 ## -------------------- ##
2522 ## Main body of script. ##
2523 ## -------------------- ##
2524
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530
2531
2532
2533 ac_config_headers="$ac_config_headers config.h"
2534
2535
2536 ac_aux_dir=
2537 for ac_dir in build-aux "$srcdir"/build-aux; do
2538   if test -f "$ac_dir/install-sh"; then
2539     ac_aux_dir=$ac_dir
2540     ac_install_sh="$ac_aux_dir/install-sh -c"
2541     break
2542   elif test -f "$ac_dir/install.sh"; then
2543     ac_aux_dir=$ac_dir
2544     ac_install_sh="$ac_aux_dir/install.sh -c"
2545     break
2546   elif test -f "$ac_dir/shtool"; then
2547     ac_aux_dir=$ac_dir
2548     ac_install_sh="$ac_aux_dir/shtool install -c"
2549     break
2550   fi
2551 done
2552 if test -z "$ac_aux_dir"; then
2553   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2554 fi
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2563
2564
2565
2566 am__api_version='1.11'
2567
2568 # Find a good install program.  We prefer a C program (faster),
2569 # so one script is as good as another.  But avoid the broken or
2570 # incompatible versions:
2571 # SysV /etc/install, /usr/sbin/install
2572 # SunOS /usr/etc/install
2573 # IRIX /sbin/install
2574 # AIX /bin/install
2575 # AmigaOS /C/install, which installs bootblocks on floppy discs
2576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2579 # OS/2's system install, which has a completely different semantic
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 # Reject install programs that cannot install multiple files.
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2584 if test -z "$INSTALL"; then
2585 if ${ac_cv_path_install+:} false; then :
2586   $as_echo_n "(cached) " >&6
2587 else
2588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593     # Account for people who put trailing slashes in PATH elements.
2594 case $as_dir/ in #((
2595   ./ | .// | /[cC]/* | \
2596   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2597   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598   /usr/ucb/* ) ;;
2599   *)
2600     # OSF1 and SCO ODT 3.0 have their own names for install.
2601     # Don't use installbsd from OSF since it installs stuff as root
2602     # by default.
2603     for ac_prog in ginstall scoinst install; do
2604       for ac_exec_ext in '' $ac_executable_extensions; do
2605         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2606           if test $ac_prog = install &&
2607             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608             # AIX install.  It has an incompatible calling convention.
2609             :
2610           elif test $ac_prog = install &&
2611             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612             # program-specific install script used by HP pwplus--don't use.
2613             :
2614           else
2615             rm -rf conftest.one conftest.two conftest.dir
2616             echo one > conftest.one
2617             echo two > conftest.two
2618             mkdir conftest.dir
2619             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2620               test -s conftest.one && test -s conftest.two &&
2621               test -s conftest.dir/conftest.one &&
2622               test -s conftest.dir/conftest.two
2623             then
2624               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2625               break 3
2626             fi
2627           fi
2628         fi
2629       done
2630     done
2631     ;;
2632 esac
2633
2634   done
2635 IFS=$as_save_IFS
2636
2637 rm -rf conftest.one conftest.two conftest.dir
2638
2639 fi
2640   if test "${ac_cv_path_install+set}" = set; then
2641     INSTALL=$ac_cv_path_install
2642   else
2643     # As a last resort, use the slow shell script.  Don't cache a
2644     # value for INSTALL within a source directory, because that will
2645     # break other packages using the cache if that directory is
2646     # removed, or if the value is a relative name.
2647     INSTALL=$ac_install_sh
2648   fi
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2651 $as_echo "$INSTALL" >&6; }
2652
2653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654 # It thinks the first close brace ends the variable substitution.
2655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656
2657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658
2659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2662 $as_echo_n "checking whether build environment is sane... " >&6; }
2663 # Just in case
2664 sleep 1
2665 echo timestamp > conftest.file
2666 # Reject unsafe characters in $srcdir or the absolute working directory
2667 # name.  Accept space and tab only in the latter.
2668 am_lf='
2669 '
2670 case `pwd` in
2671   *[\\\"\#\$\&\'\`$am_lf]*)
2672     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2673 esac
2674 case $srcdir in
2675   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2676     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2677 esac
2678
2679 # Do `set' in a subshell so we don't clobber the current shell's
2680 # arguments.  Must try -L first in case configure is actually a
2681 # symlink; some systems play weird games with the mod time of symlinks
2682 # (eg FreeBSD returns the mod time of the symlink's containing
2683 # directory).
2684 if (
2685    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2686    if test "$*" = "X"; then
2687       # -L didn't work.
2688       set X `ls -t "$srcdir/configure" conftest.file`
2689    fi
2690    rm -f conftest.file
2691    if test "$*" != "X $srcdir/configure conftest.file" \
2692       && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694       # If neither matched, then we have a broken ls.  This can happen
2695       # if, for instance, CONFIG_SHELL is bash and it inherits a
2696       # broken ls alias from the environment.  This has actually
2697       # happened.  Such a system could not be considered "sane".
2698       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2699 alias in your environment" "$LINENO" 5
2700    fi
2701
2702    test "$2" = conftest.file
2703    )
2704 then
2705    # Ok.
2706    :
2707 else
2708    as_fn_error $? "newly created file is older than distributed files!
2709 Check your system clock" "$LINENO" 5
2710 fi
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713 test "$program_prefix" != NONE &&
2714   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2715 # Use a double $ so make ignores it.
2716 test "$program_suffix" != NONE &&
2717   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2718 # Double any \ or $.
2719 # By default was `s,x,x', remove it if useless.
2720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2722
2723 # expand $ac_aux_dir to an absolute path
2724 am_aux_dir=`cd $ac_aux_dir && pwd`
2725
2726 if test x"${MISSING+set}" != xset; then
2727   case $am_aux_dir in
2728   *\ * | *\     *)
2729     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2730   *)
2731     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2732   esac
2733 fi
2734 # Use eval to expand $SHELL
2735 if eval "$MISSING --run true"; then
2736   am_missing_run="$MISSING --run "
2737 else
2738   am_missing_run=
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2740 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2741 fi
2742
2743 if test x"${install_sh}" != xset; then
2744   case $am_aux_dir in
2745   *\ * | *\     *)
2746     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2747   *)
2748     install_sh="\${SHELL} $am_aux_dir/install-sh"
2749   esac
2750 fi
2751
2752 # Installed binaries are usually stripped using `strip' when the user
2753 # run `make install-strip'.  However `strip' might not be the right
2754 # tool to use in cross-compilation environments, therefore Automake
2755 # will honor the `STRIP' environment variable to overrule this program.
2756 if test "$cross_compiling" != no; then
2757   if test -n "$ac_tool_prefix"; then
2758   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}strip; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_STRIP+:} false; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$STRIP"; then
2766   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 STRIP=$ac_cv_prog_STRIP
2786 if test -n "$STRIP"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2788 $as_echo "$STRIP" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 if test -z "$ac_cv_prog_STRIP"; then
2797   ac_ct_STRIP=$STRIP
2798   # Extract the first word of "strip", so it can be a program name with args.
2799 set dummy strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$ac_ct_STRIP"; then
2806   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_ac_ct_STRIP="strip"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2826 if test -n "$ac_ct_STRIP"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2828 $as_echo "$ac_ct_STRIP" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834   if test "x$ac_ct_STRIP" = x; then
2835     STRIP=":"
2836   else
2837     case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843     STRIP=$ac_ct_STRIP
2844   fi
2845 else
2846   STRIP="$ac_cv_prog_STRIP"
2847 fi
2848
2849 fi
2850 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2853 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2854 if test -z "$MKDIR_P"; then
2855   if ${ac_cv_path_mkdir+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_prog in mkdir gmkdir; do
2864          for ac_exec_ext in '' $ac_executable_extensions; do
2865            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2866            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2867              'mkdir (GNU coreutils) '* | \
2868              'mkdir (coreutils) '* | \
2869              'mkdir (fileutils) '4.1*)
2870                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2871                break 3;;
2872            esac
2873          done
2874        done
2875   done
2876 IFS=$as_save_IFS
2877
2878 fi
2879
2880   test -d ./--version && rmdir ./--version
2881   if test "${ac_cv_path_mkdir+set}" = set; then
2882     MKDIR_P="$ac_cv_path_mkdir -p"
2883   else
2884     # As a last resort, use the slow shell script.  Don't cache a
2885     # value for MKDIR_P within a source directory, because that will
2886     # break other packages using the cache if that directory is
2887     # removed, or if the value is a relative name.
2888     MKDIR_P="$ac_install_sh -d"
2889   fi
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2892 $as_echo "$MKDIR_P" >&6; }
2893
2894 mkdir_p="$MKDIR_P"
2895 case $mkdir_p in
2896   [\\/$]* | ?:[\\/]*) ;;
2897   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2898 esac
2899
2900 for ac_prog in gawk mawk nawk awk
2901 do
2902   # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_AWK+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$AWK"; then
2910   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919     ac_cv_prog_AWK="$ac_prog"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 $as_echo "$AWK" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939   test -n "$AWK" && break
2940 done
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   cat >conftest.make <<\_ACEOF
2950 SHELL = /bin/sh
2951 all:
2952         @echo '@@@%%%=$(MAKE)=@@@%%%'
2953 _ACEOF
2954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956   *@@@%%%=?*=@@@%%%*)
2957     eval ac_cv_prog_make_${ac_make}_set=yes;;
2958   *)
2959     eval ac_cv_prog_make_${ac_make}_set=no;;
2960 esac
2961 rm -f conftest.make
2962 fi
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966   SET_MAKE=
2967 else
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970   SET_MAKE="MAKE=${MAKE-make}"
2971 fi
2972
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976   am__leading_dot=.
2977 else
2978   am__leading_dot=_
2979 fi
2980 rmdir .tst 2>/dev/null
2981
2982 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2983   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2984   # is not polluted with repeated "-I."
2985   am__isrc=' -I$(srcdir)'
2986   # test to see if srcdir already configured
2987   if test -f $srcdir/config.status; then
2988     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2989   fi
2990 fi
2991
2992 # test whether we have cygpath
2993 if test -z "$CYGPATH_W"; then
2994   if (cygpath --version) >/dev/null 2>/dev/null; then
2995     CYGPATH_W='cygpath -w'
2996   else
2997     CYGPATH_W=echo
2998   fi
2999 fi
3000
3001
3002 # Define the identity of the package.
3003  PACKAGE='gobject-introspection'
3004  VERSION='1.32.1'
3005
3006
3007 cat >>confdefs.h <<_ACEOF
3008 #define PACKAGE "$PACKAGE"
3009 _ACEOF
3010
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define VERSION "$VERSION"
3014 _ACEOF
3015
3016 # Some tools Automake needs.
3017
3018 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3019
3020
3021 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3022
3023
3024 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3025
3026
3027 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3028
3029
3030 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3031
3032 # We need awk for the "check" target.  The system "awk" is bad on
3033 # some platforms.
3034 # Always define AMTAR for backward compatibility.
3035
3036 AMTAR=${AMTAR-"${am_missing_run}tar"}
3037
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3040 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3041 # Loop over all known methods to create a tar archive until one works.
3042 _am_tools='gnutar plaintar pax cpio none'
3043 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3044 # Do not fold the above two line into one, because Tru64 sh and
3045 # Solaris sh will not grok spaces in the rhs of `-'.
3046 for _am_tool in $_am_tools
3047 do
3048   case $_am_tool in
3049   gnutar)
3050     for _am_tar in tar gnutar gtar;
3051     do
3052       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3053    ($_am_tar --version) >&5 2>&5
3054    ac_status=$?
3055    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056    (exit $ac_status); } && break
3057     done
3058     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3059     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3060     am__untar="$_am_tar -xf -"
3061     ;;
3062   plaintar)
3063     # Must skip GNU tar: if it does not support --format= it doesn't create
3064     # ustar tarball either.
3065     (tar --version) >/dev/null 2>&1 && continue
3066     am__tar='tar chf - "$$tardir"'
3067     am__tar_='tar chf - "$tardir"'
3068     am__untar='tar xf -'
3069     ;;
3070   pax)
3071     am__tar='pax -L -x ustar -w "$$tardir"'
3072     am__tar_='pax -L -x ustar -w "$tardir"'
3073     am__untar='pax -r'
3074     ;;
3075   cpio)
3076     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3077     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3078     am__untar='cpio -i -H ustar -d'
3079     ;;
3080   none)
3081     am__tar=false
3082     am__tar_=false
3083     am__untar=false
3084     ;;
3085   esac
3086
3087   # If the value was cached, stop now.  We just wanted to have am__tar
3088   # and am__untar set.
3089   test -n "${am_cv_prog_tar_ustar}" && break
3090
3091   # tar/untar a dummy directory, and stop if the command works
3092   rm -rf conftest.dir
3093   mkdir conftest.dir
3094   echo GrepMe > conftest.dir/file
3095   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3096    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3097    ac_status=$?
3098    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099    (exit $ac_status); }
3100   rm -rf conftest.dir
3101   if test -s conftest.tar; then
3102     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3103    ($am__untar <conftest.tar) >&5 2>&5
3104    ac_status=$?
3105    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106    (exit $ac_status); }
3107     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3108   fi
3109 done
3110 rm -rf conftest.dir
3111
3112 if ${am_cv_prog_tar_ustar+:} false; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   am_cv_prog_tar_ustar=$_am_tool
3116 fi
3117
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3119 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3120
3121
3122
3123
3124
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3127 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3128     # Check whether --enable-maintainer-mode was given.
3129 if test "${enable_maintainer_mode+set}" = set; then :
3130   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3131 else
3132   USE_MAINTAINER_MODE=yes
3133 fi
3134
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3136 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3137    if test $USE_MAINTAINER_MODE = yes; then
3138   MAINTAINER_MODE_TRUE=
3139   MAINTAINER_MODE_FALSE='#'
3140 else
3141   MAINTAINER_MODE_TRUE='#'
3142   MAINTAINER_MODE_FALSE=
3143 fi
3144
3145   MAINT=$MAINTAINER_MODE_TRUE
3146
3147
3148
3149 # Check whether --enable-silent-rules was given.
3150 if test "${enable_silent_rules+set}" = set; then :
3151   enableval=$enable_silent_rules;
3152 fi
3153
3154 case $enable_silent_rules in
3155 yes) AM_DEFAULT_VERBOSITY=0;;
3156 no)  AM_DEFAULT_VERBOSITY=1;;
3157 *)   AM_DEFAULT_VERBOSITY=0;;
3158 esac
3159 AM_BACKSLASH='\'
3160
3161
3162 # Check for Win32
3163 # Make sure we can run config.sub.
3164 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3165   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3166
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3168 $as_echo_n "checking build system type... " >&6; }
3169 if ${ac_cv_build+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   ac_build_alias=$build_alias
3173 test "x$ac_build_alias" = x &&
3174   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3175 test "x$ac_build_alias" = x &&
3176   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3177 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3178   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3179
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3182 $as_echo "$ac_cv_build" >&6; }
3183 case $ac_cv_build in
3184 *-*-*) ;;
3185 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3186 esac
3187 build=$ac_cv_build
3188 ac_save_IFS=$IFS; IFS='-'
3189 set x $ac_cv_build
3190 shift
3191 build_cpu=$1
3192 build_vendor=$2
3193 shift; shift
3194 # Remember, the first character of IFS is used to create $*,
3195 # except with old shells:
3196 build_os=$*
3197 IFS=$ac_save_IFS
3198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3199
3200
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3202 $as_echo_n "checking host system type... " >&6; }
3203 if ${ac_cv_host+:} false; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test "x$host_alias" = x; then
3207   ac_cv_host=$ac_cv_build
3208 else
3209   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3210     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3211 fi
3212
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3215 $as_echo "$ac_cv_host" >&6; }
3216 case $ac_cv_host in
3217 *-*-*) ;;
3218 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3219 esac
3220 host=$ac_cv_host
3221 ac_save_IFS=$IFS; IFS='-'
3222 set x $ac_cv_host
3223 shift
3224 host_cpu=$1
3225 host_vendor=$2
3226 shift; shift
3227 # Remember, the first character of IFS is used to create $*,
3228 # except with old shells:
3229 host_os=$*
3230 IFS=$ac_save_IFS
3231 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3232
3233
3234 case "$host" in
3235 *-*-mingw*)
3236         os_win32=yes
3237         ;;
3238 *)
3239         os_win32=no
3240         ;;
3241 esac
3242  if test "x$os_win32" = "xyes"; then
3243   OS_WIN32_TRUE=
3244   OS_WIN32_FALSE='#'
3245 else
3246   OS_WIN32_TRUE='#'
3247   OS_WIN32_FALSE=
3248 fi
3249
3250
3251 # Checks for programs.
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 if test -n "$ac_tool_prefix"; then
3258   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   if test -n "$CC"; then
3266   ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273     for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280   done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$ac_cv_prog_CC"; then
3297   ac_ct_CC=$CC
3298   # Extract the first word of "gcc", so it can be a program name with args.
3299 set dummy gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3303   $as_echo_n "(cached) " >&6
3304 else
3305   if test -n "$ac_ct_CC"; then
3306   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311   IFS=$as_save_IFS
3312   test -z "$as_dir" && as_dir=.
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315     ac_cv_prog_ac_ct_CC="gcc"
3316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3329 else
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334   if test "x$ac_ct_CC" = x; then
3335     CC=""
3336   else
3337     case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343     CC=$ac_ct_CC
3344   fi
3345 else
3346   CC="$ac_cv_prog_CC"
3347 fi
3348
3349 if test -z "$CC"; then
3350           if test -n "$ac_tool_prefix"; then
3351     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_CC+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$CC"; then
3359   ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_CC="${ac_tool_prefix}cc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388   fi
3389 fi
3390 if test -z "$CC"; then
3391   # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396   $as_echo_n "(cached) " >&6
3397 else
3398   if test -n "$CC"; then
3399   ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401   ac_prog_rejected=no
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3410        ac_prog_rejected=yes
3411        continue
3412      fi
3413     ac_cv_prog_CC="cc"
3414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415     break 2
3416   fi
3417 done
3418   done
3419 IFS=$as_save_IFS
3420
3421 if test $ac_prog_rejected = yes; then
3422   # We found a bogon in the path, so make sure we never use it.
3423   set dummy $ac_cv_prog_CC
3424   shift
3425   if test $# != 0; then
3426     # We chose a different compiler from the bogus one.
3427     # However, it has the same basename, so the bogon will be chosen
3428     # first if we set CC to just the basename; use the full file name.
3429     shift
3430     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3431   fi
3432 fi
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 fi
3446 if test -z "$CC"; then
3447   if test -n "$ac_tool_prefix"; then
3448   for ac_prog in cl.exe
3449   do
3450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_CC+:} false; then :
3455   $as_echo_n "(cached) " >&6
3456 else
3457   if test -n "$CC"; then
3458   ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465     for ac_exec_ext in '' $ac_executable_extensions; do
3466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472   done
3473 IFS=$as_save_IFS
3474
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486
3487     test -n "$CC" && break
3488   done
3489 fi
3490 if test -z "$CC"; then
3491   ac_ct_CC=$CC
3492   for ac_prog in cl.exe
3493 do
3494   # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$ac_ct_CC"; then
3502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_ac_ct_CC="$ac_prog"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531   test -n "$ac_ct_CC" && break
3532 done
3533
3534   if test "x$ac_ct_CC" = x; then
3535     CC=""
3536   else
3537     case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543     CC=$ac_ct_CC
3544   fi
3545 fi
3546
3547 fi
3548
3549
3550 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details" "$LINENO" 5; }
3554
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3557 set X $ac_compile
3558 ac_compiler=$2
3559 for ac_option in --version -v -V -qversion; do
3560   { { ac_try="$ac_compiler $ac_option >&5"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3568   ac_status=$?
3569   if test -s conftest.err; then
3570     sed '10a\
3571 ... rest of stderr output deleted ...
3572          10q' conftest.err >conftest.er1
3573     cat conftest.er1 >&5
3574   fi
3575   rm -f conftest.er1 conftest.err
3576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577   test $ac_status = 0; }
3578 done
3579
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h.  */
3582
3583 int
3584 main ()
3585 {
3586
3587   ;
3588   return 0;
3589 }
3590 _ACEOF
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3595 # of exeext.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3597 $as_echo_n "checking whether the C compiler works... " >&6; }
3598 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3599
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3602
3603 ac_rmfiles=
3604 for ac_file in $ac_files
3605 do
3606   case $ac_file in
3607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609   esac
3610 done
3611 rm -f $ac_rmfiles
3612
3613 if { { ac_try="$ac_link_default"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_link_default") 2>&5
3621   ac_status=$?
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }; then :
3624   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3626 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3627 # so that the user can short-circuit this test for compilers unknown to
3628 # Autoconf.
3629 for ac_file in $ac_files ''
3630 do
3631   test -f "$ac_file" || continue
3632   case $ac_file in
3633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3634         ;;
3635     [ab].out )
3636         # We found the default executable, but exeext='' is most
3637         # certainly right.
3638         break;;
3639     *.* )
3640         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3641         then :; else
3642            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3643         fi
3644         # We set ac_cv_exeext here because the later test for it is not
3645         # safe: cross compilers may not add the suffix if given an `-o'
3646         # argument, so we may need to know it at that point already.
3647         # Even if this section looks crufty: it has the advantage of
3648         # actually working.
3649         break;;
3650     * )
3651         break;;
3652   esac
3653 done
3654 test "$ac_cv_exeext" = no && ac_cv_exeext=
3655
3656 else
3657   ac_file=''
3658 fi
3659 if test -z "$ac_file"; then :
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error 77 "C compiler cannot create executables
3668 See \`config.log' for more details" "$LINENO" 5; }
3669 else
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3674 $as_echo_n "checking for C compiler default output file name... " >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3676 $as_echo "$ac_file" >&6; }
3677 ac_exeext=$ac_cv_exeext
3678
3679 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3682 $as_echo_n "checking for suffix of executables... " >&6; }
3683 if { { ac_try="$ac_link"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690   (eval "$ac_link") 2>&5
3691   ac_status=$?
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }; then :
3694   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3695 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3696 # work properly (i.e., refer to `conftest.exe'), while it won't with
3697 # `rm'.
3698 for ac_file in conftest.exe conftest conftest.*; do
3699   test -f "$ac_file" || continue
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703           break;;
3704     * ) break;;
3705   esac
3706 done
3707 else
3708   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 fi
3713 rm -f conftest conftest$ac_cv_exeext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3715 $as_echo "$ac_cv_exeext" >&6; }
3716
3717 rm -f conftest.$ac_ext
3718 EXEEXT=$ac_cv_exeext
3719 ac_exeext=$EXEEXT
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722 #include <stdio.h>
3723 int
3724 main ()
3725 {
3726 FILE *f = fopen ("conftest.out", "w");
3727  return ferror (f) || fclose (f) != 0;
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 ac_clean_files="$ac_clean_files conftest.out"
3734 # Check that the compiler produces executables we can run.  If not, either
3735 # the compiler is broken, or we cross compile.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3737 $as_echo_n "checking whether we are cross compiling... " >&6; }
3738 if test "$cross_compiling" != yes; then
3739   { { ac_try="$ac_link"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746   (eval "$ac_link") 2>&5
3747   ac_status=$?
3748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749   test $ac_status = 0; }
3750   if { ac_try='./conftest$ac_cv_exeext'
3751   { { case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757   (eval "$ac_try") 2>&5
3758   ac_status=$?
3759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760   test $ac_status = 0; }; }; then
3761     cross_compiling=no
3762   else
3763     if test "$cross_compiling" = maybe; then
3764         cross_compiling=yes
3765     else
3766         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error $? "cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details" "$LINENO" 5; }
3771     fi
3772   fi
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3776
3777 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3778 ac_clean_files=$ac_clean_files_save
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3780 $as_echo_n "checking for suffix of object files... " >&6; }
3781 if ${ac_cv_objext+:} false; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786
3787 int
3788 main ()
3789 {
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.o conftest.obj
3796 if { { ac_try="$ac_compile"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compile") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }; then :
3807   for ac_file in conftest.o conftest.obj conftest.*; do
3808   test -f "$ac_file" || continue;
3809   case $ac_file in
3810     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3811     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812        break;;
3813   esac
3814 done
3815 else
3816   $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details" "$LINENO" 5; }
3823 fi
3824 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3827 $as_echo "$ac_cv_objext" >&6; }
3828 OBJEXT=$ac_cv_objext
3829 ac_objext=$OBJEXT
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3832 if ${ac_cv_c_compiler_gnu+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841 #ifndef __GNUC__
3842        choke me
3843 #endif
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850   ac_compiler_gnu=yes
3851 else
3852   ac_compiler_gnu=no
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3856
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3859 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3861   GCC=yes
3862 else
3863   GCC=
3864 fi
3865 ac_test_CFLAGS=${CFLAGS+set}
3866 ac_save_CFLAGS=$CFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3868 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3869 if ${ac_cv_prog_cc_g+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   ac_save_c_werror_flag=$ac_c_werror_flag
3873    ac_c_werror_flag=yes
3874    ac_cv_prog_cc_g=no
3875    CFLAGS="-g"
3876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_cv_prog_cc_g=yes
3889 else
3890   CFLAGS=""
3891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893
3894 int
3895 main ()
3896 {
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903
3904 else
3905   ac_c_werror_flag=$ac_save_c_werror_flag
3906          CFLAGS="-g"
3907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919   ac_cv_prog_cc_g=yes
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926    ac_c_werror_flag=$ac_save_c_werror_flag
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3929 $as_echo "$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931   CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933   if test "$GCC" = yes; then
3934     CFLAGS="-g -O2"
3935   else
3936     CFLAGS="-g"
3937   fi
3938 else
3939   if test "$GCC" = yes; then
3940     CFLAGS="-O2"
3941   else
3942     CFLAGS=
3943   fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3946 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3947 if ${ac_cv_prog_cc_c89+:} false; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   ac_cv_prog_cc_c89=no
3951 ac_save_CC=$CC
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954 #include <stdarg.h>
3955 #include <stdio.h>
3956 #include <sys/types.h>
3957 #include <sys/stat.h>
3958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3959 struct buf { int x; };
3960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961 static char *e (p, i)
3962      char **p;
3963      int i;
3964 {
3965   return p[i];
3966 }
3967 static char *f (char * (*g) (char **, int), char **p, ...)
3968 {
3969   char *s;
3970   va_list v;
3971   va_start (v,p);
3972   s = g (p, va_arg (v,int));
3973   va_end (v);
3974   return s;
3975 }
3976
3977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3978    function prototypes and stuff, but not '\xHH' hex character constants.
3979    These don't provoke an error unfortunately, instead are silently treated
3980    as 'x'.  The following induces an error, until -std is added to get
3981    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3982    array size at least.  It's necessary to write '\x00'==0 to get something
3983    that's true only with -std.  */
3984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985
3986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987    inside strings and character constants.  */
3988 #define FOO(x) 'x'
3989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990
3991 int test (int i, double x);
3992 struct s1 {int (*f) (int a);};
3993 struct s2 {int (*f) (double a);};
3994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995 int argc;
3996 char **argv;
3997 int
3998 main ()
3999 {
4000 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007 do
4008   CC="$ac_save_CC $ac_arg"
4009   if ac_fn_c_try_compile "$LINENO"; then :
4010   ac_cv_prog_cc_c89=$ac_arg
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext
4013   test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 done
4015 rm -f conftest.$ac_ext
4016 CC=$ac_save_CC
4017
4018 fi
4019 # AC_CACHE_VAL
4020 case "x$ac_cv_prog_cc_c89" in
4021   x)
4022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;;
4024   xno)
4025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026 $as_echo "unsupported" >&6; } ;;
4027   *)
4028     CC="$CC $ac_cv_prog_cc_c89"
4029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 esac
4032 if test "x$ac_cv_prog_cc_c89" != xno; then :
4033
4034 fi
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 DEPDIR="${am__leading_dot}deps"
4042
4043 ac_config_commands="$ac_config_commands depfiles"
4044
4045
4046 am_make=${MAKE-make}
4047 cat > confinc << 'END'
4048 am__doit:
4049         @echo this is the am__doit target
4050 .PHONY: am__doit
4051 END
4052 # If we don't find an include directive, just comment out the code.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4054 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4055 am__include="#"
4056 am__quote=
4057 _am_result=none
4058 # First try GNU make style include.
4059 echo "include confinc" > confmf
4060 # Ignore all kinds of additional output from `make'.
4061 case `$am_make -s -f confmf 2> /dev/null` in #(
4062 *the\ am__doit\ target*)
4063   am__include=include
4064   am__quote=
4065   _am_result=GNU
4066   ;;
4067 esac
4068 # Now try BSD make style include.
4069 if test "$am__include" = "#"; then
4070    echo '.include "confinc"' > confmf
4071    case `$am_make -s -f confmf 2> /dev/null` in #(
4072    *the\ am__doit\ target*)
4073      am__include=.include
4074      am__quote="\""
4075      _am_result=BSD
4076      ;;
4077    esac
4078 fi
4079
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4082 $as_echo "$_am_result" >&6; }
4083 rm -f confinc confmf
4084
4085 # Check whether --enable-dependency-tracking was given.
4086 if test "${enable_dependency_tracking+set}" = set; then :
4087   enableval=$enable_dependency_tracking;
4088 fi
4089
4090 if test "x$enable_dependency_tracking" != xno; then
4091   am_depcomp="$ac_aux_dir/depcomp"
4092   AMDEPBACKSLASH='\'
4093 fi
4094  if test "x$enable_dependency_tracking" != xno; then
4095   AMDEP_TRUE=
4096   AMDEP_FALSE='#'
4097 else
4098   AMDEP_TRUE='#'
4099   AMDEP_FALSE=
4100 fi
4101
4102
4103
4104 depcc="$CC"   am_compiler_list=
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107 $as_echo_n "checking dependency style of $depcc... " >&6; }
4108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112   # We make a subdir and do the tests there.  Otherwise we can end up
4113   # making bogus files that we don't know about and never remove.  For
4114   # instance it was reported that on HP-UX the gcc test will end up
4115   # making a dummy file named `D' -- because `-MD' means `put the output
4116   # in D'.
4117   mkdir conftest.dir
4118   # Copy depcomp to subdir because otherwise we won't find it if we're
4119   # using a relative directory.
4120   cp "$am_depcomp" conftest.dir
4121   cd conftest.dir
4122   # We will build objects and dependencies in a subdirectory because
4123   # it helps to detect inapplicable dependency modes.  For instance
4124   # both Tru64's cc and ICC support -MD to output dependencies as a
4125   # side effect of compilation, but ICC will put the dependencies in
4126   # the current directory while Tru64 will put them in the object
4127   # directory.
4128   mkdir sub
4129
4130   am_cv_CC_dependencies_compiler_type=none
4131   if test "$am_compiler_list" = ""; then
4132      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4133   fi
4134   am__universal=false
4135   case " $depcc " in #(
4136      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4137      esac
4138
4139   for depmode in $am_compiler_list; do
4140     # Setup a source with many dependencies, because some compilers
4141     # like to wrap large dependency lists on column 80 (with \), and
4142     # we should not choose a depcomp mode which is confused by this.
4143     #
4144     # We need to recreate these files for each test, as the compiler may
4145     # overwrite some of them when testing with obscure command lines.
4146     # This happens at least with the AIX C compiler.
4147     : > sub/conftest.c
4148     for i in 1 2 3 4 5 6; do
4149       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4151       # Solaris 8's {/usr,}/bin/sh.
4152       touch sub/conftst$i.h
4153     done
4154     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155
4156     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4157     # mode.  It turns out that the SunPro C++ compiler does not properly
4158     # handle `-M -o', and we need to detect this.  Also, some Intel
4159     # versions had trouble with output in subdirs
4160     am__obj=sub/conftest.${OBJEXT-o}
4161     am__minus_obj="-o $am__obj"
4162     case $depmode in
4163     gcc)
4164       # This depmode causes a compiler race in universal mode.
4165       test "$am__universal" = false || continue
4166       ;;
4167     nosideeffect)
4168       # after this tag, mechanisms are not by side-effect, so they'll
4169       # only be used when explicitly requested
4170       if test "x$enable_dependency_tracking" = xyes; then
4171         continue
4172       else
4173         break
4174       fi
4175       ;;
4176     msvisualcpp | msvcmsys)
4177       # This compiler won't grok `-c -o', but also, the minuso test has
4178       # not run yet.  These depmodes are late enough in the game, and
4179       # so weak that their functioning should not be impacted.
4180       am__obj=conftest.${OBJEXT-o}
4181       am__minus_obj=
4182       ;;
4183     none) break ;;
4184     esac
4185     if depmode=$depmode \
4186        source=sub/conftest.c object=$am__obj \
4187        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4188        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4189          >/dev/null 2>conftest.err &&
4190        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4191        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4192        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4193        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4194       # icc doesn't choke on unknown options, it will just issue warnings
4195       # or remarks (even with -Werror).  So we grep stderr for any message
4196       # that says an option was ignored or not supported.
4197       # When given -MP, icc 7.0 and 7.1 complain thusly:
4198       #   icc: Command line warning: ignoring option '-M'; no argument required
4199       # The diagnosis changed in icc 8.0:
4200       #   icc: Command line remark: option '-MP' not supported
4201       if (grep 'ignoring option' conftest.err ||
4202           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4203         am_cv_CC_dependencies_compiler_type=$depmode
4204         break
4205       fi
4206     fi
4207   done
4208
4209   cd ..
4210   rm -rf conftest.dir
4211 else
4212   am_cv_CC_dependencies_compiler_type=none
4213 fi
4214
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4217 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4218 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4219
4220  if
4221   test "x$enable_dependency_tracking" != xno \
4222   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223   am__fastdepCC_TRUE=
4224   am__fastdepCC_FALSE='#'
4225 else
4226   am__fastdepCC_TRUE='#'
4227   am__fastdepCC_FALSE=
4228 fi
4229
4230
4231 if test "x$CC" != xcc; then
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4233 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4234 else
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4236 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4237 fi
4238 set dummy $CC; ac_cc=`$as_echo "$2" |
4239                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4240 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 # Make sure it works both with $CC and with simple cc.
4255 # We do the test twice because some compilers refuse to overwrite an
4256 # existing .o file with -o, though they will create one.
4257 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4258 rm -f conftest2.*
4259 if { { case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264 $as_echo "$ac_try_echo"; } >&5
4265   (eval "$ac_try") 2>&5
4266   ac_status=$?
4267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268   test $ac_status = 0; } &&
4269    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278   test $ac_status = 0; };
4279 then
4280   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4281   if test "x$CC" != xcc; then
4282     # Test first that cc exists at all.
4283     if { ac_try='cc -c conftest.$ac_ext >&5'
4284   { { case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293   test $ac_status = 0; }; }; then
4294       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4295       rm -f conftest2.*
4296       if { { case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305   test $ac_status = 0; } &&
4306          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; };
4316       then
4317         # cc works too.
4318         :
4319       else
4320         # cc exists but doesn't like -o.
4321         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4322       fi
4323     fi
4324   fi
4325 else
4326   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4327 fi
4328 rm -f core conftest*
4329
4330 fi
4331 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4333 $as_echo "yes" >&6; }
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337
4338 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4339
4340 fi
4341
4342 # FIXME: we rely on the cache variable name because
4343 # there is no other way.
4344 set dummy $CC
4345 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4346 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4347 if test "$am_t" != yes; then
4348    # Losing compiler, so override with the script.
4349    # FIXME: It is wrong to rewrite CC.
4350    # But if we don't then we get into trouble of one sort or another.
4351    # A longer-term fix would be to have automake use am__CC in this case,
4352    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4353    CC="$am_aux_dir/compile $CC"
4354 fi
4355
4356
4357
4358 # Initialize libtool
4359
4360 case `pwd` in
4361   *\ * | *\     *)
4362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4363 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4364 esac
4365
4366
4367
4368 macro_version='2.4'
4369 macro_revision='1.3293'
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383 ltmain="$ac_aux_dir/ltmain.sh"
4384
4385 # Backslashify metacharacters that are still active within
4386 # double-quoted strings.
4387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4388
4389 # Same as above, but do not quote variable references.
4390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4391
4392 # Sed substitution to delay expansion of an escaped shell variable in a
4393 # double_quote_subst'ed string.
4394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4395
4396 # Sed substitution to delay expansion of an escaped single quote.
4397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4398
4399 # Sed substitution to avoid accidental globbing in evaled expressions
4400 no_glob_subst='s/\*/\\\*/g'
4401
4402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4407 $as_echo_n "checking how to print strings... " >&6; }
4408 # Test print first, because it will be a builtin if present.
4409 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4410    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4411   ECHO='print -r --'
4412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4413   ECHO='printf %s\n'
4414 else
4415   # Use this function as a fallback that always works.
4416   func_fallback_echo ()
4417   {
4418     eval 'cat <<_LTECHO_EOF
4419 $1
4420 _LTECHO_EOF'
4421   }
4422   ECHO='func_fallback_echo'
4423 fi
4424
4425 # func_echo_all arg...
4426 # Invoke $ECHO with all args, space-separated.
4427 func_echo_all ()
4428 {
4429     $ECHO ""
4430 }
4431
4432 case "$ECHO" in
4433   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4434 $as_echo "printf" >&6; } ;;
4435   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4436 $as_echo "print -r" >&6; } ;;
4437   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4438 $as_echo "cat" >&6; } ;;
4439 esac
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4456 if ${ac_cv_path_SED+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4460      for ac_i in 1 2 3 4 5 6 7; do
4461        ac_script="$ac_script$as_nl$ac_script"
4462      done
4463      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4464      { ac_script=; unset ac_script;}
4465      if test -z "$SED"; then
4466   ac_path_SED_found=false
4467   # Loop through the user's path and test for each of PROGNAME-LIST
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473     for ac_prog in sed gsed; do
4474     for ac_exec_ext in '' $ac_executable_extensions; do
4475       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4476       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4477 # Check for GNU ac_path_SED and select it if it is found.
4478   # Check for GNU $ac_path_SED
4479 case `"$ac_path_SED" --version 2>&1` in
4480 *GNU*)
4481   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4482 *)
4483   ac_count=0
4484   $as_echo_n 0123456789 >"conftest.in"
4485   while :
4486   do
4487     cat "conftest.in" "conftest.in" >"conftest.tmp"
4488     mv "conftest.tmp" "conftest.in"
4489     cp "conftest.in" "conftest.nl"
4490     $as_echo '' >> "conftest.nl"
4491     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493     as_fn_arith $ac_count + 1 && ac_count=$as_val
4494     if test $ac_count -gt ${ac_path_SED_max-0}; then
4495       # Best one so far, save it but keep looking for a better one
4496       ac_cv_path_SED="$ac_path_SED"
4497       ac_path_SED_max=$ac_count
4498     fi
4499     # 10*(2^10) chars as input seems more than enough
4500     test $ac_count -gt 10 && break
4501   done
4502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 esac
4504
4505       $ac_path_SED_found && break 3
4506     done
4507   done
4508   done
4509 IFS=$as_save_IFS
4510   if test -z "$ac_cv_path_SED"; then
4511     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4512   fi
4513 else
4514   ac_cv_path_SED=$SED
4515 fi
4516
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4519 $as_echo "$ac_cv_path_SED" >&6; }
4520  SED="$ac_cv_path_SED"
4521   rm -f conftest.sed
4522
4523 test -z "$SED" && SED=sed
4524 Xsed="$SED -e 1s/^X//"
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -z "$GREP"; then
4542   ac_path_GREP_found=false
4543   # Loop through the user's path and test for each of PROGNAME-LIST
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_prog in grep ggrep; do
4550     for ac_exec_ext in '' $ac_executable_extensions; do
4551       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554   # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4558 *)
4559   ac_count=0
4560   $as_echo_n 0123456789 >"conftest.in"
4561   while :
4562   do
4563     cat "conftest.in" "conftest.in" >"conftest.tmp"
4564     mv "conftest.tmp" "conftest.in"
4565     cp "conftest.in" "conftest.nl"
4566     $as_echo 'GREP' >> "conftest.nl"
4567     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569     as_fn_arith $ac_count + 1 && ac_count=$as_val
4570     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571       # Best one so far, save it but keep looking for a better one
4572       ac_cv_path_GREP="$ac_path_GREP"
4573       ac_path_GREP_max=$ac_count
4574     fi
4575     # 10*(2^10) chars as input seems more than enough
4576     test $ac_count -gt 10 && break
4577   done
4578   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581       $ac_path_GREP_found && break 3
4582     done
4583   done
4584   done
4585 IFS=$as_save_IFS
4586   if test -z "$ac_cv_path_GREP"; then
4587     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4588   fi
4589 else
4590   ac_cv_path_GREP=$GREP
4591 fi
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596  GREP="$ac_cv_path_GREP"
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605    then ac_cv_path_EGREP="$GREP -E"
4606    else
4607      if test -z "$EGREP"; then
4608   ac_path_EGREP_found=false
4609   # Loop through the user's path and test for each of PROGNAME-LIST
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4612 do
4613   IFS=$as_save_IFS
4614   test -z "$as_dir" && as_dir=.
4615     for ac_prog in egrep; do
4616     for ac_exec_ext in '' $ac_executable_extensions; do
4617       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620   # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4624 *)
4625   ac_count=0
4626   $as_echo_n 0123456789 >"conftest.in"
4627   while :
4628   do
4629     cat "conftest.in" "conftest.in" >"conftest.tmp"
4630     mv "conftest.tmp" "conftest.in"
4631     cp "conftest.in" "conftest.nl"
4632     $as_echo 'EGREP' >> "conftest.nl"
4633     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635     as_fn_arith $ac_count + 1 && ac_count=$as_val
4636     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637       # Best one so far, save it but keep looking for a better one
4638       ac_cv_path_EGREP="$ac_path_EGREP"
4639       ac_path_EGREP_max=$ac_count
4640     fi
4641     # 10*(2^10) chars as input seems more than enough
4642     test $ac_count -gt 10 && break
4643   done
4644   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4646
4647       $ac_path_EGREP_found && break 3
4648     done
4649   done
4650   done
4651 IFS=$as_save_IFS
4652   if test -z "$ac_cv_path_EGREP"; then
4653     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654   fi
4655 else
4656   ac_cv_path_EGREP=$EGREP
4657 fi
4658
4659    fi
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663  EGREP="$ac_cv_path_EGREP"
4664
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4667 $as_echo_n "checking for fgrep... " >&6; }
4668 if ${ac_cv_path_FGREP+:} false; then :
4669   $as_echo_n "(cached) " >&6
4670 else
4671   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4672    then ac_cv_path_FGREP="$GREP -F"
4673    else
4674      if test -z "$FGREP"; then
4675   ac_path_FGREP_found=false
4676   # Loop through the user's path and test for each of PROGNAME-LIST
4677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682     for ac_prog in fgrep; do
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4685       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4686 # Check for GNU ac_path_FGREP and select it if it is found.
4687   # Check for GNU $ac_path_FGREP
4688 case `"$ac_path_FGREP" --version 2>&1` in
4689 *GNU*)
4690   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4691 *)
4692   ac_count=0
4693   $as_echo_n 0123456789 >"conftest.in"
4694   while :
4695   do
4696     cat "conftest.in" "conftest.in" >"conftest.tmp"
4697     mv "conftest.tmp" "conftest.in"
4698     cp "conftest.in" "conftest.nl"
4699     $as_echo 'FGREP' >> "conftest.nl"
4700     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702     as_fn_arith $ac_count + 1 && ac_count=$as_val
4703     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4704       # Best one so far, save it but keep looking for a better one
4705       ac_cv_path_FGREP="$ac_path_FGREP"
4706       ac_path_FGREP_max=$ac_count
4707     fi
4708     # 10*(2^10) chars as input seems more than enough
4709     test $ac_count -gt 10 && break
4710   done
4711   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4712 esac
4713
4714       $ac_path_FGREP_found && break 3
4715     done
4716   done
4717   done
4718 IFS=$as_save_IFS
4719   if test -z "$ac_cv_path_FGREP"; then
4720     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4721   fi
4722 else
4723   ac_cv_path_FGREP=$FGREP
4724 fi
4725
4726    fi
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4729 $as_echo "$ac_cv_path_FGREP" >&6; }
4730  FGREP="$ac_cv_path_FGREP"
4731
4732
4733 test -z "$GREP" && GREP=grep
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 # Check whether --with-gnu-ld was given.
4754 if test "${with_gnu_ld+set}" = set; then :
4755   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4756 else
4757   with_gnu_ld=no
4758 fi
4759
4760 ac_prog=ld
4761 if test "$GCC" = yes; then
4762   # Check if gcc -print-prog-name=ld gives a path.
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4764 $as_echo_n "checking for ld used by $CC... " >&6; }
4765   case $host in
4766   *-*-mingw*)
4767     # gcc leaves a trailing carriage return which upsets mingw
4768     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4769   *)
4770     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4771   esac
4772   case $ac_prog in
4773     # Accept absolute paths.
4774     [\\/]* | ?:[\\/]*)
4775       re_direlt='/[^/][^/]*/\.\./'
4776       # Canonicalize the pathname of ld
4777       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4778       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4779         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4780       done
4781       test -z "$LD" && LD="$ac_prog"
4782       ;;
4783   "")
4784     # If it fails, then pretend we aren't using GCC.
4785     ac_prog=ld
4786     ;;
4787   *)
4788     # If it is relative, then search for the first ld in PATH.
4789     with_gnu_ld=unknown
4790     ;;
4791   esac
4792 elif test "$with_gnu_ld" = yes; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4794 $as_echo_n "checking for GNU ld... " >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4797 $as_echo_n "checking for non-GNU ld... " >&6; }
4798 fi
4799 if ${lt_cv_path_LD+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   if test -z "$LD"; then
4803   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4804   for ac_dir in $PATH; do
4805     IFS="$lt_save_ifs"
4806     test -z "$ac_dir" && ac_dir=.
4807     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4808       lt_cv_path_LD="$ac_dir/$ac_prog"
4809       # Check to see if the program is GNU ld.  I'd rather use --version,
4810       # but apparently some variants of GNU ld only accept -v.
4811       # Break only if it was the GNU/non-GNU ld that we prefer.
4812       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4813       *GNU* | *'with BFD'*)
4814         test "$with_gnu_ld" != no && break
4815         ;;
4816       *)
4817         test "$with_gnu_ld" != yes && break
4818         ;;
4819       esac
4820     fi
4821   done
4822   IFS="$lt_save_ifs"
4823 else
4824   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4825 fi
4826 fi
4827
4828 LD="$lt_cv_path_LD"
4829 if test -n "$LD"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4831 $as_echo "$LD" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4839 if ${lt_cv_prog_gnu_ld+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4843 case `$LD -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845   lt_cv_prog_gnu_ld=yes
4846   ;;
4847 *)
4848   lt_cv_prog_gnu_ld=no
4849   ;;
4850 esac
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4854 with_gnu_ld=$lt_cv_prog_gnu_ld
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4865 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4866 if ${lt_cv_path_NM+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$NM"; then
4870   # Let the user override the test.
4871   lt_cv_path_NM="$NM"
4872 else
4873   lt_nm_to_check="${ac_tool_prefix}nm"
4874   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4875     lt_nm_to_check="$lt_nm_to_check nm"
4876   fi
4877   for lt_tmp_nm in $lt_nm_to_check; do
4878     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4879     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4880       IFS="$lt_save_ifs"
4881       test -z "$ac_dir" && ac_dir=.
4882       tmp_nm="$ac_dir/$lt_tmp_nm"
4883       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4884         # Check to see if the nm accepts a BSD-compat flag.
4885         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4886         #   nm: unknown option "B" ignored
4887         # Tru64's nm complains that /dev/null is an invalid object file
4888         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4889         */dev/null* | *'Invalid file or object type'*)
4890           lt_cv_path_NM="$tmp_nm -B"
4891           break
4892           ;;
4893         *)
4894           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4895           */dev/null*)
4896             lt_cv_path_NM="$tmp_nm -p"
4897             break
4898             ;;
4899           *)
4900             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4901             continue # so that we can try to find one that supports BSD flags
4902             ;;
4903           esac
4904           ;;
4905         esac
4906       fi
4907     done
4908     IFS="$lt_save_ifs"
4909   done
4910   : ${lt_cv_path_NM=no}
4911 fi
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4914 $as_echo "$lt_cv_path_NM" >&6; }
4915 if test "$lt_cv_path_NM" != "no"; then
4916   NM="$lt_cv_path_NM"
4917 else
4918   # Didn't find any BSD compatible name lister, look for dumpbin.
4919   if test -n "$DUMPBIN"; then :
4920     # Let the user override the test.
4921   else
4922     if test -n "$ac_tool_prefix"; then
4923   for ac_prog in dumpbin "link -dump"
4924   do
4925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_DUMPBIN+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   if test -n "$DUMPBIN"; then
4933   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 DUMPBIN=$ac_cv_prog_DUMPBIN
4953 if test -n "$DUMPBIN"; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4955 $as_echo "$DUMPBIN" >&6; }
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960
4961
4962     test -n "$DUMPBIN" && break
4963   done
4964 fi
4965 if test -z "$DUMPBIN"; then
4966   ac_ct_DUMPBIN=$DUMPBIN
4967   for ac_prog in dumpbin "link -dump"
4968 do
4969   # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$ac_ct_DUMPBIN"; then
4977   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4997 if test -n "$ac_ct_DUMPBIN"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4999 $as_echo "$ac_ct_DUMPBIN" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005
5006   test -n "$ac_ct_DUMPBIN" && break
5007 done
5008
5009   if test "x$ac_ct_DUMPBIN" = x; then
5010     DUMPBIN=":"
5011   else
5012     case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016 ac_tool_warned=yes ;;
5017 esac
5018     DUMPBIN=$ac_ct_DUMPBIN
5019   fi
5020 fi
5021
5022     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5023     *COFF*)
5024       DUMPBIN="$DUMPBIN -symbols"
5025       ;;
5026     *)
5027       DUMPBIN=:
5028       ;;
5029     esac
5030   fi
5031
5032   if test "$DUMPBIN" != ":"; then
5033     NM="$DUMPBIN"
5034   fi
5035 fi
5036 test -z "$NM" && NM=nm
5037
5038
5039
5040
5041
5042
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5044 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5045 if ${lt_cv_nm_interface+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   lt_cv_nm_interface="BSD nm"
5049   echo "int some_variable = 0;" > conftest.$ac_ext
5050   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5051   (eval "$ac_compile" 2>conftest.err)
5052   cat conftest.err >&5
5053   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5054   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5055   cat conftest.err >&5
5056   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5057   cat conftest.out >&5
5058   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5059     lt_cv_nm_interface="MS dumpbin"
5060   fi
5061   rm -f conftest*
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5064 $as_echo "$lt_cv_nm_interface" >&6; }
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5067 $as_echo_n "checking whether ln -s works... " >&6; }
5068 LN_S=$as_ln_s
5069 if test "$LN_S" = "ln -s"; then
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 else
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5074 $as_echo "no, using $LN_S" >&6; }
5075 fi
5076
5077 # find the maximum length of command line arguments
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5079 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5080 if ${lt_cv_sys_max_cmd_len+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083     i=0
5084   teststring="ABCD"
5085
5086   case $build_os in
5087   msdosdjgpp*)
5088     # On DJGPP, this test can blow up pretty badly due to problems in libc
5089     # (any single argument exceeding 2000 bytes causes a buffer overrun
5090     # during glob expansion).  Even if it were fixed, the result of this
5091     # check would be larger than it should be.
5092     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5093     ;;
5094
5095   gnu*)
5096     # Under GNU Hurd, this test is not required because there is
5097     # no limit to the length of command line arguments.
5098     # Libtool will interpret -1 as no limit whatsoever
5099     lt_cv_sys_max_cmd_len=-1;
5100     ;;
5101
5102   cygwin* | mingw* | cegcc*)
5103     # On Win9x/ME, this test blows up -- it succeeds, but takes
5104     # about 5 minutes as the teststring grows exponentially.
5105     # Worse, since 9x/ME are not pre-emptively multitasking,
5106     # you end up with a "frozen" computer, even though with patience
5107     # the test eventually succeeds (with a max line length of 256k).
5108     # Instead, let's just punt: use the minimum linelength reported by
5109     # all of the supported platforms: 8192 (on NT/2K/XP).
5110     lt_cv_sys_max_cmd_len=8192;
5111     ;;
5112
5113   mint*)
5114     # On MiNT this can take a long time and run out of memory.
5115     lt_cv_sys_max_cmd_len=8192;
5116     ;;
5117
5118   amigaos*)
5119     # On AmigaOS with pdksh, this test takes hours, literally.
5120     # So we just punt and use a minimum line length of 8192.
5121     lt_cv_sys_max_cmd_len=8192;
5122     ;;
5123
5124   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5125     # This has been around since 386BSD, at least.  Likely further.
5126     if test -x /sbin/sysctl; then
5127       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5128     elif test -x /usr/sbin/sysctl; then
5129       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5130     else
5131       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5132     fi
5133     # And add a safety zone
5134     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5135     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5136     ;;
5137
5138   interix*)
5139     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5140     lt_cv_sys_max_cmd_len=196608
5141     ;;
5142
5143   osf*)
5144     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5145     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5146     # nice to cause kernel panics so lets avoid the loop below.
5147     # First set a reasonable default.
5148     lt_cv_sys_max_cmd_len=16384
5149     #
5150     if test -x /sbin/sysconfig; then
5151       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5152         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5153       esac
5154     fi
5155     ;;
5156   sco3.2v5*)
5157     lt_cv_sys_max_cmd_len=102400
5158     ;;
5159   sysv5* | sco5v6* | sysv4.2uw2*)
5160     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5161     if test -n "$kargmax"; then
5162       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5163     else
5164       lt_cv_sys_max_cmd_len=32768
5165     fi
5166     ;;
5167   *)
5168     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5169     if test -n "$lt_cv_sys_max_cmd_len"; then
5170       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5171       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5172     else
5173       # Make teststring a little bigger before we do anything with it.
5174       # a 1K string should be a reasonable start.
5175       for i in 1 2 3 4 5 6 7 8 ; do
5176         teststring=$teststring$teststring
5177       done
5178       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5179       # If test is not a shell built-in, we'll probably end up computing a
5180       # maximum length that is only half of the actual maximum length, but
5181       # we can't tell.
5182       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5183                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5184               test $i != 17 # 1/2 MB should be enough
5185       do
5186         i=`expr $i + 1`
5187         teststring=$teststring$teststring
5188       done
5189       # Only check the string length outside the loop.
5190       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5191       teststring=
5192       # Add a significant safety factor because C++ compilers can tack on
5193       # massive amounts of additional arguments before passing them to the
5194       # linker.  It appears as though 1/2 is a usable value.
5195       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5196     fi
5197     ;;
5198   esac
5199
5200 fi
5201
5202 if test -n $lt_cv_sys_max_cmd_len ; then
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5204 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5205 else
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5207 $as_echo "none" >&6; }
5208 fi
5209 max_cmd_len=$lt_cv_sys_max_cmd_len
5210
5211
5212
5213
5214
5215
5216 : ${CP="cp -f"}
5217 : ${MV="mv -f"}
5218 : ${RM="rm -f"}
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5221 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5222 # Try some XSI features
5223 xsi_shell=no
5224 ( _lt_dummy="a/b/c"
5225   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5226       = c,a/b,b/c, \
5227     && eval 'test $(( 1 + 1 )) -eq 2 \
5228     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5229   && xsi_shell=yes
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5231 $as_echo "$xsi_shell" >&6; }
5232
5233
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5235 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5236 lt_shell_append=no
5237 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5238     >/dev/null 2>&1 \
5239   && lt_shell_append=yes
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5241 $as_echo "$lt_shell_append" >&6; }
5242
5243
5244 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5245   lt_unset=unset
5246 else
5247   lt_unset=false
5248 fi
5249
5250
5251
5252
5253
5254 # test EBCDIC or ASCII
5255 case `echo X|tr X '\101'` in
5256  A) # ASCII based system
5257     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5258   lt_SP2NL='tr \040 \012'
5259   lt_NL2SP='tr \015\012 \040\040'
5260   ;;
5261  *) # EBCDIC based system
5262   lt_SP2NL='tr \100 \n'
5263   lt_NL2SP='tr \r\n \100\100'
5264   ;;
5265 esac
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5276 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5277 if ${lt_cv_to_host_file_cmd+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   case $host in
5281   *-*-mingw* )
5282     case $build in
5283       *-*-mingw* ) # actually msys
5284         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5285         ;;
5286       *-*-cygwin* )
5287         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5288         ;;
5289       * ) # otherwise, assume *nix
5290         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5291         ;;
5292     esac
5293     ;;
5294   *-*-cygwin* )
5295     case $build in
5296       *-*-mingw* ) # actually msys
5297         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5298         ;;
5299       *-*-cygwin* )
5300         lt_cv_to_host_file_cmd=func_convert_file_noop
5301         ;;
5302       * ) # otherwise, assume *nix
5303         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5304         ;;
5305     esac
5306     ;;
5307   * ) # unhandled hosts (and "normal" native builds)
5308     lt_cv_to_host_file_cmd=func_convert_file_noop
5309     ;;
5310 esac
5311
5312 fi
5313
5314 to_host_file_cmd=$lt_cv_to_host_file_cmd
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5316 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5317
5318
5319
5320
5321
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5323 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5324 if ${lt_cv_to_tool_file_cmd+:} false; then :
5325   $as_echo_n "(cached) " >&6
5326 else
5327   #assume ordinary cross tools, or native build.
5328 lt_cv_to_tool_file_cmd=func_convert_file_noop
5329 case $host in
5330   *-*-mingw* )
5331     case $build in
5332       *-*-mingw* ) # actually msys
5333         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5334         ;;
5335     esac
5336     ;;
5337 esac
5338
5339 fi
5340
5341 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5343 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5344
5345
5346
5347
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5350 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5351 if ${lt_cv_ld_reload_flag+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   lt_cv_ld_reload_flag='-r'
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5357 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5358 reload_flag=$lt_cv_ld_reload_flag
5359 case $reload_flag in
5360 "" | " "*) ;;
5361 *) reload_flag=" $reload_flag" ;;
5362 esac
5363 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5364 case $host_os in
5365   cygwin* | mingw* | pw32* | cegcc*)
5366     if test "$GCC" != yes; then
5367       reload_cmds=false
5368     fi
5369     ;;
5370   darwin*)
5371     if test "$GCC" = yes; then
5372       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5373     else
5374       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5375     fi
5376     ;;
5377 esac
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 if test -n "$ac_tool_prefix"; then
5388   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_OBJDUMP+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -n "$OBJDUMP"; then
5396   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412
5413 fi
5414 fi
5415 OBJDUMP=$ac_cv_prog_OBJDUMP
5416 if test -n "$OBJDUMP"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5418 $as_echo "$OBJDUMP" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424
5425 fi
5426 if test -z "$ac_cv_prog_OBJDUMP"; then
5427   ac_ct_OBJDUMP=$OBJDUMP
5428   # Extract the first word of "objdump", so it can be a program name with args.
5429 set dummy objdump; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   if test -n "$ac_ct_OBJDUMP"; then
5436   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453 fi
5454 fi
5455 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5456 if test -n "$ac_ct_OBJDUMP"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5458 $as_echo "$ac_ct_OBJDUMP" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464   if test "x$ac_ct_OBJDUMP" = x; then
5465     OBJDUMP="false"
5466   else
5467     case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5471 ac_tool_warned=yes ;;
5472 esac
5473     OBJDUMP=$ac_ct_OBJDUMP
5474   fi
5475 else
5476   OBJDUMP="$ac_cv_prog_OBJDUMP"
5477 fi
5478
5479 test -z "$OBJDUMP" && OBJDUMP=objdump
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5490 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5491 if ${lt_cv_deplibs_check_method+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   lt_cv_file_magic_cmd='$MAGIC_CMD'
5495 lt_cv_file_magic_test_file=
5496 lt_cv_deplibs_check_method='unknown'
5497 # Need to set the preceding variable on all platforms that support
5498 # interlibrary dependencies.
5499 # 'none' -- dependencies not supported.
5500 # `unknown' -- same as none, but documents that we really don't know.
5501 # 'pass_all' -- all dependencies passed with no checks.
5502 # 'test_compile' -- check by making test program.
5503 # 'file_magic [[regex]]' -- check by looking for files in library path
5504 # which responds to the $file_magic_cmd with a given extended regex.
5505 # If you have `file' or equivalent on your system and you're not sure
5506 # whether `pass_all' will *always* work, you probably want this one.
5507
5508 case $host_os in
5509 aix[4-9]*)
5510   lt_cv_deplibs_check_method=pass_all
5511   ;;
5512
5513 beos*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 bsdi[45]*)
5518   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5519   lt_cv_file_magic_cmd='/usr/bin/file -L'
5520   lt_cv_file_magic_test_file=/shlib/libc.so
5521   ;;
5522
5523 cygwin*)
5524   # func_win32_libid is a shell function defined in ltmain.sh
5525   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526   lt_cv_file_magic_cmd='func_win32_libid'
5527   ;;
5528
5529 mingw* | pw32*)
5530   # Base MSYS/MinGW do not provide the 'file' command needed by
5531   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5532   # unless we find 'file', for example because we are cross-compiling.
5533   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5534   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5535     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536     lt_cv_file_magic_cmd='func_win32_libid'
5537   else
5538     # Keep this pattern in sync with the one in func_win32_libid.
5539     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5540     lt_cv_file_magic_cmd='$OBJDUMP -f'
5541   fi
5542   ;;
5543
5544 cegcc*)
5545   # use the weaker test based on 'objdump'. See mingw*.
5546   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5547   lt_cv_file_magic_cmd='$OBJDUMP -f'
5548   ;;
5549
5550 darwin* | rhapsody*)
5551   lt_cv_deplibs_check_method=pass_all
5552   ;;
5553
5554 freebsd* | dragonfly*)
5555   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5556     case $host_cpu in
5557     i*86 )
5558       # Not sure whether the presence of OpenBSD here was a mistake.
5559       # Let's accept both of them until this is cleared up.
5560       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5561       lt_cv_file_magic_cmd=/usr/bin/file
5562       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5563       ;;
5564     esac
5565   else
5566     lt_cv_deplibs_check_method=pass_all
5567   fi
5568   ;;
5569
5570 gnu*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 haiku*)
5575   lt_cv_deplibs_check_method=pass_all
5576   ;;
5577
5578 hpux10.20* | hpux11*)
5579   lt_cv_file_magic_cmd=/usr/bin/file
5580   case $host_cpu in
5581   ia64*)
5582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5583     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5584     ;;
5585   hppa*64*)
5586     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]'
5587     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5588     ;;
5589   *)
5590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5591     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5592     ;;
5593   esac
5594   ;;
5595
5596 interix[3-9]*)
5597   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5598   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5599   ;;
5600
5601 irix5* | irix6* | nonstopux*)
5602   case $LD in
5603   *-32|*"-32 ") libmagic=32-bit;;
5604   *-n32|*"-n32 ") libmagic=N32;;
5605   *-64|*"-64 ") libmagic=64-bit;;
5606   *) libmagic=never-match;;
5607   esac
5608   lt_cv_deplibs_check_method=pass_all
5609   ;;
5610
5611 # This must be Linux ELF.
5612 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 netbsd*)
5617   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619   else
5620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5621   fi
5622   ;;
5623
5624 newos6*)
5625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5626   lt_cv_file_magic_cmd=/usr/bin/file
5627   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5628   ;;
5629
5630 *nto* | *qnx*)
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 openbsd*)
5635   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5637   else
5638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639   fi
5640   ;;
5641
5642 osf3* | osf4* | osf5*)
5643   lt_cv_deplibs_check_method=pass_all
5644   ;;
5645
5646 rdos*)
5647   lt_cv_deplibs_check_method=pass_all
5648   ;;
5649
5650 solaris*)
5651   lt_cv_deplibs_check_method=pass_all
5652   ;;
5653
5654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 sysv4 | sysv4.3*)
5659   case $host_vendor in
5660   motorola)
5661     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]'
5662     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5663     ;;
5664   ncr)
5665     lt_cv_deplibs_check_method=pass_all
5666     ;;
5667   sequent)
5668     lt_cv_file_magic_cmd='/bin/file'
5669     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5670     ;;
5671   sni)
5672     lt_cv_file_magic_cmd='/bin/file'
5673     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5674     lt_cv_file_magic_test_file=/lib/libc.so
5675     ;;
5676   siemens)
5677     lt_cv_deplibs_check_method=pass_all
5678     ;;
5679   pc)
5680     lt_cv_deplibs_check_method=pass_all
5681     ;;
5682   esac
5683   ;;
5684
5685 tpf*)
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688 esac
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5693
5694 file_magic_glob=
5695 want_nocaseglob=no
5696 if test "$build" = "$host"; then
5697   case $host_os in
5698   mingw* | pw32*)
5699     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5700       want_nocaseglob=yes
5701     else
5702       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5703     fi
5704     ;;
5705   esac
5706 fi
5707
5708 file_magic_cmd=$lt_cv_file_magic_cmd
5709 deplibs_check_method=$lt_cv_deplibs_check_method
5710 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 if test -n "$ac_tool_prefix"; then
5734   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5735 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_DLLTOOL+:} false; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   if test -n "$DLLTOOL"; then
5742   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749     for ac_exec_ext in '' $ac_executable_extensions; do
5750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753     break 2
5754   fi
5755 done
5756   done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 DLLTOOL=$ac_cv_prog_DLLTOOL
5762 if test -n "$DLLTOOL"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5764 $as_echo "$DLLTOOL" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 fi
5772 if test -z "$ac_cv_prog_DLLTOOL"; then
5773   ac_ct_DLLTOOL=$DLLTOOL
5774   # Extract the first word of "dlltool", so it can be a program name with args.
5775 set dummy dlltool; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   if test -n "$ac_ct_DLLTOOL"; then
5782   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5802 if test -n "$ac_ct_DLLTOOL"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5804 $as_echo "$ac_ct_DLLTOOL" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810   if test "x$ac_ct_DLLTOOL" = x; then
5811     DLLTOOL="false"
5812   else
5813     case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819     DLLTOOL=$ac_ct_DLLTOOL
5820   fi
5821 else
5822   DLLTOOL="$ac_cv_prog_DLLTOOL"
5823 fi
5824
5825 test -z "$DLLTOOL" && DLLTOOL=dlltool
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5837 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5838 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   lt_cv_sharedlib_from_linklib_cmd='unknown'
5842
5843 case $host_os in
5844 cygwin* | mingw* | pw32* | cegcc*)
5845   # two different shell functions defined in ltmain.sh
5846   # decide which to use based on capabilities of $DLLTOOL
5847   case `$DLLTOOL --help 2>&1` in
5848   *--identify-strict*)
5849     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5850     ;;
5851   *)
5852     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5853     ;;
5854   esac
5855   ;;
5856 *)
5857   # fallback: assume linklib IS sharedlib
5858   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5859   ;;
5860 esac
5861
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5864 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5865 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5866 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5867
5868
5869
5870
5871
5872
5873
5874
5875 if test -n "$ac_tool_prefix"; then
5876   for ac_prog in ar
5877   do
5878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_AR+:} false; then :
5883   $as_echo_n "(cached) " >&6
5884 else
5885   if test -n "$AR"; then
5886   ac_cv_prog_AR="$AR" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893     for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900   done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 AR=$ac_cv_prog_AR
5906 if test -n "$AR"; then
5907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5908 $as_echo "$AR" >&6; }
5909 else
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914
5915     test -n "$AR" && break
5916   done
5917 fi
5918 if test -z "$AR"; then
5919   ac_ct_AR=$AR
5920   for ac_prog in ar
5921 do
5922   # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   if test -n "$ac_ct_AR"; then
5930   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937     for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_prog_ac_ct_AR="$ac_prog"
5940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944   done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950 if test -n "$ac_ct_AR"; then
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5952 $as_echo "$ac_ct_AR" >&6; }
5953 else
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957
5958
5959   test -n "$ac_ct_AR" && break
5960 done
5961
5962   if test "x$ac_ct_AR" = x; then
5963     AR="false"
5964   else
5965     case $cross_compiling:$ac_tool_warned in
5966 yes:)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969 ac_tool_warned=yes ;;
5970 esac
5971     AR=$ac_ct_AR
5972   fi
5973 fi
5974
5975 : ${AR=ar}
5976 : ${AR_FLAGS=cru}
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5989 $as_echo_n "checking for archiver @FILE support... " >&6; }
5990 if ${lt_cv_ar_at_file+:} false; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993   lt_cv_ar_at_file=no
5994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h.  */
5996
5997 int
5998 main ()
5999 {
6000
6001   ;
6002   return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006   echo conftest.$ac_objext > conftest.lst
6007       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6008       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6009   (eval $lt_ar_try) 2>&5
6010   ac_status=$?
6011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012   test $ac_status = 0; }
6013       if test "$ac_status" -eq 0; then
6014         # Ensure the archiver fails upon bogus file names.
6015         rm -f conftest.$ac_objext libconftest.a
6016         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6017   (eval $lt_ar_try) 2>&5
6018   ac_status=$?
6019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020   test $ac_status = 0; }
6021         if test "$ac_status" -ne 0; then
6022           lt_cv_ar_at_file=@
6023         fi
6024       fi
6025       rm -f conftest.* libconftest.a
6026
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6032 $as_echo "$lt_cv_ar_at_file" >&6; }
6033
6034 if test "x$lt_cv_ar_at_file" = xno; then
6035   archiver_list_spec=
6036 else
6037   archiver_list_spec=$lt_cv_ar_at_file
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046 if test -n "$ac_tool_prefix"; then
6047   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}strip; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_STRIP+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   if test -n "$STRIP"; then
6055   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062     for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069   done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 STRIP=$ac_cv_prog_STRIP
6075 if test -n "$STRIP"; then
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6077 $as_echo "$STRIP" >&6; }
6078 else
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_STRIP"; then
6086   ac_ct_STRIP=$STRIP
6087   # Extract the first word of "strip", so it can be a program name with args.
6088 set dummy strip; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$ac_ct_STRIP"; then
6095   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_ac_ct_STRIP="strip"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6115 if test -n "$ac_ct_STRIP"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6117 $as_echo "$ac_ct_STRIP" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123   if test "x$ac_ct_STRIP" = x; then
6124     STRIP=":"
6125   else
6126     case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132     STRIP=$ac_ct_STRIP
6133   fi
6134 else
6135   STRIP="$ac_cv_prog_STRIP"
6136 fi
6137
6138 test -z "$STRIP" && STRIP=:
6139
6140
6141
6142
6143
6144
6145 if test -n "$ac_tool_prefix"; then
6146   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6147 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_prog_RANLIB+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if test -n "$RANLIB"; then
6154   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161     for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168   done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 RANLIB=$ac_cv_prog_RANLIB
6174 if test -n "$RANLIB"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6176 $as_echo "$RANLIB" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182
6183 fi
6184 if test -z "$ac_cv_prog_RANLIB"; then
6185   ac_ct_RANLIB=$RANLIB
6186   # Extract the first word of "ranlib", so it can be a program name with args.
6187 set dummy ranlib; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$ac_ct_RANLIB"; then
6194   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_ac_ct_RANLIB="ranlib"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6214 if test -n "$ac_ct_RANLIB"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6216 $as_echo "$ac_ct_RANLIB" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222   if test "x$ac_ct_RANLIB" = x; then
6223     RANLIB=":"
6224   else
6225     case $cross_compiling:$ac_tool_warned in
6226 yes:)
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231     RANLIB=$ac_ct_RANLIB
6232   fi
6233 else
6234   RANLIB="$ac_cv_prog_RANLIB"
6235 fi
6236
6237 test -z "$RANLIB" && RANLIB=:
6238
6239
6240
6241
6242
6243
6244 # Determine commands to create old-style static archives.
6245 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6246 old_postinstall_cmds='chmod 644 $oldlib'
6247 old_postuninstall_cmds=
6248
6249 if test -n "$RANLIB"; then
6250   case $host_os in
6251   openbsd*)
6252     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6253     ;;
6254   *)
6255     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6256     ;;
6257   esac
6258   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6259 fi
6260
6261 case $host_os in
6262   darwin*)
6263     lock_old_archive_extraction=yes ;;
6264   *)
6265     lock_old_archive_extraction=no ;;
6266 esac
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # If no C compiler was specified, use CC.
6307 LTCC=${LTCC-"$CC"}
6308
6309 # If no C compiler flags were specified, use CFLAGS.
6310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6311
6312 # Allow CC to be a program name with arguments.
6313 compiler=$CC
6314
6315
6316 # Check for command to grab the raw symbol name followed by C symbol from nm.
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6318 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6319 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322
6323 # These are sane defaults that work on at least a few old systems.
6324 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6325
6326 # Character class describing NM global symbol codes.
6327 symcode='[BCDEGRST]'
6328
6329 # Regexp to match symbols that can be accessed directly from C.
6330 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6331
6332 # Define system-specific variables.
6333 case $host_os in
6334 aix*)
6335   symcode='[BCDT]'
6336   ;;
6337 cygwin* | mingw* | pw32* | cegcc*)
6338   symcode='[ABCDGISTW]'
6339   ;;
6340 hpux*)
6341   if test "$host_cpu" = ia64; then
6342     symcode='[ABCDEGRST]'
6343   fi
6344   ;;
6345 irix* | nonstopux*)
6346   symcode='[BCDEGRST]'
6347   ;;
6348 osf*)
6349   symcode='[BCDEGQRST]'
6350   ;;
6351 solaris*)
6352   symcode='[BDRT]'
6353   ;;
6354 sco3.2v5*)
6355   symcode='[DT]'
6356   ;;
6357 sysv4.2uw2*)
6358   symcode='[DT]'
6359   ;;
6360 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6361   symcode='[ABDT]'
6362   ;;
6363 sysv4)
6364   symcode='[DFNSTU]'
6365   ;;
6366 esac
6367
6368 # If we're using GNU nm, then use its standard symbol codes.
6369 case `$NM -V 2>&1` in
6370 *GNU* | *'with BFD'*)
6371   symcode='[ABCDGIRSTW]' ;;
6372 esac
6373
6374 # Transform an extracted symbol line into a proper C declaration.
6375 # Some systems (esp. on ia64) link data and code symbols differently,
6376 # so use this general approach.
6377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6378
6379 # Transform an extracted symbol line into symbol name and symbol address
6380 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6381 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'"
6382
6383 # Handle CRLF in mingw tool chain
6384 opt_cr=
6385 case $build_os in
6386 mingw*)
6387   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6388   ;;
6389 esac
6390
6391 # Try without a prefix underscore, then with it.
6392 for ac_symprfx in "" "_"; do
6393
6394   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6395   symxfrm="\\1 $ac_symprfx\\2 \\2"
6396
6397   # Write the raw and C identifiers.
6398   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6399     # Fake it for dumpbin and say T for any non-static function
6400     # and D for any global variable.
6401     # Also find C++ and __fastcall symbols from MSVC++,
6402     # which start with @ or ?.
6403     lt_cv_sys_global_symbol_pipe="$AWK '"\
6404 "     {last_section=section; section=\$ 3};"\
6405 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6406 "     \$ 0!~/External *\|/{next};"\
6407 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6408 "     {if(hide[section]) next};"\
6409 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6410 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6411 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6412 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6413 "     ' prfx=^$ac_symprfx"
6414   else
6415     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6416   fi
6417   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6418
6419   # Check to see that the pipe works correctly.
6420   pipe_works=no
6421
6422   rm -f conftest*
6423   cat > conftest.$ac_ext <<_LT_EOF
6424 #ifdef __cplusplus
6425 extern "C" {
6426 #endif
6427 char nm_test_var;
6428 void nm_test_func(void);
6429 void nm_test_func(void){}
6430 #ifdef __cplusplus
6431 }
6432 #endif
6433 int main(){nm_test_var='a';nm_test_func();return(0);}
6434 _LT_EOF
6435
6436   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437   (eval $ac_compile) 2>&5
6438   ac_status=$?
6439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440   test $ac_status = 0; }; then
6441     # Now try to grab the symbols.
6442     nlist=conftest.nm
6443     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6444   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6445   ac_status=$?
6446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447   test $ac_status = 0; } && test -s "$nlist"; then
6448       # Try sorting and uniquifying the output.
6449       if sort "$nlist" | uniq > "$nlist"T; then
6450         mv -f "$nlist"T "$nlist"
6451       else
6452         rm -f "$nlist"T
6453       fi
6454
6455       # Make sure that we snagged all the symbols we need.
6456       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6457         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6458           cat <<_LT_EOF > conftest.$ac_ext
6459 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6460 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6461 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6462    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6463 # define LT_DLSYM_CONST
6464 #elif defined(__osf__)
6465 /* This system does not cope well with relocations in const data.  */
6466 # define LT_DLSYM_CONST
6467 #else
6468 # define LT_DLSYM_CONST const
6469 #endif
6470
6471 #ifdef __cplusplus
6472 extern "C" {
6473 #endif
6474
6475 _LT_EOF
6476           # Now generate the symbol file.
6477           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6478
6479           cat <<_LT_EOF >> conftest.$ac_ext
6480
6481 /* The mapping between symbol names and symbols.  */
6482 LT_DLSYM_CONST struct {
6483   const char *name;
6484   void       *address;
6485 }
6486 lt__PROGRAM__LTX_preloaded_symbols[] =
6487 {
6488   { "@PROGRAM@", (void *) 0 },
6489 _LT_EOF
6490           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6491           cat <<\_LT_EOF >> conftest.$ac_ext
6492   {0, (void *) 0}
6493 };
6494
6495 /* This works around a problem in FreeBSD linker */
6496 #ifdef FREEBSD_WORKAROUND
6497 static const void *lt_preloaded_setup() {
6498   return lt__PROGRAM__LTX_preloaded_symbols;
6499 }
6500 #endif
6501
6502 #ifdef __cplusplus
6503 }
6504 #endif
6505 _LT_EOF
6506           # Now try linking the two files.
6507           mv conftest.$ac_objext conftstm.$ac_objext
6508           lt_globsym_save_LIBS=$LIBS
6509           lt_globsym_save_CFLAGS=$CFLAGS
6510           LIBS="conftstm.$ac_objext"
6511           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6512           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6513   (eval $ac_link) 2>&5
6514   ac_status=$?
6515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6517             pipe_works=yes
6518           fi
6519           LIBS=$lt_globsym_save_LIBS
6520           CFLAGS=$lt_globsym_save_CFLAGS
6521         else
6522           echo "cannot find nm_test_func in $nlist" >&5
6523         fi
6524       else
6525         echo "cannot find nm_test_var in $nlist" >&5
6526       fi
6527     else
6528       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6529     fi
6530   else
6531     echo "$progname: failed program was:" >&5
6532     cat conftest.$ac_ext >&5
6533   fi
6534   rm -rf conftest* conftst*
6535
6536   # Do not use the global_symbol_pipe unless it works.
6537   if test "$pipe_works" = yes; then
6538     break
6539   else
6540     lt_cv_sys_global_symbol_pipe=
6541   fi
6542 done
6543
6544 fi
6545
6546 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6547   lt_cv_sys_global_symbol_to_cdecl=
6548 fi
6549 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6551 $as_echo "failed" >&6; }
6552 else
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6554 $as_echo "ok" >&6; }
6555 fi
6556
6557 # Response file support.
6558 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6559   nm_file_list_spec='@'
6560 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6561   nm_file_list_spec='@'
6562 fi
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6591 $as_echo_n "checking for sysroot... " >&6; }
6592
6593 # Check whether --with-sysroot was given.
6594 if test "${with_sysroot+set}" = set; then :
6595   withval=$with_sysroot;
6596 else
6597   with_sysroot=no
6598 fi
6599
6600
6601 lt_sysroot=
6602 case ${with_sysroot} in #(
6603  yes)
6604    if test "$GCC" = yes; then
6605      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6606    fi
6607    ;; #(
6608  /*)
6609    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6610    ;; #(
6611  no|'')
6612    ;; #(
6613  *)
6614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6615 $as_echo "${with_sysroot}" >&6; }
6616    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6617    ;;
6618 esac
6619
6620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6621 $as_echo "${lt_sysroot:-no}" >&6; }
6622
6623
6624
6625
6626
6627 # Check whether --enable-libtool-lock was given.
6628 if test "${enable_libtool_lock+set}" = set; then :
6629   enableval=$enable_libtool_lock;
6630 fi
6631
6632 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6633
6634 # Some flags need to be propagated to the compiler or linker for good
6635 # libtool support.
6636 case $host in
6637 ia64-*-hpux*)
6638   # Find out which ABI we are using.
6639   echo 'int i;' > conftest.$ac_ext
6640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6641   (eval $ac_compile) 2>&5
6642   ac_status=$?
6643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644   test $ac_status = 0; }; then
6645     case `/usr/bin/file conftest.$ac_objext` in
6646       *ELF-32*)
6647         HPUX_IA64_MODE="32"
6648         ;;
6649       *ELF-64*)
6650         HPUX_IA64_MODE="64"
6651         ;;
6652     esac
6653   fi
6654   rm -rf conftest*
6655   ;;
6656 *-*-irix6*)
6657   # Find out which ABI we are using.
6658   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6659   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6660   (eval $ac_compile) 2>&5
6661   ac_status=$?
6662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6663   test $ac_status = 0; }; then
6664     if test "$lt_cv_prog_gnu_ld" = yes; then
6665       case `/usr/bin/file conftest.$ac_objext` in
6666         *32-bit*)
6667           LD="${LD-ld} -melf32bsmip"
6668           ;;
6669         *N32*)
6670           LD="${LD-ld} -melf32bmipn32"
6671           ;;
6672         *64-bit*)
6673           LD="${LD-ld} -melf64bmip"
6674         ;;
6675       esac
6676     else
6677       case `/usr/bin/file conftest.$ac_objext` in
6678         *32-bit*)
6679           LD="${LD-ld} -32"
6680           ;;
6681         *N32*)
6682           LD="${LD-ld} -n32"
6683           ;;
6684         *64-bit*)
6685           LD="${LD-ld} -64"
6686           ;;
6687       esac
6688     fi
6689   fi
6690   rm -rf conftest*
6691   ;;
6692
6693 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6694 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6695   # Find out which ABI we are using.
6696   echo 'int i;' > conftest.$ac_ext
6697   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698   (eval $ac_compile) 2>&5
6699   ac_status=$?
6700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701   test $ac_status = 0; }; then
6702     case `/usr/bin/file conftest.o` in
6703       *32-bit*)
6704         case $host in
6705           x86_64-*kfreebsd*-gnu)
6706             LD="${LD-ld} -m elf_i386_fbsd"
6707             ;;
6708           x86_64-*linux*)
6709             LD="${LD-ld} -m elf_i386"
6710             ;;
6711           ppc64-*linux*|powerpc64-*linux*)
6712             LD="${LD-ld} -m elf32ppclinux"
6713             ;;
6714           s390x-*linux*)
6715             LD="${LD-ld} -m elf_s390"
6716             ;;
6717           sparc64-*linux*)
6718             LD="${LD-ld} -m elf32_sparc"
6719             ;;
6720         esac
6721         ;;
6722       *64-bit*)
6723         case $host in
6724           x86_64-*kfreebsd*-gnu)
6725             LD="${LD-ld} -m elf_x86_64_fbsd"
6726             ;;
6727           x86_64-*linux*)
6728             LD="${LD-ld} -m elf_x86_64"
6729             ;;
6730           ppc*-*linux*|powerpc*-*linux*)
6731             LD="${LD-ld} -m elf64ppc"
6732             ;;
6733           s390*-*linux*|s390*-*tpf*)
6734             LD="${LD-ld} -m elf64_s390"
6735             ;;
6736           sparc*-*linux*)
6737             LD="${LD-ld} -m elf64_sparc"
6738             ;;
6739         esac
6740         ;;
6741     esac
6742   fi
6743   rm -rf conftest*
6744   ;;
6745
6746 *-*-sco3.2v5*)
6747   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6748   SAVE_CFLAGS="$CFLAGS"
6749   CFLAGS="$CFLAGS -belf"
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6751 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6752 if ${lt_cv_cc_needs_belf+:} false; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   ac_ext=c
6756 ac_cpp='$CPP $CPPFLAGS'
6757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760
6761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763
6764 int
6765 main ()
6766 {
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773   lt_cv_cc_needs_belf=yes
6774 else
6775   lt_cv_cc_needs_belf=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778     conftest$ac_exeext conftest.$ac_ext
6779      ac_ext=c
6780 ac_cpp='$CPP $CPPFLAGS'
6781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6787 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6788   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6789     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6790     CFLAGS="$SAVE_CFLAGS"
6791   fi
6792   ;;
6793 sparc*-*solaris*)
6794   # Find out which ABI we are using.
6795   echo 'int i;' > conftest.$ac_ext
6796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800   test $ac_status = 0; }; then
6801     case `/usr/bin/file conftest.o` in
6802     *64-bit*)
6803       case $lt_cv_prog_gnu_ld in
6804       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6805       *)
6806         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6807           LD="${LD-ld} -64"
6808         fi
6809         ;;
6810       esac
6811       ;;
6812     esac
6813   fi
6814   rm -rf conftest*
6815   ;;
6816 esac
6817
6818 need_locks="$enable_libtool_lock"
6819
6820 if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}mt; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$MANIFEST_TOOL"; then
6829   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6849 if test -n "$MANIFEST_TOOL"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6851 $as_echo "$MANIFEST_TOOL" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6860   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6861   # Extract the first word of "mt", so it can be a program name with args.
6862 set dummy mt; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_MANIFEST_TOOL"; then
6869   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6889 if test -n "$ac_ct_MANIFEST_TOOL"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6891 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6898     MANIFEST_TOOL=":"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6907   fi
6908 else
6909   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6910 fi
6911
6912 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6914 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6915 if ${lt_cv_path_mainfest_tool+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   lt_cv_path_mainfest_tool=no
6919   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6920   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6921   cat conftest.err >&5
6922   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6923     lt_cv_path_mainfest_tool=yes
6924   fi
6925   rm -f conftest*
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6928 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6929 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6930   MANIFEST_TOOL=:
6931 fi
6932
6933
6934
6935
6936
6937
6938   case $host_os in
6939     rhapsody* | darwin*)
6940     if test -n "$ac_tool_prefix"; then
6941   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   if test -n "$DSYMUTIL"; then
6949   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956     for ac_exec_ext in '' $ac_executable_extensions; do
6957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963   done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6969 if test -n "$DSYMUTIL"; then
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6971 $as_echo "$DSYMUTIL" >&6; }
6972 else
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977
6978 fi
6979 if test -z "$ac_cv_prog_DSYMUTIL"; then
6980   ac_ct_DSYMUTIL=$DSYMUTIL
6981   # Extract the first word of "dsymutil", so it can be a program name with args.
6982 set dummy dsymutil; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6986   $as_echo_n "(cached) " >&6
6987 else
6988   if test -n "$ac_ct_DSYMUTIL"; then
6989   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996     for ac_exec_ext in '' $ac_executable_extensions; do
6997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000     break 2
7001   fi
7002 done
7003   done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7009 if test -n "$ac_ct_DSYMUTIL"; then
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7011 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7012 else
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017   if test "x$ac_ct_DSYMUTIL" = x; then
7018     DSYMUTIL=":"
7019   else
7020     case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026     DSYMUTIL=$ac_ct_DSYMUTIL
7027   fi
7028 else
7029   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7030 fi
7031
7032     if test -n "$ac_tool_prefix"; then
7033   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7034 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_NMEDIT+:} false; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   if test -n "$NMEDIT"; then
7041   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048     for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055   done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 NMEDIT=$ac_cv_prog_NMEDIT
7061 if test -n "$NMEDIT"; then
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7063 $as_echo "$NMEDIT" >&6; }
7064 else
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_prog_NMEDIT"; then
7072   ac_ct_NMEDIT=$NMEDIT
7073   # Extract the first word of "nmedit", so it can be a program name with args.
7074 set dummy nmedit; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080   if test -n "$ac_ct_NMEDIT"; then
7081   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088     for ac_exec_ext in '' $ac_executable_extensions; do
7089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095   done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7101 if test -n "$ac_ct_NMEDIT"; then
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7103 $as_echo "$ac_ct_NMEDIT" >&6; }
7104 else
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109   if test "x$ac_ct_NMEDIT" = x; then
7110     NMEDIT=":"
7111   else
7112     case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118     NMEDIT=$ac_ct_NMEDIT
7119   fi
7120 else
7121   NMEDIT="$ac_cv_prog_NMEDIT"
7122 fi
7123
7124     if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_LIPO+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$LIPO"; then
7133   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 LIPO=$ac_cv_prog_LIPO
7153 if test -n "$LIPO"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7155 $as_echo "$LIPO" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_LIPO"; then
7164   ac_ct_LIPO=$LIPO
7165   # Extract the first word of "lipo", so it can be a program name with args.
7166 set dummy lipo; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   if test -n "$ac_ct_LIPO"; then
7173   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_ac_ct_LIPO="lipo"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7193 if test -n "$ac_ct_LIPO"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7195 $as_echo "$ac_ct_LIPO" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_LIPO" = x; then
7202     LIPO=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210     LIPO=$ac_ct_LIPO
7211   fi
7212 else
7213   LIPO="$ac_cv_prog_LIPO"
7214 fi
7215
7216     if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}otool; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_OTOOL+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$OTOOL"; then
7225   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 OTOOL=$ac_cv_prog_OTOOL
7245 if test -n "$OTOOL"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7247 $as_echo "$OTOOL" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_OTOOL"; then
7256   ac_ct_OTOOL=$OTOOL
7257   # Extract the first word of "otool", so it can be a program name with args.
7258 set dummy otool; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_OTOOL"; then
7265   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274     ac_cv_prog_ac_ct_OTOOL="otool"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7285 if test -n "$ac_ct_OTOOL"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7287 $as_echo "$ac_ct_OTOOL" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_OTOOL" = x; then
7294     OTOOL=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     OTOOL=$ac_ct_OTOOL
7303   fi
7304 else
7305   OTOOL="$ac_cv_prog_OTOOL"
7306 fi
7307
7308     if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_OTOOL64+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$OTOOL64"; then
7317   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 OTOOL64=$ac_cv_prog_OTOOL64
7337 if test -n "$OTOOL64"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7339 $as_echo "$OTOOL64" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_OTOOL64"; then
7348   ac_ct_OTOOL64=$OTOOL64
7349   # Extract the first word of "otool64", so it can be a program name with args.
7350 set dummy otool64; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_OTOOL64"; then
7357   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366     ac_cv_prog_ac_ct_OTOOL64="otool64"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7377 if test -n "$ac_ct_OTOOL64"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7379 $as_echo "$ac_ct_OTOOL64" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_OTOOL64" = x; then
7386     OTOOL64=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     OTOOL64=$ac_ct_OTOOL64
7395   fi
7396 else
7397   OTOOL64="$ac_cv_prog_OTOOL64"
7398 fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7427 $as_echo_n "checking for -single_module linker flag... " >&6; }
7428 if ${lt_cv_apple_cc_single_mod+:} false; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   lt_cv_apple_cc_single_mod=no
7432       if test -z "${LT_MULTI_MODULE}"; then
7433         # By default we will add the -single_module flag. You can override
7434         # by either setting the environment variable LT_MULTI_MODULE
7435         # non-empty at configure time, or by adding -multi_module to the
7436         # link flags.
7437         rm -rf libconftest.dylib*
7438         echo "int foo(void){return 1;}" > conftest.c
7439         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7440 -dynamiclib -Wl,-single_module conftest.c" >&5
7441         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7442           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7443         _lt_result=$?
7444         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7445           lt_cv_apple_cc_single_mod=yes
7446         else
7447           cat conftest.err >&5
7448         fi
7449         rm -rf libconftest.dylib*
7450         rm -f conftest.*
7451       fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7454 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7456 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7457 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   lt_cv_ld_exported_symbols_list=no
7461       save_LDFLAGS=$LDFLAGS
7462       echo "_main" > conftest.sym
7463       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466
7467 int
7468 main ()
7469 {
7470
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476   lt_cv_ld_exported_symbols_list=yes
7477 else
7478   lt_cv_ld_exported_symbols_list=no
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext \
7481     conftest$ac_exeext conftest.$ac_ext
7482         LDFLAGS="$save_LDFLAGS"
7483
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7486 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7488 $as_echo_n "checking for -force_load linker flag... " >&6; }
7489 if ${lt_cv_ld_force_load+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   lt_cv_ld_force_load=no
7493       cat > conftest.c << _LT_EOF
7494 int forced_loaded() { return 2;}
7495 _LT_EOF
7496       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7497       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7498       echo "$AR cru libconftest.a conftest.o" >&5
7499       $AR cru libconftest.a conftest.o 2>&5
7500       echo "$RANLIB libconftest.a" >&5
7501       $RANLIB libconftest.a 2>&5
7502       cat > conftest.c << _LT_EOF
7503 int main() { return 0;}
7504 _LT_EOF
7505       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7506       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7507       _lt_result=$?
7508       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7509         lt_cv_ld_force_load=yes
7510       else
7511         cat conftest.err >&5
7512       fi
7513         rm -f conftest.err libconftest.a conftest conftest.c
7514         rm -rf conftest.dSYM
7515
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7518 $as_echo "$lt_cv_ld_force_load" >&6; }
7519     case $host_os in
7520     rhapsody* | darwin1.[012])
7521       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7522     darwin1.*)
7523       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7524     darwin*) # darwin 5.x on
7525       # if running on 10.5 or later, the deployment target defaults
7526       # to the OS version, if on x86, and 10.4, the deployment
7527       # target defaults to 10.4. Don't you love it?
7528       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7529         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7530           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7531         10.[012]*)
7532           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7533         10.*)
7534           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7535       esac
7536     ;;
7537   esac
7538     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7539       _lt_dar_single_mod='$single_module'
7540     fi
7541     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7542       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7543     else
7544       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7545     fi
7546     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7547       _lt_dsymutil='~$DSYMUTIL $lib || :'
7548     else
7549       _lt_dsymutil=
7550     fi
7551     ;;
7552   esac
7553
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7560 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7561 # On Suns, sometimes $CPP names a directory.
7562 if test -n "$CPP" && test -d "$CPP"; then
7563   CPP=
7564 fi
7565 if test -z "$CPP"; then
7566   if ${ac_cv_prog_CPP+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569       # Double quotes because CPP needs to be expanded
7570     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7571     do
7572       ac_preproc_ok=false
7573 for ac_c_preproc_warn_flag in '' yes
7574 do
7575   # Use a header file that comes with gcc, so configuring glibc
7576   # with a fresh cross-compiler works.
7577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578   # <limits.h> exists even on freestanding compilers.
7579   # On the NeXT, cc -E runs the code through the compiler's parser,
7580   # not just through cpp. "Syntax error" is here to catch this case.
7581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h.  */
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588                      Syntax error
7589 _ACEOF
7590 if ac_fn_c_try_cpp "$LINENO"; then :
7591
7592 else
7593   # Broken: fails on valid input.
7594 continue
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598   # OK, works on sane cases.  Now check whether nonexistent headers
7599   # can be detected and how.
7600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602 #include <ac_nonexistent.h>
7603 _ACEOF
7604 if ac_fn_c_try_cpp "$LINENO"; then :
7605   # Broken: success on invalid input.
7606 continue
7607 else
7608   # Passes both tests.
7609 ac_preproc_ok=:
7610 break
7611 fi
7612 rm -f conftest.err conftest.i conftest.$ac_ext
7613
7614 done
7615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7616 rm -f conftest.i conftest.err conftest.$ac_ext
7617 if $ac_preproc_ok; then :
7618   break
7619 fi
7620
7621     done
7622     ac_cv_prog_CPP=$CPP
7623
7624 fi
7625   CPP=$ac_cv_prog_CPP
7626 else
7627   ac_cv_prog_CPP=$CPP
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7630 $as_echo "$CPP" >&6; }
7631 ac_preproc_ok=false
7632 for ac_c_preproc_warn_flag in '' yes
7633 do
7634   # Use a header file that comes with gcc, so configuring glibc
7635   # with a fresh cross-compiler works.
7636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637   # <limits.h> exists even on freestanding compilers.
7638   # On the NeXT, cc -E runs the code through the compiler's parser,
7639   # not just through cpp. "Syntax error" is here to catch this case.
7640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642 #ifdef __STDC__
7643 # include <limits.h>
7644 #else
7645 # include <assert.h>
7646 #endif
7647                      Syntax error
7648 _ACEOF
7649 if ac_fn_c_try_cpp "$LINENO"; then :
7650
7651 else
7652   # Broken: fails on valid input.
7653 continue
7654 fi
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656
7657   # OK, works on sane cases.  Now check whether nonexistent headers
7658   # can be detected and how.
7659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661 #include <ac_nonexistent.h>
7662 _ACEOF
7663 if ac_fn_c_try_cpp "$LINENO"; then :
7664   # Broken: success on invalid input.
7665 continue
7666 else
7667   # Passes both tests.
7668 ac_preproc_ok=:
7669 break
7670 fi
7671 rm -f conftest.err conftest.i conftest.$ac_ext
7672
7673 done
7674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7675 rm -f conftest.i conftest.err conftest.$ac_ext
7676 if $ac_preproc_ok; then :
7677
7678 else
7679   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7681 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7682 See \`config.log' for more details" "$LINENO" 5; }
7683 fi
7684
7685 ac_ext=c
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7693 $as_echo_n "checking for ANSI C header files... " >&6; }
7694 if ${ac_cv_header_stdc+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h.  */
7699 #include <stdlib.h>
7700 #include <stdarg.h>
7701 #include <string.h>
7702 #include <float.h>
7703
7704 int
7705 main ()
7706 {
7707
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713   ac_cv_header_stdc=yes
7714 else
7715   ac_cv_header_stdc=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718
7719 if test $ac_cv_header_stdc = yes; then
7720   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h.  */
7723 #include <string.h>
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727   $EGREP "memchr" >/dev/null 2>&1; then :
7728
7729 else
7730   ac_cv_header_stdc=no
7731 fi
7732 rm -f conftest*
7733
7734 fi
7735
7736 if test $ac_cv_header_stdc = yes; then
7737   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h.  */
7740 #include <stdlib.h>
7741
7742 _ACEOF
7743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744   $EGREP "free" >/dev/null 2>&1; then :
7745
7746 else
7747   ac_cv_header_stdc=no
7748 fi
7749 rm -f conftest*
7750
7751 fi
7752
7753 if test $ac_cv_header_stdc = yes; then
7754   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7755   if test "$cross_compiling" = yes; then :
7756   :
7757 else
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 #include <ctype.h>
7761 #include <stdlib.h>
7762 #if ((' ' & 0x0FF) == 0x020)
7763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7765 #else
7766 # define ISLOWER(c) \
7767                    (('a' <= (c) && (c) <= 'i') \
7768                      || ('j' <= (c) && (c) <= 'r') \
7769                      || ('s' <= (c) && (c) <= 'z'))
7770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7771 #endif
7772
7773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7774 int
7775 main ()
7776 {
7777   int i;
7778   for (i = 0; i < 256; i++)
7779     if (XOR (islower (i), ISLOWER (i))
7780         || toupper (i) != TOUPPER (i))
7781       return 2;
7782   return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_run "$LINENO"; then :
7786
7787 else
7788   ac_cv_header_stdc=no
7789 fi
7790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7791   conftest.$ac_objext conftest.beam conftest.$ac_ext
7792 fi
7793
7794 fi
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7797 $as_echo "$ac_cv_header_stdc" >&6; }
7798 if test $ac_cv_header_stdc = yes; then
7799
7800 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7801
7802 fi
7803
7804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7806                   inttypes.h stdint.h unistd.h
7807 do :
7808   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7810 "
7811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7812   cat >>confdefs.h <<_ACEOF
7813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814 _ACEOF
7815
7816 fi
7817
7818 done
7819
7820
7821 for ac_header in dlfcn.h
7822 do :
7823   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7824 "
7825 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7826   cat >>confdefs.h <<_ACEOF
7827 #define HAVE_DLFCN_H 1
7828 _ACEOF
7829
7830 fi
7831
7832 done
7833
7834
7835
7836
7837
7838 # Set options
7839
7840
7841
7842         enable_dlopen=no
7843
7844
7845   enable_win32_dll=no
7846
7847
7848             # Check whether --enable-shared was given.
7849 if test "${enable_shared+set}" = set; then :
7850   enableval=$enable_shared; p=${PACKAGE-default}
7851     case $enableval in
7852     yes) enable_shared=yes ;;
7853     no) enable_shared=no ;;
7854     *)
7855       enable_shared=no
7856       # Look at the argument we got.  We use all the common list separators.
7857       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7858       for pkg in $enableval; do
7859         IFS="$lt_save_ifs"
7860         if test "X$pkg" = "X$p"; then
7861           enable_shared=yes
7862         fi
7863       done
7864       IFS="$lt_save_ifs"
7865       ;;
7866     esac
7867 else
7868   enable_shared=yes
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879   # Check whether --enable-static was given.
7880 if test "${enable_static+set}" = set; then :
7881   enableval=$enable_static; p=${PACKAGE-default}
7882     case $enableval in
7883     yes) enable_static=yes ;;
7884     no) enable_static=no ;;
7885     *)
7886      enable_static=no
7887       # Look at the argument we got.  We use all the common list separators.
7888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889       for pkg in $enableval; do
7890         IFS="$lt_save_ifs"
7891         if test "X$pkg" = "X$p"; then
7892           enable_static=yes
7893         fi
7894       done
7895       IFS="$lt_save_ifs"
7896       ;;
7897     esac
7898 else
7899   enable_static=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # Check whether --with-pic was given.
7912 if test "${with_pic+set}" = set; then :
7913   withval=$with_pic; pic_mode="$withval"
7914 else
7915   pic_mode=default
7916 fi
7917
7918
7919 test -z "$pic_mode" && pic_mode=default
7920
7921
7922
7923
7924
7925
7926
7927   # Check whether --enable-fast-install was given.
7928 if test "${enable_fast_install+set}" = set; then :
7929   enableval=$enable_fast_install; p=${PACKAGE-default}
7930     case $enableval in
7931     yes) enable_fast_install=yes ;;
7932     no) enable_fast_install=no ;;
7933     *)
7934       enable_fast_install=no
7935       # Look at the argument we got.  We use all the common list separators.
7936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937       for pkg in $enableval; do
7938         IFS="$lt_save_ifs"
7939         if test "X$pkg" = "X$p"; then
7940           enable_fast_install=yes
7941         fi
7942       done
7943       IFS="$lt_save_ifs"
7944       ;;
7945     esac
7946 else
7947   enable_fast_install=yes
7948 fi
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 # This can be used to rebuild libtool when needed
7961 LIBTOOL_DEPS="$ltmain"
7962
7963 # Always use our own libtool.
7964 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 test -z "$LN_S" && LN_S="ln -s"
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 if test -n "${ZSH_VERSION+set}" ; then
8007    setopt NO_GLOB_SUBST
8008 fi
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8011 $as_echo_n "checking for objdir... " >&6; }
8012 if ${lt_cv_objdir+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   rm -f .libs 2>/dev/null
8016 mkdir .libs 2>/dev/null
8017 if test -d .libs; then
8018   lt_cv_objdir=.libs
8019 else
8020   # MS-DOS does not allow filenames that begin with a dot.
8021   lt_cv_objdir=_libs
8022 fi
8023 rmdir .libs 2>/dev/null
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8026 $as_echo "$lt_cv_objdir" >&6; }
8027 objdir=$lt_cv_objdir
8028
8029
8030
8031
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define LT_OBJDIR "$lt_cv_objdir/"
8035 _ACEOF
8036
8037
8038
8039
8040 case $host_os in
8041 aix3*)
8042   # AIX sometimes has problems with the GCC collect2 program.  For some
8043   # reason, if we set the COLLECT_NAMES environment variable, the problems
8044   # vanish in a puff of smoke.
8045   if test "X${COLLECT_NAMES+set}" != Xset; then
8046     COLLECT_NAMES=
8047     export COLLECT_NAMES
8048   fi
8049   ;;
8050 esac
8051
8052 # Global variables:
8053 ofile=libtool
8054 can_build_shared=yes
8055
8056 # All known linkers require a `.a' archive for static linking (except MSVC,
8057 # which needs '.lib').
8058 libext=a
8059
8060 with_gnu_ld="$lt_cv_prog_gnu_ld"
8061
8062 old_CC="$CC"
8063 old_CFLAGS="$CFLAGS"
8064
8065 # Set sane defaults for various variables
8066 test -z "$CC" && CC=cc
8067 test -z "$LTCC" && LTCC=$CC
8068 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8069 test -z "$LD" && LD=ld
8070 test -z "$ac_objext" && ac_objext=o
8071
8072 for cc_temp in $compiler""; do
8073   case $cc_temp in
8074     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8075     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8076     \-*) ;;
8077     *) break;;
8078   esac
8079 done
8080 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8081
8082
8083 # Only perform the check for file, if the check method requires it
8084 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8085 case $deplibs_check_method in
8086 file_magic*)
8087   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8089 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8090 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   case $MAGIC_CMD in
8094 [\\/*] |  ?:[\\/]*)
8095   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8096   ;;
8097 *)
8098   lt_save_MAGIC_CMD="$MAGIC_CMD"
8099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8100   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8101   for ac_dir in $ac_dummy; do
8102     IFS="$lt_save_ifs"
8103     test -z "$ac_dir" && ac_dir=.
8104     if test -f $ac_dir/${ac_tool_prefix}file; then
8105       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8106       if test -n "$file_magic_test_file"; then
8107         case $deplibs_check_method in
8108         "file_magic "*)
8109           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8110           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8112             $EGREP "$file_magic_regex" > /dev/null; then
8113             :
8114           else
8115             cat <<_LT_EOF 1>&2
8116
8117 *** Warning: the command libtool uses to detect shared libraries,
8118 *** $file_magic_cmd, produces output that libtool cannot recognize.
8119 *** The result is that libtool may fail to recognize shared libraries
8120 *** as such.  This will affect the creation of libtool libraries that
8121 *** depend on shared libraries, but programs linked with such libtool
8122 *** libraries will work regardless of this problem.  Nevertheless, you
8123 *** may want to report the problem to your system manager and/or to
8124 *** bug-libtool@gnu.org
8125
8126 _LT_EOF
8127           fi ;;
8128         esac
8129       fi
8130       break
8131     fi
8132   done
8133   IFS="$lt_save_ifs"
8134   MAGIC_CMD="$lt_save_MAGIC_CMD"
8135   ;;
8136 esac
8137 fi
8138
8139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8140 if test -n "$MAGIC_CMD"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8142 $as_echo "$MAGIC_CMD" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149
8150
8151
8152 if test -z "$lt_cv_path_MAGIC_CMD"; then
8153   if test -n "$ac_tool_prefix"; then
8154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8155 $as_echo_n "checking for file... " >&6; }
8156 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   case $MAGIC_CMD in
8160 [\\/*] |  ?:[\\/]*)
8161   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8162   ;;
8163 *)
8164   lt_save_MAGIC_CMD="$MAGIC_CMD"
8165   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8166   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8167   for ac_dir in $ac_dummy; do
8168     IFS="$lt_save_ifs"
8169     test -z "$ac_dir" && ac_dir=.
8170     if test -f $ac_dir/file; then
8171       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8172       if test -n "$file_magic_test_file"; then
8173         case $deplibs_check_method in
8174         "file_magic "*)
8175           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8176           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8178             $EGREP "$file_magic_regex" > /dev/null; then
8179             :
8180           else
8181             cat <<_LT_EOF 1>&2
8182
8183 *** Warning: the command libtool uses to detect shared libraries,
8184 *** $file_magic_cmd, produces output that libtool cannot recognize.
8185 *** The result is that libtool may fail to recognize shared libraries
8186 *** as such.  This will affect the creation of libtool libraries that
8187 *** depend on shared libraries, but programs linked with such libtool
8188 *** libraries will work regardless of this problem.  Nevertheless, you
8189 *** may want to report the problem to your system manager and/or to
8190 *** bug-libtool@gnu.org
8191
8192 _LT_EOF
8193           fi ;;
8194         esac
8195       fi
8196       break
8197     fi
8198   done
8199   IFS="$lt_save_ifs"
8200   MAGIC_CMD="$lt_save_MAGIC_CMD"
8201   ;;
8202 esac
8203 fi
8204
8205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8206 if test -n "$MAGIC_CMD"; then
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8208 $as_echo "$MAGIC_CMD" >&6; }
8209 else
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215   else
8216     MAGIC_CMD=:
8217   fi
8218 fi
8219
8220   fi
8221   ;;
8222 esac
8223
8224 # Use C for the default configuration in the libtool script
8225
8226 lt_save_CC="$CC"
8227 ac_ext=c
8228 ac_cpp='$CPP $CPPFLAGS'
8229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8232
8233
8234 # Source file extension for C test sources.
8235 ac_ext=c
8236
8237 # Object file extension for compiled C test sources.
8238 objext=o
8239 objext=$objext
8240
8241 # Code to be used in simple compile tests
8242 lt_simple_compile_test_code="int some_variable = 0;"
8243
8244 # Code to be used in simple link tests
8245 lt_simple_link_test_code='int main(){return(0);}'
8246
8247
8248
8249
8250
8251
8252
8253 # If no C compiler was specified, use CC.
8254 LTCC=${LTCC-"$CC"}
8255
8256 # If no C compiler flags were specified, use CFLAGS.
8257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8258
8259 # Allow CC to be a program name with arguments.
8260 compiler=$CC
8261
8262 # Save the default compiler, since it gets overwritten when the other
8263 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8264 compiler_DEFAULT=$CC
8265
8266 # save warnings/boilerplate of simple test code
8267 ac_outfile=conftest.$ac_objext
8268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8270 _lt_compiler_boilerplate=`cat conftest.err`
8271 $RM conftest*
8272
8273 ac_outfile=conftest.$ac_objext
8274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8276 _lt_linker_boilerplate=`cat conftest.err`
8277 $RM -r conftest*
8278
8279
8280 ## CAVEAT EMPTOR:
8281 ## There is no encapsulation within the following macros, do not change
8282 ## the running order or otherwise move them around unless you know exactly
8283 ## what you are doing...
8284 if test -n "$compiler"; then
8285
8286 lt_prog_compiler_no_builtin_flag=
8287
8288 if test "$GCC" = yes; then
8289   case $cc_basename in
8290   nvcc*)
8291     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8292   *)
8293     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8294   esac
8295
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8297 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8298 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   lt_cv_prog_compiler_rtti_exceptions=no
8302    ac_outfile=conftest.$ac_objext
8303    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8304    lt_compiler_flag="-fno-rtti -fno-exceptions"
8305    # Insert the option either (1) after the last *FLAGS variable, or
8306    # (2) before a word containing "conftest.", or (3) at the end.
8307    # Note that $ac_compile itself does not contain backslashes and begins
8308    # with a dollar sign (not a hyphen), so the echo should work correctly.
8309    # The option is referenced via a variable to avoid confusing sed.
8310    lt_compile=`echo "$ac_compile" | $SED \
8311    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8313    -e 's:$: $lt_compiler_flag:'`
8314    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8315    (eval "$lt_compile" 2>conftest.err)
8316    ac_status=$?
8317    cat conftest.err >&5
8318    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319    if (exit $ac_status) && test -s "$ac_outfile"; then
8320      # The compiler can only warn and ignore the option if not recognized
8321      # So say no if there are warnings other than the usual output.
8322      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8323      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8324      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8325        lt_cv_prog_compiler_rtti_exceptions=yes
8326      fi
8327    fi
8328    $RM conftest*
8329
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8332 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8333
8334 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8335     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8336 else
8337     :
8338 fi
8339
8340 fi
8341
8342
8343
8344
8345
8346
8347   lt_prog_compiler_wl=
8348 lt_prog_compiler_pic=
8349 lt_prog_compiler_static=
8350
8351
8352   if test "$GCC" = yes; then
8353     lt_prog_compiler_wl='-Wl,'
8354     lt_prog_compiler_static='-static'
8355
8356     case $host_os in
8357       aix*)
8358       # All AIX code is PIC.
8359       if test "$host_cpu" = ia64; then
8360         # AIX 5 now supports IA64 processor
8361         lt_prog_compiler_static='-Bstatic'
8362       fi
8363       ;;
8364
8365     amigaos*)
8366       case $host_cpu in
8367       powerpc)
8368             # see comment about AmigaOS4 .so support
8369             lt_prog_compiler_pic='-fPIC'
8370         ;;
8371       m68k)
8372             # FIXME: we need at least 68020 code to build shared libraries, but
8373             # adding the `-m68020' flag to GCC prevents building anything better,
8374             # like `-m68040'.
8375             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8376         ;;
8377       esac
8378       ;;
8379
8380     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8381       # PIC is the default for these OSes.
8382       ;;
8383
8384     mingw* | cygwin* | pw32* | os2* | cegcc*)
8385       # This hack is so that the source file can tell whether it is being
8386       # built for inclusion in a dll (and should export symbols for example).
8387       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8388       # (--disable-auto-import) libraries
8389       lt_prog_compiler_pic='-DDLL_EXPORT'
8390       ;;
8391
8392     darwin* | rhapsody*)
8393       # PIC is the default on this platform
8394       # Common symbols not allowed in MH_DYLIB files
8395       lt_prog_compiler_pic='-fno-common'
8396       ;;
8397
8398     haiku*)
8399       # PIC is the default for Haiku.
8400       # The "-static" flag exists, but is broken.
8401       lt_prog_compiler_static=
8402       ;;
8403
8404     hpux*)
8405       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8406       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8407       # sets the default TLS model and affects inlining.
8408       case $host_cpu in
8409       hppa*64*)
8410         # +Z the default
8411         ;;
8412       *)
8413         lt_prog_compiler_pic='-fPIC'
8414         ;;
8415       esac
8416       ;;
8417
8418     interix[3-9]*)
8419       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8420       # Instead, we relocate shared libraries at runtime.
8421       ;;
8422
8423     msdosdjgpp*)
8424       # Just because we use GCC doesn't mean we suddenly get shared libraries
8425       # on systems that don't support them.
8426       lt_prog_compiler_can_build_shared=no
8427       enable_shared=no
8428       ;;
8429
8430     *nto* | *qnx*)
8431       # QNX uses GNU C++, but need to define -shared option too, otherwise
8432       # it will coredump.
8433       lt_prog_compiler_pic='-fPIC -shared'
8434       ;;
8435
8436     sysv4*MP*)
8437       if test -d /usr/nec; then
8438         lt_prog_compiler_pic=-Kconform_pic
8439       fi
8440       ;;
8441
8442     *)
8443       lt_prog_compiler_pic='-fPIC'
8444       ;;
8445     esac
8446
8447     case $cc_basename in
8448     nvcc*) # Cuda Compiler Driver 2.2
8449       lt_prog_compiler_wl='-Xlinker '
8450       lt_prog_compiler_pic='-Xcompiler -fPIC'
8451       ;;
8452     esac
8453   else
8454     # PORTME Check for flag to pass linker flags through the system compiler.
8455     case $host_os in
8456     aix*)
8457       lt_prog_compiler_wl='-Wl,'
8458       if test "$host_cpu" = ia64; then
8459         # AIX 5 now supports IA64 processor
8460         lt_prog_compiler_static='-Bstatic'
8461       else
8462         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8463       fi
8464       ;;
8465
8466     mingw* | cygwin* | pw32* | os2* | cegcc*)
8467       # This hack is so that the source file can tell whether it is being
8468       # built for inclusion in a dll (and should export symbols for example).
8469       lt_prog_compiler_pic='-DDLL_EXPORT'
8470       ;;
8471
8472     hpux9* | hpux10* | hpux11*)
8473       lt_prog_compiler_wl='-Wl,'
8474       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8475       # not for PA HP-UX.
8476       case $host_cpu in
8477       hppa*64*|ia64*)
8478         # +Z the default
8479         ;;
8480       *)
8481         lt_prog_compiler_pic='+Z'
8482         ;;
8483       esac
8484       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8485       lt_prog_compiler_static='${wl}-a ${wl}archive'
8486       ;;
8487
8488     irix5* | irix6* | nonstopux*)
8489       lt_prog_compiler_wl='-Wl,'
8490       # PIC (with -KPIC) is the default.
8491       lt_prog_compiler_static='-non_shared'
8492       ;;
8493
8494     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8495       case $cc_basename in
8496       # old Intel for x86_64 which still supported -KPIC.
8497       ecc*)
8498         lt_prog_compiler_wl='-Wl,'
8499         lt_prog_compiler_pic='-KPIC'
8500         lt_prog_compiler_static='-static'
8501         ;;
8502       # icc used to be incompatible with GCC.
8503       # ICC 10 doesn't accept -KPIC any more.
8504       icc* | ifort*)
8505         lt_prog_compiler_wl='-Wl,'
8506         lt_prog_compiler_pic='-fPIC'
8507         lt_prog_compiler_static='-static'
8508         ;;
8509       # Lahey Fortran 8.1.
8510       lf95*)
8511         lt_prog_compiler_wl='-Wl,'
8512         lt_prog_compiler_pic='--shared'
8513         lt_prog_compiler_static='--static'
8514         ;;
8515       nagfor*)
8516         # NAG Fortran compiler
8517         lt_prog_compiler_wl='-Wl,-Wl,,'
8518         lt_prog_compiler_pic='-PIC'
8519         lt_prog_compiler_static='-Bstatic'
8520         ;;
8521       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8522         # Portland Group compilers (*not* the Pentium gcc compiler,
8523         # which looks to be a dead project)
8524         lt_prog_compiler_wl='-Wl,'
8525         lt_prog_compiler_pic='-fpic'
8526         lt_prog_compiler_static='-Bstatic'
8527         ;;
8528       ccc*)
8529         lt_prog_compiler_wl='-Wl,'
8530         # All Alpha code is PIC.
8531         lt_prog_compiler_static='-non_shared'
8532         ;;
8533       xl* | bgxl* | bgf* | mpixl*)
8534         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8535         lt_prog_compiler_wl='-Wl,'
8536         lt_prog_compiler_pic='-qpic'
8537         lt_prog_compiler_static='-qstaticlink'
8538         ;;
8539       *)
8540         case `$CC -V 2>&1 | sed 5q` in
8541         *Sun\ F* | *Sun*Fortran*)
8542           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8543           lt_prog_compiler_pic='-KPIC'
8544           lt_prog_compiler_static='-Bstatic'
8545           lt_prog_compiler_wl=''
8546           ;;
8547         *Sun\ C*)
8548           # Sun C 5.9
8549           lt_prog_compiler_pic='-KPIC'
8550           lt_prog_compiler_static='-Bstatic'
8551           lt_prog_compiler_wl='-Wl,'
8552           ;;
8553         esac
8554         ;;
8555       esac
8556       ;;
8557
8558     newsos6)
8559       lt_prog_compiler_pic='-KPIC'
8560       lt_prog_compiler_static='-Bstatic'
8561       ;;
8562
8563     *nto* | *qnx*)
8564       # QNX uses GNU C++, but need to define -shared option too, otherwise
8565       # it will coredump.
8566       lt_prog_compiler_pic='-fPIC -shared'
8567       ;;
8568
8569     osf3* | osf4* | osf5*)
8570       lt_prog_compiler_wl='-Wl,'
8571       # All OSF/1 code is PIC.
8572       lt_prog_compiler_static='-non_shared'
8573       ;;
8574
8575     rdos*)
8576       lt_prog_compiler_static='-non_shared'
8577       ;;
8578
8579     solaris*)
8580       lt_prog_compiler_pic='-KPIC'
8581       lt_prog_compiler_static='-Bstatic'
8582       case $cc_basename in
8583       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8584         lt_prog_compiler_wl='-Qoption ld ';;
8585       *)
8586         lt_prog_compiler_wl='-Wl,';;
8587       esac
8588       ;;
8589
8590     sunos4*)
8591       lt_prog_compiler_wl='-Qoption ld '
8592       lt_prog_compiler_pic='-PIC'
8593       lt_prog_compiler_static='-Bstatic'
8594       ;;
8595
8596     sysv4 | sysv4.2uw2* | sysv4.3*)
8597       lt_prog_compiler_wl='-Wl,'
8598       lt_prog_compiler_pic='-KPIC'
8599       lt_prog_compiler_static='-Bstatic'
8600       ;;
8601
8602     sysv4*MP*)
8603       if test -d /usr/nec ;then
8604         lt_prog_compiler_pic='-Kconform_pic'
8605         lt_prog_compiler_static='-Bstatic'
8606       fi
8607       ;;
8608
8609     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8610       lt_prog_compiler_wl='-Wl,'
8611       lt_prog_compiler_pic='-KPIC'
8612       lt_prog_compiler_static='-Bstatic'
8613       ;;
8614
8615     unicos*)
8616       lt_prog_compiler_wl='-Wl,'
8617       lt_prog_compiler_can_build_shared=no
8618       ;;
8619
8620     uts4*)
8621       lt_prog_compiler_pic='-pic'
8622       lt_prog_compiler_static='-Bstatic'
8623       ;;
8624
8625     *)
8626       lt_prog_compiler_can_build_shared=no
8627       ;;
8628     esac
8629   fi
8630
8631 case $host_os in
8632   # For platforms which do not support PIC, -DPIC is meaningless:
8633   *djgpp*)
8634     lt_prog_compiler_pic=
8635     ;;
8636   *)
8637     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8638     ;;
8639 esac
8640
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8642 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8643 if ${lt_cv_prog_compiler_pic+:} false; then :
8644   $as_echo_n "(cached) " >&6
8645 else
8646   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8649 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8650 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8651
8652 #
8653 # Check to make sure the PIC flag actually works.
8654 #
8655 if test -n "$lt_prog_compiler_pic"; then
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8658 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   lt_cv_prog_compiler_pic_works=no
8662    ac_outfile=conftest.$ac_objext
8663    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8665    # Insert the option either (1) after the last *FLAGS variable, or
8666    # (2) before a word containing "conftest.", or (3) at the end.
8667    # Note that $ac_compile itself does not contain backslashes and begins
8668    # with a dollar sign (not a hyphen), so the echo should work correctly.
8669    # The option is referenced via a variable to avoid confusing sed.
8670    lt_compile=`echo "$ac_compile" | $SED \
8671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8673    -e 's:$: $lt_compiler_flag:'`
8674    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8675    (eval "$lt_compile" 2>conftest.err)
8676    ac_status=$?
8677    cat conftest.err >&5
8678    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679    if (exit $ac_status) && test -s "$ac_outfile"; then
8680      # The compiler can only warn and ignore the option if not recognized
8681      # So say no if there are warnings other than the usual output.
8682      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8683      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8685        lt_cv_prog_compiler_pic_works=yes
8686      fi
8687    fi
8688    $RM conftest*
8689
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8692 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8693
8694 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8695     case $lt_prog_compiler_pic in
8696      "" | " "*) ;;
8697      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8698      esac
8699 else
8700     lt_prog_compiler_pic=
8701      lt_prog_compiler_can_build_shared=no
8702 fi
8703
8704 fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 #
8717 # Check to make sure the static flag actually works.
8718 #
8719 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8721 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8722 if ${lt_cv_prog_compiler_static_works+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_prog_compiler_static_works=no
8726    save_LDFLAGS="$LDFLAGS"
8727    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8728    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8729    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8730      # The linker can only warn and ignore the option if not recognized
8731      # So say no if there are warnings
8732      if test -s conftest.err; then
8733        # Append any errors to the config.log.
8734        cat conftest.err 1>&5
8735        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8736        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737        if diff conftest.exp conftest.er2 >/dev/null; then
8738          lt_cv_prog_compiler_static_works=yes
8739        fi
8740      else
8741        lt_cv_prog_compiler_static_works=yes
8742      fi
8743    fi
8744    $RM -r conftest*
8745    LDFLAGS="$save_LDFLAGS"
8746
8747 fi
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8749 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8750
8751 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8752     :
8753 else
8754     lt_prog_compiler_static=
8755 fi
8756
8757
8758
8759
8760
8761
8762
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8764 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8765 if ${lt_cv_prog_compiler_c_o+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   lt_cv_prog_compiler_c_o=no
8769    $RM -r conftest 2>/dev/null
8770    mkdir conftest
8771    cd conftest
8772    mkdir out
8773    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774
8775    lt_compiler_flag="-o out/conftest2.$ac_objext"
8776    # Insert the option either (1) after the last *FLAGS variable, or
8777    # (2) before a word containing "conftest.", or (3) at the end.
8778    # Note that $ac_compile itself does not contain backslashes and begins
8779    # with a dollar sign (not a hyphen), so the echo should work correctly.
8780    lt_compile=`echo "$ac_compile" | $SED \
8781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783    -e 's:$: $lt_compiler_flag:'`
8784    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785    (eval "$lt_compile" 2>out/conftest.err)
8786    ac_status=$?
8787    cat out/conftest.err >&5
8788    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8790    then
8791      # The compiler can only warn and ignore the option if not recognized
8792      # So say no if there are warnings
8793      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8794      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8795      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8796        lt_cv_prog_compiler_c_o=yes
8797      fi
8798    fi
8799    chmod u+w . 2>&5
8800    $RM conftest*
8801    # SGI C++ compiler will create directory out/ii_files/ for
8802    # template instantiation
8803    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8804    $RM out/* && rmdir out
8805    cd ..
8806    $RM -r conftest
8807    $RM conftest*
8808
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8811 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8812
8813
8814
8815
8816
8817
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8820 if ${lt_cv_prog_compiler_c_o+:} false; then :
8821   $as_echo_n "(cached) " >&6
8822 else
8823   lt_cv_prog_compiler_c_o=no
8824    $RM -r conftest 2>/dev/null
8825    mkdir conftest
8826    cd conftest
8827    mkdir out
8828    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829
8830    lt_compiler_flag="-o out/conftest2.$ac_objext"
8831    # Insert the option either (1) after the last *FLAGS variable, or
8832    # (2) before a word containing "conftest.", or (3) at the end.
8833    # Note that $ac_compile itself does not contain backslashes and begins
8834    # with a dollar sign (not a hyphen), so the echo should work correctly.
8835    lt_compile=`echo "$ac_compile" | $SED \
8836    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8838    -e 's:$: $lt_compiler_flag:'`
8839    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8840    (eval "$lt_compile" 2>out/conftest.err)
8841    ac_status=$?
8842    cat out/conftest.err >&5
8843    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8845    then
8846      # The compiler can only warn and ignore the option if not recognized
8847      # So say no if there are warnings
8848      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8849      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8850      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8851        lt_cv_prog_compiler_c_o=yes
8852      fi
8853    fi
8854    chmod u+w . 2>&5
8855    $RM conftest*
8856    # SGI C++ compiler will create directory out/ii_files/ for
8857    # template instantiation
8858    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8859    $RM out/* && rmdir out
8860    cd ..
8861    $RM -r conftest
8862    $RM conftest*
8863
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8866 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8867
8868
8869
8870
8871 hard_links="nottested"
8872 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8873   # do not overwrite the value of need_locks provided by the user
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8875 $as_echo_n "checking if we can lock with hard links... " >&6; }
8876   hard_links=yes
8877   $RM conftest*
8878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8879   touch conftest.a
8880   ln conftest.a conftest.b 2>&5 || hard_links=no
8881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8883 $as_echo "$hard_links" >&6; }
8884   if test "$hard_links" = no; then
8885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8886 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8887     need_locks=warn
8888   fi
8889 else
8890   need_locks=no
8891 fi
8892
8893
8894
8895
8896
8897
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8899 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8900
8901   runpath_var=
8902   allow_undefined_flag=
8903   always_export_symbols=no
8904   archive_cmds=
8905   archive_expsym_cmds=
8906   compiler_needs_object=no
8907   enable_shared_with_static_runtimes=no
8908   export_dynamic_flag_spec=
8909   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8910   hardcode_automatic=no
8911   hardcode_direct=no
8912   hardcode_direct_absolute=no
8913   hardcode_libdir_flag_spec=
8914   hardcode_libdir_flag_spec_ld=
8915   hardcode_libdir_separator=
8916   hardcode_minus_L=no
8917   hardcode_shlibpath_var=unsupported
8918   inherit_rpath=no
8919   link_all_deplibs=unknown
8920   module_cmds=
8921   module_expsym_cmds=
8922   old_archive_from_new_cmds=
8923   old_archive_from_expsyms_cmds=
8924   thread_safe_flag_spec=
8925   whole_archive_flag_spec=
8926   # include_expsyms should be a list of space-separated symbols to be *always*
8927   # included in the symbol list
8928   include_expsyms=
8929   # exclude_expsyms can be an extended regexp of symbols to exclude
8930   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8931   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8932   # as well as any symbol that contains `d'.
8933   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8934   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8935   # platforms (ab)use it in PIC code, but their linkers get confused if
8936   # the symbol is explicitly referenced.  Since portable code cannot
8937   # rely on this symbol name, it's probably fine to never include it in
8938   # preloaded symbol tables.
8939   # Exclude shared library initialization/finalization symbols.
8940   extract_expsyms_cmds=
8941
8942   case $host_os in
8943   cygwin* | mingw* | pw32* | cegcc*)
8944     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8945     # When not using gcc, we currently assume that we are using
8946     # Microsoft Visual C++.
8947     if test "$GCC" != yes; then
8948       with_gnu_ld=no
8949     fi
8950     ;;
8951   interix*)
8952     # we just hope/assume this is gcc and not c89 (= MSVC++)
8953     with_gnu_ld=yes
8954     ;;
8955   openbsd*)
8956     with_gnu_ld=no
8957     ;;
8958   esac
8959
8960   ld_shlibs=yes
8961
8962   # On some targets, GNU ld is compatible enough with the native linker
8963   # that we're better off using the native interface for both.
8964   lt_use_gnu_ld_interface=no
8965   if test "$with_gnu_ld" = yes; then
8966     case $host_os in
8967       aix*)
8968         # The AIX port of GNU ld has always aspired to compatibility
8969         # with the native linker.  However, as the warning in the GNU ld
8970         # block says, versions before 2.19.5* couldn't really create working
8971         # shared libraries, regardless of the interface used.
8972         case `$LD -v 2>&1` in
8973           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8974           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8975           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8976           *)
8977             lt_use_gnu_ld_interface=yes
8978             ;;
8979         esac
8980         ;;
8981       *)
8982         lt_use_gnu_ld_interface=yes
8983         ;;
8984     esac
8985   fi
8986
8987   if test "$lt_use_gnu_ld_interface" = yes; then
8988     # If archive_cmds runs LD, not CC, wlarc should be empty
8989     wlarc='${wl}'
8990
8991     # Set some defaults for GNU ld with shared library support. These
8992     # are reset later if shared libraries are not supported. Putting them
8993     # here allows them to be overridden if necessary.
8994     runpath_var=LD_RUN_PATH
8995     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8996     export_dynamic_flag_spec='${wl}--export-dynamic'
8997     # ancient GNU ld didn't support --whole-archive et. al.
8998     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8999       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9000     else
9001       whole_archive_flag_spec=
9002     fi
9003     supports_anon_versioning=no
9004     case `$LD -v 2>&1` in
9005       *GNU\ gold*) supports_anon_versioning=yes ;;
9006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9009       *\ 2.11.*) ;; # other 2.11 versions
9010       *) supports_anon_versioning=yes ;;
9011     esac
9012
9013     # See if GNU ld supports shared libraries.
9014     case $host_os in
9015     aix[3-9]*)
9016       # On AIX/PPC, the GNU linker is very broken
9017       if test "$host_cpu" != ia64; then
9018         ld_shlibs=no
9019         cat <<_LT_EOF 1>&2
9020
9021 *** Warning: the GNU linker, at least up to release 2.19, is reported
9022 *** to be unable to reliably create shared libraries on AIX.
9023 *** Therefore, libtool is disabling shared libraries support.  If you
9024 *** really care for shared libraries, you may want to install binutils
9025 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9026 *** You will then need to restart the configuration process.
9027
9028 _LT_EOF
9029       fi
9030       ;;
9031
9032     amigaos*)
9033       case $host_cpu in
9034       powerpc)
9035             # see comment about AmigaOS4 .so support
9036             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037             archive_expsym_cmds=''
9038         ;;
9039       m68k)
9040             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)'
9041             hardcode_libdir_flag_spec='-L$libdir'
9042             hardcode_minus_L=yes
9043         ;;
9044       esac
9045       ;;
9046
9047     beos*)
9048       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049         allow_undefined_flag=unsupported
9050         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9051         # support --undefined.  This deserves some investigation.  FIXME
9052         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053       else
9054         ld_shlibs=no
9055       fi
9056       ;;
9057
9058     cygwin* | mingw* | pw32* | cegcc*)
9059       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9060       # as there is no search path for DLLs.
9061       hardcode_libdir_flag_spec='-L$libdir'
9062       export_dynamic_flag_spec='${wl}--export-all-symbols'
9063       allow_undefined_flag=unsupported
9064       always_export_symbols=no
9065       enable_shared_with_static_runtimes=yes
9066       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'
9067       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9068
9069       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9070         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9071         # If the export-symbols file already is a .def file (1st line
9072         # is EXPORTS), use it as is; otherwise, prepend...
9073         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9074           cp $export_symbols $output_objdir/$soname.def;
9075         else
9076           echo EXPORTS > $output_objdir/$soname.def;
9077           cat $export_symbols >> $output_objdir/$soname.def;
9078         fi~
9079         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9080       else
9081         ld_shlibs=no
9082       fi
9083       ;;
9084
9085     haiku*)
9086       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087       link_all_deplibs=yes
9088       ;;
9089
9090     interix[3-9]*)
9091       hardcode_direct=no
9092       hardcode_shlibpath_var=no
9093       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094       export_dynamic_flag_spec='${wl}-E'
9095       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9096       # Instead, shared libraries are loaded at an image base (0x10000000 by
9097       # default) and relocated if they conflict, which is a slow very memory
9098       # consuming and fragmenting process.  To avoid this, we pick a random,
9099       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9100       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9101       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9102       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'
9103       ;;
9104
9105     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9106       tmp_diet=no
9107       if test "$host_os" = linux-dietlibc; then
9108         case $cc_basename in
9109           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9110         esac
9111       fi
9112       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9113          && test "$tmp_diet" = no
9114       then
9115         tmp_addflag=' $pic_flag'
9116         tmp_sharedflag='-shared'
9117         case $cc_basename,$host_cpu in
9118         pgcc*)                          # Portland Group C compiler
9119           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'
9120           tmp_addflag=' $pic_flag'
9121           ;;
9122         pgf77* | pgf90* | pgf95* | pgfortran*)
9123                                         # Portland Group f77 and f90 compilers
9124           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'
9125           tmp_addflag=' $pic_flag -Mnomain' ;;
9126         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9127           tmp_addflag=' -i_dynamic' ;;
9128         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9129           tmp_addflag=' -i_dynamic -nofor_main' ;;
9130         ifc* | ifort*)                  # Intel Fortran compiler
9131           tmp_addflag=' -nofor_main' ;;
9132         lf95*)                          # Lahey Fortran 8.1
9133           whole_archive_flag_spec=
9134           tmp_sharedflag='--shared' ;;
9135         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9136           tmp_sharedflag='-qmkshrobj'
9137           tmp_addflag= ;;
9138         nvcc*)  # Cuda Compiler Driver 2.2
9139           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'
9140           compiler_needs_object=yes
9141           ;;
9142         esac
9143         case `$CC -V 2>&1 | sed 5q` in
9144         *Sun\ C*)                       # Sun C 5.9
9145           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'
9146           compiler_needs_object=yes
9147           tmp_sharedflag='-G' ;;
9148         *Sun\ F*)                       # Sun Fortran 8.3
9149           tmp_sharedflag='-G' ;;
9150         esac
9151         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152
9153         if test "x$supports_anon_versioning" = xyes; then
9154           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9155             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9156             echo "local: *; };" >> $output_objdir/$libname.ver~
9157             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9158         fi
9159
9160         case $cc_basename in
9161         xlf* | bgf* | bgxlf* | mpixlf*)
9162           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9163           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9164           hardcode_libdir_flag_spec=
9165           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9166           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9167           if test "x$supports_anon_versioning" = xyes; then
9168             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9169               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9170               echo "local: *; };" >> $output_objdir/$libname.ver~
9171               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9172           fi
9173           ;;
9174         esac
9175       else
9176         ld_shlibs=no
9177       fi
9178       ;;
9179
9180     netbsd*)
9181       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9182         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9183         wlarc=
9184       else
9185         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9187       fi
9188       ;;
9189
9190     solaris*)
9191       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9192         ld_shlibs=no
9193         cat <<_LT_EOF 1>&2
9194
9195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9196 *** create shared libraries on Solaris systems.  Therefore, libtool
9197 *** is disabling shared libraries support.  We urge you to upgrade GNU
9198 *** binutils to release 2.9.1 or newer.  Another option is to modify
9199 *** your PATH or compiler configuration so that the native linker is
9200 *** used, and then restart.
9201
9202 _LT_EOF
9203       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9204         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9206       else
9207         ld_shlibs=no
9208       fi
9209       ;;
9210
9211     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9212       case `$LD -v 2>&1` in
9213         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9214         ld_shlibs=no
9215         cat <<_LT_EOF 1>&2
9216
9217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9218 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9219 *** is disabling shared libraries support.  We urge you to upgrade GNU
9220 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9221 *** your PATH or compiler configuration so that the native linker is
9222 *** used, and then restart.
9223
9224 _LT_EOF
9225         ;;
9226         *)
9227           # For security reasons, it is highly recommended that you always
9228           # use absolute paths for naming shared libraries, and exclude the
9229           # DT_RUNPATH tag from executables and libraries.  But doing so
9230           # requires that you compile everything twice, which is a pain.
9231           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9235           else
9236             ld_shlibs=no
9237           fi
9238         ;;
9239       esac
9240       ;;
9241
9242     sunos4*)
9243       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9244       wlarc=
9245       hardcode_direct=yes
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     *)
9250       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253       else
9254         ld_shlibs=no
9255       fi
9256       ;;
9257     esac
9258
9259     if test "$ld_shlibs" = no; then
9260       runpath_var=
9261       hardcode_libdir_flag_spec=
9262       export_dynamic_flag_spec=
9263       whole_archive_flag_spec=
9264     fi
9265   else
9266     # PORTME fill in a description of your system's linker (not GNU ld)
9267     case $host_os in
9268     aix3*)
9269       allow_undefined_flag=unsupported
9270       always_export_symbols=yes
9271       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'
9272       # Note: this linker hardcodes the directories in LIBPATH if there
9273       # are no directories specified by -L.
9274       hardcode_minus_L=yes
9275       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9276         # Neither direct hardcoding nor static linking is supported with a
9277         # broken collect2.
9278         hardcode_direct=unsupported
9279       fi
9280       ;;
9281
9282     aix[4-9]*)
9283       if test "$host_cpu" = ia64; then
9284         # On IA64, the linker does run time linking by default, so we don't
9285         # have to do anything special.
9286         aix_use_runtimelinking=no
9287         exp_sym_flag='-Bexport'
9288         no_entry_flag=""
9289       else
9290         # If we're using GNU nm, then we don't want the "-C" option.
9291         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9292         # Also, AIX nm treats weak defined symbols like other global
9293         # defined symbols, whereas GNU nm marks them as "W".
9294         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9295           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'
9296         else
9297           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'
9298         fi
9299         aix_use_runtimelinking=no
9300
9301         # Test if we are trying to use run time linking or normal
9302         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9303         # need to do runtime linking.
9304         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9305           for ld_flag in $LDFLAGS; do
9306           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9307             aix_use_runtimelinking=yes
9308             break
9309           fi
9310           done
9311           ;;
9312         esac
9313
9314         exp_sym_flag='-bexport'
9315         no_entry_flag='-bnoentry'
9316       fi
9317
9318       # When large executables or shared objects are built, AIX ld can
9319       # have problems creating the table of contents.  If linking a library
9320       # or program results in "error TOC overflow" add -mminimal-toc to
9321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9323
9324       archive_cmds=''
9325       hardcode_direct=yes
9326       hardcode_direct_absolute=yes
9327       hardcode_libdir_separator=':'
9328       link_all_deplibs=yes
9329       file_list_spec='${wl}-f,'
9330
9331       if test "$GCC" = yes; then
9332         case $host_os in aix4.[012]|aix4.[012].*)
9333         # We only want to do this on AIX 4.2 and lower, the check
9334         # below for broken collect2 doesn't work under 4.3+
9335           collect2name=`${CC} -print-prog-name=collect2`
9336           if test -f "$collect2name" &&
9337            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9338           then
9339           # We have reworked collect2
9340           :
9341           else
9342           # We have old collect2
9343           hardcode_direct=unsupported
9344           # It fails to find uninstalled libraries when the uninstalled
9345           # path is not listed in the libpath.  Setting hardcode_minus_L
9346           # to unsupported forces relinking
9347           hardcode_minus_L=yes
9348           hardcode_libdir_flag_spec='-L$libdir'
9349           hardcode_libdir_separator=
9350           fi
9351           ;;
9352         esac
9353         shared_flag='-shared'
9354         if test "$aix_use_runtimelinking" = yes; then
9355           shared_flag="$shared_flag "'${wl}-G'
9356         fi
9357       else
9358         # not using gcc
9359         if test "$host_cpu" = ia64; then
9360         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9361         # chokes on -Wl,-G. The following line is correct:
9362           shared_flag='-G'
9363         else
9364           if test "$aix_use_runtimelinking" = yes; then
9365             shared_flag='${wl}-G'
9366           else
9367             shared_flag='${wl}-bM:SRE'
9368           fi
9369         fi
9370       fi
9371
9372       export_dynamic_flag_spec='${wl}-bexpall'
9373       # It seems that -bexpall does not export symbols beginning with
9374       # underscore (_), so it is better to generate a list of symbols to export.
9375       always_export_symbols=yes
9376       if test "$aix_use_runtimelinking" = yes; then
9377         # Warning - without using the other runtime loading flags (-brtl),
9378         # -berok will link without error, but may produce a broken library.
9379         allow_undefined_flag='-berok'
9380         # Determine the default libpath from the value encoded in an
9381         # empty executable.
9382         if test "${lt_cv_aix_libpath+set}" = set; then
9383   aix_libpath=$lt_cv_aix_libpath
9384 else
9385   if ${lt_cv_aix_libpath_+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h.  */
9390
9391 int
9392 main ()
9393 {
9394
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400
9401   lt_aix_libpath_sed='
9402       /Import File Strings/,/^$/ {
9403           /^0/ {
9404               s/^0  *\([^ ]*\) *$/\1/
9405               p
9406           }
9407       }'
9408   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409   # Check for a 64-bit object if we didn't find anything.
9410   if test -z "$lt_cv_aix_libpath_"; then
9411     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9412   fi
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext \
9415     conftest$ac_exeext conftest.$ac_ext
9416   if test -z "$lt_cv_aix_libpath_"; then
9417     lt_cv_aix_libpath_="/usr/lib:/lib"
9418   fi
9419
9420 fi
9421
9422   aix_libpath=$lt_cv_aix_libpath_
9423 fi
9424
9425         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9426         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"
9427       else
9428         if test "$host_cpu" = ia64; then
9429           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9430           allow_undefined_flag="-z nodefs"
9431           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"
9432         else
9433          # Determine the default libpath from the value encoded in an
9434          # empty executable.
9435          if test "${lt_cv_aix_libpath+set}" = set; then
9436   aix_libpath=$lt_cv_aix_libpath
9437 else
9438   if ${lt_cv_aix_libpath_+:} false; then :
9439   $as_echo_n "(cached) " >&6
9440 else
9441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h.  */
9443
9444 int
9445 main ()
9446 {
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_link "$LINENO"; then :
9453
9454   lt_aix_libpath_sed='
9455       /Import File Strings/,/^$/ {
9456           /^0/ {
9457               s/^0  *\([^ ]*\) *$/\1/
9458               p
9459           }
9460       }'
9461   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462   # Check for a 64-bit object if we didn't find anything.
9463   if test -z "$lt_cv_aix_libpath_"; then
9464     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465   fi
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext \
9468     conftest$ac_exeext conftest.$ac_ext
9469   if test -z "$lt_cv_aix_libpath_"; then
9470     lt_cv_aix_libpath_="/usr/lib:/lib"
9471   fi
9472
9473 fi
9474
9475   aix_libpath=$lt_cv_aix_libpath_
9476 fi
9477
9478          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9479           # Warning - without using the other run time loading flags,
9480           # -berok will link without error, but may produce a broken library.
9481           no_undefined_flag=' ${wl}-bernotok'
9482           allow_undefined_flag=' ${wl}-berok'
9483           if test "$with_gnu_ld" = yes; then
9484             # We only use this code for GNU lds that support --whole-archive.
9485             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9486           else
9487             # Exported symbols can be pulled into shared objects from archives
9488             whole_archive_flag_spec='$convenience'
9489           fi
9490           archive_cmds_need_lc=yes
9491           # This is similar to how AIX traditionally builds its shared libraries.
9492           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'
9493         fi
9494       fi
9495       ;;
9496
9497     amigaos*)
9498       case $host_cpu in
9499       powerpc)
9500             # see comment about AmigaOS4 .so support
9501             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502             archive_expsym_cmds=''
9503         ;;
9504       m68k)
9505             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)'
9506             hardcode_libdir_flag_spec='-L$libdir'
9507             hardcode_minus_L=yes
9508         ;;
9509       esac
9510       ;;
9511
9512     bsdi[45]*)
9513       export_dynamic_flag_spec=-rdynamic
9514       ;;
9515
9516     cygwin* | mingw* | pw32* | cegcc*)
9517       # When not using gcc, we currently assume that we are using
9518       # Microsoft Visual C++.
9519       # hardcode_libdir_flag_spec is actually meaningless, as there is
9520       # no search path for DLLs.
9521       case $cc_basename in
9522       cl*)
9523         # Native MSVC
9524         hardcode_libdir_flag_spec=' '
9525         allow_undefined_flag=unsupported
9526         always_export_symbols=yes
9527         file_list_spec='@'
9528         # Tell ltmain to make .lib files, not .a files.
9529         libext=lib
9530         # Tell ltmain to make .dll files, not .so files.
9531         shrext_cmds=".dll"
9532         # FIXME: Setting linknames here is a bad hack.
9533         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9534         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9535             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9536           else
9537             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9538           fi~
9539           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9540           linknames='
9541         # The linker will not automatically build a static lib if we build a DLL.
9542         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9543         enable_shared_with_static_runtimes=yes
9544         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9545         # Don't use ranlib
9546         old_postinstall_cmds='chmod 644 $oldlib'
9547         postlink_cmds='lt_outputfile="@OUTPUT@"~
9548           lt_tool_outputfile="@TOOL_OUTPUT@"~
9549           case $lt_outputfile in
9550             *.exe|*.EXE) ;;
9551             *)
9552               lt_outputfile="$lt_outputfile.exe"
9553               lt_tool_outputfile="$lt_tool_outputfile.exe"
9554               ;;
9555           esac~
9556           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9557             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9558             $RM "$lt_outputfile.manifest";
9559           fi'
9560         ;;
9561       *)
9562         # Assume MSVC wrapper
9563         hardcode_libdir_flag_spec=' '
9564         allow_undefined_flag=unsupported
9565         # Tell ltmain to make .lib files, not .a files.
9566         libext=lib
9567         # Tell ltmain to make .dll files, not .so files.
9568         shrext_cmds=".dll"
9569         # FIXME: Setting linknames here is a bad hack.
9570         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9571         # The linker will automatically build a .lib file if we build a DLL.
9572         old_archive_from_new_cmds='true'
9573         # FIXME: Should let the user specify the lib program.
9574         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9575         enable_shared_with_static_runtimes=yes
9576         ;;
9577       esac
9578       ;;
9579
9580     darwin* | rhapsody*)
9581
9582
9583   archive_cmds_need_lc=no
9584   hardcode_direct=no
9585   hardcode_automatic=yes
9586   hardcode_shlibpath_var=unsupported
9587   if test "$lt_cv_ld_force_load" = "yes"; then
9588     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\"`'
9589   else
9590     whole_archive_flag_spec=''
9591   fi
9592   link_all_deplibs=yes
9593   allow_undefined_flag="$_lt_dar_allow_undefined"
9594   case $cc_basename in
9595      ifort*) _lt_dar_can_shared=yes ;;
9596      *) _lt_dar_can_shared=$GCC ;;
9597   esac
9598   if test "$_lt_dar_can_shared" = "yes"; then
9599     output_verbose_link_cmd=func_echo_all
9600     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9601     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9602     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}"
9603     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}"
9604
9605   else
9606   ld_shlibs=no
9607   fi
9608
9609       ;;
9610
9611     dgux*)
9612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613       hardcode_libdir_flag_spec='-L$libdir'
9614       hardcode_shlibpath_var=no
9615       ;;
9616
9617     freebsd1*)
9618       ld_shlibs=no
9619       ;;
9620
9621     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9622     # support.  Future versions do this automatically, but an explicit c++rt0.o
9623     # does not break anything, and helps significantly (at the cost of a little
9624     # extra space).
9625     freebsd2.2*)
9626       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9627       hardcode_libdir_flag_spec='-R$libdir'
9628       hardcode_direct=yes
9629       hardcode_shlibpath_var=no
9630       ;;
9631
9632     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9633     freebsd2*)
9634       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9635       hardcode_direct=yes
9636       hardcode_minus_L=yes
9637       hardcode_shlibpath_var=no
9638       ;;
9639
9640     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9641     freebsd* | dragonfly*)
9642       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9643       hardcode_libdir_flag_spec='-R$libdir'
9644       hardcode_direct=yes
9645       hardcode_shlibpath_var=no
9646       ;;
9647
9648     hpux9*)
9649       if test "$GCC" = yes; then
9650         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'
9651       else
9652         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'
9653       fi
9654       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9655       hardcode_libdir_separator=:
9656       hardcode_direct=yes
9657
9658       # hardcode_minus_L: Not really in the search PATH,
9659       # but as the default location of the library.
9660       hardcode_minus_L=yes
9661       export_dynamic_flag_spec='${wl}-E'
9662       ;;
9663
9664     hpux10*)
9665       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9666         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667       else
9668         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9669       fi
9670       if test "$with_gnu_ld" = no; then
9671         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9672         hardcode_libdir_flag_spec_ld='+b $libdir'
9673         hardcode_libdir_separator=:
9674         hardcode_direct=yes
9675         hardcode_direct_absolute=yes
9676         export_dynamic_flag_spec='${wl}-E'
9677         # hardcode_minus_L: Not really in the search PATH,
9678         # but as the default location of the library.
9679         hardcode_minus_L=yes
9680       fi
9681       ;;
9682
9683     hpux11*)
9684       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9685         case $host_cpu in
9686         hppa*64*)
9687           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9688           ;;
9689         ia64*)
9690           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9691           ;;
9692         *)
9693           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9694           ;;
9695         esac
9696       else
9697         case $host_cpu in
9698         hppa*64*)
9699           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700           ;;
9701         ia64*)
9702           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9703           ;;
9704         *)
9705
9706           # Older versions of the 11.00 compiler do not understand -b yet
9707           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9708           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9709 $as_echo_n "checking if $CC understands -b... " >&6; }
9710 if ${lt_cv_prog_compiler__b+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   lt_cv_prog_compiler__b=no
9714    save_LDFLAGS="$LDFLAGS"
9715    LDFLAGS="$LDFLAGS -b"
9716    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9717    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9718      # The linker can only warn and ignore the option if not recognized
9719      # So say no if there are warnings
9720      if test -s conftest.err; then
9721        # Append any errors to the config.log.
9722        cat conftest.err 1>&5
9723        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9724        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725        if diff conftest.exp conftest.er2 >/dev/null; then
9726          lt_cv_prog_compiler__b=yes
9727        fi
9728      else
9729        lt_cv_prog_compiler__b=yes
9730      fi
9731    fi
9732    $RM -r conftest*
9733    LDFLAGS="$save_LDFLAGS"
9734
9735 fi
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9737 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9738
9739 if test x"$lt_cv_prog_compiler__b" = xyes; then
9740     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744
9745           ;;
9746         esac
9747       fi
9748       if test "$with_gnu_ld" = no; then
9749         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9750         hardcode_libdir_separator=:
9751
9752         case $host_cpu in
9753         hppa*64*|ia64*)
9754           hardcode_direct=no
9755           hardcode_shlibpath_var=no
9756           ;;
9757         *)
9758           hardcode_direct=yes
9759           hardcode_direct_absolute=yes
9760           export_dynamic_flag_spec='${wl}-E'
9761
9762           # hardcode_minus_L: Not really in the search PATH,
9763           # but as the default location of the library.
9764           hardcode_minus_L=yes
9765           ;;
9766         esac
9767       fi
9768       ;;
9769
9770     irix5* | irix6* | nonstopux*)
9771       if test "$GCC" = yes; then
9772         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'
9773         # Try to use the -exported_symbol ld option, if it does not
9774         # work, assume that -exports_file does not work either and
9775         # implicitly export all symbols.
9776         # This should be the same for all languages, so no per-tag cache variable.
9777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9778 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9779 if ${lt_cv_irix_exported_symbol+:} false; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   save_LDFLAGS="$LDFLAGS"
9783            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9784            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786 int foo (void) { return 0; }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789   lt_cv_irix_exported_symbol=yes
9790 else
9791   lt_cv_irix_exported_symbol=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794     conftest$ac_exeext conftest.$ac_ext
9795            LDFLAGS="$save_LDFLAGS"
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9798 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9799         if test "$lt_cv_irix_exported_symbol" = yes; then
9800           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'
9801         fi
9802       else
9803         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'
9804         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'
9805       fi
9806       archive_cmds_need_lc='no'
9807       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9808       hardcode_libdir_separator=:
9809       inherit_rpath=yes
9810       link_all_deplibs=yes
9811       ;;
9812
9813     netbsd*)
9814       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9815         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9816       else
9817         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9818       fi
9819       hardcode_libdir_flag_spec='-R$libdir'
9820       hardcode_direct=yes
9821       hardcode_shlibpath_var=no
9822       ;;
9823
9824     newsos6)
9825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826       hardcode_direct=yes
9827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9828       hardcode_libdir_separator=:
9829       hardcode_shlibpath_var=no
9830       ;;
9831
9832     *nto* | *qnx*)
9833       ;;
9834
9835     openbsd*)
9836       if test -f /usr/libexec/ld.so; then
9837         hardcode_direct=yes
9838         hardcode_shlibpath_var=no
9839         hardcode_direct_absolute=yes
9840         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9841           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9842           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9843           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9844           export_dynamic_flag_spec='${wl}-E'
9845         else
9846           case $host_os in
9847            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9848              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9849              hardcode_libdir_flag_spec='-R$libdir'
9850              ;;
9851            *)
9852              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9853              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9854              ;;
9855           esac
9856         fi
9857       else
9858         ld_shlibs=no
9859       fi
9860       ;;
9861
9862     os2*)
9863       hardcode_libdir_flag_spec='-L$libdir'
9864       hardcode_minus_L=yes
9865       allow_undefined_flag=unsupported
9866       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'
9867       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9868       ;;
9869
9870     osf3*)
9871       if test "$GCC" = yes; then
9872         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9873         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'
9874       else
9875         allow_undefined_flag=' -expect_unresolved \*'
9876         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'
9877       fi
9878       archive_cmds_need_lc='no'
9879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9880       hardcode_libdir_separator=:
9881       ;;
9882
9883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9884       if test "$GCC" = yes; then
9885         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9886         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'
9887         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888       else
9889         allow_undefined_flag=' -expect_unresolved \*'
9890         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'
9891         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~
9892         $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'
9893
9894         # Both c and cxx compiler support -rpath directly
9895         hardcode_libdir_flag_spec='-rpath $libdir'
9896       fi
9897       archive_cmds_need_lc='no'
9898       hardcode_libdir_separator=:
9899       ;;
9900
9901     solaris*)
9902       no_undefined_flag=' -z defs'
9903       if test "$GCC" = yes; then
9904         wlarc='${wl}'
9905         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9906         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907           $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'
9908       else
9909         case `$CC -V 2>&1` in
9910         *"Compilers 5.0"*)
9911           wlarc=''
9912           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9914           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9915           ;;
9916         *)
9917           wlarc='${wl}'
9918           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9919           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9920           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9921           ;;
9922         esac
9923       fi
9924       hardcode_libdir_flag_spec='-R$libdir'
9925       hardcode_shlibpath_var=no
9926       case $host_os in
9927       solaris2.[0-5] | solaris2.[0-5].*) ;;
9928       *)
9929         # The compiler driver will combine and reorder linker options,
9930         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9931         # but is careful enough not to reorder.
9932         # Supported since Solaris 2.6 (maybe 2.5.1?)
9933         if test "$GCC" = yes; then
9934           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9935         else
9936           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9937         fi
9938         ;;
9939       esac
9940       link_all_deplibs=yes
9941       ;;
9942
9943     sunos4*)
9944       if test "x$host_vendor" = xsequent; then
9945         # Use $CC to link under sequent, because it throws in some extra .o
9946         # files that make .init and .fini sections work.
9947         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9948       else
9949         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9950       fi
9951       hardcode_libdir_flag_spec='-L$libdir'
9952       hardcode_direct=yes
9953       hardcode_minus_L=yes
9954       hardcode_shlibpath_var=no
9955       ;;
9956
9957     sysv4)
9958       case $host_vendor in
9959         sni)
9960           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961           hardcode_direct=yes # is this really true???
9962         ;;
9963         siemens)
9964           ## LD is ld it makes a PLAMLIB
9965           ## CC just makes a GrossModule.
9966           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9967           reload_cmds='$CC -r -o $output$reload_objs'
9968           hardcode_direct=no
9969         ;;
9970         motorola)
9971           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9973         ;;
9974       esac
9975       runpath_var='LD_RUN_PATH'
9976       hardcode_shlibpath_var=no
9977       ;;
9978
9979     sysv4.3*)
9980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981       hardcode_shlibpath_var=no
9982       export_dynamic_flag_spec='-Bexport'
9983       ;;
9984
9985     sysv4*MP*)
9986       if test -d /usr/nec; then
9987         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988         hardcode_shlibpath_var=no
9989         runpath_var=LD_RUN_PATH
9990         hardcode_runpath_var=yes
9991         ld_shlibs=yes
9992       fi
9993       ;;
9994
9995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9996       no_undefined_flag='${wl}-z,text'
9997       archive_cmds_need_lc=no
9998       hardcode_shlibpath_var=no
9999       runpath_var='LD_RUN_PATH'
10000
10001       if test "$GCC" = yes; then
10002         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004       else
10005         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007       fi
10008       ;;
10009
10010     sysv5* | sco3.2v5* | sco5v6*)
10011       # Note: We can NOT use -z defs as we might desire, because we do not
10012       # link with -lc, and that would cause any symbols used from libc to
10013       # always be unresolved, which means just about no library would
10014       # ever link correctly.  If we're not using GNU ld we use -z text
10015       # though, which does catch some bad symbols but isn't as heavy-handed
10016       # as -z defs.
10017       no_undefined_flag='${wl}-z,text'
10018       allow_undefined_flag='${wl}-z,nodefs'
10019       archive_cmds_need_lc=no
10020       hardcode_shlibpath_var=no
10021       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10022       hardcode_libdir_separator=':'
10023       link_all_deplibs=yes
10024       export_dynamic_flag_spec='${wl}-Bexport'
10025       runpath_var='LD_RUN_PATH'
10026
10027       if test "$GCC" = yes; then
10028         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030       else
10031         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033       fi
10034       ;;
10035
10036     uts4*)
10037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038       hardcode_libdir_flag_spec='-L$libdir'
10039       hardcode_shlibpath_var=no
10040       ;;
10041
10042     *)
10043       ld_shlibs=no
10044       ;;
10045     esac
10046
10047     if test x$host_vendor = xsni; then
10048       case $host in
10049       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10050         export_dynamic_flag_spec='${wl}-Blargedynsym'
10051         ;;
10052       esac
10053     fi
10054   fi
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10057 $as_echo "$ld_shlibs" >&6; }
10058 test "$ld_shlibs" = no && can_build_shared=no
10059
10060 with_gnu_ld=$with_gnu_ld
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076 #
10077 # Do we need to explicitly link libc?
10078 #
10079 case "x$archive_cmds_need_lc" in
10080 x|xyes)
10081   # Assume -lc should be added
10082   archive_cmds_need_lc=yes
10083
10084   if test "$enable_shared" = yes && test "$GCC" = yes; then
10085     case $archive_cmds in
10086     *'~'*)
10087       # FIXME: we may have to deal with multi-command sequences.
10088       ;;
10089     '$CC '*)
10090       # Test whether the compiler implicitly links with -lc since on some
10091       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10092       # to ld, don't add -lc before -lgcc.
10093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10094 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10095 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   $RM conftest*
10099         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10100
10101         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10102   (eval $ac_compile) 2>&5
10103   ac_status=$?
10104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10105   test $ac_status = 0; } 2>conftest.err; then
10106           soname=conftest
10107           lib=conftest
10108           libobjs=conftest.$ac_objext
10109           deplibs=
10110           wl=$lt_prog_compiler_wl
10111           pic_flag=$lt_prog_compiler_pic
10112           compiler_flags=-v
10113           linker_flags=-v
10114           verstring=
10115           output_objdir=.
10116           libname=conftest
10117           lt_save_allow_undefined_flag=$allow_undefined_flag
10118           allow_undefined_flag=
10119           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10120   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10121   ac_status=$?
10122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10123   test $ac_status = 0; }
10124           then
10125             lt_cv_archive_cmds_need_lc=no
10126           else
10127             lt_cv_archive_cmds_need_lc=yes
10128           fi
10129           allow_undefined_flag=$lt_save_allow_undefined_flag
10130         else
10131           cat conftest.err 1>&5
10132         fi
10133         $RM conftest*
10134
10135 fi
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10137 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10138       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10139       ;;
10140     esac
10141   fi
10142   ;;
10143 esac
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10302 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10303
10304 if test "$GCC" = yes; then
10305   case $host_os in
10306     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10307     *) lt_awk_arg="/^libraries:/" ;;
10308   esac
10309   case $host_os in
10310     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10311     *) lt_sed_strip_eq="s,=/,/,g" ;;
10312   esac
10313   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10314   case $lt_search_path_spec in
10315   *\;*)
10316     # if the path contains ";" then we assume it to be the separator
10317     # otherwise default to the standard path separator (i.e. ":") - it is
10318     # assumed that no part of a normal pathname contains ";" but that should
10319     # okay in the real world where ";" in dirpaths is itself problematic.
10320     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10321     ;;
10322   *)
10323     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10324     ;;
10325   esac
10326   # Ok, now we have the path, separated by spaces, we can step through it
10327   # and add multilib dir if necessary.
10328   lt_tmp_lt_search_path_spec=
10329   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10330   for lt_sys_path in $lt_search_path_spec; do
10331     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10332       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10333     else
10334       test -d "$lt_sys_path" && \
10335         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10336     fi
10337   done
10338   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10339 BEGIN {RS=" "; FS="/|\n";} {
10340   lt_foo="";
10341   lt_count=0;
10342   for (lt_i = NF; lt_i > 0; lt_i--) {
10343     if ($lt_i != "" && $lt_i != ".") {
10344       if ($lt_i == "..") {
10345         lt_count++;
10346       } else {
10347         if (lt_count == 0) {
10348           lt_foo="/" $lt_i lt_foo;
10349         } else {
10350           lt_count--;
10351         }
10352       }
10353     }
10354   }
10355   if (lt_foo != "") { lt_freq[lt_foo]++; }
10356   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10357 }'`
10358   # AWK program above erroneously prepends '/' to C:/dos/paths
10359   # for these hosts.
10360   case $host_os in
10361     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10362       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10363   esac
10364   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10365 else
10366   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10367 fi
10368 library_names_spec=
10369 libname_spec='lib$name'
10370 soname_spec=
10371 shrext_cmds=".so"
10372 postinstall_cmds=
10373 postuninstall_cmds=
10374 finish_cmds=
10375 finish_eval=
10376 shlibpath_var=
10377 shlibpath_overrides_runpath=unknown
10378 version_type=none
10379 dynamic_linker="$host_os ld.so"
10380 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10381 need_lib_prefix=unknown
10382 hardcode_into_libs=no
10383
10384 # when you set need_version to no, make sure it does not cause -set_version
10385 # flags to be left without arguments
10386 need_version=unknown
10387
10388 case $host_os in
10389 aix3*)
10390   version_type=linux
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10392   shlibpath_var=LIBPATH
10393
10394   # AIX 3 has no versioning support, so we append a major version to the name.
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   ;;
10397
10398 aix[4-9]*)
10399   version_type=linux
10400   need_lib_prefix=no
10401   need_version=no
10402   hardcode_into_libs=yes
10403   if test "$host_cpu" = ia64; then
10404     # AIX 5 supports IA64
10405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10406     shlibpath_var=LD_LIBRARY_PATH
10407   else
10408     # With GCC up to 2.95.x, collect2 would create an import file
10409     # for dependence libraries.  The import file would start with
10410     # the line `#! .'.  This would cause the generated library to
10411     # depend on `.', always an invalid library.  This was fixed in
10412     # development snapshots of GCC prior to 3.0.
10413     case $host_os in
10414       aix4 | aix4.[01] | aix4.[01].*)
10415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10416            echo ' yes '
10417            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10418         :
10419       else
10420         can_build_shared=no
10421       fi
10422       ;;
10423     esac
10424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10425     # soname into executable. Probably we can add versioning support to
10426     # collect2, so additional links can be useful in future.
10427     if test "$aix_use_runtimelinking" = yes; then
10428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10429       # instead of lib<name>.a to let people know that these are not
10430       # typical AIX shared libraries.
10431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432     else
10433       # We preserve .a as extension for shared libraries through AIX4.2
10434       # and later when we are not doing run time linking.
10435       library_names_spec='${libname}${release}.a $libname.a'
10436       soname_spec='${libname}${release}${shared_ext}$major'
10437     fi
10438     shlibpath_var=LIBPATH
10439   fi
10440   ;;
10441
10442 amigaos*)
10443   case $host_cpu in
10444   powerpc)
10445     # Since July 2007 AmigaOS4 officially supports .so libraries.
10446     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448     ;;
10449   m68k)
10450     library_names_spec='$libname.ixlibrary $libname.a'
10451     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10452     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'
10453     ;;
10454   esac
10455   ;;
10456
10457 beos*)
10458   library_names_spec='${libname}${shared_ext}'
10459   dynamic_linker="$host_os ld.so"
10460   shlibpath_var=LIBRARY_PATH
10461   ;;
10462
10463 bsdi[45]*)
10464   version_type=linux
10465   need_version=no
10466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467   soname_spec='${libname}${release}${shared_ext}$major'
10468   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10469   shlibpath_var=LD_LIBRARY_PATH
10470   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10471   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10472   # the default ld.so.conf also contains /usr/contrib/lib and
10473   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10474   # libtool to hard-code these into programs
10475   ;;
10476
10477 cygwin* | mingw* | pw32* | cegcc*)
10478   version_type=windows
10479   shrext_cmds=".dll"
10480   need_version=no
10481   need_lib_prefix=no
10482
10483   case $GCC,$cc_basename in
10484   yes,*)
10485     # gcc
10486     library_names_spec='$libname.dll.a'
10487     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10488     postinstall_cmds='base_file=`basename \${file}`~
10489       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10490       dldir=$destdir/`dirname \$dlpath`~
10491       test -d \$dldir || mkdir -p \$dldir~
10492       $install_prog $dir/$dlname \$dldir/$dlname~
10493       chmod a+x \$dldir/$dlname~
10494       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10495         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10496       fi'
10497     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10498       dlpath=$dir/\$dldll~
10499        $RM \$dlpath'
10500     shlibpath_overrides_runpath=yes
10501
10502     case $host_os in
10503     cygwin*)
10504       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10505       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506
10507       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10508       ;;
10509     mingw* | cegcc*)
10510       # MinGW DLLs use traditional 'lib' prefix
10511       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10512       ;;
10513     pw32*)
10514       # pw32 DLLs use 'pw' prefix rather than 'lib'
10515       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10516       ;;
10517     esac
10518     dynamic_linker='Win32 ld.exe'
10519     ;;
10520
10521   *,cl*)
10522     # Native MSVC
10523     libname_spec='$name'
10524     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10525     library_names_spec='${libname}.dll.lib'
10526
10527     case $build_os in
10528     mingw*)
10529       sys_lib_search_path_spec=
10530       lt_save_ifs=$IFS
10531       IFS=';'
10532       for lt_path in $LIB
10533       do
10534         IFS=$lt_save_ifs
10535         # Let DOS variable expansion print the short 8.3 style file name.
10536         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10537         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10538       done
10539       IFS=$lt_save_ifs
10540       # Convert to MSYS style.
10541       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10542       ;;
10543     cygwin*)
10544       # Convert to unix form, then to dos form, then back to unix form
10545       # but this time dos style (no spaces!) so that the unix form looks
10546       # like /cygdrive/c/PROGRA~1:/cygdr...
10547       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10548       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10549       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10550       ;;
10551     *)
10552       sys_lib_search_path_spec="$LIB"
10553       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10554         # It is most probably a Windows format PATH.
10555         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10556       else
10557         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10558       fi
10559       # FIXME: find the short name or the path components, as spaces are
10560       # common. (e.g. "Program Files" -> "PROGRA~1")
10561       ;;
10562     esac
10563
10564     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565     postinstall_cmds='base_file=`basename \${file}`~
10566       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567       dldir=$destdir/`dirname \$dlpath`~
10568       test -d \$dldir || mkdir -p \$dldir~
10569       $install_prog $dir/$dlname \$dldir/$dlname'
10570     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10571       dlpath=$dir/\$dldll~
10572        $RM \$dlpath'
10573     shlibpath_overrides_runpath=yes
10574     dynamic_linker='Win32 link.exe'
10575     ;;
10576
10577   *)
10578     # Assume MSVC wrapper
10579     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10580     dynamic_linker='Win32 ld.exe'
10581     ;;
10582   esac
10583   # FIXME: first we should search . and the directory the executable is in
10584   shlibpath_var=PATH
10585   ;;
10586
10587 darwin* | rhapsody*)
10588   dynamic_linker="$host_os dyld"
10589   version_type=darwin
10590   need_lib_prefix=no
10591   need_version=no
10592   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10593   soname_spec='${libname}${release}${major}$shared_ext'
10594   shlibpath_overrides_runpath=yes
10595   shlibpath_var=DYLD_LIBRARY_PATH
10596   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10597
10598   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10599   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10600   ;;
10601
10602 dgux*)
10603   version_type=linux
10604   need_lib_prefix=no
10605   need_version=no
10606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10607   soname_spec='${libname}${release}${shared_ext}$major'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   ;;
10610
10611 freebsd1*)
10612   dynamic_linker=no
10613   ;;
10614
10615 freebsd* | dragonfly*)
10616   # DragonFly does not have aout.  When/if they implement a new
10617   # versioning mechanism, adjust this.
10618   if test -x /usr/bin/objformat; then
10619     objformat=`/usr/bin/objformat`
10620   else
10621     case $host_os in
10622     freebsd[123]*) objformat=aout ;;
10623     *) objformat=elf ;;
10624     esac
10625   fi
10626   version_type=freebsd-$objformat
10627   case $version_type in
10628     freebsd-elf*)
10629       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10630       need_version=no
10631       need_lib_prefix=no
10632       ;;
10633     freebsd-*)
10634       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10635       need_version=yes
10636       ;;
10637   esac
10638   shlibpath_var=LD_LIBRARY_PATH
10639   case $host_os in
10640   freebsd2*)
10641     shlibpath_overrides_runpath=yes
10642     ;;
10643   freebsd3.[01]* | freebsdelf3.[01]*)
10644     shlibpath_overrides_runpath=yes
10645     hardcode_into_libs=yes
10646     ;;
10647   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10648   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10649     shlibpath_overrides_runpath=no
10650     hardcode_into_libs=yes
10651     ;;
10652   *) # from 4.6 on, and DragonFly
10653     shlibpath_overrides_runpath=yes
10654     hardcode_into_libs=yes
10655     ;;
10656   esac
10657   ;;
10658
10659 gnu*)
10660   version_type=linux
10661   need_lib_prefix=no
10662   need_version=no
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10664   soname_spec='${libname}${release}${shared_ext}$major'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   hardcode_into_libs=yes
10667   ;;
10668
10669 haiku*)
10670   version_type=linux
10671   need_lib_prefix=no
10672   need_version=no
10673   dynamic_linker="$host_os runtime_loader"
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   shlibpath_var=LIBRARY_PATH
10677   shlibpath_overrides_runpath=yes
10678   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10679   hardcode_into_libs=yes
10680   ;;
10681
10682 hpux9* | hpux10* | hpux11*)
10683   # Give a soname corresponding to the major version so that dld.sl refuses to
10684   # link against other versions.
10685   version_type=sunos
10686   need_lib_prefix=no
10687   need_version=no
10688   case $host_cpu in
10689   ia64*)
10690     shrext_cmds='.so'
10691     hardcode_into_libs=yes
10692     dynamic_linker="$host_os dld.so"
10693     shlibpath_var=LD_LIBRARY_PATH
10694     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696     soname_spec='${libname}${release}${shared_ext}$major'
10697     if test "X$HPUX_IA64_MODE" = X32; then
10698       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10699     else
10700       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10701     fi
10702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10703     ;;
10704   hppa*64*)
10705     shrext_cmds='.sl'
10706     hardcode_into_libs=yes
10707     dynamic_linker="$host_os dld.sl"
10708     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10709     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711     soname_spec='${libname}${release}${shared_ext}$major'
10712     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10713     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10714     ;;
10715   *)
10716     shrext_cmds='.sl'
10717     dynamic_linker="$host_os dld.sl"
10718     shlibpath_var=SHLIB_PATH
10719     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721     soname_spec='${libname}${release}${shared_ext}$major'
10722     ;;
10723   esac
10724   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10725   postinstall_cmds='chmod 555 $lib'
10726   # or fails outright, so override atomically:
10727   install_override_mode=555
10728   ;;
10729
10730 interix[3-9]*)
10731   version_type=linux
10732   need_lib_prefix=no
10733   need_version=no
10734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10735   soname_spec='${libname}${release}${shared_ext}$major'
10736   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10737   shlibpath_var=LD_LIBRARY_PATH
10738   shlibpath_overrides_runpath=no
10739   hardcode_into_libs=yes
10740   ;;
10741
10742 irix5* | irix6* | nonstopux*)
10743   case $host_os in
10744     nonstopux*) version_type=nonstopux ;;
10745     *)
10746         if test "$lt_cv_prog_gnu_ld" = yes; then
10747                 version_type=linux
10748         else
10749                 version_type=irix
10750         fi ;;
10751   esac
10752   need_lib_prefix=no
10753   need_version=no
10754   soname_spec='${libname}${release}${shared_ext}$major'
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10756   case $host_os in
10757   irix5* | nonstopux*)
10758     libsuff= shlibsuff=
10759     ;;
10760   *)
10761     case $LD in # libtool.m4 will add one of these switches to LD
10762     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10763       libsuff= shlibsuff= libmagic=32-bit;;
10764     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10765       libsuff=32 shlibsuff=N32 libmagic=N32;;
10766     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10767       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10768     *) libsuff= shlibsuff= libmagic=never-match;;
10769     esac
10770     ;;
10771   esac
10772   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10773   shlibpath_overrides_runpath=no
10774   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10775   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10776   hardcode_into_libs=yes
10777   ;;
10778
10779 # No shared lib support for Linux oldld, aout, or coff.
10780 linux*oldld* | linux*aout* | linux*coff*)
10781   dynamic_linker=no
10782   ;;
10783
10784 # This must be Linux ELF.
10785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10786   version_type=linux
10787   need_lib_prefix=no
10788   need_version=no
10789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790   soname_spec='${libname}${release}${shared_ext}$major'
10791   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10792   shlibpath_var=LD_LIBRARY_PATH
10793   shlibpath_overrides_runpath=no
10794
10795   # Some binutils ld are patched to set DT_RUNPATH
10796   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799   lt_cv_shlibpath_overrides_runpath=no
10800     save_LDFLAGS=$LDFLAGS
10801     save_libdir=$libdir
10802     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10803          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h.  */
10806
10807 int
10808 main ()
10809 {
10810
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10817   lt_cv_shlibpath_overrides_runpath=yes
10818 fi
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext \
10821     conftest$ac_exeext conftest.$ac_ext
10822     LDFLAGS=$save_LDFLAGS
10823     libdir=$save_libdir
10824
10825 fi
10826
10827   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10828
10829   # This implies no fast_install, which is unacceptable.
10830   # Some rework will be needed to allow for fast_install
10831   # before this can be enabled.
10832   hardcode_into_libs=yes
10833
10834   # Add ABI-specific directories to the system library path.
10835   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10836
10837   # Append ld.so.conf contents to the search path
10838   if test -f /etc/ld.so.conf; then
10839     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' ' '`
10840     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10841
10842   fi
10843
10844   # We used to test for /lib/ld.so.1 and disable shared libraries on
10845   # powerpc, because MkLinux only supported shared libraries with the
10846   # GNU dynamic linker.  Since this was broken with cross compilers,
10847   # most powerpc-linux boxes support dynamic linking these days and
10848   # people can always --disable-shared, the test was removed, and we
10849   # assume the GNU/Linux dynamic linker is in use.
10850   dynamic_linker='GNU/Linux ld.so'
10851   ;;
10852
10853 netbsd*)
10854   version_type=sunos
10855   need_lib_prefix=no
10856   need_version=no
10857   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10859     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10860     dynamic_linker='NetBSD (a.out) ld.so'
10861   else
10862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10863     soname_spec='${libname}${release}${shared_ext}$major'
10864     dynamic_linker='NetBSD ld.elf_so'
10865   fi
10866   shlibpath_var=LD_LIBRARY_PATH
10867   shlibpath_overrides_runpath=yes
10868   hardcode_into_libs=yes
10869   ;;
10870
10871 newsos6)
10872   version_type=linux
10873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874   shlibpath_var=LD_LIBRARY_PATH
10875   shlibpath_overrides_runpath=yes
10876   ;;
10877
10878 *nto* | *qnx*)
10879   version_type=qnx
10880   need_lib_prefix=no
10881   need_version=no
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883   soname_spec='${libname}${release}${shared_ext}$major'
10884   shlibpath_var=LD_LIBRARY_PATH
10885   shlibpath_overrides_runpath=no
10886   hardcode_into_libs=yes
10887   dynamic_linker='ldqnx.so'
10888   ;;
10889
10890 openbsd*)
10891   version_type=sunos
10892   sys_lib_dlsearch_path_spec="/usr/lib"
10893   need_lib_prefix=no
10894   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10895   case $host_os in
10896     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10897     *)                          need_version=no  ;;
10898   esac
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10901   shlibpath_var=LD_LIBRARY_PATH
10902   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10903     case $host_os in
10904       openbsd2.[89] | openbsd2.[89].*)
10905         shlibpath_overrides_runpath=no
10906         ;;
10907       *)
10908         shlibpath_overrides_runpath=yes
10909         ;;
10910       esac
10911   else
10912     shlibpath_overrides_runpath=yes
10913   fi
10914   ;;
10915
10916 os2*)
10917   libname_spec='$name'
10918   shrext_cmds=".dll"
10919   need_lib_prefix=no
10920   library_names_spec='$libname${shared_ext} $libname.a'
10921   dynamic_linker='OS/2 ld.exe'
10922   shlibpath_var=LIBPATH
10923   ;;
10924
10925 osf3* | osf4* | osf5*)
10926   version_type=osf
10927   need_lib_prefix=no
10928   need_version=no
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10933   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10934   ;;
10935
10936 rdos*)
10937   dynamic_linker=no
10938   ;;
10939
10940 solaris*)
10941   version_type=linux
10942   need_lib_prefix=no
10943   need_version=no
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945   soname_spec='${libname}${release}${shared_ext}$major'
10946   shlibpath_var=LD_LIBRARY_PATH
10947   shlibpath_overrides_runpath=yes
10948   hardcode_into_libs=yes
10949   # ldd complains unless libraries are executable
10950   postinstall_cmds='chmod +x $lib'
10951   ;;
10952
10953 sunos4*)
10954   version_type=sunos
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10956   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10957   shlibpath_var=LD_LIBRARY_PATH
10958   shlibpath_overrides_runpath=yes
10959   if test "$with_gnu_ld" = yes; then
10960     need_lib_prefix=no
10961   fi
10962   need_version=yes
10963   ;;
10964
10965 sysv4 | sysv4.3*)
10966   version_type=linux
10967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968   soname_spec='${libname}${release}${shared_ext}$major'
10969   shlibpath_var=LD_LIBRARY_PATH
10970   case $host_vendor in
10971     sni)
10972       shlibpath_overrides_runpath=no
10973       need_lib_prefix=no
10974       runpath_var=LD_RUN_PATH
10975       ;;
10976     siemens)
10977       need_lib_prefix=no
10978       ;;
10979     motorola)
10980       need_lib_prefix=no
10981       need_version=no
10982       shlibpath_overrides_runpath=no
10983       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10984       ;;
10985   esac
10986   ;;
10987
10988 sysv4*MP*)
10989   if test -d /usr/nec ;then
10990     version_type=linux
10991     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10992     soname_spec='$libname${shared_ext}.$major'
10993     shlibpath_var=LD_LIBRARY_PATH
10994   fi
10995   ;;
10996
10997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10998   version_type=freebsd-elf
10999   need_lib_prefix=no
11000   need_version=no
11001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11002   soname_spec='${libname}${release}${shared_ext}$major'
11003   shlibpath_var=LD_LIBRARY_PATH
11004   shlibpath_overrides_runpath=yes
11005   hardcode_into_libs=yes
11006   if test "$with_gnu_ld" = yes; then
11007     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11008   else
11009     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11010     case $host_os in
11011       sco3.2v5*)
11012         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11013         ;;
11014     esac
11015   fi
11016   sys_lib_dlsearch_path_spec='/usr/lib'
11017   ;;
11018
11019 tpf*)
11020   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11021   version_type=linux
11022   need_lib_prefix=no
11023   need_version=no
11024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025   shlibpath_var=LD_LIBRARY_PATH
11026   shlibpath_overrides_runpath=no
11027   hardcode_into_libs=yes
11028   ;;
11029
11030 uts4*)
11031   version_type=linux
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033   soname_spec='${libname}${release}${shared_ext}$major'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   ;;
11036
11037 *)
11038   dynamic_linker=no
11039   ;;
11040 esac
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11042 $as_echo "$dynamic_linker" >&6; }
11043 test "$dynamic_linker" = no && can_build_shared=no
11044
11045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11046 if test "$GCC" = yes; then
11047   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11048 fi
11049
11050 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11051   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11052 fi
11053 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11054   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11055 fi
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
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
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11150 hardcode_action=
11151 if test -n "$hardcode_libdir_flag_spec" ||
11152    test -n "$runpath_var" ||
11153    test "X$hardcode_automatic" = "Xyes" ; then
11154
11155   # We can hardcode non-existent directories.
11156   if test "$hardcode_direct" != no &&
11157      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11158      # have to relink, otherwise we might link with an installed library
11159      # when we should be linking with a yet-to-be-installed one
11160      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11161      test "$hardcode_minus_L" != no; then
11162     # Linking always hardcodes the temporary library directory.
11163     hardcode_action=relink
11164   else
11165     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11166     hardcode_action=immediate
11167   fi
11168 else
11169   # We cannot hardcode anything, or else we can only hardcode existing
11170   # directories.
11171   hardcode_action=unsupported
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11174 $as_echo "$hardcode_action" >&6; }
11175
11176 if test "$hardcode_action" = relink ||
11177    test "$inherit_rpath" = yes; then
11178   # Fast installation is not supported
11179   enable_fast_install=no
11180 elif test "$shlibpath_overrides_runpath" = yes ||
11181      test "$enable_shared" = no; then
11182   # Fast installation is not necessary
11183   enable_fast_install=needless
11184 fi
11185
11186
11187
11188
11189
11190
11191   if test "x$enable_dlopen" != xyes; then
11192   enable_dlopen=unknown
11193   enable_dlopen_self=unknown
11194   enable_dlopen_self_static=unknown
11195 else
11196   lt_cv_dlopen=no
11197   lt_cv_dlopen_libs=
11198
11199   case $host_os in
11200   beos*)
11201     lt_cv_dlopen="load_add_on"
11202     lt_cv_dlopen_libs=
11203     lt_cv_dlopen_self=yes
11204     ;;
11205
11206   mingw* | pw32* | cegcc*)
11207     lt_cv_dlopen="LoadLibrary"
11208     lt_cv_dlopen_libs=
11209     ;;
11210
11211   cygwin*)
11212     lt_cv_dlopen="dlopen"
11213     lt_cv_dlopen_libs=
11214     ;;
11215
11216   darwin*)
11217   # if libdl is installed we need to link against it
11218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if ${ac_cv_lib_dl_dlopen+:} false; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldl  $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_dl_dlopen=yes
11245 else
11246   ac_cv_lib_dl_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256 else
11257
11258     lt_cv_dlopen="dyld"
11259     lt_cv_dlopen_libs=
11260     lt_cv_dlopen_self=yes
11261
11262 fi
11263
11264     ;;
11265
11266   *)
11267     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11268 if test "x$ac_cv_func_shl_load" = xyes; then :
11269   lt_cv_dlopen="shl_load"
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11273 if ${ac_cv_lib_dld_shl_load+:} false; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld  $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char shl_load ();
11288 int
11289 main ()
11290 {
11291 return shl_load ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   ac_cv_lib_dld_shl_load=yes
11298 else
11299   ac_cv_lib_dld_shl_load=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11307 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11308   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11309 else
11310   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11311 if test "x$ac_cv_func_dlopen" = xyes; then :
11312   lt_cv_dlopen="dlopen"
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11316 if ${ac_cv_lib_dl_dlopen+:} false; then :
11317   $as_echo_n "(cached) " >&6
11318 else
11319   ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-ldl  $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h.  */
11323
11324 /* Override any GCC internal prototype to avoid an error.
11325    Use char because int might match the return type of a GCC
11326    builtin and then its argument prototype would still apply.  */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char dlopen ();
11331 int
11332 main ()
11333 {
11334 return dlopen ();
11335   ;
11336   return 0;
11337 }
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340   ac_cv_lib_dl_dlopen=yes
11341 else
11342   ac_cv_lib_dl_dlopen=no
11343 fi
11344 rm -f core conftest.err conftest.$ac_objext \
11345     conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11351   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11352 else
11353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11355 if ${ac_cv_lib_svld_dlopen+:} false; then :
11356   $as_echo_n "(cached) " >&6
11357 else
11358   ac_check_lib_save_LIBS=$LIBS
11359 LIBS="-lsvld  $LIBS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 /* Override any GCC internal prototype to avoid an error.
11364    Use char because int might match the return type of a GCC
11365    builtin and then its argument prototype would still apply.  */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char dlopen ();
11370 int
11371 main ()
11372 {
11373 return dlopen ();
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379   ac_cv_lib_svld_dlopen=yes
11380 else
11381   ac_cv_lib_svld_dlopen=no
11382 fi
11383 rm -f core conftest.err conftest.$ac_objext \
11384     conftest$ac_exeext conftest.$ac_ext
11385 LIBS=$ac_check_lib_save_LIBS
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11389 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11390   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11394 if ${ac_cv_lib_dld_dld_link+:} false; then :
11395   $as_echo_n "(cached) " >&6
11396 else
11397   ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldld  $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h.  */
11401
11402 /* Override any GCC internal prototype to avoid an error.
11403    Use char because int might match the return type of a GCC
11404    builtin and then its argument prototype would still apply.  */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dld_link ();
11409 int
11410 main ()
11411 {
11412 return dld_link ();
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418   ac_cv_lib_dld_dld_link=yes
11419 else
11420   ac_cv_lib_dld_dld_link=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext \
11423     conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11428 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11429   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11430 fi
11431
11432
11433 fi
11434
11435
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447     ;;
11448   esac
11449
11450   if test "x$lt_cv_dlopen" != xno; then
11451     enable_dlopen=yes
11452   else
11453     enable_dlopen=no
11454   fi
11455
11456   case $lt_cv_dlopen in
11457   dlopen)
11458     save_CPPFLAGS="$CPPFLAGS"
11459     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11460
11461     save_LDFLAGS="$LDFLAGS"
11462     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11463
11464     save_LIBS="$LIBS"
11465     LIBS="$lt_cv_dlopen_libs $LIBS"
11466
11467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11469 if ${lt_cv_dlopen_self+:} false; then :
11470   $as_echo_n "(cached) " >&6
11471 else
11472           if test "$cross_compiling" = yes; then :
11473   lt_cv_dlopen_self=cross
11474 else
11475   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11476   lt_status=$lt_dlunknown
11477   cat > conftest.$ac_ext <<_LT_EOF
11478 #line $LINENO "configure"
11479 #include "confdefs.h"
11480
11481 #if HAVE_DLFCN_H
11482 #include <dlfcn.h>
11483 #endif
11484
11485 #include <stdio.h>
11486
11487 #ifdef RTLD_GLOBAL
11488 #  define LT_DLGLOBAL           RTLD_GLOBAL
11489 #else
11490 #  ifdef DL_GLOBAL
11491 #    define LT_DLGLOBAL         DL_GLOBAL
11492 #  else
11493 #    define LT_DLGLOBAL         0
11494 #  endif
11495 #endif
11496
11497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11498    find out it does not work in some platform. */
11499 #ifndef LT_DLLAZY_OR_NOW
11500 #  ifdef RTLD_LAZY
11501 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11502 #  else
11503 #    ifdef DL_LAZY
11504 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11505 #    else
11506 #      ifdef RTLD_NOW
11507 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11508 #      else
11509 #        ifdef DL_NOW
11510 #          define LT_DLLAZY_OR_NOW      DL_NOW
11511 #        else
11512 #          define LT_DLLAZY_OR_NOW      0
11513 #        endif
11514 #      endif
11515 #    endif
11516 #  endif
11517 #endif
11518
11519 /* When -fvisbility=hidden is used, assume the code has been annotated
11520    correspondingly for the symbols needed.  */
11521 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11522 int fnord () __attribute__((visibility("default")));
11523 #endif
11524
11525 int fnord () { return 42; }
11526 int main ()
11527 {
11528   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11529   int status = $lt_dlunknown;
11530
11531   if (self)
11532     {
11533       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11534       else
11535         {
11536           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11537           else puts (dlerror ());
11538         }
11539       /* dlclose (self); */
11540     }
11541   else
11542     puts (dlerror ());
11543
11544   return status;
11545 }
11546 _LT_EOF
11547   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11548   (eval $ac_link) 2>&5
11549   ac_status=$?
11550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11552     (./conftest; exit; ) >&5 2>/dev/null
11553     lt_status=$?
11554     case x$lt_status in
11555       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11556       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11557       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11558     esac
11559   else :
11560     # compilation failed
11561     lt_cv_dlopen_self=no
11562   fi
11563 fi
11564 rm -fr conftest*
11565
11566
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11569 $as_echo "$lt_cv_dlopen_self" >&6; }
11570
11571     if test "x$lt_cv_dlopen_self" = xyes; then
11572       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11574 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11575 if ${lt_cv_dlopen_self_static+:} false; then :
11576   $as_echo_n "(cached) " >&6
11577 else
11578           if test "$cross_compiling" = yes; then :
11579   lt_cv_dlopen_self_static=cross
11580 else
11581   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582   lt_status=$lt_dlunknown
11583   cat > conftest.$ac_ext <<_LT_EOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586
11587 #if HAVE_DLFCN_H
11588 #include <dlfcn.h>
11589 #endif
11590
11591 #include <stdio.h>
11592
11593 #ifdef RTLD_GLOBAL
11594 #  define LT_DLGLOBAL           RTLD_GLOBAL
11595 #else
11596 #  ifdef DL_GLOBAL
11597 #    define LT_DLGLOBAL         DL_GLOBAL
11598 #  else
11599 #    define LT_DLGLOBAL         0
11600 #  endif
11601 #endif
11602
11603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604    find out it does not work in some platform. */
11605 #ifndef LT_DLLAZY_OR_NOW
11606 #  ifdef RTLD_LAZY
11607 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11608 #  else
11609 #    ifdef DL_LAZY
11610 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11611 #    else
11612 #      ifdef RTLD_NOW
11613 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11614 #      else
11615 #        ifdef DL_NOW
11616 #          define LT_DLLAZY_OR_NOW      DL_NOW
11617 #        else
11618 #          define LT_DLLAZY_OR_NOW      0
11619 #        endif
11620 #      endif
11621 #    endif
11622 #  endif
11623 #endif
11624
11625 /* When -fvisbility=hidden is used, assume the code has been annotated
11626    correspondingly for the symbols needed.  */
11627 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11628 int fnord () __attribute__((visibility("default")));
11629 #endif
11630
11631 int fnord () { return 42; }
11632 int main ()
11633 {
11634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635   int status = $lt_dlunknown;
11636
11637   if (self)
11638     {
11639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11640       else
11641         {
11642           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11643           else puts (dlerror ());
11644         }
11645       /* dlclose (self); */
11646     }
11647   else
11648     puts (dlerror ());
11649
11650   return status;
11651 }
11652 _LT_EOF
11653   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11654   (eval $ac_link) 2>&5
11655   ac_status=$?
11656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11658     (./conftest; exit; ) >&5 2>/dev/null
11659     lt_status=$?
11660     case x$lt_status in
11661       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11662       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11663       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11664     esac
11665   else :
11666     # compilation failed
11667     lt_cv_dlopen_self_static=no
11668   fi
11669 fi
11670 rm -fr conftest*
11671
11672
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11675 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11676     fi
11677
11678     CPPFLAGS="$save_CPPFLAGS"
11679     LDFLAGS="$save_LDFLAGS"
11680     LIBS="$save_LIBS"
11681     ;;
11682   esac
11683
11684   case $lt_cv_dlopen_self in
11685   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11686   *) enable_dlopen_self=unknown ;;
11687   esac
11688
11689   case $lt_cv_dlopen_self_static in
11690   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11691   *) enable_dlopen_self_static=unknown ;;
11692   esac
11693 fi
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711 striplib=
11712 old_striplib=
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11714 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11716   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11717   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719 $as_echo "yes" >&6; }
11720 else
11721 # FIXME - insert some real tests, host_os isn't really good enough
11722   case $host_os in
11723   darwin*)
11724     if test -n "$STRIP" ; then
11725       striplib="$STRIP -x"
11726       old_striplib="$STRIP -S"
11727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 $as_echo "yes" >&6; }
11729     else
11730       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732     fi
11733     ;;
11734   *)
11735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737     ;;
11738   esac
11739 fi
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752   # Report which library types will actually be built
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11756 $as_echo "$can_build_shared" >&6; }
11757
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11759 $as_echo_n "checking whether to build shared libraries... " >&6; }
11760   test "$can_build_shared" = "no" && enable_shared=no
11761
11762   # On AIX, shared libraries and static libraries use the same namespace, and
11763   # are all built from PIC.
11764   case $host_os in
11765   aix3*)
11766     test "$enable_shared" = yes && enable_static=no
11767     if test -n "$RANLIB"; then
11768       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11769       postinstall_cmds='$RANLIB $lib'
11770     fi
11771     ;;
11772
11773   aix[4-9]*)
11774     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11775       test "$enable_shared" = yes && enable_static=no
11776     fi
11777     ;;
11778   esac
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11780 $as_echo "$enable_shared" >&6; }
11781
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11783 $as_echo_n "checking whether to build static libraries... " >&6; }
11784   # Make sure either enable_shared or enable_static is yes.
11785   test "$enable_shared" = yes || enable_static=yes
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11787 $as_echo "$enable_static" >&6; }
11788
11789
11790
11791
11792 fi
11793 ac_ext=c
11794 ac_cpp='$CPP $CPPFLAGS'
11795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11798
11799 CC="$lt_save_CC"
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813         ac_config_commands="$ac_config_commands libtool"
11814
11815
11816
11817
11818 # Only expand once:
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11829         if test -n "$ac_tool_prefix"; then
11830   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11831 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   case $PKG_CONFIG in
11838   [\\/]* | ?:[\\/]*)
11839   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11840   ;;
11841   *)
11842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856
11857   ;;
11858 esac
11859 fi
11860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11861 if test -n "$PKG_CONFIG"; then
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11863 $as_echo "$PKG_CONFIG" >&6; }
11864 else
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868
11869
11870 fi
11871 if test -z "$ac_cv_path_PKG_CONFIG"; then
11872   ac_pt_PKG_CONFIG=$PKG_CONFIG
11873   # Extract the first word of "pkg-config", so it can be a program name with args.
11874 set dummy pkg-config; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   case $ac_pt_PKG_CONFIG in
11881   [\\/]* | ?:[\\/]*)
11882   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11883   ;;
11884   *)
11885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11887 do
11888   IFS=$as_save_IFS
11889   test -z "$as_dir" && as_dir=.
11890     for ac_exec_ext in '' $ac_executable_extensions; do
11891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11892     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894     break 2
11895   fi
11896 done
11897   done
11898 IFS=$as_save_IFS
11899
11900   ;;
11901 esac
11902 fi
11903 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11904 if test -n "$ac_pt_PKG_CONFIG"; then
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11906 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11907 else
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912   if test "x$ac_pt_PKG_CONFIG" = x; then
11913     PKG_CONFIG=""
11914   else
11915     case $cross_compiling:$ac_tool_warned in
11916 yes:)
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11919 ac_tool_warned=yes ;;
11920 esac
11921     PKG_CONFIG=$ac_pt_PKG_CONFIG
11922   fi
11923 else
11924   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11925 fi
11926
11927 fi
11928 if test -n "$PKG_CONFIG"; then
11929         _pkg_min_version=0.9.0
11930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11931 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11932         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11933                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935         else
11936                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938                 PKG_CONFIG=""
11939         fi
11940 fi
11941
11942 for ac_prog in flex lex
11943 do
11944   # Extract the first word of "$ac_prog", so it can be a program name with args.
11945 set dummy $ac_prog; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_prog_LEX+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   if test -n "$LEX"; then
11952   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11956 do
11957   IFS=$as_save_IFS
11958   test -z "$as_dir" && as_dir=.
11959     for ac_exec_ext in '' $ac_executable_extensions; do
11960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961     ac_cv_prog_LEX="$ac_prog"
11962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963     break 2
11964   fi
11965 done
11966   done
11967 IFS=$as_save_IFS
11968
11969 fi
11970 fi
11971 LEX=$ac_cv_prog_LEX
11972 if test -n "$LEX"; then
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11974 $as_echo "$LEX" >&6; }
11975 else
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979
11980
11981   test -n "$LEX" && break
11982 done
11983 test -n "$LEX" || LEX=":"
11984
11985 if test "x$LEX" != "x:"; then
11986   cat >conftest.l <<_ACEOF
11987 %%
11988 a { ECHO; }
11989 b { REJECT; }
11990 c { yymore (); }
11991 d { yyless (1); }
11992 e { yyless (input () != 0); }
11993 f { unput (yytext[0]); }
11994 . { BEGIN INITIAL; }
11995 %%
11996 #ifdef YYTEXT_POINTER
11997 extern char *yytext;
11998 #endif
11999 int
12000 main (void)
12001 {
12002   return ! yylex () + ! yywrap ();
12003 }
12004 _ACEOF
12005 { { ac_try="$LEX conftest.l"
12006 case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12011 $as_echo "$ac_try_echo"; } >&5
12012   (eval "$LEX conftest.l") 2>&5
12013   ac_status=$?
12014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12015   test $ac_status = 0; }
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12017 $as_echo_n "checking lex output file root... " >&6; }
12018 if ${ac_cv_prog_lex_root+:} false; then :
12019   $as_echo_n "(cached) " >&6
12020 else
12021
12022 if test -f lex.yy.c; then
12023   ac_cv_prog_lex_root=lex.yy
12024 elif test -f lexyy.c; then
12025   ac_cv_prog_lex_root=lexyy
12026 else
12027   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12028 fi
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12031 $as_echo "$ac_cv_prog_lex_root" >&6; }
12032 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12033
12034 if test -z "${LEXLIB+set}"; then
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12036 $as_echo_n "checking lex library... " >&6; }
12037 if ${ac_cv_lib_lex+:} false; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040
12041     ac_save_LIBS=$LIBS
12042     ac_cv_lib_lex='none needed'
12043     for ac_lib in '' -lfl -ll; do
12044       LIBS="$ac_lib $ac_save_LIBS"
12045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h.  */
12047 `cat $LEX_OUTPUT_ROOT.c`
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050   ac_cv_lib_lex=$ac_lib
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext \
12053     conftest$ac_exeext conftest.$ac_ext
12054       test "$ac_cv_lib_lex" != 'none needed' && break
12055     done
12056     LIBS=$ac_save_LIBS
12057
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12060 $as_echo "$ac_cv_lib_lex" >&6; }
12061   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12062 fi
12063
12064
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12066 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12067 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12068   $as_echo_n "(cached) " >&6
12069 else
12070   # POSIX says lex can declare yytext either as a pointer or an array; the
12071 # default is implementation-dependent.  Figure out which it is, since
12072 # not all implementations provide the %pointer and %array declarations.
12073 ac_cv_prog_lex_yytext_pointer=no
12074 ac_save_LIBS=$LIBS
12075 LIBS="$LEXLIB $ac_save_LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h.  */
12078
12079   #define YYTEXT_POINTER 1
12080 `cat $LEX_OUTPUT_ROOT.c`
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083   ac_cv_prog_lex_yytext_pointer=yes
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext \
12086     conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_save_LIBS
12088
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12091 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12092 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12093
12094 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12095
12096 fi
12097 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12098
12099 fi
12100 if test "$LEX" = :; then
12101         as_fn_error $? "flex not found but required" "$LINENO" 5
12102 fi
12103
12104 for ac_prog in 'bison -y'
12105 do
12106   # Extract the first word of "$ac_prog", so it can be a program name with args.
12107 set dummy $ac_prog; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if ${ac_cv_prog_YACC+:} false; then :
12111   $as_echo_n "(cached) " >&6
12112 else
12113   if test -n "$YACC"; then
12114   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12115 else
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12118 do
12119   IFS=$as_save_IFS
12120   test -z "$as_dir" && as_dir=.
12121     for ac_exec_ext in '' $ac_executable_extensions; do
12122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123     ac_cv_prog_YACC="$ac_prog"
12124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125     break 2
12126   fi
12127 done
12128   done
12129 IFS=$as_save_IFS
12130
12131 fi
12132 fi
12133 YACC=$ac_cv_prog_YACC
12134 if test -n "$YACC"; then
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12136 $as_echo "$YACC" >&6; }
12137 else
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140 fi
12141
12142
12143   test -n "$YACC" && break
12144 done
12145 test -n "$YACC" || YACC=":"
12146
12147 if test "$YACC" = :; then
12148         as_fn_error $? "bison not found but required" "$LINENO" 5
12149 fi
12150
12151
12152 ensureflag() {
12153   flag="$1"; shift
12154   result="$@"
12155
12156   case " ${result} " in
12157   *[\ \ ]${flag}[\ \    ]*) ;;
12158   *) result="${flag} ${result}" ;;
12159   esac
12160
12161   echo ${result}
12162 }
12163
12164 if test "$GCC" = "yes"; then
12165     for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12166         -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12167         -Wsign-compare -fno-strict-aliasing;
12168     do
12169         CFLAGS="$(ensureflag $flag $CFLAGS)"
12170     done
12171 fi
12172
12173 # Checks for libraries.
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12176 if ${ac_cv_lib_dl_dlopen+:} false; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldl  $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185    Use char because int might match the return type of a GCC
12186    builtin and then its argument prototype would still apply.  */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char dlopen ();
12191 int
12192 main ()
12193 {
12194 return dlopen ();
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200   ac_cv_lib_dl_dlopen=yes
12201 else
12202   ac_cv_lib_dl_dlopen=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext \
12205     conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12210 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12211   cat >>confdefs.h <<_ACEOF
12212 #define HAVE_LIBDL 1
12213 _ACEOF
12214
12215   LIBS="-ldl $LIBS"
12216
12217 fi
12218
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12221 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12222 # libtool variables are immediately available since 2.0, prior to that we need
12223 # to call libtool --config explicitly
12224 if test "x$shrext_cmds" = x; then
12225     shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12226     eval $shrext_cmds
12227 fi
12228 eval std_shrext=$shrext_cmds
12229 # chop the initial dot
12230 SHLIB_SUFFIX=${std_shrext#.}
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12232 $as_echo ".$SHLIB_SUFFIX" >&6; }
12233 # any reason it may fail?
12234 if test "x$SHLIB_SUFFIX" = x; then
12235         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12236 fi
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12240 _ACEOF
12241
12242
12243 # Copied from dbus configure.in
12244 #### find the actual value for $prefix that we'll end up with
12245 ##   (I know this is broken and should be done in the Makefile, but
12246 ##    that's a major pain and almost nobody actually seems to care)
12247
12248   EXP_VAR=EXPANDED_LOCALSTATEDIR
12249   FROM_VAR="$localstatedir"
12250
12251     prefix_save=$prefix
12252   exec_prefix_save=$exec_prefix
12253
12254     if test "x$prefix" = "xNONE"; then
12255     prefix="$ac_default_prefix"
12256   fi
12257     if test "x$exec_prefix" = "xNONE"; then
12258     exec_prefix=$prefix
12259   fi
12260
12261   full_var="$FROM_VAR"
12262     while true; do
12263     new_full_var="`eval echo $full_var`"
12264     if test "x$new_full_var" = "x$full_var"; then break; fi
12265     full_var=$new_full_var
12266   done
12267
12268     full_var=$new_full_var
12269   EXPANDED_LOCALSTATEDIR="$full_var"
12270
12271
12272     prefix=$prefix_save
12273   exec_prefix=$exec_prefix_save
12274
12275
12276   EXP_VAR=EXPANDED_SYSCONFDIR
12277   FROM_VAR="$sysconfdir"
12278
12279     prefix_save=$prefix
12280   exec_prefix_save=$exec_prefix
12281
12282     if test "x$prefix" = "xNONE"; then
12283     prefix="$ac_default_prefix"
12284   fi
12285     if test "x$exec_prefix" = "xNONE"; then
12286     exec_prefix=$prefix
12287   fi
12288
12289   full_var="$FROM_VAR"
12290     while true; do
12291     new_full_var="`eval echo $full_var`"
12292     if test "x$new_full_var" = "x$full_var"; then break; fi
12293     full_var=$new_full_var
12294   done
12295
12296     full_var=$new_full_var
12297   EXPANDED_SYSCONFDIR="$full_var"
12298
12299
12300     prefix=$prefix_save
12301   exec_prefix=$exec_prefix_save
12302
12303
12304   EXP_VAR=EXPANDED_BINDIR
12305   FROM_VAR="$bindir"
12306
12307     prefix_save=$prefix
12308   exec_prefix_save=$exec_prefix
12309
12310     if test "x$prefix" = "xNONE"; then
12311     prefix="$ac_default_prefix"
12312   fi
12313     if test "x$exec_prefix" = "xNONE"; then
12314     exec_prefix=$prefix
12315   fi
12316
12317   full_var="$FROM_VAR"
12318     while true; do
12319     new_full_var="`eval echo $full_var`"
12320     if test "x$new_full_var" = "x$full_var"; then break; fi
12321     full_var=$new_full_var
12322   done
12323
12324     full_var=$new_full_var
12325   EXPANDED_BINDIR="$full_var"
12326
12327
12328     prefix=$prefix_save
12329   exec_prefix=$exec_prefix_save
12330
12331
12332   EXP_VAR=EXPANDED_LIBDIR
12333   FROM_VAR="$libdir"
12334
12335     prefix_save=$prefix
12336   exec_prefix_save=$exec_prefix
12337
12338     if test "x$prefix" = "xNONE"; then
12339     prefix="$ac_default_prefix"
12340   fi
12341     if test "x$exec_prefix" = "xNONE"; then
12342     exec_prefix=$prefix
12343   fi
12344
12345   full_var="$FROM_VAR"
12346     while true; do
12347     new_full_var="`eval echo $full_var`"
12348     if test "x$new_full_var" = "x$full_var"; then break; fi
12349     full_var=$new_full_var
12350   done
12351
12352     full_var=$new_full_var
12353   EXPANDED_LIBDIR="$full_var"
12354
12355
12356     prefix=$prefix_save
12357   exec_prefix=$exec_prefix_save
12358
12359
12360   EXP_VAR=EXPANDED_LIBEXECDIR
12361   FROM_VAR="$libexecdir"
12362
12363     prefix_save=$prefix
12364   exec_prefix_save=$exec_prefix
12365
12366     if test "x$prefix" = "xNONE"; then
12367     prefix="$ac_default_prefix"
12368   fi
12369     if test "x$exec_prefix" = "xNONE"; then
12370     exec_prefix=$prefix
12371   fi
12372
12373   full_var="$FROM_VAR"
12374     while true; do
12375     new_full_var="`eval echo $full_var`"
12376     if test "x$new_full_var" = "x$full_var"; then break; fi
12377     full_var=$new_full_var
12378   done
12379
12380     full_var=$new_full_var
12381   EXPANDED_LIBEXECDIR="$full_var"
12382
12383
12384     prefix=$prefix_save
12385   exec_prefix=$exec_prefix_save
12386
12387
12388   EXP_VAR=EXPANDED_DATADIR
12389   FROM_VAR="$datadir"
12390
12391     prefix_save=$prefix
12392   exec_prefix_save=$exec_prefix
12393
12394     if test "x$prefix" = "xNONE"; then
12395     prefix="$ac_default_prefix"
12396   fi
12397     if test "x$exec_prefix" = "xNONE"; then
12398     exec_prefix=$prefix
12399   fi
12400
12401   full_var="$FROM_VAR"
12402     while true; do
12403     new_full_var="`eval echo $full_var`"
12404     if test "x$new_full_var" = "x$full_var"; then break; fi
12405     full_var=$new_full_var
12406   done
12407
12408     full_var=$new_full_var
12409   EXPANDED_DATADIR="$full_var"
12410
12411
12412     prefix=$prefix_save
12413   exec_prefix=$exec_prefix_save
12414
12415
12416 #### Directory to install the libexec binaries
12417 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
12418
12419
12420 cat >>confdefs.h <<_ACEOF
12421 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
12422 _ACEOF
12423
12424
12425 #### Directory to install the gir files
12426 GIR_SUFFIX="gir-1.0"
12427
12428
12429 cat >>confdefs.h <<_ACEOF
12430 #define GIR_SUFFIX "$GIR_SUFFIX"
12431 _ACEOF
12432
12433
12434 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
12435
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define GIR_DIR "$GIR_DIR"
12439 _ACEOF
12440
12441
12442
12443 pkg_failed=no
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12445 $as_echo_n "checking for GLIB... " >&6; }
12446
12447 if test -n "$GLIB_CFLAGS"; then
12448     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12449  elif test -n "$PKG_CONFIG"; then
12450     if test -n "$PKG_CONFIG" && \
12451     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.29.7\""; } >&5
12452   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.29.7") 2>&5
12453   ac_status=$?
12454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455   test $ac_status = 0; }; then
12456   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.29.7" 2>/dev/null`
12457 else
12458   pkg_failed=yes
12459 fi
12460  else
12461     pkg_failed=untried
12462 fi
12463 if test -n "$GLIB_LIBS"; then
12464     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12465  elif test -n "$PKG_CONFIG"; then
12466     if test -n "$PKG_CONFIG" && \
12467     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.29.7\""; } >&5
12468   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.29.7") 2>&5
12469   ac_status=$?
12470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471   test $ac_status = 0; }; then
12472   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.29.7" 2>/dev/null`
12473 else
12474   pkg_failed=yes
12475 fi
12476  else
12477     pkg_failed=untried
12478 fi
12479
12480
12481
12482 if test $pkg_failed = yes; then
12483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12485
12486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12487         _pkg_short_errors_supported=yes
12488 else
12489         _pkg_short_errors_supported=no
12490 fi
12491         if test $_pkg_short_errors_supported = yes; then
12492                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.29.7" 2>&1`
12493         else
12494                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.29.7" 2>&1`
12495         fi
12496         # Put the nasty error message in config.log where it belongs
12497         echo "$GLIB_PKG_ERRORS" >&5
12498
12499         as_fn_error $? "Package requirements (glib-2.0 >= 2.29.7) were not met:
12500
12501 $GLIB_PKG_ERRORS
12502
12503 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12504 installed software in a non-standard prefix.
12505
12506 Alternatively, you may set the environment variables GLIB_CFLAGS
12507 and GLIB_LIBS to avoid the need to call pkg-config.
12508 See the pkg-config man page for more details." "$LINENO" 5
12509
12510 elif test $pkg_failed = untried; then
12511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12513         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12515 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12516 is in your PATH or set the PKG_CONFIG environment variable to the full
12517 path to pkg-config.
12518
12519 Alternatively, you may set the environment variables GLIB_CFLAGS
12520 and GLIB_LIBS to avoid the need to call pkg-config.
12521 See the pkg-config man page for more details.
12522
12523 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12524 See \`config.log' for more details" "$LINENO" 5; }
12525
12526 else
12527         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12528         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531
12532 fi
12533
12534 pkg_failed=no
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12536 $as_echo_n "checking for GOBJECT... " >&6; }
12537
12538 if test -n "$GOBJECT_CFLAGS"; then
12539     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12540  elif test -n "$PKG_CONFIG"; then
12541     if test -n "$PKG_CONFIG" && \
12542     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12543   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12544   ac_status=$?
12545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546   test $ac_status = 0; }; then
12547   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12548 else
12549   pkg_failed=yes
12550 fi
12551  else
12552     pkg_failed=untried
12553 fi
12554 if test -n "$GOBJECT_LIBS"; then
12555     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12556  elif test -n "$PKG_CONFIG"; then
12557     if test -n "$PKG_CONFIG" && \
12558     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12559   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12560   ac_status=$?
12561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562   test $ac_status = 0; }; then
12563   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12564 else
12565   pkg_failed=yes
12566 fi
12567  else
12568     pkg_failed=untried
12569 fi
12570
12571
12572
12573 if test $pkg_failed = yes; then
12574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576
12577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12578         _pkg_short_errors_supported=yes
12579 else
12580         _pkg_short_errors_supported=no
12581 fi
12582         if test $_pkg_short_errors_supported = yes; then
12583                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0" 2>&1`
12584         else
12585                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0" 2>&1`
12586         fi
12587         # Put the nasty error message in config.log where it belongs
12588         echo "$GOBJECT_PKG_ERRORS" >&5
12589
12590         as_fn_error $? "Package requirements (gobject-2.0) were not met:
12591
12592 $GOBJECT_PKG_ERRORS
12593
12594 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12595 installed software in a non-standard prefix.
12596
12597 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12598 and GOBJECT_LIBS to avoid the need to call pkg-config.
12599 See the pkg-config man page for more details." "$LINENO" 5
12600
12601 elif test $pkg_failed = untried; then
12602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12604         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12606 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12607 is in your PATH or set the PKG_CONFIG environment variable to the full
12608 path to pkg-config.
12609
12610 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12611 and GOBJECT_LIBS to avoid the need to call pkg-config.
12612 See the pkg-config man page for more details.
12613
12614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12615 See \`config.log' for more details" "$LINENO" 5; }
12616
12617 else
12618         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12619         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621 $as_echo "yes" >&6; }
12622
12623 fi
12624
12625 pkg_failed=no
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12627 $as_echo_n "checking for GMODULE... " >&6; }
12628
12629 if test -n "$GMODULE_CFLAGS"; then
12630     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12631  elif test -n "$PKG_CONFIG"; then
12632     if test -n "$PKG_CONFIG" && \
12633     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12634   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12635   ac_status=$?
12636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637   test $ac_status = 0; }; then
12638   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12639 else
12640   pkg_failed=yes
12641 fi
12642  else
12643     pkg_failed=untried
12644 fi
12645 if test -n "$GMODULE_LIBS"; then
12646     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12647  elif test -n "$PKG_CONFIG"; then
12648     if test -n "$PKG_CONFIG" && \
12649     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12650   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12651   ac_status=$?
12652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12653   test $ac_status = 0; }; then
12654   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12655 else
12656   pkg_failed=yes
12657 fi
12658  else
12659     pkg_failed=untried
12660 fi
12661
12662
12663
12664 if test $pkg_failed = yes; then
12665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667
12668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12669         _pkg_short_errors_supported=yes
12670 else
12671         _pkg_short_errors_supported=no
12672 fi
12673         if test $_pkg_short_errors_supported = yes; then
12674                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gmodule-2.0" 2>&1`
12675         else
12676                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "gmodule-2.0" 2>&1`
12677         fi
12678         # Put the nasty error message in config.log where it belongs
12679         echo "$GMODULE_PKG_ERRORS" >&5
12680
12681         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12682
12683 $GMODULE_PKG_ERRORS
12684
12685 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12686 installed software in a non-standard prefix.
12687
12688 Alternatively, you may set the environment variables GMODULE_CFLAGS
12689 and GMODULE_LIBS to avoid the need to call pkg-config.
12690 See the pkg-config man page for more details." "$LINENO" 5
12691
12692 elif test $pkg_failed = untried; then
12693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12697 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12698 is in your PATH or set the PKG_CONFIG environment variable to the full
12699 path to pkg-config.
12700
12701 Alternatively, you may set the environment variables GMODULE_CFLAGS
12702 and GMODULE_LIBS to avoid the need to call pkg-config.
12703 See the pkg-config man page for more details.
12704
12705 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12706 See \`config.log' for more details" "$LINENO" 5; }
12707
12708 else
12709         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12710         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12713
12714 fi
12715
12716 pkg_failed=no
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12718 $as_echo_n "checking for GIO... " >&6; }
12719
12720 if test -n "$GIO_CFLAGS"; then
12721     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12722  elif test -n "$PKG_CONFIG"; then
12723     if test -n "$PKG_CONFIG" && \
12724     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12725   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12726   ac_status=$?
12727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728   test $ac_status = 0; }; then
12729   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
12730 else
12731   pkg_failed=yes
12732 fi
12733  else
12734     pkg_failed=untried
12735 fi
12736 if test -n "$GIO_LIBS"; then
12737     pkg_cv_GIO_LIBS="$GIO_LIBS"
12738  elif test -n "$PKG_CONFIG"; then
12739     if test -n "$PKG_CONFIG" && \
12740     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12741   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12742   ac_status=$?
12743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12744   test $ac_status = 0; }; then
12745   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
12746 else
12747   pkg_failed=yes
12748 fi
12749  else
12750     pkg_failed=untried
12751 fi
12752
12753
12754
12755 if test $pkg_failed = yes; then
12756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758
12759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12760         _pkg_short_errors_supported=yes
12761 else
12762         _pkg_short_errors_supported=no
12763 fi
12764         if test $_pkg_short_errors_supported = yes; then
12765                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gio-2.0" 2>&1`
12766         else
12767                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "gio-2.0" 2>&1`
12768         fi
12769         # Put the nasty error message in config.log where it belongs
12770         echo "$GIO_PKG_ERRORS" >&5
12771
12772         as_fn_error $? "Package requirements (gio-2.0) were not met:
12773
12774 $GIO_PKG_ERRORS
12775
12776 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12777 installed software in a non-standard prefix.
12778
12779 Alternatively, you may set the environment variables GIO_CFLAGS
12780 and GIO_LIBS to avoid the need to call pkg-config.
12781 See the pkg-config man page for more details." "$LINENO" 5
12782
12783 elif test $pkg_failed = untried; then
12784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12788 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12789 is in your PATH or set the PKG_CONFIG environment variable to the full
12790 path to pkg-config.
12791
12792 Alternatively, you may set the environment variables GIO_CFLAGS
12793 and GIO_LIBS to avoid the need to call pkg-config.
12794 See the pkg-config man page for more details.
12795
12796 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12797 See \`config.log' for more details" "$LINENO" 5; }
12798
12799 else
12800         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12801         GIO_LIBS=$pkg_cv_GIO_LIBS
12802         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12803 $as_echo "yes" >&6; }
12804
12805 fi
12806
12807 pkg_failed=no
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
12809 $as_echo_n "checking for GIO_UNIX... " >&6; }
12810
12811 if test -n "$GIO_UNIX_CFLAGS"; then
12812     pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
12813  elif test -n "$PKG_CONFIG"; then
12814     if test -n "$PKG_CONFIG" && \
12815     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
12816   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
12817   ac_status=$?
12818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819   test $ac_status = 0; }; then
12820   pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
12821 else
12822   pkg_failed=yes
12823 fi
12824  else
12825     pkg_failed=untried
12826 fi
12827 if test -n "$GIO_UNIX_LIBS"; then
12828     pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
12829  elif test -n "$PKG_CONFIG"; then
12830     if test -n "$PKG_CONFIG" && \
12831     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
12832   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
12833   ac_status=$?
12834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835   test $ac_status = 0; }; then
12836   pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
12837 else
12838   pkg_failed=yes
12839 fi
12840  else
12841     pkg_failed=untried
12842 fi
12843
12844
12845
12846 if test $pkg_failed = yes; then
12847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849
12850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12851         _pkg_short_errors_supported=yes
12852 else
12853         _pkg_short_errors_supported=no
12854 fi
12855         if test $_pkg_short_errors_supported = yes; then
12856                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gio-unix-2.0" 2>&1`
12857         else
12858                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors "gio-unix-2.0" 2>&1`
12859         fi
12860         # Put the nasty error message in config.log where it belongs
12861         echo "$GIO_UNIX_PKG_ERRORS" >&5
12862
12863         have_gio_unix=false
12864 elif test $pkg_failed = untried; then
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867         have_gio_unix=false
12868 else
12869         GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
12870         GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
12871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873         have_gio_unix=true
12874 fi
12875  if test x$have_gio_unix = xtrue; then
12876   HAVE_GIO_UNIX_TRUE=
12877   HAVE_GIO_UNIX_FALSE='#'
12878 else
12879   HAVE_GIO_UNIX_TRUE='#'
12880   HAVE_GIO_UNIX_FALSE=
12881 fi
12882
12883
12884 # Check whether --enable-tests was given.
12885 if test "${enable_tests+set}" = set; then :
12886   enableval=$enable_tests; enable_tests=$enableval
12887 else
12888   enable_tests=yes
12889 fi
12890
12891 have_cairo=no
12892
12893 pkg_failed=no
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
12895 $as_echo_n "checking for CAIRO... " >&6; }
12896
12897 if test -n "$CAIRO_CFLAGS"; then
12898     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
12899  elif test -n "$PKG_CONFIG"; then
12900     if test -n "$PKG_CONFIG" && \
12901     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12902   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12903   ac_status=$?
12904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905   test $ac_status = 0; }; then
12906   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
12907 else
12908   pkg_failed=yes
12909 fi
12910  else
12911     pkg_failed=untried
12912 fi
12913 if test -n "$CAIRO_LIBS"; then
12914     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
12915  elif test -n "$PKG_CONFIG"; then
12916     if test -n "$PKG_CONFIG" && \
12917     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
12918   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
12919   ac_status=$?
12920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12921   test $ac_status = 0; }; then
12922   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
12923 else
12924   pkg_failed=yes
12925 fi
12926  else
12927     pkg_failed=untried
12928 fi
12929
12930
12931
12932 if test $pkg_failed = yes; then
12933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935
12936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12937         _pkg_short_errors_supported=yes
12938 else
12939         _pkg_short_errors_supported=no
12940 fi
12941         if test $_pkg_short_errors_supported = yes; then
12942                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo" 2>&1`
12943         else
12944                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo" 2>&1`
12945         fi
12946         # Put the nasty error message in config.log where it belongs
12947         echo "$CAIRO_PKG_ERRORS" >&5
12948
12949         have_cairo=no
12950 elif test $pkg_failed = untried; then
12951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953         have_cairo=no
12954 else
12955         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
12956         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
12957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12958 $as_echo "yes" >&6; }
12959         have_cairo=yes
12960 fi
12961 if test x$have_cairo != xyes && test x$enable_tests != xno; then
12962   as_fn_error $? "Tests enabled but cairo not found; pass --disable-tests or install cairo" "$LINENO" 5
12963 fi
12964
12965 have_cairo_gobject=no
12966 if test x$have_cairo = xyes; then
12967
12968 pkg_failed=no
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_GOBJECT" >&5
12970 $as_echo_n "checking for CAIRO_GOBJECT... " >&6; }
12971
12972 if test -n "$CAIRO_GOBJECT_CFLAGS"; then
12973     pkg_cv_CAIRO_GOBJECT_CFLAGS="$CAIRO_GOBJECT_CFLAGS"
12974  elif test -n "$PKG_CONFIG"; then
12975     if test -n "$PKG_CONFIG" && \
12976     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-gobject\""; } >&5
12977   ($PKG_CONFIG --exists --print-errors "cairo-gobject") 2>&5
12978   ac_status=$?
12979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980   test $ac_status = 0; }; then
12981   pkg_cv_CAIRO_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "cairo-gobject" 2>/dev/null`
12982 else
12983   pkg_failed=yes
12984 fi
12985  else
12986     pkg_failed=untried
12987 fi
12988 if test -n "$CAIRO_GOBJECT_LIBS"; then
12989     pkg_cv_CAIRO_GOBJECT_LIBS="$CAIRO_GOBJECT_LIBS"
12990  elif test -n "$PKG_CONFIG"; then
12991     if test -n "$PKG_CONFIG" && \
12992     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-gobject\""; } >&5
12993   ($PKG_CONFIG --exists --print-errors "cairo-gobject") 2>&5
12994   ac_status=$?
12995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996   test $ac_status = 0; }; then
12997   pkg_cv_CAIRO_GOBJECT_LIBS=`$PKG_CONFIG --libs "cairo-gobject" 2>/dev/null`
12998 else
12999   pkg_failed=yes
13000 fi
13001  else
13002     pkg_failed=untried
13003 fi
13004
13005
13006
13007 if test $pkg_failed = yes; then
13008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 $as_echo "no" >&6; }
13010
13011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13012         _pkg_short_errors_supported=yes
13013 else
13014         _pkg_short_errors_supported=no
13015 fi
13016         if test $_pkg_short_errors_supported = yes; then
13017                 CAIRO_GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-gobject" 2>&1`
13018         else
13019                 CAIRO_GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-gobject" 2>&1`
13020         fi
13021         # Put the nasty error message in config.log where it belongs
13022         echo "$CAIRO_GOBJECT_PKG_ERRORS" >&5
13023
13024         have_cairo_gobject=no
13025 elif test $pkg_failed = untried; then
13026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028         have_cairo_gobject=no
13029 else
13030         CAIRO_GOBJECT_CFLAGS=$pkg_cv_CAIRO_GOBJECT_CFLAGS
13031         CAIRO_GOBJECT_LIBS=$pkg_cv_CAIRO_GOBJECT_LIBS
13032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13033 $as_echo "yes" >&6; }
13034         have_cairo_gobject=yes
13035 fi
13036 fi
13037
13038 if test x$have_cairo_gobject = xyes; then
13039   case "$host" in
13040     *-*-darwin*)
13041       CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13042       ;;
13043     *-*-mingw*)
13044       CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13045       ;;
13046     *-*-openbsd*)
13047       CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13048       ;;
13049     *)
13050       CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13051       ;;
13052   esac
13053   CAIRO_GIR_PACKAGE="cairo-gobject"
13054 elif test x$have_cairo = xyes; then
13055   case "$host" in
13056     *-*-darwin*)
13057       CAIRO_SHARED_LIBRARY="libcairo.2.dylib"
13058       ;;
13059     *-*-mingw*)
13060       CAIRO_SHARED_LIBRARY="libcairo-2.dll"
13061       ;;
13062     *-*-openbsd*)
13063       CAIRO_SHARED_LIBRARY="libcairo.so"
13064       ;;
13065     *)
13066       CAIRO_SHARED_LIBRARY="libcairo.so.2"
13067       ;;
13068   esac
13069   CAIRO_GIR_PACKAGE="cairo"
13070 fi
13071
13072
13073
13074  if test x$enable_tests != xno; then
13075   BUILD_TESTS_TRUE=
13076   BUILD_TESTS_FALSE='#'
13077 else
13078   BUILD_TESTS_TRUE='#'
13079   BUILD_TESTS_FALSE=
13080 fi
13081
13082  if test x$have_cairo != xno; then
13083   HAVE_CAIRO_TRUE=
13084   HAVE_CAIRO_FALSE='#'
13085 else
13086   HAVE_CAIRO_TRUE='#'
13087   HAVE_CAIRO_FALSE=
13088 fi
13089
13090  if test x$have_cairo_gobject != xno; then
13091   HAVE_CAIRO_GOBJECT_TRUE=
13092   HAVE_CAIRO_GOBJECT_FALSE='#'
13093 else
13094   HAVE_CAIRO_GOBJECT_TRUE='#'
13095   HAVE_CAIRO_GOBJECT_FALSE=
13096 fi
13097
13098
13099
13100 pkg_failed=no
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13102 $as_echo_n "checking for SCANNER... " >&6; }
13103
13104 if test -n "$SCANNER_CFLAGS"; then
13105     pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13106  elif test -n "$PKG_CONFIG"; then
13107     if test -n "$PKG_CONFIG" && \
13108     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
13109   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gthread-2.0 gio-2.0") 2>&5
13110   ac_status=$?
13111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112   test $ac_status = 0; }; then
13113   pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
13114 else
13115   pkg_failed=yes
13116 fi
13117  else
13118     pkg_failed=untried
13119 fi
13120 if test -n "$SCANNER_LIBS"; then
13121     pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13122  elif test -n "$PKG_CONFIG"; then
13123     if test -n "$PKG_CONFIG" && \
13124     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
13125   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gthread-2.0 gio-2.0") 2>&5
13126   ac_status=$?
13127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128   test $ac_status = 0; }; then
13129   pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gthread-2.0 gio-2.0" 2>/dev/null`
13130 else
13131   pkg_failed=yes
13132 fi
13133  else
13134     pkg_failed=untried
13135 fi
13136
13137
13138
13139 if test $pkg_failed = yes; then
13140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142
13143 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13144         _pkg_short_errors_supported=yes
13145 else
13146         _pkg_short_errors_supported=no
13147 fi
13148         if test $_pkg_short_errors_supported = yes; then
13149                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
13150         else
13151                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
13152         fi
13153         # Put the nasty error message in config.log where it belongs
13154         echo "$SCANNER_PKG_ERRORS" >&5
13155
13156         as_fn_error $? "Package requirements (gobject-2.0 gthread-2.0 gio-2.0) were not met:
13157
13158 $SCANNER_PKG_ERRORS
13159
13160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13161 installed software in a non-standard prefix.
13162
13163 Alternatively, you may set the environment variables SCANNER_CFLAGS
13164 and SCANNER_LIBS to avoid the need to call pkg-config.
13165 See the pkg-config man page for more details." "$LINENO" 5
13166
13167 elif test $pkg_failed = untried; then
13168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13172 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13173 is in your PATH or set the PKG_CONFIG environment variable to the full
13174 path to pkg-config.
13175
13176 Alternatively, you may set the environment variables SCANNER_CFLAGS
13177 and SCANNER_LIBS to avoid the need to call pkg-config.
13178 See the pkg-config man page for more details.
13179
13180 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13181 See \`config.log' for more details" "$LINENO" 5; }
13182
13183 else
13184         SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13185         SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188
13189 fi
13190
13191
13192 pkg_failed=no
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13194 $as_echo_n "checking for FFI... " >&6; }
13195
13196 if test -n "$FFI_CFLAGS"; then
13197     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13198  elif test -n "$PKG_CONFIG"; then
13199     if test -n "$PKG_CONFIG" && \
13200     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13201   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13202   ac_status=$?
13203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204   test $ac_status = 0; }; then
13205   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
13206 else
13207   pkg_failed=yes
13208 fi
13209  else
13210     pkg_failed=untried
13211 fi
13212 if test -n "$FFI_LIBS"; then
13213     pkg_cv_FFI_LIBS="$FFI_LIBS"
13214  elif test -n "$PKG_CONFIG"; then
13215     if test -n "$PKG_CONFIG" && \
13216     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13217   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13218   ac_status=$?
13219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220   test $ac_status = 0; }; then
13221   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
13222 else
13223   pkg_failed=yes
13224 fi
13225  else
13226     pkg_failed=untried
13227 fi
13228
13229
13230
13231 if test $pkg_failed = yes; then
13232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234
13235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13236         _pkg_short_errors_supported=yes
13237 else
13238         _pkg_short_errors_supported=no
13239 fi
13240         if test $_pkg_short_errors_supported = yes; then
13241                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
13242         else
13243                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
13244         fi
13245         # Put the nasty error message in config.log where it belongs
13246         echo "$FFI_PKG_ERRORS" >&5
13247
13248         have_ffi_pkgconfig=no
13249 elif test $pkg_failed = untried; then
13250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252         have_ffi_pkgconfig=no
13253 else
13254         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13255         FFI_LIBS=$pkg_cv_FFI_LIBS
13256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257 $as_echo "yes" >&6; }
13258         have_ffi_pkgconfig=yes
13259 fi
13260 FFI_PC_CFLAGS=""
13261 FFI_PC_LIBS=""
13262 FFI_PC_PACKAGES=""
13263 if test x"$have_ffi_pkgconfig" = xyes ; then
13264     FFI_PC_PACKAGES="libffi"
13265 else
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13267 $as_echo_n "checking for ffi.h... " >&6; }
13268
13269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271 #include <ffi.h>
13272 _ACEOF
13273 if ac_fn_c_try_cpp "$LINENO"; then :
13274   have_ffi_h=yes
13275 else
13276   have_ffi_h=no
13277 fi
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13279   if test x"$have_ffi_h" = x"yes"; then
13280
13281     save_LIBS=$LIBS
13282     if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13283       other_LIBS=
13284     else
13285       other_LIBS=$with_ffi
13286     fi
13287
13288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13289 $as_echo_n "checking for library containing ffi_call... " >&6; }
13290 if ${ac_cv_search_ffi_call+:} false; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   ac_func_search_save_LIBS=$LIBS
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h.  */
13296
13297 /* Override any GCC internal prototype to avoid an error.
13298    Use char because int might match the return type of a GCC
13299    builtin and then its argument prototype would still apply.  */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 char ffi_call ();
13304 int
13305 main ()
13306 {
13307 return ffi_call ();
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 for ac_lib in '' ffi; do
13313   if test -z "$ac_lib"; then
13314     ac_res="none required"
13315   else
13316     ac_res=-l$ac_lib
13317     LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13318   fi
13319   if ac_fn_c_try_link "$LINENO"; then :
13320   ac_cv_search_ffi_call=$ac_res
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext \
13323     conftest$ac_exeext
13324   if ${ac_cv_search_ffi_call+:} false; then :
13325   break
13326 fi
13327 done
13328 if ${ac_cv_search_ffi_call+:} false; then :
13329
13330 else
13331   ac_cv_search_ffi_call=no
13332 fi
13333 rm conftest.$ac_ext
13334 LIBS=$ac_func_search_save_LIBS
13335 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13337 $as_echo "$ac_cv_search_ffi_call" >&6; }
13338 ac_res=$ac_cv_search_ffi_call
13339 if test "$ac_res" != no; then :
13340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13341
13342 else
13343   as_fn_error $? "libffi not found" "$LINENO" 5
13344 fi
13345
13346     if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13347       FFI_LIBS=$other_LIBS
13348     else
13349       FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13350     fi
13351
13352     LIBS=$save_LIBS
13353   fi
13354   if test x"$have_ffi_h" != x"yes" ; then
13355     as_fn_error $? "ffi.h not found" "$LINENO" 5
13356   fi
13357
13358   FFI_PC_LIBS=$FFI_LIBS
13359   FFI_PC_CFLAGS=$FFI_CFLAGS
13360   FFI_CFLAGS=
13361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13362 $as_echo "$have_ffi_h" >&6; }
13363
13364
13365 fi
13366
13367
13368
13369
13370 # The cast to long int works around a bug in the HP C Compiler
13371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13373 # This bug is HP SR number 8606223364.
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13375 $as_echo_n "checking size of char... " >&6; }
13376 if ${ac_cv_sizeof_char+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13380
13381 else
13382   if test "$ac_cv_type_char" = yes; then
13383      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13385 as_fn_error 77 "cannot compute sizeof (char)
13386 See \`config.log' for more details" "$LINENO" 5; }
13387    else
13388      ac_cv_sizeof_char=0
13389    fi
13390 fi
13391
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13394 $as_echo "$ac_cv_sizeof_char" >&6; }
13395
13396
13397
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_CHAR $ac_cv_sizeof_char
13400 _ACEOF
13401
13402
13403 # The cast to long int works around a bug in the HP C Compiler
13404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13406 # This bug is HP SR number 8606223364.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13408 $as_echo_n "checking size of short... " >&6; }
13409 if ${ac_cv_sizeof_short+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13413
13414 else
13415   if test "$ac_cv_type_short" = yes; then
13416      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13418 as_fn_error 77 "cannot compute sizeof (short)
13419 See \`config.log' for more details" "$LINENO" 5; }
13420    else
13421      ac_cv_sizeof_short=0
13422    fi
13423 fi
13424
13425 fi
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13427 $as_echo "$ac_cv_sizeof_short" >&6; }
13428
13429
13430
13431 cat >>confdefs.h <<_ACEOF
13432 #define SIZEOF_SHORT $ac_cv_sizeof_short
13433 _ACEOF
13434
13435
13436 # The cast to long int works around a bug in the HP C Compiler
13437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13439 # This bug is HP SR number 8606223364.
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13441 $as_echo_n "checking size of int... " >&6; }
13442 if ${ac_cv_sizeof_int+:} false; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13446
13447 else
13448   if test "$ac_cv_type_int" = yes; then
13449      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13451 as_fn_error 77 "cannot compute sizeof (int)
13452 See \`config.log' for more details" "$LINENO" 5; }
13453    else
13454      ac_cv_sizeof_int=0
13455    fi
13456 fi
13457
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13460 $as_echo "$ac_cv_sizeof_int" >&6; }
13461
13462
13463
13464 cat >>confdefs.h <<_ACEOF
13465 #define SIZEOF_INT $ac_cv_sizeof_int
13466 _ACEOF
13467
13468
13469 # The cast to long int works around a bug in the HP C Compiler
13470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13472 # This bug is HP SR number 8606223364.
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13474 $as_echo_n "checking size of long... " >&6; }
13475 if ${ac_cv_sizeof_long+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13479
13480 else
13481   if test "$ac_cv_type_long" = yes; then
13482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13484 as_fn_error 77 "cannot compute sizeof (long)
13485 See \`config.log' for more details" "$LINENO" 5; }
13486    else
13487      ac_cv_sizeof_long=0
13488    fi
13489 fi
13490
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13493 $as_echo "$ac_cv_sizeof_long" >&6; }
13494
13495
13496
13497 cat >>confdefs.h <<_ACEOF
13498 #define SIZEOF_LONG $ac_cv_sizeof_long
13499 _ACEOF
13500
13501
13502
13503
13504 pkg_failed=no
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
13506 $as_echo_n "checking for GIREPO... " >&6; }
13507
13508 if test -n "$GIREPO_CFLAGS"; then
13509     pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
13510  elif test -n "$PKG_CONFIG"; then
13511     if test -n "$PKG_CONFIG" && \
13512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
13513   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13514   ac_status=$?
13515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13516   test $ac_status = 0; }; then
13517   pkg_cv_GIREPO_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
13518 else
13519   pkg_failed=yes
13520 fi
13521  else
13522     pkg_failed=untried
13523 fi
13524 if test -n "$GIREPO_LIBS"; then
13525     pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
13526  elif test -n "$PKG_CONFIG"; then
13527     if test -n "$PKG_CONFIG" && \
13528     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
13529   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13530   ac_status=$?
13531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13532   test $ac_status = 0; }; then
13533   pkg_cv_GIREPO_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
13534 else
13535   pkg_failed=yes
13536 fi
13537  else
13538     pkg_failed=untried
13539 fi
13540
13541
13542
13543 if test $pkg_failed = yes; then
13544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546
13547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13548         _pkg_short_errors_supported=yes
13549 else
13550         _pkg_short_errors_supported=no
13551 fi
13552         if test $_pkg_short_errors_supported = yes; then
13553                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13554         else
13555                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13556         fi
13557         # Put the nasty error message in config.log where it belongs
13558         echo "$GIREPO_PKG_ERRORS" >&5
13559
13560         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
13561
13562 $GIREPO_PKG_ERRORS
13563
13564 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13565 installed software in a non-standard prefix.
13566
13567 Alternatively, you may set the environment variables GIREPO_CFLAGS
13568 and GIREPO_LIBS to avoid the need to call pkg-config.
13569 See the pkg-config man page for more details." "$LINENO" 5
13570
13571 elif test $pkg_failed = untried; then
13572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13574         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13576 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13577 is in your PATH or set the PKG_CONFIG environment variable to the full
13578 path to pkg-config.
13579
13580 Alternatively, you may set the environment variables GIREPO_CFLAGS
13581 and GIREPO_LIBS to avoid the need to call pkg-config.
13582 See the pkg-config man page for more details.
13583
13584 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13585 See \`config.log' for more details" "$LINENO" 5; }
13586
13587 else
13588         GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
13589         GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
13590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592
13593 fi
13594
13595 # if we ever remove manual check for ffi and require .pc file, then
13596 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
13597 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
13598 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
13599
13600 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
13601
13602 # gtk-doc
13603
13604
13605
13606     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13607 set dummy gtkdoc-check; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
13611   $as_echo_n "(cached) " >&6
13612 else
13613   case $GTKDOC_CHECK in
13614   [\\/]* | ?:[\\/]*)
13615   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13616   ;;
13617   *)
13618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621   IFS=$as_save_IFS
13622   test -z "$as_dir" && as_dir=.
13623     for ac_exec_ext in '' $ac_executable_extensions; do
13624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13625     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627     break 2
13628   fi
13629 done
13630   done
13631 IFS=$as_save_IFS
13632
13633   ;;
13634 esac
13635 fi
13636 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13637 if test -n "$GTKDOC_CHECK"; then
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13639 $as_echo "$GTKDOC_CHECK" >&6; }
13640 else
13641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13643 fi
13644
13645
13646   for ac_prog in gtkdoc-rebase
13647 do
13648   # Extract the first word of "$ac_prog", so it can be a program name with args.
13649 set dummy $ac_prog; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651 $as_echo_n "checking for $ac_word... " >&6; }
13652 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   case $GTKDOC_REBASE in
13656   [\\/]* | ?:[\\/]*)
13657   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13658   ;;
13659   *)
13660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13662 do
13663   IFS=$as_save_IFS
13664   test -z "$as_dir" && as_dir=.
13665     for ac_exec_ext in '' $ac_executable_extensions; do
13666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13667     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669     break 2
13670   fi
13671 done
13672   done
13673 IFS=$as_save_IFS
13674
13675   ;;
13676 esac
13677 fi
13678 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13679 if test -n "$GTKDOC_REBASE"; then
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13681 $as_echo "$GTKDOC_REBASE" >&6; }
13682 else
13683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686
13687
13688   test -n "$GTKDOC_REBASE" && break
13689 done
13690 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13691
13692   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13693 set dummy gtkdoc-mkpdf; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   case $GTKDOC_MKPDF in
13700   [\\/]* | ?:[\\/]*)
13701   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13702   ;;
13703   *)
13704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707   IFS=$as_save_IFS
13708   test -z "$as_dir" && as_dir=.
13709     for ac_exec_ext in '' $ac_executable_extensions; do
13710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713     break 2
13714   fi
13715 done
13716   done
13717 IFS=$as_save_IFS
13718
13719   ;;
13720 esac
13721 fi
13722 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13723 if test -n "$GTKDOC_MKPDF"; then
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13725 $as_echo "$GTKDOC_MKPDF" >&6; }
13726 else
13727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730
13731
13732
13733
13734 # Check whether --with-html-dir was given.
13735 if test "${with_html_dir+set}" = set; then :
13736   withval=$with_html_dir;
13737 else
13738   with_html_dir='${datadir}/gtk-doc/html'
13739 fi
13740
13741   HTML_DIR="$with_html_dir"
13742
13743
13744     # Check whether --enable-gtk-doc was given.
13745 if test "${enable_gtk_doc+set}" = set; then :
13746   enableval=$enable_gtk_doc;
13747 else
13748   enable_gtk_doc=no
13749 fi
13750
13751
13752   if test x$enable_gtk_doc = xyes; then
13753     if test -n "$PKG_CONFIG" && \
13754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
13755   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
13756   ac_status=$?
13757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758   test $ac_status = 0; }; then
13759   :
13760 else
13761   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
13762 fi
13763         if test "x$PACKAGE_NAME" != "xglib"; then
13764
13765 pkg_failed=no
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13767 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13768
13769 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13770     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13771  elif test -n "$PKG_CONFIG"; then
13772     if test -n "$PKG_CONFIG" && \
13773     { { $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
13774   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13775   ac_status=$?
13776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13777   test $ac_status = 0; }; then
13778   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13779 else
13780   pkg_failed=yes
13781 fi
13782  else
13783     pkg_failed=untried
13784 fi
13785 if test -n "$GTKDOC_DEPS_LIBS"; then
13786     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13787  elif test -n "$PKG_CONFIG"; then
13788     if test -n "$PKG_CONFIG" && \
13789     { { $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
13790   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13791   ac_status=$?
13792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793   test $ac_status = 0; }; then
13794   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13795 else
13796   pkg_failed=yes
13797 fi
13798  else
13799     pkg_failed=untried
13800 fi
13801
13802
13803
13804 if test $pkg_failed = yes; then
13805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13807
13808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13809         _pkg_short_errors_supported=yes
13810 else
13811         _pkg_short_errors_supported=no
13812 fi
13813         if test $_pkg_short_errors_supported = yes; then
13814                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13815         else
13816                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13817         fi
13818         # Put the nasty error message in config.log where it belongs
13819         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13820
13821         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13822
13823 $GTKDOC_DEPS_PKG_ERRORS
13824
13825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13826 installed software in a non-standard prefix.
13827
13828 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13829 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13830 See the pkg-config man page for more details." "$LINENO" 5
13831
13832 elif test $pkg_failed = untried; then
13833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13835         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13837 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13838 is in your PATH or set the PKG_CONFIG environment variable to the full
13839 path to pkg-config.
13840
13841 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13842 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13843 See the pkg-config man page for more details.
13844
13845 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13846 See \`config.log' for more details" "$LINENO" 5; }
13847
13848 else
13849         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13850         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13852 $as_echo "yes" >&6; }
13853
13854 fi
13855     fi
13856   fi
13857
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13859 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13861 $as_echo "$enable_gtk_doc" >&6; }
13862
13863     # Check whether --enable-gtk-doc-html was given.
13864 if test "${enable_gtk_doc_html+set}" = set; then :
13865   enableval=$enable_gtk_doc_html;
13866 else
13867   enable_gtk_doc_html=yes
13868 fi
13869
13870     # Check whether --enable-gtk-doc-pdf was given.
13871 if test "${enable_gtk_doc_pdf+set}" = set; then :
13872   enableval=$enable_gtk_doc_pdf;
13873 else
13874   enable_gtk_doc_pdf=no
13875 fi
13876
13877
13878   if test -z "$GTKDOC_MKPDF"; then
13879     enable_gtk_doc_pdf=no
13880   fi
13881
13882
13883    if test x$enable_gtk_doc = xyes; then
13884   ENABLE_GTK_DOC_TRUE=
13885   ENABLE_GTK_DOC_FALSE='#'
13886 else
13887   ENABLE_GTK_DOC_TRUE='#'
13888   ENABLE_GTK_DOC_FALSE=
13889 fi
13890
13891    if test x$enable_gtk_doc_html = xyes; then
13892   GTK_DOC_BUILD_HTML_TRUE=
13893   GTK_DOC_BUILD_HTML_FALSE='#'
13894 else
13895   GTK_DOC_BUILD_HTML_TRUE='#'
13896   GTK_DOC_BUILD_HTML_FALSE=
13897 fi
13898
13899    if test x$enable_gtk_doc_pdf = xyes; then
13900   GTK_DOC_BUILD_PDF_TRUE=
13901   GTK_DOC_BUILD_PDF_FALSE='#'
13902 else
13903   GTK_DOC_BUILD_PDF_TRUE='#'
13904   GTK_DOC_BUILD_PDF_FALSE=
13905 fi
13906
13907    if test -n "$LIBTOOL"; then
13908   GTK_DOC_USE_LIBTOOL_TRUE=
13909   GTK_DOC_USE_LIBTOOL_FALSE='#'
13910 else
13911   GTK_DOC_USE_LIBTOOL_TRUE='#'
13912   GTK_DOC_USE_LIBTOOL_FALSE=
13913 fi
13914
13915    if test -n "$GTKDOC_REBASE"; then
13916   GTK_DOC_USE_REBASE_TRUE=
13917   GTK_DOC_USE_REBASE_FALSE='#'
13918 else
13919   GTK_DOC_USE_REBASE_TRUE='#'
13920   GTK_DOC_USE_REBASE_FALSE=
13921 fi
13922
13923
13924
13925 # Checks for header files.
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13927 $as_echo_n "checking for ANSI C header files... " >&6; }
13928 if ${ac_cv_header_stdc+:} false; then :
13929   $as_echo_n "(cached) " >&6
13930 else
13931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h.  */
13933 #include <stdlib.h>
13934 #include <stdarg.h>
13935 #include <string.h>
13936 #include <float.h>
13937
13938 int
13939 main ()
13940 {
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_compile "$LINENO"; then :
13947   ac_cv_header_stdc=yes
13948 else
13949   ac_cv_header_stdc=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952
13953 if test $ac_cv_header_stdc = yes; then
13954   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h.  */
13957 #include <string.h>
13958
13959 _ACEOF
13960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13961   $EGREP "memchr" >/dev/null 2>&1; then :
13962
13963 else
13964   ac_cv_header_stdc=no
13965 fi
13966 rm -f conftest*
13967
13968 fi
13969
13970 if test $ac_cv_header_stdc = yes; then
13971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h.  */
13974 #include <stdlib.h>
13975
13976 _ACEOF
13977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13978   $EGREP "free" >/dev/null 2>&1; then :
13979
13980 else
13981   ac_cv_header_stdc=no
13982 fi
13983 rm -f conftest*
13984
13985 fi
13986
13987 if test $ac_cv_header_stdc = yes; then
13988   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13989   if test "$cross_compiling" = yes; then :
13990   :
13991 else
13992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994 #include <ctype.h>
13995 #include <stdlib.h>
13996 #if ((' ' & 0x0FF) == 0x020)
13997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13999 #else
14000 # define ISLOWER(c) \
14001                    (('a' <= (c) && (c) <= 'i') \
14002                      || ('j' <= (c) && (c) <= 'r') \
14003                      || ('s' <= (c) && (c) <= 'z'))
14004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14005 #endif
14006
14007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14008 int
14009 main ()
14010 {
14011   int i;
14012   for (i = 0; i < 256; i++)
14013     if (XOR (islower (i), ISLOWER (i))
14014         || toupper (i) != TOUPPER (i))
14015       return 2;
14016   return 0;
14017 }
14018 _ACEOF
14019 if ac_fn_c_try_run "$LINENO"; then :
14020
14021 else
14022   ac_cv_header_stdc=no
14023 fi
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14025   conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 fi
14027
14028 fi
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14031 $as_echo "$ac_cv_header_stdc" >&6; }
14032 if test $ac_cv_header_stdc = yes; then
14033
14034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14035
14036 fi
14037
14038 for ac_header in fcntl.h stdlib.h string.h
14039 do :
14040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14043   cat >>confdefs.h <<_ACEOF
14044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045 _ACEOF
14046
14047 fi
14048
14049 done
14050
14051
14052 # Checks for typedefs, structures, and compiler characteristics.
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14054 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14055 if ${ac_cv_c_const+:} false; then :
14056   $as_echo_n "(cached) " >&6
14057 else
14058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h.  */
14060
14061 int
14062 main ()
14063 {
14064 /* FIXME: Include the comments suggested by Paul. */
14065 #ifndef __cplusplus
14066   /* Ultrix mips cc rejects this.  */
14067   typedef int charset[2];
14068   const charset cs;
14069   /* SunOS 4.1.1 cc rejects this.  */
14070   char const *const *pcpcc;
14071   char **ppc;
14072   /* NEC SVR4.0.2 mips cc rejects this.  */
14073   struct point {int x, y;};
14074   static struct point const zero = {0,0};
14075   /* AIX XL C 1.02.0.0 rejects this.
14076      It does not let you subtract one const X* pointer from another in
14077      an arm of an if-expression whose if-part is not a constant
14078      expression */
14079   const char *g = "string";
14080   pcpcc = &g + (g ? g-g : 0);
14081   /* HPUX 7.0 cc rejects these. */
14082   ++pcpcc;
14083   ppc = (char**) pcpcc;
14084   pcpcc = (char const *const *) ppc;
14085   { /* SCO 3.2v4 cc rejects this.  */
14086     char *t;
14087     char const *s = 0 ? (char *) 0 : (char const *) 0;
14088
14089     *t++ = 0;
14090     if (s) return 0;
14091   }
14092   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14093     int x[] = {25, 17};
14094     const int *foo = &x[0];
14095     ++foo;
14096   }
14097   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14098     typedef const int *iptr;
14099     iptr p = 0;
14100     ++p;
14101   }
14102   { /* AIX XL C 1.02.0.0 rejects this saying
14103        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14104     struct s { int j; const int *ap[3]; };
14105     struct s *b; b->j = 5;
14106   }
14107   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14108     const int foo = 10;
14109     if (!foo) return 0;
14110   }
14111   return !cs[0] && !zero.x;
14112 #endif
14113
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 if ac_fn_c_try_compile "$LINENO"; then :
14119   ac_cv_c_const=yes
14120 else
14121   ac_cv_c_const=no
14122 fi
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 fi
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14126 $as_echo "$ac_cv_c_const" >&6; }
14127 if test $ac_cv_c_const = no; then
14128
14129 $as_echo "#define const /**/" >>confdefs.h
14130
14131 fi
14132
14133
14134 # Checks for library functions.
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14136 $as_echo_n "checking for working strtod... " >&6; }
14137 if ${ac_cv_func_strtod+:} false; then :
14138   $as_echo_n "(cached) " >&6
14139 else
14140   if test "$cross_compiling" = yes; then :
14141   ac_cv_func_strtod=no
14142 else
14143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h.  */
14145
14146 $ac_includes_default
14147 #ifndef strtod
14148 double strtod ();
14149 #endif
14150 int
14151 main()
14152 {
14153   {
14154     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14155     char *string = " +69";
14156     char *term;
14157     double value;
14158     value = strtod (string, &term);
14159     if (value != 69 || term != (string + 4))
14160       return 1;
14161   }
14162
14163   {
14164     /* Under Solaris 2.4, strtod returns the wrong value for the
14165        terminating character under some conditions.  */
14166     char *string = "NaN";
14167     char *term;
14168     strtod (string, &term);
14169     if (term != string && *(term - 1) == 0)
14170       return 1;
14171   }
14172   return 0;
14173 }
14174
14175 _ACEOF
14176 if ac_fn_c_try_run "$LINENO"; then :
14177   ac_cv_func_strtod=yes
14178 else
14179   ac_cv_func_strtod=no
14180 fi
14181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14182   conftest.$ac_objext conftest.beam conftest.$ac_ext
14183 fi
14184
14185 fi
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14187 $as_echo "$ac_cv_func_strtod" >&6; }
14188 if test $ac_cv_func_strtod = no; then
14189   case " $LIBOBJS " in
14190   *" strtod.$ac_objext "* ) ;;
14191   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14192  ;;
14193 esac
14194
14195 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14196 if test "x$ac_cv_func_pow" = xyes; then :
14197
14198 fi
14199
14200 if test $ac_cv_func_pow = no; then
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14202 $as_echo_n "checking for pow in -lm... " >&6; }
14203 if ${ac_cv_lib_m_pow+:} false; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lm  $LIBS"
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210
14211 /* Override any GCC internal prototype to avoid an error.
14212    Use char because int might match the return type of a GCC
14213    builtin and then its argument prototype would still apply.  */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char pow ();
14218 int
14219 main ()
14220 {
14221 return pow ();
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_link "$LINENO"; then :
14227   ac_cv_lib_m_pow=yes
14228 else
14229   ac_cv_lib_m_pow=no
14230 fi
14231 rm -f core conftest.err conftest.$ac_objext \
14232     conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14236 $as_echo "$ac_cv_lib_m_pow" >&6; }
14237 if test "x$ac_cv_lib_m_pow" = xyes; then :
14238   POW_LIB=-lm
14239 else
14240   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14241 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14242 fi
14243
14244 fi
14245
14246 fi
14247
14248 for ac_func in memchr strchr strspn strstr strtol strtoull
14249 do :
14250   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14253   cat >>confdefs.h <<_ACEOF
14254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255 _ACEOF
14256
14257 fi
14258 done
14259
14260 for ac_func in backtrace backtrace_symbols
14261 do :
14262   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14264 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14265   cat >>confdefs.h <<_ACEOF
14266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14267 _ACEOF
14268
14269 fi
14270 done
14271
14272
14273 # Python
14274
14275
14276
14277
14278         if test -n "$PYTHON"; then
14279       # If the user set $PYTHON, use it and don't search something else.
14280       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
14281 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
14282       prog="import sys
14283 # split strings by '.' and convert to numeric.  Append some zeros
14284 # because we need at least 4 digits for the hex conversion.
14285 # map returns an iterator in Python 3.0 and a list in 2.x
14286 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14287 minverhex = 0
14288 # xrange is not present in Python 3.0 and range returns an iterator
14289 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14290 sys.exit(sys.hexversion < minverhex)"
14291   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14292    ($PYTHON -c "$prog") >&5 2>&5
14293    ac_status=$?
14294    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295    (exit $ac_status); }; then :
14296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14297 $as_echo "yes" >&6; }
14298 else
14299   as_fn_error $? "too old" "$LINENO" 5
14300 fi
14301       am_display_PYTHON=$PYTHON
14302     else
14303       # Otherwise, try each interpreter until we find one that satisfies
14304       # VERSION.
14305       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
14306 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
14307 if ${am_cv_pathless_PYTHON+:} false; then :
14308   $as_echo_n "(cached) " >&6
14309 else
14310
14311         for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14312           test "$am_cv_pathless_PYTHON" = none && break
14313           prog="import sys
14314 # split strings by '.' and convert to numeric.  Append some zeros
14315 # because we need at least 4 digits for the hex conversion.
14316 # map returns an iterator in Python 3.0 and a list in 2.x
14317 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14318 minverhex = 0
14319 # xrange is not present in Python 3.0 and range returns an iterator
14320 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14321 sys.exit(sys.hexversion < minverhex)"
14322   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14323    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14324    ac_status=$?
14325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326    (exit $ac_status); }; then :
14327   break
14328 fi
14329         done
14330 fi
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14332 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14333       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14334       if test "$am_cv_pathless_PYTHON" = none; then
14335         PYTHON=:
14336       else
14337         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14338 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_path_PYTHON+:} false; then :
14342   $as_echo_n "(cached) " >&6
14343 else
14344   case $PYTHON in
14345   [\\/]* | ?:[\\/]*)
14346   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14347   ;;
14348   *)
14349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14350 for as_dir in $PATH
14351 do
14352   IFS=$as_save_IFS
14353   test -z "$as_dir" && as_dir=.
14354     for ac_exec_ext in '' $ac_executable_extensions; do
14355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14356     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14358     break 2
14359   fi
14360 done
14361   done
14362 IFS=$as_save_IFS
14363
14364   ;;
14365 esac
14366 fi
14367 PYTHON=$ac_cv_path_PYTHON
14368 if test -n "$PYTHON"; then
14369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14370 $as_echo "$PYTHON" >&6; }
14371 else
14372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373 $as_echo "no" >&6; }
14374 fi
14375
14376
14377       fi
14378       am_display_PYTHON=$am_cv_pathless_PYTHON
14379     fi
14380
14381
14382   if test "$PYTHON" = :; then
14383       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14384   else
14385
14386
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14388 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14389 if ${am_cv_python_version+:} false; then :
14390   $as_echo_n "(cached) " >&6
14391 else
14392   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14395 $as_echo "$am_cv_python_version" >&6; }
14396   PYTHON_VERSION=$am_cv_python_version
14397
14398
14399
14400   PYTHON_PREFIX='${prefix}'
14401
14402   PYTHON_EXEC_PREFIX='${exec_prefix}'
14403
14404
14405
14406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14407 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14408 if ${am_cv_python_platform+:} false; then :
14409   $as_echo_n "(cached) " >&6
14410 else
14411   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14414 $as_echo "$am_cv_python_platform" >&6; }
14415   PYTHON_PLATFORM=$am_cv_python_platform
14416
14417
14418
14419
14420                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14421 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14422 if ${am_cv_python_pythondir+:} false; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   if test "x$prefix" = xNONE
14426      then
14427        am_py_prefix=$ac_default_prefix
14428      else
14429        am_py_prefix=$prefix
14430      fi
14431      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 ||
14432      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14433      case $am_cv_python_pythondir in
14434      $am_py_prefix*)
14435        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14436        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14437        ;;
14438      *)
14439        case $am_py_prefix in
14440          /usr|/System*) ;;
14441          *)
14442           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14443           ;;
14444        esac
14445        ;;
14446      esac
14447
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14450 $as_echo "$am_cv_python_pythondir" >&6; }
14451   pythondir=$am_cv_python_pythondir
14452
14453
14454
14455   pkgpythondir=\${pythondir}/$PACKAGE
14456
14457
14458             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14459 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14460 if ${am_cv_python_pyexecdir+:} false; then :
14461   $as_echo_n "(cached) " >&6
14462 else
14463   if test "x$exec_prefix" = xNONE
14464      then
14465        am_py_exec_prefix=$am_py_prefix
14466      else
14467        am_py_exec_prefix=$exec_prefix
14468      fi
14469      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 ||
14470      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14471      case $am_cv_python_pyexecdir in
14472      $am_py_exec_prefix*)
14473        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14474        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14475        ;;
14476      *)
14477        case $am_py_exec_prefix in
14478          /usr|/System*) ;;
14479          *)
14480            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14481            ;;
14482        esac
14483        ;;
14484      esac
14485
14486 fi
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14488 $as_echo "$am_cv_python_pyexecdir" >&6; }
14489   pyexecdir=$am_cv_python_pyexecdir
14490
14491
14492
14493   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14494
14495
14496
14497   fi
14498
14499
14500 case "$host" in
14501 *-*-mingw*)
14502         # Change backslashes to forward slashes in pyexecdir to avoid
14503         # quoting issues
14504         pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
14505         ;;
14506 esac
14507
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
14509 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
14510 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
14511 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
14512 if test "x$PYTHON_INCLUDES" == x; then
14513   PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
14514   if test "$py_prefix" != "$py_exec_prefix"; then
14515     PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
14516   fi
14517 fi
14518
14519 save_CPPFLAGS="$CPPFLAGS"
14520 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h.  */
14523 #include <Python.h>
14524 _ACEOF
14525 if ac_fn_c_try_cpp "$LINENO"; then :
14526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14527 $as_echo "found" >&6; }
14528
14529 else
14530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14531 $as_echo "not found" >&6; }
14532 as_fn_error $? "Python headers not found" "$LINENO" 5
14533 fi
14534 rm -f conftest.err conftest.i conftest.$ac_ext
14535 CPPFLAGS="$save_CPPFLAGS"
14536
14537 if test "x$os_win32" = "xyes"; then
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
14540 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
14541 if test "x$PYTHON_LIBS" == x; then
14542         PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
14543 fi
14544 if test "x$PYTHON_LIB_LOC" == x; then
14545         PYTHON_LIB_LOC="${py_prefix}/lib"
14546 fi
14547
14548
14549 save_LIBS="$LIBS"
14550 LIBS="$LIBS $PYTHON_LIBS"
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h.  */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555    Use char because int might match the return type of a GCC
14556    builtin and then its argument prototype would still apply.  */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char Py_Initialize ();
14561 int
14562 main ()
14563 {
14564 return Py_Initialize ();
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"; then :
14570            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14571 $as_echo "found" >&6; };
14572 else
14573            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14574 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
14575 fi
14576 rm -f core conftest.err conftest.$ac_objext \
14577     conftest$ac_exeext conftest.$ac_ext
14578
14579
14580 fi
14581
14582 # Check whether --enable-doctool was given.
14583 if test "${enable_doctool+set}" = set; then :
14584   enableval=$enable_doctool; enable_doctool=$enableval
14585 else
14586   enable_doctool=no
14587 fi
14588
14589 if test x$enable_doctool != xno; then
14590
14591 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
14593 $as_echo_n "checking for python module mako... " >&6; }
14594 if eval \${py_cv_mod_$py_mod_var+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597
14598 prog="
14599 import sys
14600 try:
14601         import mako
14602 except ImportError:
14603         sys.exit(1)
14604 except:
14605         sys.exit(0)
14606 sys.exit(0)"
14607 if $PYTHON -c "$prog" 1>&5 2>&5
14608   then
14609     eval "py_cv_mod_$py_mod_var=yes"
14610   else
14611     eval "py_cv_mod_$py_mod_var=no"
14612   fi
14613
14614 fi
14615
14616 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
14617 if test "x$py_val" != xno; then
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14619 $as_echo "yes" >&6; }
14620   else
14621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14623   as_fn_error $? "Could not find python module: mako" "$LINENO" 5
14624 fi
14625
14626 fi
14627  if test x$enable_doctool != xno; then
14628   BUILD_DOCTOOL_TRUE=
14629   BUILD_DOCTOOL_FALSE='#'
14630 else
14631   BUILD_DOCTOOL_TRUE='#'
14632   BUILD_DOCTOOL_FALSE=
14633 fi
14634
14635
14636 # Glib documentation
14637
14638 GLIBSRC=
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
14640 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
14641
14642
14643 # Check whether --with-glib-src was given.
14644 if test "${with_glib_src+set}" = set; then :
14645   withval=$with_glib_src; GLIBSRC=$withval
14646
14647 fi
14648
14649  if test x"$GLIBSRC" != x; then
14650   WITH_GLIBSRC_TRUE=
14651   WITH_GLIBSRC_FALSE='#'
14652 else
14653   WITH_GLIBSRC_TRUE='#'
14654   WITH_GLIBSRC_FALSE=
14655 fi
14656
14657
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
14659 $as_echo "$GLIBSRC" >&6; }
14660
14661
14662
14663 ac_config_files="$ac_config_files Makefile m4/Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/repository/Makefile tests/warn/Makefile tests/doctool/Makefile docs/Makefile docs/reference/Makefile gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc"
14664
14665 cat >confcache <<\_ACEOF
14666 # This file is a shell script that caches the results of configure
14667 # tests run on this system so they can be shared between configure
14668 # scripts and configure runs, see configure's option --config-cache.
14669 # It is not useful on other systems.  If it contains results you don't
14670 # want to keep, you may remove or edit it.
14671 #
14672 # config.status only pays attention to the cache file if you give it
14673 # the --recheck option to rerun configure.
14674 #
14675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14677 # following values.
14678
14679 _ACEOF
14680
14681 # The following way of writing the cache mishandles newlines in values,
14682 # but we know of no workaround that is simple, portable, and efficient.
14683 # So, we kill variables containing newlines.
14684 # Ultrix sh set writes to stderr and can't be redirected directly,
14685 # and sets the high bit in the cache file unless we assign to the vars.
14686 (
14687   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688     eval ac_val=\$$ac_var
14689     case $ac_val in #(
14690     *${as_nl}*)
14691       case $ac_var in #(
14692       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694       esac
14695       case $ac_var in #(
14696       _ | IFS | as_nl) ;; #(
14697       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698       *) { eval $ac_var=; unset $ac_var;} ;;
14699       esac ;;
14700     esac
14701   done
14702
14703   (set) 2>&1 |
14704     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705     *${as_nl}ac_space=\ *)
14706       # `set' does not quote correctly, so add quotes: double-quote
14707       # substitution turns \\\\ into \\, and sed turns \\ into \.
14708       sed -n \
14709         "s/'/'\\\\''/g;
14710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14711       ;; #(
14712     *)
14713       # `set' quotes correctly as required by POSIX, so do not add quotes.
14714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14715       ;;
14716     esac |
14717     sort
14718 ) |
14719   sed '
14720      /^ac_cv_env_/b end
14721      t clear
14722      :clear
14723      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724      t end
14725      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726      :end' >>confcache
14727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728   if test -w "$cache_file"; then
14729     if test "x$cache_file" != "x/dev/null"; then
14730       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731 $as_echo "$as_me: updating cache $cache_file" >&6;}
14732       if test ! -f "$cache_file" || test -h "$cache_file"; then
14733         cat confcache >"$cache_file"
14734       else
14735         case $cache_file in #(
14736         */* | ?:*)
14737           mv -f confcache "$cache_file"$$ &&
14738           mv -f "$cache_file"$$ "$cache_file" ;; #(
14739         *)
14740           mv -f confcache "$cache_file" ;;
14741         esac
14742       fi
14743     fi
14744   else
14745     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14747   fi
14748 fi
14749 rm -f confcache
14750
14751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14752 # Let make expand exec_prefix.
14753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14754
14755 DEFS=-DHAVE_CONFIG_H
14756
14757 ac_libobjs=
14758 ac_ltlibobjs=
14759 U=
14760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14761   # 1. Remove the extension, and $U if already installed.
14762   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14763   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14764   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14765   #    will be set to the directory where LIBOBJS objects are built.
14766   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14767   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14768 done
14769 LIBOBJS=$ac_libobjs
14770
14771 LTLIBOBJS=$ac_ltlibobjs
14772
14773
14774  if test -n "$EXEEXT"; then
14775   am__EXEEXT_TRUE=
14776   am__EXEEXT_FALSE='#'
14777 else
14778   am__EXEEXT_TRUE='#'
14779   am__EXEEXT_FALSE=
14780 fi
14781
14782 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14783   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14785 fi
14786 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14787   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14789 fi
14790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14791   as_fn_error $? "conditional \"AMDEP\" was never defined.
14792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14793 fi
14794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14795   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14797 fi
14798 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
14799   as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
14800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14801 fi
14802 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
14803   as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
14804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14805 fi
14806 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
14807   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
14808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14809 fi
14810 if test -z "${HAVE_CAIRO_GOBJECT_TRUE}" && test -z "${HAVE_CAIRO_GOBJECT_FALSE}"; then
14811   as_fn_error $? "conditional \"HAVE_CAIRO_GOBJECT\" was never defined.
14812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 fi
14814 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14815   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14817 fi
14818 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14819   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14821 fi
14822 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14823   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14825 fi
14826 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14827   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14829 fi
14830 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
14831   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
14832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14833 fi
14834 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
14835   as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14837 fi
14838 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
14839   as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14841 fi
14842
14843 : "${CONFIG_STATUS=./config.status}"
14844 ac_write_fail=0
14845 ac_clean_files_save=$ac_clean_files
14846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14848 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14849 as_write_fail=0
14850 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14851 #! $SHELL
14852 # Generated by $as_me.
14853 # Run this file to recreate the current configuration.
14854 # Compiler output produced by configure, useful for debugging
14855 # configure, is in config.log if it exists.
14856
14857 debug=false
14858 ac_cs_recheck=false
14859 ac_cs_silent=false
14860
14861 SHELL=\${CONFIG_SHELL-$SHELL}
14862 export SHELL
14863 _ASEOF
14864 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14865 ## -------------------- ##
14866 ## M4sh Initialization. ##
14867 ## -------------------- ##
14868
14869 # Be more Bourne compatible
14870 DUALCASE=1; export DUALCASE # for MKS sh
14871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14872   emulate sh
14873   NULLCMD=:
14874   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14875   # is contrary to our usage.  Disable this feature.
14876   alias -g '${1+"$@"}'='"$@"'
14877   setopt NO_GLOB_SUBST
14878 else
14879   case `(set -o) 2>/dev/null` in #(
14880   *posix*) :
14881     set -o posix ;; #(
14882   *) :
14883      ;;
14884 esac
14885 fi
14886
14887
14888 as_nl='
14889 '
14890 export as_nl
14891 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14892 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14895 # Prefer a ksh shell builtin over an external printf program on Solaris,
14896 # but without wasting forks for bash or zsh.
14897 if test -z "$BASH_VERSION$ZSH_VERSION" \
14898     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14899   as_echo='print -r --'
14900   as_echo_n='print -rn --'
14901 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14902   as_echo='printf %s\n'
14903   as_echo_n='printf %s'
14904 else
14905   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14906     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14907     as_echo_n='/usr/ucb/echo -n'
14908   else
14909     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14910     as_echo_n_body='eval
14911       arg=$1;
14912       case $arg in #(
14913       *"$as_nl"*)
14914         expr "X$arg" : "X\\(.*\\)$as_nl";
14915         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14916       esac;
14917       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14918     '
14919     export as_echo_n_body
14920     as_echo_n='sh -c $as_echo_n_body as_echo'
14921   fi
14922   export as_echo_body
14923   as_echo='sh -c $as_echo_body as_echo'
14924 fi
14925
14926 # The user is always right.
14927 if test "${PATH_SEPARATOR+set}" != set; then
14928   PATH_SEPARATOR=:
14929   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14930     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14931       PATH_SEPARATOR=';'
14932   }
14933 fi
14934
14935
14936 # IFS
14937 # We need space, tab and new line, in precisely that order.  Quoting is
14938 # there to prevent editors from complaining about space-tab.
14939 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14940 # splitting by setting IFS to empty value.)
14941 IFS=" ""        $as_nl"
14942
14943 # Find who we are.  Look in the path if we contain no directory separator.
14944 as_myself=
14945 case $0 in #((
14946   *[\\/]* ) as_myself=$0 ;;
14947   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14949 do
14950   IFS=$as_save_IFS
14951   test -z "$as_dir" && as_dir=.
14952     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14953   done
14954 IFS=$as_save_IFS
14955
14956      ;;
14957 esac
14958 # We did not find ourselves, most probably we were run as `sh COMMAND'
14959 # in which case we are not to be found in the path.
14960 if test "x$as_myself" = x; then
14961   as_myself=$0
14962 fi
14963 if test ! -f "$as_myself"; then
14964   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14965   exit 1
14966 fi
14967
14968 # Unset variables that we do not need and which cause bugs (e.g. in
14969 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14970 # suppresses any "Segmentation fault" message there.  '((' could
14971 # trigger a bug in pdksh 5.2.14.
14972 for as_var in BASH_ENV ENV MAIL MAILPATH
14973 do eval test x\${$as_var+set} = xset \
14974   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14975 done
14976 PS1='$ '
14977 PS2='> '
14978 PS4='+ '
14979
14980 # NLS nuisances.
14981 LC_ALL=C
14982 export LC_ALL
14983 LANGUAGE=C
14984 export LANGUAGE
14985
14986 # CDPATH.
14987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14988
14989
14990 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14991 # ----------------------------------------
14992 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14993 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14994 # script with STATUS, using 1 if that was 0.
14995 as_fn_error ()
14996 {
14997   as_status=$1; test $as_status -eq 0 && as_status=1
14998   if test "$4"; then
14999     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15000     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15001   fi
15002   $as_echo "$as_me: error: $2" >&2
15003   as_fn_exit $as_status
15004 } # as_fn_error
15005
15006
15007 # as_fn_set_status STATUS
15008 # -----------------------
15009 # Set $? to STATUS, without forking.
15010 as_fn_set_status ()
15011 {
15012   return $1
15013 } # as_fn_set_status
15014
15015 # as_fn_exit STATUS
15016 # -----------------
15017 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15018 as_fn_exit ()
15019 {
15020   set +e
15021   as_fn_set_status $1
15022   exit $1
15023 } # as_fn_exit
15024
15025 # as_fn_unset VAR
15026 # ---------------
15027 # Portably unset VAR.
15028 as_fn_unset ()
15029 {
15030   { eval $1=; unset $1;}
15031 }
15032 as_unset=as_fn_unset
15033 # as_fn_append VAR VALUE
15034 # ----------------------
15035 # Append the text in VALUE to the end of the definition contained in VAR. Take
15036 # advantage of any shell optimizations that allow amortized linear growth over
15037 # repeated appends, instead of the typical quadratic growth present in naive
15038 # implementations.
15039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15040   eval 'as_fn_append ()
15041   {
15042     eval $1+=\$2
15043   }'
15044 else
15045   as_fn_append ()
15046   {
15047     eval $1=\$$1\$2
15048   }
15049 fi # as_fn_append
15050
15051 # as_fn_arith ARG...
15052 # ------------------
15053 # Perform arithmetic evaluation on the ARGs, and store the result in the
15054 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15055 # must be portable across $(()) and expr.
15056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15057   eval 'as_fn_arith ()
15058   {
15059     as_val=$(( $* ))
15060   }'
15061 else
15062   as_fn_arith ()
15063   {
15064     as_val=`expr "$@" || test $? -eq 1`
15065   }
15066 fi # as_fn_arith
15067
15068
15069 if expr a : '\(a\)' >/dev/null 2>&1 &&
15070    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15071   as_expr=expr
15072 else
15073   as_expr=false
15074 fi
15075
15076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15077   as_basename=basename
15078 else
15079   as_basename=false
15080 fi
15081
15082 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15083   as_dirname=dirname
15084 else
15085   as_dirname=false
15086 fi
15087
15088 as_me=`$as_basename -- "$0" ||
15089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15090          X"$0" : 'X\(//\)$' \| \
15091          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15092 $as_echo X/"$0" |
15093     sed '/^.*\/\([^/][^/]*\)\/*$/{
15094             s//\1/
15095             q
15096           }
15097           /^X\/\(\/\/\)$/{
15098             s//\1/
15099             q
15100           }
15101           /^X\/\(\/\).*/{
15102             s//\1/
15103             q
15104           }
15105           s/.*/./; q'`
15106
15107 # Avoid depending upon Character Ranges.
15108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15111 as_cr_digits='0123456789'
15112 as_cr_alnum=$as_cr_Letters$as_cr_digits
15113
15114 ECHO_C= ECHO_N= ECHO_T=
15115 case `echo -n x` in #(((((
15116 -n*)
15117   case `echo 'xy\c'` in
15118   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15119   xy)  ECHO_C='\c';;
15120   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15121        ECHO_T=' ';;
15122   esac;;
15123 *)
15124   ECHO_N='-n';;
15125 esac
15126
15127 rm -f conf$$ conf$$.exe conf$$.file
15128 if test -d conf$$.dir; then
15129   rm -f conf$$.dir/conf$$.file
15130 else
15131   rm -f conf$$.dir
15132   mkdir conf$$.dir 2>/dev/null
15133 fi
15134 if (echo >conf$$.file) 2>/dev/null; then
15135   if ln -s conf$$.file conf$$ 2>/dev/null; then
15136     as_ln_s='ln -s'
15137     # ... but there are two gotchas:
15138     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15139     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15140     # In both cases, we have to default to `cp -p'.
15141     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15142       as_ln_s='cp -p'
15143   elif ln conf$$.file conf$$ 2>/dev/null; then
15144     as_ln_s=ln
15145   else
15146     as_ln_s='cp -p'
15147   fi
15148 else
15149   as_ln_s='cp -p'
15150 fi
15151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15152 rmdir conf$$.dir 2>/dev/null
15153
15154
15155 # as_fn_mkdir_p
15156 # -------------
15157 # Create "$as_dir" as a directory, including parents if necessary.
15158 as_fn_mkdir_p ()
15159 {
15160
15161   case $as_dir in #(
15162   -*) as_dir=./$as_dir;;
15163   esac
15164   test -d "$as_dir" || eval $as_mkdir_p || {
15165     as_dirs=
15166     while :; do
15167       case $as_dir in #(
15168       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15169       *) as_qdir=$as_dir;;
15170       esac
15171       as_dirs="'$as_qdir' $as_dirs"
15172       as_dir=`$as_dirname -- "$as_dir" ||
15173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15174          X"$as_dir" : 'X\(//\)[^/]' \| \
15175          X"$as_dir" : 'X\(//\)$' \| \
15176          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15177 $as_echo X"$as_dir" |
15178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179             s//\1/
15180             q
15181           }
15182           /^X\(\/\/\)[^/].*/{
15183             s//\1/
15184             q
15185           }
15186           /^X\(\/\/\)$/{
15187             s//\1/
15188             q
15189           }
15190           /^X\(\/\).*/{
15191             s//\1/
15192             q
15193           }
15194           s/.*/./; q'`
15195       test -d "$as_dir" && break
15196     done
15197     test -z "$as_dirs" || eval "mkdir $as_dirs"
15198   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15199
15200
15201 } # as_fn_mkdir_p
15202 if mkdir -p . 2>/dev/null; then
15203   as_mkdir_p='mkdir -p "$as_dir"'
15204 else
15205   test -d ./-p && rmdir ./-p
15206   as_mkdir_p=false
15207 fi
15208
15209 if test -x / >/dev/null 2>&1; then
15210   as_test_x='test -x'
15211 else
15212   if ls -dL / >/dev/null 2>&1; then
15213     as_ls_L_option=L
15214   else
15215     as_ls_L_option=
15216   fi
15217   as_test_x='
15218     eval sh -c '\''
15219       if test -d "$1"; then
15220         test -d "$1/.";
15221       else
15222         case $1 in #(
15223         -*)set "./$1";;
15224         esac;
15225         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15226         ???[sx]*):;;*)false;;esac;fi
15227     '\'' sh
15228   '
15229 fi
15230 as_executable_p=$as_test_x
15231
15232 # Sed expression to map a string onto a valid CPP name.
15233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15234
15235 # Sed expression to map a string onto a valid variable name.
15236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15237
15238
15239 exec 6>&1
15240 ## ----------------------------------- ##
15241 ## Main body of $CONFIG_STATUS script. ##
15242 ## ----------------------------------- ##
15243 _ASEOF
15244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15245
15246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15247 # Save the log message, to keep $0 and so on meaningful, and to
15248 # report actual input values of CONFIG_FILES etc. instead of their
15249 # values after options handling.
15250 ac_log="
15251 This file was extended by gobject-introspection $as_me 1.32.1, which was
15252 generated by GNU Autoconf 2.68.  Invocation command line was
15253
15254   CONFIG_FILES    = $CONFIG_FILES
15255   CONFIG_HEADERS  = $CONFIG_HEADERS
15256   CONFIG_LINKS    = $CONFIG_LINKS
15257   CONFIG_COMMANDS = $CONFIG_COMMANDS
15258   $ $0 $@
15259
15260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15261 "
15262
15263 _ACEOF
15264
15265 case $ac_config_files in *"
15266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15267 esac
15268
15269 case $ac_config_headers in *"
15270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15271 esac
15272
15273
15274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15275 # Files that config.status was made for.
15276 config_files="$ac_config_files"
15277 config_headers="$ac_config_headers"
15278 config_commands="$ac_config_commands"
15279
15280 _ACEOF
15281
15282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15283 ac_cs_usage="\
15284 \`$as_me' instantiates files and other configuration actions
15285 from templates according to the current configuration.  Unless the files
15286 and actions are specified as TAGs, all are instantiated by default.
15287
15288 Usage: $0 [OPTION]... [TAG]...
15289
15290   -h, --help       print this help, then exit
15291   -V, --version    print version number and configuration settings, then exit
15292       --config     print configuration, then exit
15293   -q, --quiet, --silent
15294                    do not print progress messages
15295   -d, --debug      don't remove temporary files
15296       --recheck    update $as_me by reconfiguring in the same conditions
15297       --file=FILE[:TEMPLATE]
15298                    instantiate the configuration file FILE
15299       --header=FILE[:TEMPLATE]
15300                    instantiate the configuration header FILE
15301
15302 Configuration files:
15303 $config_files
15304
15305 Configuration headers:
15306 $config_headers
15307
15308 Configuration commands:
15309 $config_commands
15310
15311 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>."
15312
15313 _ACEOF
15314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15315 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15316 ac_cs_version="\\
15317 gobject-introspection config.status 1.32.1
15318 configured by $0, generated by GNU Autoconf 2.68,
15319   with options \\"\$ac_cs_config\\"
15320
15321 Copyright (C) 2010 Free Software Foundation, Inc.
15322 This config.status script is free software; the Free Software Foundation
15323 gives unlimited permission to copy, distribute and modify it."
15324
15325 ac_pwd='$ac_pwd'
15326 srcdir='$srcdir'
15327 INSTALL='$INSTALL'
15328 MKDIR_P='$MKDIR_P'
15329 AWK='$AWK'
15330 test -n "\$AWK" || AWK=awk
15331 _ACEOF
15332
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15334 # The default lists apply if the user does not specify any file.
15335 ac_need_defaults=:
15336 while test $# != 0
15337 do
15338   case $1 in
15339   --*=?*)
15340     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15341     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15342     ac_shift=:
15343     ;;
15344   --*=)
15345     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15346     ac_optarg=
15347     ac_shift=:
15348     ;;
15349   *)
15350     ac_option=$1
15351     ac_optarg=$2
15352     ac_shift=shift
15353     ;;
15354   esac
15355
15356   case $ac_option in
15357   # Handling of the options.
15358   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15359     ac_cs_recheck=: ;;
15360   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15361     $as_echo "$ac_cs_version"; exit ;;
15362   --config | --confi | --conf | --con | --co | --c )
15363     $as_echo "$ac_cs_config"; exit ;;
15364   --debug | --debu | --deb | --de | --d | -d )
15365     debug=: ;;
15366   --file | --fil | --fi | --f )
15367     $ac_shift
15368     case $ac_optarg in
15369     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15370     '') as_fn_error $? "missing file argument" ;;
15371     esac
15372     as_fn_append CONFIG_FILES " '$ac_optarg'"
15373     ac_need_defaults=false;;
15374   --header | --heade | --head | --hea )
15375     $ac_shift
15376     case $ac_optarg in
15377     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15378     esac
15379     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15380     ac_need_defaults=false;;
15381   --he | --h)
15382     # Conflict between --help and --header
15383     as_fn_error $? "ambiguous option: \`$1'
15384 Try \`$0 --help' for more information.";;
15385   --help | --hel | -h )
15386     $as_echo "$ac_cs_usage"; exit ;;
15387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15389     ac_cs_silent=: ;;
15390
15391   # This is an error.
15392   -*) as_fn_error $? "unrecognized option: \`$1'
15393 Try \`$0 --help' for more information." ;;
15394
15395   *) as_fn_append ac_config_targets " $1"
15396      ac_need_defaults=false ;;
15397
15398   esac
15399   shift
15400 done
15401
15402 ac_configure_extra_args=
15403
15404 if $ac_cs_silent; then
15405   exec 6>/dev/null
15406   ac_configure_extra_args="$ac_configure_extra_args --silent"
15407 fi
15408
15409 _ACEOF
15410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15411 if \$ac_cs_recheck; then
15412   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15413   shift
15414   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15415   CONFIG_SHELL='$SHELL'
15416   export CONFIG_SHELL
15417   exec "\$@"
15418 fi
15419
15420 _ACEOF
15421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15422 exec 5>>config.log
15423 {
15424   echo
15425   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15426 ## Running $as_me. ##
15427 _ASBOX
15428   $as_echo "$ac_log"
15429 } >&5
15430
15431 _ACEOF
15432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15433 #
15434 # INIT-COMMANDS
15435 #
15436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15437
15438
15439 # The HP-UX ksh and POSIX shell print the target directory to stdout
15440 # if CDPATH is set.
15441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15442
15443 sed_quote_subst='$sed_quote_subst'
15444 double_quote_subst='$double_quote_subst'
15445 delay_variable_subst='$delay_variable_subst'
15446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15448 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15449 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15450 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15451 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15452 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15453 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15454 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15455 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15456 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15457 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15458 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15459 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15460 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15461 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15462 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15463 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15464 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15465 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15466 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15467 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15468 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15469 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15470 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15471 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15472 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15473 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15474 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15475 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15476 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15477 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15478 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15479 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15480 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15481 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15482 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15483 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15484 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15485 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15486 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15487 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15488 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15489 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15490 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15491 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15492 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15493 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15494 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15495 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15496 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15497 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15498 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15499 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15500 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15501 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"`'
15502 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15503 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15504 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15505 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15506 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15507 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15508 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15509 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15510 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15511 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15512 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15513 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15514 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15515 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15516 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15517 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15518 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15519 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15520 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15521 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15522 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15523 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15524 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15525 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15526 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15527 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15528 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15529 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15530 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15531 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15532 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15533 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15534 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15535 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15536 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15537 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15538 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15539 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15540 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15541 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15542 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15543 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15544 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15545 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15546 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15547 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15548 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15549 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15550 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15551 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15552 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15553 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15554 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15555 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15556 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15557 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15558 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15559 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15560 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15561 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15562 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15563 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15564 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15565 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15566 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15567 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15568 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15569 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15570 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15571 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15572 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15573 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15574 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15575 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15576
15577 LTCC='$LTCC'
15578 LTCFLAGS='$LTCFLAGS'
15579 compiler='$compiler_DEFAULT'
15580
15581 # A function that is used when there is no print builtin or printf.
15582 func_fallback_echo ()
15583 {
15584   eval 'cat <<_LTECHO_EOF
15585 \$1
15586 _LTECHO_EOF'
15587 }
15588
15589 # Quote evaled strings.
15590 for var in SHELL \
15591 ECHO \
15592 SED \
15593 GREP \
15594 EGREP \
15595 FGREP \
15596 LD \
15597 NM \
15598 LN_S \
15599 lt_SP2NL \
15600 lt_NL2SP \
15601 reload_flag \
15602 OBJDUMP \
15603 deplibs_check_method \
15604 file_magic_cmd \
15605 file_magic_glob \
15606 want_nocaseglob \
15607 DLLTOOL \
15608 sharedlib_from_linklib_cmd \
15609 AR \
15610 AR_FLAGS \
15611 archiver_list_spec \
15612 STRIP \
15613 RANLIB \
15614 CC \
15615 CFLAGS \
15616 compiler \
15617 lt_cv_sys_global_symbol_pipe \
15618 lt_cv_sys_global_symbol_to_cdecl \
15619 lt_cv_sys_global_symbol_to_c_name_address \
15620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15621 nm_file_list_spec \
15622 lt_prog_compiler_no_builtin_flag \
15623 lt_prog_compiler_pic \
15624 lt_prog_compiler_wl \
15625 lt_prog_compiler_static \
15626 lt_cv_prog_compiler_c_o \
15627 need_locks \
15628 MANIFEST_TOOL \
15629 DSYMUTIL \
15630 NMEDIT \
15631 LIPO \
15632 OTOOL \
15633 OTOOL64 \
15634 shrext_cmds \
15635 export_dynamic_flag_spec \
15636 whole_archive_flag_spec \
15637 compiler_needs_object \
15638 with_gnu_ld \
15639 allow_undefined_flag \
15640 no_undefined_flag \
15641 hardcode_libdir_flag_spec \
15642 hardcode_libdir_flag_spec_ld \
15643 hardcode_libdir_separator \
15644 exclude_expsyms \
15645 include_expsyms \
15646 file_list_spec \
15647 variables_saved_for_relink \
15648 libname_spec \
15649 library_names_spec \
15650 soname_spec \
15651 install_override_mode \
15652 finish_eval \
15653 old_striplib \
15654 striplib; do
15655     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15656     *[\\\\\\\`\\"\\\$]*)
15657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15658       ;;
15659     *)
15660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15661       ;;
15662     esac
15663 done
15664
15665 # Double-quote double-evaled strings.
15666 for var in reload_cmds \
15667 old_postinstall_cmds \
15668 old_postuninstall_cmds \
15669 old_archive_cmds \
15670 extract_expsyms_cmds \
15671 old_archive_from_new_cmds \
15672 old_archive_from_expsyms_cmds \
15673 archive_cmds \
15674 archive_expsym_cmds \
15675 module_cmds \
15676 module_expsym_cmds \
15677 export_symbols_cmds \
15678 prelink_cmds \
15679 postlink_cmds \
15680 postinstall_cmds \
15681 postuninstall_cmds \
15682 finish_cmds \
15683 sys_lib_search_path_spec \
15684 sys_lib_dlsearch_path_spec; do
15685     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15686     *[\\\\\\\`\\"\\\$]*)
15687       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15688       ;;
15689     *)
15690       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15691       ;;
15692     esac
15693 done
15694
15695 ac_aux_dir='$ac_aux_dir'
15696 xsi_shell='$xsi_shell'
15697 lt_shell_append='$lt_shell_append'
15698
15699 # See if we are running on zsh, and set the options which allow our
15700 # commands through without removal of \ escapes INIT.
15701 if test -n "\${ZSH_VERSION+set}" ; then
15702    setopt NO_GLOB_SUBST
15703 fi
15704
15705
15706     PACKAGE='$PACKAGE'
15707     VERSION='$VERSION'
15708     TIMESTAMP='$TIMESTAMP'
15709     RM='$RM'
15710     ofile='$ofile'
15711
15712
15713
15714
15715 _ACEOF
15716
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718
15719 # Handling of arguments.
15720 for ac_config_target in $ac_config_targets
15721 do
15722   case $ac_config_target in
15723     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15724     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15725     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15726     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15727     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15728     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15729     "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
15730     "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
15731     "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
15732     "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
15733     "tests/doctool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/doctool/Makefile" ;;
15734     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15735     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
15736     "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
15737     "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
15738
15739   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15740   esac
15741 done
15742
15743
15744 # If the user did not use the arguments to specify the items to instantiate,
15745 # then the envvar interface is used.  Set only those that are not.
15746 # We use the long form for the default assignment because of an extremely
15747 # bizarre bug on SunOS 4.1.3.
15748 if $ac_need_defaults; then
15749   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15750   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15751   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15752 fi
15753
15754 # Have a temporary directory for convenience.  Make it in the build tree
15755 # simply because there is no reason against having it here, and in addition,
15756 # creating and moving files from /tmp can sometimes cause problems.
15757 # Hook for its removal unless debugging.
15758 # Note that there is a small window in which the directory will not be cleaned:
15759 # after its creation but before its name has been assigned to `$tmp'.
15760 $debug ||
15761 {
15762   tmp= ac_tmp=
15763   trap 'exit_status=$?
15764   : "${ac_tmp:=$tmp}"
15765   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15766 ' 0
15767   trap 'as_fn_exit 1' 1 2 13 15
15768 }
15769 # Create a (secure) tmp directory for tmp files.
15770
15771 {
15772   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15773   test -d "$tmp"
15774 }  ||
15775 {
15776   tmp=./conf$$-$RANDOM
15777   (umask 077 && mkdir "$tmp")
15778 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15779 ac_tmp=$tmp
15780
15781 # Set up the scripts for CONFIG_FILES section.
15782 # No need to generate them if there are no CONFIG_FILES.
15783 # This happens for instance with `./config.status config.h'.
15784 if test -n "$CONFIG_FILES"; then
15785
15786
15787 ac_cr=`echo X | tr X '\015'`
15788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15789 # But we know of no other shell where ac_cr would be empty at this
15790 # point, so we can use a bashism as a fallback.
15791 if test "x$ac_cr" = x; then
15792   eval ac_cr=\$\'\\r\'
15793 fi
15794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15796   ac_cs_awk_cr='\\r'
15797 else
15798   ac_cs_awk_cr=$ac_cr
15799 fi
15800
15801 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15802 _ACEOF
15803
15804
15805 {
15806   echo "cat >conf$$subs.awk <<_ACEOF" &&
15807   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15808   echo "_ACEOF"
15809 } >conf$$subs.sh ||
15810   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15812 ac_delim='%!_!# '
15813 for ac_last_try in false false false false false :; do
15814   . ./conf$$subs.sh ||
15815     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15816
15817   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15818   if test $ac_delim_n = $ac_delim_num; then
15819     break
15820   elif $ac_last_try; then
15821     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15822   else
15823     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15824   fi
15825 done
15826 rm -f conf$$subs.sh
15827
15828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15830 _ACEOF
15831 sed -n '
15832 h
15833 s/^/S["/; s/!.*/"]=/
15834 p
15835 g
15836 s/^[^!]*!//
15837 :repl
15838 t repl
15839 s/'"$ac_delim"'$//
15840 t delim
15841 :nl
15842 h
15843 s/\(.\{148\}\)..*/\1/
15844 t more1
15845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15846 p
15847 n
15848 b repl
15849 :more1
15850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15851 p
15852 g
15853 s/.\{148\}//
15854 t nl
15855 :delim
15856 h
15857 s/\(.\{148\}\)..*/\1/
15858 t more2
15859 s/["\\]/\\&/g; s/^/"/; s/$/"/
15860 p
15861 b
15862 :more2
15863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15864 p
15865 g
15866 s/.\{148\}//
15867 t delim
15868 ' <conf$$subs.awk | sed '
15869 /^[^""]/{
15870   N
15871   s/\n//
15872 }
15873 ' >>$CONFIG_STATUS || ac_write_fail=1
15874 rm -f conf$$subs.awk
15875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 _ACAWK
15877 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15878   for (key in S) S_is_set[key] = 1
15879   FS = "\a"
15880
15881 }
15882 {
15883   line = $ 0
15884   nfields = split(line, field, "@")
15885   substed = 0
15886   len = length(field[1])
15887   for (i = 2; i < nfields; i++) {
15888     key = field[i]
15889     keylen = length(key)
15890     if (S_is_set[key]) {
15891       value = S[key]
15892       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15893       len += length(value) + length(field[++i])
15894       substed = 1
15895     } else
15896       len += 1 + keylen
15897   }
15898
15899   print line
15900 }
15901
15902 _ACAWK
15903 _ACEOF
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15906   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15907 else
15908   cat
15909 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15910   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15911 _ACEOF
15912
15913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15915 # trailing colons and then remove the whole line if VPATH becomes empty
15916 # (actually we leave an empty line to preserve line numbers).
15917 if test "x$srcdir" = x.; then
15918   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15919 h
15920 s///
15921 s/^/:/
15922 s/[      ]*$/:/
15923 s/:\$(srcdir):/:/g
15924 s/:\${srcdir}:/:/g
15925 s/:@srcdir@:/:/g
15926 s/^:*//
15927 s/:*$//
15928 x
15929 s/\(=[   ]*\).*/\1/
15930 G
15931 s/\n//
15932 s/^[^=]*=[       ]*$//
15933 }'
15934 fi
15935
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 fi # test -n "$CONFIG_FILES"
15938
15939 # Set up the scripts for CONFIG_HEADERS section.
15940 # No need to generate them if there are no CONFIG_HEADERS.
15941 # This happens for instance with `./config.status Makefile'.
15942 if test -n "$CONFIG_HEADERS"; then
15943 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15944 BEGIN {
15945 _ACEOF
15946
15947 # Transform confdefs.h into an awk script `defines.awk', embedded as
15948 # here-document in config.status, that substitutes the proper values into
15949 # config.h.in to produce config.h.
15950
15951 # Create a delimiter string that does not exist in confdefs.h, to ease
15952 # handling of long lines.
15953 ac_delim='%!_!# '
15954 for ac_last_try in false false :; do
15955   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15956   if test -z "$ac_tt"; then
15957     break
15958   elif $ac_last_try; then
15959     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15960   else
15961     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15962   fi
15963 done
15964
15965 # For the awk script, D is an array of macro values keyed by name,
15966 # likewise P contains macro parameters if any.  Preserve backslash
15967 # newline sequences.
15968
15969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15970 sed -n '
15971 s/.\{148\}/&'"$ac_delim"'/g
15972 t rset
15973 :rset
15974 s/^[     ]*#[    ]*define[       ][      ]*/ /
15975 t def
15976 d
15977 :def
15978 s/\\$//
15979 t bsnl
15980 s/["\\]/\\&/g
15981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15982 D["\1"]=" \3"/p
15983 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15984 d
15985 :bsnl
15986 s/["\\]/\\&/g
15987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15988 D["\1"]=" \3\\\\\\n"\\/p
15989 t cont
15990 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15991 t cont
15992 d
15993 :cont
15994 n
15995 s/.\{148\}/&'"$ac_delim"'/g
15996 t clear
15997 :clear
15998 s/\\$//
15999 t bsnlc
16000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16001 d
16002 :bsnlc
16003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16004 b cont
16005 ' <confdefs.h | sed '
16006 s/'"$ac_delim"'/"\\\
16007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16008
16009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16010   for (key in D) D_is_set[key] = 1
16011   FS = "\a"
16012 }
16013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16014   line = \$ 0
16015   split(line, arg, " ")
16016   if (arg[1] == "#") {
16017     defundef = arg[2]
16018     mac1 = arg[3]
16019   } else {
16020     defundef = substr(arg[1], 2)
16021     mac1 = arg[2]
16022   }
16023   split(mac1, mac2, "(") #)
16024   macro = mac2[1]
16025   prefix = substr(line, 1, index(line, defundef) - 1)
16026   if (D_is_set[macro]) {
16027     # Preserve the white space surrounding the "#".
16028     print prefix "define", macro P[macro] D[macro]
16029     next
16030   } else {
16031     # Replace #undef with comments.  This is necessary, for example,
16032     # in the case of _POSIX_SOURCE, which is predefined and required
16033     # on some systems where configure will not decide to define it.
16034     if (defundef == "undef") {
16035       print "/*", prefix defundef, macro, "*/"
16036       next
16037     }
16038   }
16039 }
16040 { print }
16041 _ACAWK
16042 _ACEOF
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16045 fi # test -n "$CONFIG_HEADERS"
16046
16047
16048 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16049 shift
16050 for ac_tag
16051 do
16052   case $ac_tag in
16053   :[FHLC]) ac_mode=$ac_tag; continue;;
16054   esac
16055   case $ac_mode$ac_tag in
16056   :[FHL]*:*);;
16057   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16058   :[FH]-) ac_tag=-:-;;
16059   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16060   esac
16061   ac_save_IFS=$IFS
16062   IFS=:
16063   set x $ac_tag
16064   IFS=$ac_save_IFS
16065   shift
16066   ac_file=$1
16067   shift
16068
16069   case $ac_mode in
16070   :L) ac_source=$1;;
16071   :[FH])
16072     ac_file_inputs=
16073     for ac_f
16074     do
16075       case $ac_f in
16076       -) ac_f="$ac_tmp/stdin";;
16077       *) # Look for the file first in the build tree, then in the source tree
16078          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16079          # because $ac_f cannot contain `:'.
16080          test -f "$ac_f" ||
16081            case $ac_f in
16082            [\\/$]*) false;;
16083            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16084            esac ||
16085            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16086       esac
16087       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16088       as_fn_append ac_file_inputs " '$ac_f'"
16089     done
16090
16091     # Let's still pretend it is `configure' which instantiates (i.e., don't
16092     # use $as_me), people would be surprised to read:
16093     #    /* config.h.  Generated by config.status.  */
16094     configure_input='Generated from '`
16095           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16096         `' by configure.'
16097     if test x"$ac_file" != x-; then
16098       configure_input="$ac_file.  $configure_input"
16099       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16100 $as_echo "$as_me: creating $ac_file" >&6;}
16101     fi
16102     # Neutralize special characters interpreted by sed in replacement strings.
16103     case $configure_input in #(
16104     *\&* | *\|* | *\\* )
16105        ac_sed_conf_input=`$as_echo "$configure_input" |
16106        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16107     *) ac_sed_conf_input=$configure_input;;
16108     esac
16109
16110     case $ac_tag in
16111     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16112       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16113     esac
16114     ;;
16115   esac
16116
16117   ac_dir=`$as_dirname -- "$ac_file" ||
16118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16119          X"$ac_file" : 'X\(//\)[^/]' \| \
16120          X"$ac_file" : 'X\(//\)$' \| \
16121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16122 $as_echo X"$ac_file" |
16123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16124             s//\1/
16125             q
16126           }
16127           /^X\(\/\/\)[^/].*/{
16128             s//\1/
16129             q
16130           }
16131           /^X\(\/\/\)$/{
16132             s//\1/
16133             q
16134           }
16135           /^X\(\/\).*/{
16136             s//\1/
16137             q
16138           }
16139           s/.*/./; q'`
16140   as_dir="$ac_dir"; as_fn_mkdir_p
16141   ac_builddir=.
16142
16143 case "$ac_dir" in
16144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16145 *)
16146   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16147   # A ".." for each directory in $ac_dir_suffix.
16148   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16149   case $ac_top_builddir_sub in
16150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16152   esac ;;
16153 esac
16154 ac_abs_top_builddir=$ac_pwd
16155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16156 # for backward compatibility:
16157 ac_top_builddir=$ac_top_build_prefix
16158
16159 case $srcdir in
16160   .)  # We are building in place.
16161     ac_srcdir=.
16162     ac_top_srcdir=$ac_top_builddir_sub
16163     ac_abs_top_srcdir=$ac_pwd ;;
16164   [\\/]* | ?:[\\/]* )  # Absolute name.
16165     ac_srcdir=$srcdir$ac_dir_suffix;
16166     ac_top_srcdir=$srcdir
16167     ac_abs_top_srcdir=$srcdir ;;
16168   *) # Relative name.
16169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16170     ac_top_srcdir=$ac_top_build_prefix$srcdir
16171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16172 esac
16173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16174
16175
16176   case $ac_mode in
16177   :F)
16178   #
16179   # CONFIG_FILE
16180   #
16181
16182   case $INSTALL in
16183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16185   esac
16186   ac_MKDIR_P=$MKDIR_P
16187   case $MKDIR_P in
16188   [\\/$]* | ?:[\\/]* ) ;;
16189   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16190   esac
16191 _ACEOF
16192
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 # If the template does not know about datarootdir, expand it.
16195 # FIXME: This hack should be removed a few years after 2.60.
16196 ac_datarootdir_hack=; ac_datarootdir_seen=
16197 ac_sed_dataroot='
16198 /datarootdir/ {
16199   p
16200   q
16201 }
16202 /@datadir@/p
16203 /@docdir@/p
16204 /@infodir@/p
16205 /@localedir@/p
16206 /@mandir@/p'
16207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16208 *datarootdir*) ac_datarootdir_seen=yes;;
16209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16210   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16212 _ACEOF
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214   ac_datarootdir_hack='
16215   s&@datadir@&$datadir&g
16216   s&@docdir@&$docdir&g
16217   s&@infodir@&$infodir&g
16218   s&@localedir@&$localedir&g
16219   s&@mandir@&$mandir&g
16220   s&\\\${datarootdir}&$datarootdir&g' ;;
16221 esac
16222 _ACEOF
16223
16224 # Neutralize VPATH when `$srcdir' = `.'.
16225 # Shell code in configure.ac might set extrasub.
16226 # FIXME: do we really want to maintain this feature?
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 ac_sed_extra="$ac_vpsub
16229 $extrasub
16230 _ACEOF
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 :t
16233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16234 s|@configure_input@|$ac_sed_conf_input|;t t
16235 s&@top_builddir@&$ac_top_builddir_sub&;t t
16236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16237 s&@srcdir@&$ac_srcdir&;t t
16238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16239 s&@top_srcdir@&$ac_top_srcdir&;t t
16240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16241 s&@builddir@&$ac_builddir&;t t
16242 s&@abs_builddir@&$ac_abs_builddir&;t t
16243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16244 s&@INSTALL@&$ac_INSTALL&;t t
16245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16246 $ac_datarootdir_hack
16247 "
16248 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16249   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16250
16251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16252   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16253   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16254       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16256 which seems to be undefined.  Please make sure it is defined" >&5
16257 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16258 which seems to be undefined.  Please make sure it is defined" >&2;}
16259
16260   rm -f "$ac_tmp/stdin"
16261   case $ac_file in
16262   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16263   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16264   esac \
16265   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16266  ;;
16267   :H)
16268   #
16269   # CONFIG_HEADER
16270   #
16271   if test x"$ac_file" != x-; then
16272     {
16273       $as_echo "/* $configure_input  */" \
16274       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16275     } >"$ac_tmp/config.h" \
16276       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16277     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16278       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16279 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16280     else
16281       rm -f "$ac_file"
16282       mv "$ac_tmp/config.h" "$ac_file" \
16283         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16284     fi
16285   else
16286     $as_echo "/* $configure_input  */" \
16287       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16288       || as_fn_error $? "could not create -" "$LINENO" 5
16289   fi
16290 # Compute "$ac_file"'s index in $config_headers.
16291 _am_arg="$ac_file"
16292 _am_stamp_count=1
16293 for _am_header in $config_headers :; do
16294   case $_am_header in
16295     $_am_arg | $_am_arg:* )
16296       break ;;
16297     * )
16298       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16299   esac
16300 done
16301 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16302 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16303          X"$_am_arg" : 'X\(//\)[^/]' \| \
16304          X"$_am_arg" : 'X\(//\)$' \| \
16305          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16306 $as_echo X"$_am_arg" |
16307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16308             s//\1/
16309             q
16310           }
16311           /^X\(\/\/\)[^/].*/{
16312             s//\1/
16313             q
16314           }
16315           /^X\(\/\/\)$/{
16316             s//\1/
16317             q
16318           }
16319           /^X\(\/\).*/{
16320             s//\1/
16321             q
16322           }
16323           s/.*/./; q'`/stamp-h$_am_stamp_count
16324  ;;
16325
16326   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16327 $as_echo "$as_me: executing $ac_file commands" >&6;}
16328  ;;
16329   esac
16330
16331
16332   case $ac_file$ac_mode in
16333     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16334   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16335   # are listed without --file.  Let's play safe and only enable the eval
16336   # if we detect the quoting.
16337   case $CONFIG_FILES in
16338   *\'*) eval set x "$CONFIG_FILES" ;;
16339   *)   set x $CONFIG_FILES ;;
16340   esac
16341   shift
16342   for mf
16343   do
16344     # Strip MF so we end up with the name of the file.
16345     mf=`echo "$mf" | sed -e 's/:.*$//'`
16346     # Check whether this is an Automake generated Makefile or not.
16347     # We used to match only the files named `Makefile.in', but
16348     # some people rename them; so instead we look at the file content.
16349     # Grep'ing the first line is not enough: some people post-process
16350     # each Makefile.in and add a new line on top of each file to say so.
16351     # Grep'ing the whole file is not good either: AIX grep has a line
16352     # limit of 2048, but all sed's we know have understand at least 4000.
16353     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16354       dirpart=`$as_dirname -- "$mf" ||
16355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16356          X"$mf" : 'X\(//\)[^/]' \| \
16357          X"$mf" : 'X\(//\)$' \| \
16358          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16359 $as_echo X"$mf" |
16360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16361             s//\1/
16362             q
16363           }
16364           /^X\(\/\/\)[^/].*/{
16365             s//\1/
16366             q
16367           }
16368           /^X\(\/\/\)$/{
16369             s//\1/
16370             q
16371           }
16372           /^X\(\/\).*/{
16373             s//\1/
16374             q
16375           }
16376           s/.*/./; q'`
16377     else
16378       continue
16379     fi
16380     # Extract the definition of DEPDIR, am__include, and am__quote
16381     # from the Makefile without running `make'.
16382     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16383     test -z "$DEPDIR" && continue
16384     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16385     test -z "am__include" && continue
16386     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16387     # When using ansi2knr, U may be empty or an underscore; expand it
16388     U=`sed -n 's/^U = //p' < "$mf"`
16389     # Find all dependency output files, they are included files with
16390     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16391     # simplest approach to changing $(DEPDIR) to its actual value in the
16392     # expansion.
16393     for file in `sed -n "
16394       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16395          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16396       # Make sure the directory exists.
16397       test -f "$dirpart/$file" && continue
16398       fdir=`$as_dirname -- "$file" ||
16399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400          X"$file" : 'X\(//\)[^/]' \| \
16401          X"$file" : 'X\(//\)$' \| \
16402          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16403 $as_echo X"$file" |
16404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16405             s//\1/
16406             q
16407           }
16408           /^X\(\/\/\)[^/].*/{
16409             s//\1/
16410             q
16411           }
16412           /^X\(\/\/\)$/{
16413             s//\1/
16414             q
16415           }
16416           /^X\(\/\).*/{
16417             s//\1/
16418             q
16419           }
16420           s/.*/./; q'`
16421       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16422       # echo "creating $dirpart/$file"
16423       echo '# dummy' > "$dirpart/$file"
16424     done
16425   done
16426 }
16427  ;;
16428     "libtool":C)
16429
16430     # See if we are running on zsh, and set the options which allow our
16431     # commands through without removal of \ escapes.
16432     if test -n "${ZSH_VERSION+set}" ; then
16433       setopt NO_GLOB_SUBST
16434     fi
16435
16436     cfgfile="${ofile}T"
16437     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16438     $RM "$cfgfile"
16439
16440     cat <<_LT_EOF >> "$cfgfile"
16441 #! $SHELL
16442
16443 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16444 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16446 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16447 #
16448 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16449 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16450 #                 Inc.
16451 #   Written by Gordon Matzigkeit, 1996
16452 #
16453 #   This file is part of GNU Libtool.
16454 #
16455 # GNU Libtool is free software; you can redistribute it and/or
16456 # modify it under the terms of the GNU General Public License as
16457 # published by the Free Software Foundation; either version 2 of
16458 # the License, or (at your option) any later version.
16459 #
16460 # As a special exception to the GNU General Public License,
16461 # if you distribute this file as part of a program or library that
16462 # is built using GNU Libtool, you may include this file under the
16463 # same distribution terms that you use for the rest of that program.
16464 #
16465 # GNU Libtool is distributed in the hope that it will be useful,
16466 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16468 # GNU General Public License for more details.
16469 #
16470 # You should have received a copy of the GNU General Public License
16471 # along with GNU Libtool; see the file COPYING.  If not, a copy
16472 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16473 # obtained by writing to the Free Software Foundation, Inc.,
16474 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16475
16476
16477 # The names of the tagged configurations supported by this script.
16478 available_tags=""
16479
16480 # ### BEGIN LIBTOOL CONFIG
16481
16482 # Which release of libtool.m4 was used?
16483 macro_version=$macro_version
16484 macro_revision=$macro_revision
16485
16486 # Whether or not to build shared libraries.
16487 build_libtool_libs=$enable_shared
16488
16489 # Whether or not to build static libraries.
16490 build_old_libs=$enable_static
16491
16492 # What type of objects to build.
16493 pic_mode=$pic_mode
16494
16495 # Whether or not to optimize for fast installation.
16496 fast_install=$enable_fast_install
16497
16498 # Shell to use when invoking shell scripts.
16499 SHELL=$lt_SHELL
16500
16501 # An echo program that protects backslashes.
16502 ECHO=$lt_ECHO
16503
16504 # The host system.
16505 host_alias=$host_alias
16506 host=$host
16507 host_os=$host_os
16508
16509 # The build system.
16510 build_alias=$build_alias
16511 build=$build
16512 build_os=$build_os
16513
16514 # A sed program that does not truncate output.
16515 SED=$lt_SED
16516
16517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16518 Xsed="\$SED -e 1s/^X//"
16519
16520 # A grep program that handles long lines.
16521 GREP=$lt_GREP
16522
16523 # An ERE matcher.
16524 EGREP=$lt_EGREP
16525
16526 # A literal string matcher.
16527 FGREP=$lt_FGREP
16528
16529 # A BSD- or MS-compatible name lister.
16530 NM=$lt_NM
16531
16532 # Whether we need soft or hard links.
16533 LN_S=$lt_LN_S
16534
16535 # What is the maximum length of a command?
16536 max_cmd_len=$max_cmd_len
16537
16538 # Object file suffix (normally "o").
16539 objext=$ac_objext
16540
16541 # Executable file suffix (normally "").
16542 exeext=$exeext
16543
16544 # whether the shell understands "unset".
16545 lt_unset=$lt_unset
16546
16547 # turn spaces into newlines.
16548 SP2NL=$lt_lt_SP2NL
16549
16550 # turn newlines into spaces.
16551 NL2SP=$lt_lt_NL2SP
16552
16553 # convert \$build file names to \$host format.
16554 to_host_file_cmd=$lt_cv_to_host_file_cmd
16555
16556 # convert \$build files to toolchain format.
16557 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16558
16559 # An object symbol dumper.
16560 OBJDUMP=$lt_OBJDUMP
16561
16562 # Method to check whether dependent libraries are shared objects.
16563 deplibs_check_method=$lt_deplibs_check_method
16564
16565 # Command to use when deplibs_check_method = "file_magic".
16566 file_magic_cmd=$lt_file_magic_cmd
16567
16568 # How to find potential files when deplibs_check_method = "file_magic".
16569 file_magic_glob=$lt_file_magic_glob
16570
16571 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16572 want_nocaseglob=$lt_want_nocaseglob
16573
16574 # DLL creation program.
16575 DLLTOOL=$lt_DLLTOOL
16576
16577 # Command to associate shared and link libraries.
16578 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16579
16580 # The archiver.
16581 AR=$lt_AR
16582
16583 # Flags to create an archive.
16584 AR_FLAGS=$lt_AR_FLAGS
16585
16586 # How to feed a file listing to the archiver.
16587 archiver_list_spec=$lt_archiver_list_spec
16588
16589 # A symbol stripping program.
16590 STRIP=$lt_STRIP
16591
16592 # Commands used to install an old-style archive.
16593 RANLIB=$lt_RANLIB
16594 old_postinstall_cmds=$lt_old_postinstall_cmds
16595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16596
16597 # Whether to use a lock for old archive extraction.
16598 lock_old_archive_extraction=$lock_old_archive_extraction
16599
16600 # A C compiler.
16601 LTCC=$lt_CC
16602
16603 # LTCC compiler flags.
16604 LTCFLAGS=$lt_CFLAGS
16605
16606 # Take the output of nm and produce a listing of raw symbols and C names.
16607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16608
16609 # Transform the output of nm in a proper C declaration.
16610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16611
16612 # Transform the output of nm in a C name address pair.
16613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16614
16615 # Transform the output of nm in a C name address pair when lib prefix is needed.
16616 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16617
16618 # Specify filename containing input files for \$NM.
16619 nm_file_list_spec=$lt_nm_file_list_spec
16620
16621 # The root where to search for dependent libraries,and in which our libraries should be installed.
16622 lt_sysroot=$lt_sysroot
16623
16624 # The name of the directory that contains temporary libtool files.
16625 objdir=$objdir
16626
16627 # Used to examine libraries when file_magic_cmd begins with "file".
16628 MAGIC_CMD=$MAGIC_CMD
16629
16630 # Must we lock files when doing compilation?
16631 need_locks=$lt_need_locks
16632
16633 # Manifest tool.
16634 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16635
16636 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16637 DSYMUTIL=$lt_DSYMUTIL
16638
16639 # Tool to change global to local symbols on Mac OS X.
16640 NMEDIT=$lt_NMEDIT
16641
16642 # Tool to manipulate fat objects and archives on Mac OS X.
16643 LIPO=$lt_LIPO
16644
16645 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16646 OTOOL=$lt_OTOOL
16647
16648 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16649 OTOOL64=$lt_OTOOL64
16650
16651 # Old archive suffix (normally "a").
16652 libext=$libext
16653
16654 # Shared library suffix (normally ".so").
16655 shrext_cmds=$lt_shrext_cmds
16656
16657 # The commands to extract the exported symbol list from a shared archive.
16658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16659
16660 # Variables whose values should be saved in libtool wrapper scripts and
16661 # restored at link time.
16662 variables_saved_for_relink=$lt_variables_saved_for_relink
16663
16664 # Do we need the "lib" prefix for modules?
16665 need_lib_prefix=$need_lib_prefix
16666
16667 # Do we need a version for libraries?
16668 need_version=$need_version
16669
16670 # Library versioning type.
16671 version_type=$version_type
16672
16673 # Shared library runtime path variable.
16674 runpath_var=$runpath_var
16675
16676 # Shared library path variable.
16677 shlibpath_var=$shlibpath_var
16678
16679 # Is shlibpath searched before the hard-coded library search path?
16680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16681
16682 # Format of library name prefix.
16683 libname_spec=$lt_libname_spec
16684
16685 # List of archive names.  First name is the real one, the rest are links.
16686 # The last name is the one that the linker finds with -lNAME
16687 library_names_spec=$lt_library_names_spec
16688
16689 # The coded name of the library, if different from the real name.
16690 soname_spec=$lt_soname_spec
16691
16692 # Permission mode override for installation of shared libraries.
16693 install_override_mode=$lt_install_override_mode
16694
16695 # Command to use after installation of a shared archive.
16696 postinstall_cmds=$lt_postinstall_cmds
16697
16698 # Command to use after uninstallation of a shared archive.
16699 postuninstall_cmds=$lt_postuninstall_cmds
16700
16701 # Commands used to finish a libtool library installation in a directory.
16702 finish_cmds=$lt_finish_cmds
16703
16704 # As "finish_cmds", except a single script fragment to be evaled but
16705 # not shown.
16706 finish_eval=$lt_finish_eval
16707
16708 # Whether we should hardcode library paths into libraries.
16709 hardcode_into_libs=$hardcode_into_libs
16710
16711 # Compile-time system search path for libraries.
16712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16713
16714 # Run-time system search path for libraries.
16715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16716
16717 # Whether dlopen is supported.
16718 dlopen_support=$enable_dlopen
16719
16720 # Whether dlopen of programs is supported.
16721 dlopen_self=$enable_dlopen_self
16722
16723 # Whether dlopen of statically linked programs is supported.
16724 dlopen_self_static=$enable_dlopen_self_static
16725
16726 # Commands to strip libraries.
16727 old_striplib=$lt_old_striplib
16728 striplib=$lt_striplib
16729
16730
16731 # The linker used to build libraries.
16732 LD=$lt_LD
16733
16734 # How to create reloadable object files.
16735 reload_flag=$lt_reload_flag
16736 reload_cmds=$lt_reload_cmds
16737
16738 # Commands used to build an old-style archive.
16739 old_archive_cmds=$lt_old_archive_cmds
16740
16741 # A language specific compiler.
16742 CC=$lt_compiler
16743
16744 # Is the compiler the GNU compiler?
16745 with_gcc=$GCC
16746
16747 # Compiler flag to turn off builtin functions.
16748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16749
16750 # Additional compiler flags for building library objects.
16751 pic_flag=$lt_lt_prog_compiler_pic
16752
16753 # How to pass a linker flag through the compiler.
16754 wl=$lt_lt_prog_compiler_wl
16755
16756 # Compiler flag to prevent dynamic linking.
16757 link_static_flag=$lt_lt_prog_compiler_static
16758
16759 # Does compiler simultaneously support -c and -o options?
16760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16761
16762 # Whether or not to add -lc for building shared libraries.
16763 build_libtool_need_lc=$archive_cmds_need_lc
16764
16765 # Whether or not to disallow shared libs when runtime libs are static.
16766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16767
16768 # Compiler flag to allow reflexive dlopens.
16769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16770
16771 # Compiler flag to generate shared objects directly from archives.
16772 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16773
16774 # Whether the compiler copes with passing no objects directly.
16775 compiler_needs_object=$lt_compiler_needs_object
16776
16777 # Create an old-style archive from a shared archive.
16778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16779
16780 # Create a temporary old-style archive to link instead of a shared archive.
16781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16782
16783 # Commands used to build a shared archive.
16784 archive_cmds=$lt_archive_cmds
16785 archive_expsym_cmds=$lt_archive_expsym_cmds
16786
16787 # Commands used to build a loadable module if different from building
16788 # a shared archive.
16789 module_cmds=$lt_module_cmds
16790 module_expsym_cmds=$lt_module_expsym_cmds
16791
16792 # Whether we are building with GNU ld or not.
16793 with_gnu_ld=$lt_with_gnu_ld
16794
16795 # Flag that allows shared libraries with undefined symbols to be built.
16796 allow_undefined_flag=$lt_allow_undefined_flag
16797
16798 # Flag that enforces no undefined symbols.
16799 no_undefined_flag=$lt_no_undefined_flag
16800
16801 # Flag to hardcode \$libdir into a binary during linking.
16802 # This must work even if \$libdir does not exist
16803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16804
16805 # If ld is used when linking, flag to hardcode \$libdir into a binary
16806 # during linking.  This must work even if \$libdir does not exist.
16807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16808
16809 # Whether we need a single "-rpath" flag with a separated argument.
16810 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16811
16812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16813 # DIR into the resulting binary.
16814 hardcode_direct=$hardcode_direct
16815
16816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16817 # DIR into the resulting binary and the resulting library dependency is
16818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16819 # library is relocated.
16820 hardcode_direct_absolute=$hardcode_direct_absolute
16821
16822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16823 # into the resulting binary.
16824 hardcode_minus_L=$hardcode_minus_L
16825
16826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16827 # into the resulting binary.
16828 hardcode_shlibpath_var=$hardcode_shlibpath_var
16829
16830 # Set to "yes" if building a shared library automatically hardcodes DIR
16831 # into the library and all subsequent libraries and executables linked
16832 # against it.
16833 hardcode_automatic=$hardcode_automatic
16834
16835 # Set to yes if linker adds runtime paths of dependent libraries
16836 # to runtime path list.
16837 inherit_rpath=$inherit_rpath
16838
16839 # Whether libtool must link a program against all its dependency libraries.
16840 link_all_deplibs=$link_all_deplibs
16841
16842 # Set to "yes" if exported symbols are required.
16843 always_export_symbols=$always_export_symbols
16844
16845 # The commands to list exported symbols.
16846 export_symbols_cmds=$lt_export_symbols_cmds
16847
16848 # Symbols that should not be listed in the preloaded symbols.
16849 exclude_expsyms=$lt_exclude_expsyms
16850
16851 # Symbols that must always be exported.
16852 include_expsyms=$lt_include_expsyms
16853
16854 # Commands necessary for linking programs (against libraries) with templates.
16855 prelink_cmds=$lt_prelink_cmds
16856
16857 # Commands necessary for finishing linking programs.
16858 postlink_cmds=$lt_postlink_cmds
16859
16860 # Specify filename containing input files.
16861 file_list_spec=$lt_file_list_spec
16862
16863 # How to hardcode a shared library path into an executable.
16864 hardcode_action=$hardcode_action
16865
16866 # ### END LIBTOOL CONFIG
16867
16868 _LT_EOF
16869
16870   case $host_os in
16871   aix3*)
16872     cat <<\_LT_EOF >> "$cfgfile"
16873 # AIX sometimes has problems with the GCC collect2 program.  For some
16874 # reason, if we set the COLLECT_NAMES environment variable, the problems
16875 # vanish in a puff of smoke.
16876 if test "X${COLLECT_NAMES+set}" != Xset; then
16877   COLLECT_NAMES=
16878   export COLLECT_NAMES
16879 fi
16880 _LT_EOF
16881     ;;
16882   esac
16883
16884
16885 ltmain="$ac_aux_dir/ltmain.sh"
16886
16887
16888   # We use sed instead of cat because bash on DJGPP gets confused if
16889   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16890   # text mode, it properly converts lines to CR/LF.  This bash problem
16891   # is reportedly fixed, but why not run on old versions too?
16892   sed '$q' "$ltmain" >> "$cfgfile" \
16893      || (rm -f "$cfgfile"; exit 1)
16894
16895   if test x"$xsi_shell" = xyes; then
16896   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16897 func_dirname ()\
16898 {\
16899 \    case ${1} in\
16900 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16901 \      *  ) func_dirname_result="${3}" ;;\
16902 \    esac\
16903 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16904   && mv -f "$cfgfile.tmp" "$cfgfile" \
16905     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16906 test 0 -eq $? || _lt_function_replace_fail=:
16907
16908
16909   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16910 func_basename ()\
16911 {\
16912 \    func_basename_result="${1##*/}"\
16913 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16914   && mv -f "$cfgfile.tmp" "$cfgfile" \
16915     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16916 test 0 -eq $? || _lt_function_replace_fail=:
16917
16918
16919   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16920 func_dirname_and_basename ()\
16921 {\
16922 \    case ${1} in\
16923 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16924 \      *  ) func_dirname_result="${3}" ;;\
16925 \    esac\
16926 \    func_basename_result="${1##*/}"\
16927 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16928   && mv -f "$cfgfile.tmp" "$cfgfile" \
16929     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930 test 0 -eq $? || _lt_function_replace_fail=:
16931
16932
16933   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16934 func_stripname ()\
16935 {\
16936 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16937 \    # positional parameters, so assign one to ordinary parameter first.\
16938 \    func_stripname_result=${3}\
16939 \    func_stripname_result=${func_stripname_result#"${1}"}\
16940 \    func_stripname_result=${func_stripname_result%"${2}"}\
16941 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16942   && mv -f "$cfgfile.tmp" "$cfgfile" \
16943     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16944 test 0 -eq $? || _lt_function_replace_fail=:
16945
16946
16947   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16948 func_split_long_opt ()\
16949 {\
16950 \    func_split_long_opt_name=${1%%=*}\
16951 \    func_split_long_opt_arg=${1#*=}\
16952 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16953   && mv -f "$cfgfile.tmp" "$cfgfile" \
16954     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16955 test 0 -eq $? || _lt_function_replace_fail=:
16956
16957
16958   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16959 func_split_short_opt ()\
16960 {\
16961 \    func_split_short_opt_arg=${1#??}\
16962 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16963 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16964   && mv -f "$cfgfile.tmp" "$cfgfile" \
16965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16966 test 0 -eq $? || _lt_function_replace_fail=:
16967
16968
16969   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16970 func_lo2o ()\
16971 {\
16972 \    case ${1} in\
16973 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16974 \      *)    func_lo2o_result=${1} ;;\
16975 \    esac\
16976 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16977   && mv -f "$cfgfile.tmp" "$cfgfile" \
16978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16979 test 0 -eq $? || _lt_function_replace_fail=:
16980
16981
16982   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16983 func_xform ()\
16984 {\
16985     func_xform_result=${1%.*}.lo\
16986 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16987   && mv -f "$cfgfile.tmp" "$cfgfile" \
16988     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $? || _lt_function_replace_fail=:
16990
16991
16992   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16993 func_arith ()\
16994 {\
16995     func_arith_result=$(( $* ))\
16996 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16997   && mv -f "$cfgfile.tmp" "$cfgfile" \
16998     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16999 test 0 -eq $? || _lt_function_replace_fail=:
17000
17001
17002   sed -e '/^func_len ()$/,/^} # func_len /c\
17003 func_len ()\
17004 {\
17005     func_len_result=${#1}\
17006 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17007   && mv -f "$cfgfile.tmp" "$cfgfile" \
17008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17009 test 0 -eq $? || _lt_function_replace_fail=:
17010
17011 fi
17012
17013 if test x"$lt_shell_append" = xyes; then
17014   sed -e '/^func_append ()$/,/^} # func_append /c\
17015 func_append ()\
17016 {\
17017     eval "${1}+=\\${2}"\
17018 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17019   && mv -f "$cfgfile.tmp" "$cfgfile" \
17020     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17021 test 0 -eq $? || _lt_function_replace_fail=:
17022
17023
17024   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17025 func_append_quoted ()\
17026 {\
17027 \    func_quote_for_eval "${2}"\
17028 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17029 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17030   && mv -f "$cfgfile.tmp" "$cfgfile" \
17031     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17032 test 0 -eq $? || _lt_function_replace_fail=:
17033
17034
17035   # Save a `func_append' function call where possible by direct use of '+='
17036   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17037     && mv -f "$cfgfile.tmp" "$cfgfile" \
17038       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17039   test 0 -eq $? || _lt_function_replace_fail=:
17040 else
17041   # Save a `func_append' function call even when '+=' is not available
17042   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17043     && mv -f "$cfgfile.tmp" "$cfgfile" \
17044       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17045   test 0 -eq $? || _lt_function_replace_fail=:
17046 fi
17047
17048 if test x"$_lt_function_replace_fail" = x":"; then
17049   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17050 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17051 fi
17052
17053
17054    mv -f "$cfgfile" "$ofile" ||
17055     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17056   chmod +x "$ofile"
17057
17058  ;;
17059
17060   esac
17061 done # for ac_tag
17062
17063
17064 as_fn_exit 0
17065 _ACEOF
17066 ac_clean_files=$ac_clean_files_save
17067
17068 test $ac_write_fail = 0 ||
17069   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17070
17071
17072 # configure is writing to config.log, and then calls config.status.
17073 # config.status does its own redirection, appending to config.log.
17074 # Unfortunately, on DOS this fails, as config.log is still kept open
17075 # by configure, so config.status won't be able to write to it; its
17076 # output is simply discarded.  So we exec the FD to /dev/null,
17077 # effectively closing config.log, so it can be properly (re)opened and
17078 # appended to by config.status.  When coming back to configure, we
17079 # need to make the FD available again.
17080 if test "$no_create" != yes; then
17081   ac_cs_success=:
17082   ac_config_status_args=
17083   test "$silent" = yes &&
17084     ac_config_status_args="$ac_config_status_args --quiet"
17085   exec 5>/dev/null
17086   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17087   exec 5>>config.log
17088   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17089   # would make configure fail if this is the last instruction.
17090   $ac_cs_success || as_fn_exit 1
17091 fi
17092 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17093   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17094 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17095 fi
17096