Imported Upstream version 1.39.3
[platform/upstream/gobject-introspection.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gobject-introspection 1.39.3.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='gobject-introspection'
593 PACKAGE_TARNAME='gobject-introspection'
594 PACKAGE_VERSION='1.39.3'
595 PACKAGE_STRING='gobject-introspection 1.39.3'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 EXTRA_LINK_FLAGS
639 GLIBSRC
640 WITH_GLIBSRC_FALSE
641 WITH_GLIBSRC_TRUE
642 BUILD_DOCTOOL_FALSE
643 BUILD_DOCTOOL_TRUE
644 PYTHON_LIBS
645 PYTHON_INCLUDES
646 pkgpyexecdir
647 pyexecdir
648 pkgpythondir
649 pythondir
650 PYTHON_PLATFORM
651 PYTHON_EXEC_PREFIX
652 PYTHON_PREFIX
653 PYTHON_VERSION
654 PYTHON
655 LIBOBJS
656 POW_LIB
657 GTK_DOC_USE_REBASE_FALSE
658 GTK_DOC_USE_REBASE_TRUE
659 GTK_DOC_USE_LIBTOOL_FALSE
660 GTK_DOC_USE_LIBTOOL_TRUE
661 GTK_DOC_BUILD_PDF_FALSE
662 GTK_DOC_BUILD_PDF_TRUE
663 GTK_DOC_BUILD_HTML_FALSE
664 GTK_DOC_BUILD_HTML_TRUE
665 ENABLE_GTK_DOC_FALSE
666 ENABLE_GTK_DOC_TRUE
667 GTKDOC_DEPS_LIBS
668 GTKDOC_DEPS_CFLAGS
669 HTML_DIR
670 GTKDOC_MKPDF
671 GTKDOC_REBASE
672 GTKDOC_CHECK_PATH
673 GTKDOC_CHECK
674 GIREPO_LIBS
675 GIREPO_CFLAGS
676 FFI_PC_PACKAGES
677 FFI_PC_LIBS
678 FFI_PC_CFLAGS
679 FFI_LIBS
680 FFI_CFLAGS
681 SCANNER_LIBS
682 SCANNER_CFLAGS
683 CAIRO_GIR_PACKAGE
684 CAIRO_SHARED_LIBRARY
685 HAVE_CAIRO_FALSE
686 HAVE_CAIRO_TRUE
687 CAIRO_LIBS
688 CAIRO_CFLAGS
689 HAVE_GIO_UNIX_FALSE
690 HAVE_GIO_UNIX_TRUE
691 GIO_UNIX_LIBS
692 GIO_UNIX_CFLAGS
693 GIO_LIBS
694 GIO_CFLAGS
695 GMODULE_LIBS
696 GMODULE_CFLAGS
697 GOBJECT_LIBS
698 GOBJECT_CFLAGS
699 GLIB_LIBS
700 GLIB_CFLAGS
701 GIR_DIR
702 GIR_SUFFIX
703 GOBJECT_INTROSPECTION_LIBDIR
704 EXPANDED_DATADIR
705 EXPANDED_LIBEXECDIR
706 EXPANDED_LIBDIR
707 EXPANDED_BINDIR
708 EXPANDED_SYSCONFDIR
709 EXPANDED_LOCALSTATEDIR
710 YACC
711 LEXLIB
712 LEX_OUTPUT_ROOT
713 LEX
714 PKG_CONFIG_LIBDIR
715 PKG_CONFIG_PATH
716 PKG_CONFIG
717 CPP
718 OTOOL64
719 OTOOL
720 LIPO
721 NMEDIT
722 DSYMUTIL
723 MANIFEST_TOOL
724 RANLIB
725 ac_ct_AR
726 AR
727 DLLTOOL
728 OBJDUMP
729 LN_S
730 NM
731 ac_ct_DUMPBIN
732 DUMPBIN
733 LD
734 FGREP
735 EGREP
736 GREP
737 SED
738 LIBTOOL
739 am__fastdepCC_FALSE
740 am__fastdepCC_TRUE
741 CCDEPMODE
742 am__nodep
743 AMDEPBACKSLASH
744 AMDEP_FALSE
745 AMDEP_TRUE
746 am__quote
747 am__include
748 DEPDIR
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 OS_WIN32_FALSE
757 OS_WIN32_TRUE
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 GI_VERSION
767 MAINT
768 MAINTAINER_MODE_FALSE
769 MAINTAINER_MODE_TRUE
770 AM_BACKSLASH
771 AM_DEFAULT_VERBOSITY
772 AM_DEFAULT_V
773 AM_V
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_maintainer_mode
840 enable_dependency_tracking
841 enable_shared
842 enable_static
843 with_pic
844 enable_fast_install
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 with_cairo
849 with_html_dir
850 enable_gtk_doc
851 enable_gtk_doc_html
852 enable_gtk_doc_pdf
853 enable_doctool
854 with_glib_src
855 enable_Bsymbolic
856 '
857       ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 LIBS
864 CPPFLAGS
865 CPP
866 PKG_CONFIG
867 PKG_CONFIG_PATH
868 PKG_CONFIG_LIBDIR
869 GLIB_CFLAGS
870 GLIB_LIBS
871 GOBJECT_CFLAGS
872 GOBJECT_LIBS
873 GMODULE_CFLAGS
874 GMODULE_LIBS
875 GIO_CFLAGS
876 GIO_LIBS
877 GIO_UNIX_CFLAGS
878 GIO_UNIX_LIBS
879 CAIRO_CFLAGS
880 CAIRO_LIBS
881 SCANNER_CFLAGS
882 SCANNER_LIBS
883 FFI_CFLAGS
884 FFI_LIBS
885 GIREPO_CFLAGS
886 GIREPO_LIBS
887 GTKDOC_DEPS_CFLAGS
888 GTKDOC_DEPS_LIBS
889 PYTHON'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *=)   ac_optarg= ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error $? "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025       as_fn_error $? "invalid feature name: $ac_useropt"
1026     ac_useropt_orig=$ac_useropt
1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028     case $ac_user_opts in
1029       *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033          ac_unrecognized_sep=', ';;
1034     esac
1035     eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039   | --exec | --exe | --ex)
1040     ac_prev=exec_prefix ;;
1041   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043   | --exec=* | --exe=* | --ex=*)
1044     exec_prefix=$ac_optarg ;;
1045
1046   -gas | --gas | --ga | --g)
1047     # Obsolete; use --with-gas.
1048     with_gas=yes ;;
1049
1050   -help | --help | --hel | --he | -h)
1051     ac_init_help=long ;;
1052   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053     ac_init_help=recursive ;;
1054   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055     ac_init_help=short ;;
1056
1057   -host | --host | --hos | --ho)
1058     ac_prev=host_alias ;;
1059   -host=* | --host=* | --hos=* | --ho=*)
1060     host_alias=$ac_optarg ;;
1061
1062   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063     ac_prev=htmldir ;;
1064   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065   | --ht=*)
1066     htmldir=$ac_optarg ;;
1067
1068   -includedir | --includedir | --includedi | --included | --include \
1069   | --includ | --inclu | --incl | --inc)
1070     ac_prev=includedir ;;
1071   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072   | --includ=* | --inclu=* | --incl=* | --inc=*)
1073     includedir=$ac_optarg ;;
1074
1075   -infodir | --infodir | --infodi | --infod | --info | --inf)
1076     ac_prev=infodir ;;
1077   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078     infodir=$ac_optarg ;;
1079
1080   -libdir | --libdir | --libdi | --libd)
1081     ac_prev=libdir ;;
1082   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083     libdir=$ac_optarg ;;
1084
1085   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086   | --libexe | --libex | --libe)
1087     ac_prev=libexecdir ;;
1088   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089   | --libexe=* | --libex=* | --libe=*)
1090     libexecdir=$ac_optarg ;;
1091
1092   -localedir | --localedir | --localedi | --localed | --locale)
1093     ac_prev=localedir ;;
1094   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095     localedir=$ac_optarg ;;
1096
1097   -localstatedir | --localstatedir | --localstatedi | --localstated \
1098   | --localstate | --localstat | --localsta | --localst | --locals)
1099     ac_prev=localstatedir ;;
1100   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102     localstatedir=$ac_optarg ;;
1103
1104   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105     ac_prev=mandir ;;
1106   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107     mandir=$ac_optarg ;;
1108
1109   -nfp | --nfp | --nf)
1110     # Obsolete; use --without-fp.
1111     with_fp=no ;;
1112
1113   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114   | --no-cr | --no-c | -n)
1115     no_create=yes ;;
1116
1117   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119     no_recursion=yes ;;
1120
1121   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123   | --oldin | --oldi | --old | --ol | --o)
1124     ac_prev=oldincludedir ;;
1125   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128     oldincludedir=$ac_optarg ;;
1129
1130   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131     ac_prev=prefix ;;
1132   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133     prefix=$ac_optarg ;;
1134
1135   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136   | --program-pre | --program-pr | --program-p)
1137     ac_prev=program_prefix ;;
1138   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140     program_prefix=$ac_optarg ;;
1141
1142   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143   | --program-suf | --program-su | --program-s)
1144     ac_prev=program_suffix ;;
1145   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147     program_suffix=$ac_optarg ;;
1148
1149   -program-transform-name | --program-transform-name \
1150   | --program-transform-nam | --program-transform-na \
1151   | --program-transform-n | --program-transform- \
1152   | --program-transform | --program-transfor \
1153   | --program-transfo | --program-transf \
1154   | --program-trans | --program-tran \
1155   | --progr-tra | --program-tr | --program-t)
1156     ac_prev=program_transform_name ;;
1157   -program-transform-name=* | --program-transform-name=* \
1158   | --program-transform-nam=* | --program-transform-na=* \
1159   | --program-transform-n=* | --program-transform-=* \
1160   | --program-transform=* | --program-transfor=* \
1161   | --program-transfo=* | --program-transf=* \
1162   | --program-trans=* | --program-tran=* \
1163   | --progr-tra=* | --program-tr=* | --program-t=*)
1164     program_transform_name=$ac_optarg ;;
1165
1166   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167     ac_prev=pdfdir ;;
1168   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169     pdfdir=$ac_optarg ;;
1170
1171   -psdir | --psdir | --psdi | --psd | --ps)
1172     ac_prev=psdir ;;
1173   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174     psdir=$ac_optarg ;;
1175
1176   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177   | -silent | --silent | --silen | --sile | --sil)
1178     silent=yes ;;
1179
1180   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181     ac_prev=sbindir ;;
1182   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183   | --sbi=* | --sb=*)
1184     sbindir=$ac_optarg ;;
1185
1186   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188   | --sharedst | --shareds | --shared | --share | --shar \
1189   | --sha | --sh)
1190     ac_prev=sharedstatedir ;;
1191   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194   | --sha=* | --sh=*)
1195     sharedstatedir=$ac_optarg ;;
1196
1197   -site | --site | --sit)
1198     ac_prev=site ;;
1199   -site=* | --site=* | --sit=*)
1200     site=$ac_optarg ;;
1201
1202   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203     ac_prev=srcdir ;;
1204   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205     srcdir=$ac_optarg ;;
1206
1207   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208   | --syscon | --sysco | --sysc | --sys | --sy)
1209     ac_prev=sysconfdir ;;
1210   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212     sysconfdir=$ac_optarg ;;
1213
1214   -target | --target | --targe | --targ | --tar | --ta | --t)
1215     ac_prev=target_alias ;;
1216   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217     target_alias=$ac_optarg ;;
1218
1219   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220     verbose=yes ;;
1221
1222   -version | --version | --versio | --versi | --vers | -V)
1223     ac_init_version=: ;;
1224
1225   -with-* | --with-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=\$ac_optarg ;;
1240
1241   -without-* | --without-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       as_fn_error $? "invalid package name: $ac_useropt"
1246     ac_useropt_orig=$ac_useropt
1247     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248     case $ac_user_opts in
1249       *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253          ac_unrecognized_sep=', ';;
1254     esac
1255     eval with_$ac_useropt=no ;;
1256
1257   --x)
1258     # Obsolete; use --with-x.
1259     with_x=yes ;;
1260
1261   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262   | --x-incl | --x-inc | --x-in | --x-i)
1263     ac_prev=x_includes ;;
1264   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266     x_includes=$ac_optarg ;;
1267
1268   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270     ac_prev=x_libraries ;;
1271   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273     x_libraries=$ac_optarg ;;
1274
1275   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1277     ;;
1278
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     case $ac_envvar in #(
1283       '' | [0-9]* | *[!_$as_cr_alnum]* )
1284       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285     esac
1286     eval $ac_envvar=\$ac_optarg
1287     export $ac_envvar ;;
1288
1289   *)
1290     # FIXME: should be removed in autoconf 3.0.
1291     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295     ;;
1296
1297   esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302   as_fn_error $? "missing argument to $ac_option"
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306   case $enable_option_checking in
1307     no) ;;
1308     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310   esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1318 do
1319   eval ac_val=\$$ac_var
1320   # Remove trailing slashes.
1321   case $ac_val in
1322     */ )
1323       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324       eval $ac_var=\$ac_val;;
1325   esac
1326   # Be sure to have absolute directory names.
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343   if test "x$build_alias" = x; then
1344     cross_compiling=maybe
1345   elif test "x$build_alias" != "x$host_alias"; then
1346     cross_compiling=yes
1347   fi
1348 fi
1349
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353 test "$silent" = yes && exec 6>/dev/null
1354
1355
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359   as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361   as_fn_error $? "pwd does not report name of working directory"
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366   ac_srcdir_defaulted=yes
1367   # Try the directory containing this script, then the parent directory.
1368   ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370          X"$as_myself" : 'X\(//\)[^/]' \| \
1371          X"$as_myself" : 'X\(//\)$' \| \
1372          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)[^/].*/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\).*/{
1387             s//\1/
1388             q
1389           }
1390           s/.*/./; q'`
1391   srcdir=$ac_confdir
1392   if test ! -r "$srcdir/$ac_unique_file"; then
1393     srcdir=..
1394   fi
1395 else
1396   ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 fi
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405         pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408   srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_env_${ac_var}_value=\$${ac_var}
1419   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1422
1423 #
1424 # Report the --help message.
1425 #
1426 if test "$ac_init_help" = "long"; then
1427   # Omit some internal or obsolete options to make the list less imposing.
1428   # This message is too long to be a string in the A/UX 3.1 sh.
1429   cat <<_ACEOF
1430 \`configure' configures gobject-introspection 1.39.3 to adapt to many kinds of systems.
1431
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE.  See below for descriptions of some of the useful variables.
1436
1437 Defaults for the options are specified in brackets.
1438
1439 Configuration:
1440   -h, --help              display this help and exit
1441       --help=short        display options specific to this package
1442       --help=recursive    display the short help of all the included packages
1443   -V, --version           display version information and exit
1444   -q, --quiet, --silent   do not print \`checking ...' messages
1445       --cache-file=FILE   cache test results in FILE [disabled]
1446   -C, --config-cache      alias for \`--cache-file=config.cache'
1447   -n, --no-create         do not create output files
1448       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1449
1450 Installation directories:
1451   --prefix=PREFIX         install architecture-independent files in PREFIX
1452                           [$ac_default_prefix]
1453   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1454                           [PREFIX]
1455
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1460
1461 For better control, use the options below.
1462
1463 Fine tuning of the installation directories:
1464   --bindir=DIR            user executables [EPREFIX/bin]
1465   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1466   --libexecdir=DIR        program executables [EPREFIX/libexec]
1467   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1468   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1469   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1470   --libdir=DIR            object code libraries [EPREFIX/lib]
1471   --includedir=DIR        C header files [PREFIX/include]
1472   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1473   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1474   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1475   --infodir=DIR           info documentation [DATAROOTDIR/info]
1476   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1477   --mandir=DIR            man documentation [DATAROOTDIR/man]
1478   --docdir=DIR            documentation root
1479                           [DATAROOTDIR/doc/gobject-introspection]
1480   --htmldir=DIR           html documentation [DOCDIR]
1481   --dvidir=DIR            dvi documentation [DOCDIR]
1482   --pdfdir=DIR            pdf documentation [DOCDIR]
1483   --psdir=DIR             ps documentation [DOCDIR]
1484 _ACEOF
1485
1486   cat <<\_ACEOF
1487
1488 Program names:
1489   --program-prefix=PREFIX            prepend PREFIX to installed program names
1490   --program-suffix=SUFFIX            append SUFFIX to installed program names
1491   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1492
1493 System types:
1494   --build=BUILD     configure for building on BUILD [guessed]
1495   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500   case $ac_init_help in
1501      short | recursive ) echo "Configuration of gobject-introspection 1.39.3:";;
1502    esac
1503   cat <<\_ACEOF
1504
1505 Optional Features:
1506   --disable-option-checking  ignore unrecognized --enable/--with options
1507   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1508   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1509   --enable-silent-rules   less verbose build output (undo: "make V=1")
1510   --disable-silent-rules  verbose build output (undo: "make V=0")
1511   --disable-maintainer-mode
1512                           disable make rules and dependencies not useful (and
1513                           sometimes confusing) to the casual installer
1514   --enable-dependency-tracking
1515                           do not reject slow dependency extractors
1516   --disable-dependency-tracking
1517                           speeds up one-time build
1518   --enable-shared[=PKGS]  build shared libraries [default=yes]
1519   --enable-static[=PKGS]  build static libraries [default=yes]
1520   --enable-fast-install[=PKGS]
1521                           optimize for fast installation [default=yes]
1522   --disable-libtool-lock  avoid locking (might break parallel builds)
1523   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1524   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1525   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1526   --disable-doctool           disable g-ir-doctool
1527   --disable-Bsymbolic     avoid linking with -Bsymbolic
1528
1529 Optional Packages:
1530   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1533                           both]
1534   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535   --with-sysroot=DIR Search for dependent libraries within DIR
1536                         (or the compiler's sysroot if not specified).
1537   --with-cairo            Use cairo [default=maybe]
1538   --with-html-dir=PATH    path to installed docs
1539   --with-glib-src=PATH    Source directory for glib - needed to add docs to gir
1540
1541 Some influential environment variables:
1542   CC          C compiler command
1543   CFLAGS      C compiler flags
1544   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1545               nonstandard directory <lib dir>
1546   LIBS        libraries to pass to the linker, e.g. -l<library>
1547   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548               you have headers in a nonstandard directory <include dir>
1549   CPP         C preprocessor
1550   PKG_CONFIG  path to pkg-config utility
1551   PKG_CONFIG_PATH
1552               directories to add to pkg-config's search path
1553   PKG_CONFIG_LIBDIR
1554               path overriding pkg-config's built-in search path
1555   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1556   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1557   GOBJECT_CFLAGS
1558               C compiler flags for GOBJECT, overriding pkg-config
1559   GOBJECT_LIBS
1560               linker flags for GOBJECT, overriding pkg-config
1561   GMODULE_CFLAGS
1562               C compiler flags for GMODULE, overriding pkg-config
1563   GMODULE_LIBS
1564               linker flags for GMODULE, overriding pkg-config
1565   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1566   GIO_LIBS    linker flags for GIO, overriding pkg-config
1567   GIO_UNIX_CFLAGS
1568               C compiler flags for GIO_UNIX, overriding pkg-config
1569   GIO_UNIX_LIBS
1570               linker flags for GIO_UNIX, overriding pkg-config
1571   CAIRO_CFLAGS
1572               C compiler flags for CAIRO, overriding pkg-config
1573   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1574   SCANNER_CFLAGS
1575               C compiler flags for SCANNER, overriding pkg-config
1576   SCANNER_LIBS
1577               linker flags for SCANNER, overriding pkg-config
1578   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1579   FFI_LIBS    linker flags for FFI, overriding pkg-config
1580   GIREPO_CFLAGS
1581               C compiler flags for GIREPO, overriding pkg-config
1582   GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1583   GTKDOC_DEPS_CFLAGS
1584               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1585   GTKDOC_DEPS_LIBS
1586               linker flags for GTKDOC_DEPS, overriding pkg-config
1587   PYTHON      the Python interpreter
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598   # If there are subdirs, report their specific --help.
1599   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600     test -d "$ac_dir" ||
1601       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602       continue
1603     ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609   # A ".." for each directory in $ac_dir_suffix.
1610   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611   case $ac_top_builddir_sub in
1612   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614   esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622   .)  # We are building in place.
1623     ac_srcdir=.
1624     ac_top_srcdir=$ac_top_builddir_sub
1625     ac_abs_top_srcdir=$ac_pwd ;;
1626   [\\/]* | ?:[\\/]* )  # Absolute name.
1627     ac_srcdir=$srcdir$ac_dir_suffix;
1628     ac_top_srcdir=$srcdir
1629     ac_abs_top_srcdir=$srcdir ;;
1630   *) # Relative name.
1631     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632     ac_top_srcdir=$ac_top_build_prefix$srcdir
1633     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637     cd "$ac_dir" || { ac_status=$?; continue; }
1638     # Check for guested configure.
1639     if test -f "$ac_srcdir/configure.gnu"; then
1640       echo &&
1641       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642     elif test -f "$ac_srcdir/configure"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure" --help=recursive
1645     else
1646       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647     fi || ac_status=$?
1648     cd "$ac_pwd" || { ac_status=$?; break; }
1649   done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654   cat <<\_ACEOF
1655 gobject-introspection configure 1.39.3
1656 generated by GNU Autoconf 2.69
1657
1658 Copyright (C) 2012 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662   exit
1663 fi
1664
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1668
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1673 {
1674   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675   rm -f conftest.$ac_objext
1676   if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_compile") 2>conftest.err
1684   ac_status=$?
1685   if test -s conftest.err; then
1686     grep -v '^ *+' conftest.err >conftest.er1
1687     cat conftest.er1 >&5
1688     mv -f conftest.er1 conftest.err
1689   fi
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; } && {
1692          test -z "$ac_c_werror_flag" ||
1693          test ! -s conftest.err
1694        } && test -s conftest.$ac_objext; then :
1695   ac_retval=0
1696 else
1697   $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700         ac_retval=1
1701 fi
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   rm -f conftest.$ac_objext conftest$ac_exeext
1714   if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_link") 2>conftest.err
1722   ac_status=$?
1723   if test -s conftest.err; then
1724     grep -v '^ *+' conftest.err >conftest.er1
1725     cat conftest.er1 >&5
1726     mv -f conftest.er1 conftest.err
1727   fi
1728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729   test $ac_status = 0; } && {
1730          test -z "$ac_c_werror_flag" ||
1731          test ! -s conftest.err
1732        } && test -s conftest$ac_exeext && {
1733          test "$cross_compiling" = yes ||
1734          test -x conftest$ac_exeext
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741         ac_retval=1
1742 fi
1743   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745   # interfere with the next link command; also delete a directory that is
1746   # left behind by Apple's compiler.  We do this before executing the actions.
1747   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749   as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763   $as_echo_n "(cached) " >&6
1764 else
1765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h.  */
1767 $4
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771   eval "$3=yes"
1772 else
1773   eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_header_compile
1783
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_cpp ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798   ac_status=$?
1799   if test -s conftest.err; then
1800     grep -v '^ *+' conftest.err >conftest.er1
1801     cat conftest.er1 >&5
1802     mv -f conftest.er1 conftest.err
1803   fi
1804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805   test $ac_status = 0; } > conftest.i && {
1806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807          test ! -s conftest.err
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814     ac_retval=1
1815 fi
1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817   as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_link") 2>&5
1836   ac_status=$?
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839   { { case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_try") 2>&5
1846   ac_status=$?
1847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848   test $ac_status = 0; }; }; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: program exited with status $ac_status" >&5
1852        $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855        ac_retval=$ac_status
1856 fi
1857   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_run
1862
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872   $as_echo_n "(cached) " >&6
1873 else
1874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h.  */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1878 #define $2 innocuous_$2
1879
1880 /* System header to define __stub macros and hopefully few prototypes,
1881     which can conflict with char $2 (); below.
1882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883     <limits.h> exists even on freestanding compilers.  */
1884
1885 #ifdef __STDC__
1886 # include <limits.h>
1887 #else
1888 # include <assert.h>
1889 #endif
1890
1891 #undef $2
1892
1893 /* Override any GCC internal prototype to avoid an error.
1894    Use char because int might match the return type of a GCC
1895    builtin and then its argument prototype would still apply.  */
1896 #ifdef __cplusplus
1897 extern "C"
1898 #endif
1899 char $2 ();
1900 /* The GNU C library defines this for functions which it implements
1901     to always fail with ENOSYS.  Some functions are actually named
1902     something starting with __ and the normal name is an alias.  */
1903 #if defined __stub_$2 || defined __stub___$2
1904 choke me
1905 #endif
1906
1907 int
1908 main ()
1909 {
1910 return $2 ();
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_link "$LINENO"; then :
1916   eval "$3=yes"
1917 else
1918   eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext \
1921     conftest$ac_exeext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_func
1929
1930 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1931 # --------------------------------------------
1932 # Tries to find the compile-time value of EXPR in a program that includes
1933 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1934 # computed
1935 ac_fn_c_compute_int ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   if test "$cross_compiling" = yes; then
1939     # Depending upon the size, compute the lo and hi bounds.
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 int
1944 main ()
1945 {
1946 static int test_array [1 - 2 * !(($2) >= 0)];
1947 test_array [0] = 0;
1948 return test_array [0];
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955   ac_lo=0 ac_mid=0
1956   while :; do
1957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 test_array [0] = 0;
1965 return test_array [0];
1966
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   ac_hi=$ac_mid; break
1973 else
1974   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1975                         if test $ac_lo -le $ac_mid; then
1976                           ac_lo= ac_hi=
1977                           break
1978                         fi
1979                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982   done
1983 else
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) < 0)];
1991 test_array [0] = 0;
1992 return test_array [0];
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   ac_hi=-1 ac_mid=-1
2000   while :; do
2001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2008 test_array [0] = 0;
2009 return test_array [0];
2010
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   ac_lo=$ac_mid; break
2017 else
2018   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2019                         if test $ac_mid -le $ac_hi; then
2020                           ac_lo= ac_hi=
2021                           break
2022                         fi
2023                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026   done
2027 else
2028   ac_lo= ac_hi=
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 # Binary search between lo and hi bounds.
2034 while test "x$ac_lo" != "x$ac_hi"; do
2035   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h.  */
2038 $4
2039 int
2040 main ()
2041 {
2042 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2043 test_array [0] = 0;
2044 return test_array [0];
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   ac_hi=$ac_mid
2052 else
2053   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057 case $ac_lo in #((
2058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2059 '') ac_retval=1 ;;
2060 esac
2061   else
2062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h.  */
2064 $4
2065 static long int longval () { return $2; }
2066 static unsigned long int ulongval () { return $2; }
2067 #include <stdio.h>
2068 #include <stdlib.h>
2069 int
2070 main ()
2071 {
2072
2073   FILE *f = fopen ("conftest.val", "w");
2074   if (! f)
2075     return 1;
2076   if (($2) < 0)
2077     {
2078       long int i = longval ();
2079       if (i != ($2))
2080         return 1;
2081       fprintf (f, "%ld", i);
2082     }
2083   else
2084     {
2085       unsigned long int i = ulongval ();
2086       if (i != ($2))
2087         return 1;
2088       fprintf (f, "%lu", i);
2089     }
2090   /* Do not output a trailing newline, as this causes \r\n confusion
2091      on some platforms.  */
2092   return ferror (f) || fclose (f) != 0;
2093
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_run "$LINENO"; then :
2099   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2100 else
2101   ac_retval=1
2102 fi
2103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2104   conftest.$ac_objext conftest.beam conftest.$ac_ext
2105 rm -f conftest.val
2106
2107   fi
2108   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109   as_fn_set_status $ac_retval
2110
2111 } # ac_fn_c_compute_int
2112
2113 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2114 # -------------------------------------------------------
2115 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2116 # the include files in INCLUDES and setting the cache variable VAR
2117 # accordingly.
2118 ac_fn_c_check_header_mongrel ()
2119 {
2120   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121   if eval \${$3+:} false; then :
2122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125   $as_echo_n "(cached) " >&6
2126 fi
2127 eval ac_res=\$$3
2128                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 else
2131   # Is the header compilable?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2133 $as_echo_n "checking $2 usability... " >&6; }
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   ac_header_compiler=yes
2141 else
2142   ac_header_compiler=no
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2146 $as_echo "$ac_header_compiler" >&6; }
2147
2148 # Is the header present?
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2150 $as_echo_n "checking $2 presence... " >&6; }
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_cpp "$LINENO"; then :
2156   ac_header_preproc=yes
2157 else
2158   ac_header_preproc=no
2159 fi
2160 rm -f conftest.err conftest.i conftest.$ac_ext
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2162 $as_echo "$ac_header_preproc" >&6; }
2163
2164 # So?  What about this header?
2165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2166   yes:no: )
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2168 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2169     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171     ;;
2172   no:yes:* )
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2174 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2176 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2178 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2180 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2183 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
2184 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection ##
2185 ## ------------------------------------------------------------------------------------------- ##"
2186      ) | sed "s/^/$as_me: WARNING:     /" >&2
2187     ;;
2188 esac
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval \${$3+:} false; then :
2192   $as_echo_n "(cached) " >&6
2193 else
2194   eval "$3=\$ac_header_compiler"
2195 fi
2196 eval ac_res=\$$3
2197                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 fi
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_header_mongrel
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by gobject-introspection $as_me 1.39.3, which was
2208 generated by GNU Autoconf 2.69.  Invocation command line was
2209
2210   $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2228
2229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     $as_echo "PATH: $as_dir"
2245   done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271   for ac_arg
2272   do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277       continue ;;
2278     *\'*)
2279       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     esac
2281     case $ac_pass in
2282     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283     2)
2284       as_fn_append ac_configure_args1 " '$ac_arg'"
2285       if test $ac_must_keep_next = true; then
2286         ac_must_keep_next=false # Got value, back to normal.
2287       else
2288         case $ac_arg in
2289           *=* | --config-cache | -C | -disable-* | --disable-* \
2290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292           | -with-* | --with-* | -without-* | --without-* | --x)
2293             case "$ac_configure_args0 " in
2294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295             esac
2296             ;;
2297           -* ) ac_must_keep_next=true ;;
2298         esac
2299       fi
2300       as_fn_append ac_configure_args " '$ac_arg'"
2301       ;;
2302     esac
2303   done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log.  We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314   # Save into config.log some information that might help in debugging.
2315   {
2316     echo
2317
2318     $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321     echo
2322     # The following way of writing the cache mishandles newlines in values,
2323 (
2324   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325     eval ac_val=\$$ac_var
2326     case $ac_val in #(
2327     *${as_nl}*)
2328       case $ac_var in #(
2329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331       esac
2332       case $ac_var in #(
2333       _ | IFS | as_nl) ;; #(
2334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335       *) { eval $ac_var=; unset $ac_var;} ;;
2336       esac ;;
2337     esac
2338   done
2339   (set) 2>&1 |
2340     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341     *${as_nl}ac_space=\ *)
2342       sed -n \
2343         "s/'\''/'\''\\\\'\'''\''/g;
2344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345       ;; #(
2346     *)
2347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348       ;;
2349     esac |
2350     sort
2351 )
2352     echo
2353
2354     $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357     echo
2358     for ac_var in $ac_subst_vars
2359     do
2360       eval ac_val=\$$ac_var
2361       case $ac_val in
2362       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363       esac
2364       $as_echo "$ac_var='\''$ac_val'\''"
2365     done | sort
2366     echo
2367
2368     if test -n "$ac_subst_files"; then
2369       $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372       echo
2373       for ac_var in $ac_subst_files
2374       do
2375         eval ac_val=\$$ac_var
2376         case $ac_val in
2377         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378         esac
2379         $as_echo "$ac_var='\''$ac_val'\''"
2380       done | sort
2381       echo
2382     fi
2383
2384     if test -s confdefs.h; then
2385       $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388       echo
2389       cat confdefs.h
2390       echo
2391     fi
2392     test "$ac_signal" != 0 &&
2393       $as_echo "$as_me: caught signal $ac_signal"
2394     $as_echo "$as_me: exit $exit_status"
2395   } >&5
2396   rm -f core *.core core.conftest.* &&
2397     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398     exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442   # We do not want a PATH search for config.site.
2443   case $CONFIG_SITE in #((
2444     -*)  ac_site_file1=./$CONFIG_SITE;;
2445     */*) ac_site_file1=$CONFIG_SITE;;
2446     *)   ac_site_file1=./$CONFIG_SITE;;
2447   esac
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file" \
2463       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5; }
2467   fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471   # Some versions of bash will fail to source /dev/null (special files
2472   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476     case $cache_file in
2477       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478       *)                      . "./$cache_file";;
2479     esac
2480   fi
2481 else
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484   >$cache_file
2485 fi
2486
2487 # Check that the precious variables saved in the cache have kept the same
2488 # value.
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492   eval ac_new_set=\$ac_env_${ac_var}_set
2493   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494   eval ac_new_val=\$ac_env_${ac_var}_value
2495   case $ac_old_set,$ac_new_set in
2496     set,)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,set)
2501       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503       ac_cache_corrupted=: ;;
2504     ,);;
2505     *)
2506       if test "x$ac_old_val" != "x$ac_new_val"; then
2507         # differences in whitespace do not lead to failure.
2508         ac_old_val_w=`echo x $ac_old_val`
2509         ac_new_val_w=`echo x $ac_new_val`
2510         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513           ac_cache_corrupted=:
2514         else
2515           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517           eval $ac_var=\$ac_old_val
2518         fi
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2520 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2523       fi;;
2524   esac
2525   # Pass precious variables to config.status.
2526   if test "$ac_new_set" = set; then
2527     case $ac_new_val in
2528     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529     *) ac_arg=$ac_var=$ac_new_val ;;
2530     esac
2531     case " $ac_configure_args " in
2532       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2533       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534     esac
2535   fi
2536 done
2537 if $ac_cache_corrupted; then
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 fi
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2547
2548 ac_ext=c
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555
2556 ac_config_headers="$ac_config_headers config.h"
2557
2558
2559 ac_aux_dir=
2560 for ac_dir in build-aux "$srcdir"/build-aux; do
2561   if test -f "$ac_dir/install-sh"; then
2562     ac_aux_dir=$ac_dir
2563     ac_install_sh="$ac_aux_dir/install-sh -c"
2564     break
2565   elif test -f "$ac_dir/install.sh"; then
2566     ac_aux_dir=$ac_dir
2567     ac_install_sh="$ac_aux_dir/install.sh -c"
2568     break
2569   elif test -f "$ac_dir/shtool"; then
2570     ac_aux_dir=$ac_dir
2571     ac_install_sh="$ac_aux_dir/shtool install -c"
2572     break
2573   fi
2574 done
2575 if test -z "$ac_aux_dir"; then
2576   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2577 fi
2578
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2586
2587
2588
2589 am__api_version='1.13'
2590
2591 # Find a good install program.  We prefer a C program (faster),
2592 # so one script is as good as another.  But avoid the broken or
2593 # incompatible versions:
2594 # SysV /etc/install, /usr/sbin/install
2595 # SunOS /usr/etc/install
2596 # IRIX /sbin/install
2597 # AIX /bin/install
2598 # AmigaOS /C/install, which installs bootblocks on floppy discs
2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602 # OS/2's system install, which has a completely different semantic
2603 # ./install, which can be erroneously created by make from ./install.sh.
2604 # Reject install programs that cannot install multiple files.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2607 if test -z "$INSTALL"; then
2608 if ${ac_cv_path_install+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616     # Account for people who put trailing slashes in PATH elements.
2617 case $as_dir/ in #((
2618   ./ | .// | /[cC]/* | \
2619   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621   /usr/ucb/* ) ;;
2622   *)
2623     # OSF1 and SCO ODT 3.0 have their own names for install.
2624     # Don't use installbsd from OSF since it installs stuff as root
2625     # by default.
2626     for ac_prog in ginstall scoinst install; do
2627       for ac_exec_ext in '' $ac_executable_extensions; do
2628         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629           if test $ac_prog = install &&
2630             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631             # AIX install.  It has an incompatible calling convention.
2632             :
2633           elif test $ac_prog = install &&
2634             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635             # program-specific install script used by HP pwplus--don't use.
2636             :
2637           else
2638             rm -rf conftest.one conftest.two conftest.dir
2639             echo one > conftest.one
2640             echo two > conftest.two
2641             mkdir conftest.dir
2642             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2643               test -s conftest.one && test -s conftest.two &&
2644               test -s conftest.dir/conftest.one &&
2645               test -s conftest.dir/conftest.two
2646             then
2647               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648               break 3
2649             fi
2650           fi
2651         fi
2652       done
2653     done
2654     ;;
2655 esac
2656
2657   done
2658 IFS=$as_save_IFS
2659
2660 rm -rf conftest.one conftest.two conftest.dir
2661
2662 fi
2663   if test "${ac_cv_path_install+set}" = set; then
2664     INSTALL=$ac_cv_path_install
2665   else
2666     # As a last resort, use the slow shell script.  Don't cache a
2667     # value for INSTALL within a source directory, because that will
2668     # break other packages using the cache if that directory is
2669     # removed, or if the value is a relative name.
2670     INSTALL=$ac_install_sh
2671   fi
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674 $as_echo "$INSTALL" >&6; }
2675
2676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677 # It thinks the first close brace ends the variable substitution.
2678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
2680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681
2682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685 $as_echo_n "checking whether build environment is sane... " >&6; }
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name.  Accept space and tab only in the latter.
2688 am_lf='
2689 '
2690 case `pwd` in
2691   *[\\\"\#\$\&\'\`$am_lf]*)
2692     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693 esac
2694 case $srcdir in
2695   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2696     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697 esac
2698
2699 # Do 'set' in a subshell so we don't clobber the current shell's
2700 # arguments.  Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705    am_has_slept=no
2706    for am_try in 1 2; do
2707      echo "timestamp, slept: $am_has_slept" > conftest.file
2708      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709      if test "$*" = "X"; then
2710         # -L didn't work.
2711         set X `ls -t "$srcdir/configure" conftest.file`
2712      fi
2713      if test "$*" != "X $srcdir/configure conftest.file" \
2714         && test "$*" != "X conftest.file $srcdir/configure"; then
2715
2716         # If neither matched, then we have a broken ls.  This can happen
2717         # if, for instance, CONFIG_SHELL is bash and it inherits a
2718         # broken ls alias from the environment.  This has actually
2719         # happened.  Such a system could not be considered "sane".
2720         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2721   alias in your environment" "$LINENO" 5
2722      fi
2723      if test "$2" = conftest.file || test $am_try -eq 2; then
2724        break
2725      fi
2726      # Just in case.
2727      sleep 1
2728      am_has_slept=yes
2729    done
2730    test "$2" = conftest.file
2731    )
2732 then
2733    # Ok.
2734    :
2735 else
2736    as_fn_error $? "newly created file is older than distributed files!
2737 Check your system clock" "$LINENO" 5
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741 # If we didn't sleep, we still need to ensure time stamps of config.status and
2742 # generated files are strictly newer.
2743 am_sleep_pid=
2744 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2745   ( sleep 1 ) &
2746   am_sleep_pid=$!
2747 fi
2748
2749 rm -f conftest.file
2750
2751 test "$program_prefix" != NONE &&
2752   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2753 # Use a double $ so make ignores it.
2754 test "$program_suffix" != NONE &&
2755   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2756 # Double any \ or $.
2757 # By default was `s,x,x', remove it if useless.
2758 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2759 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760
2761 # expand $ac_aux_dir to an absolute path
2762 am_aux_dir=`cd $ac_aux_dir && pwd`
2763
2764 if test x"${MISSING+set}" != xset; then
2765   case $am_aux_dir in
2766   *\ * | *\     *)
2767     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2768   *)
2769     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2770   esac
2771 fi
2772 # Use eval to expand $SHELL
2773 if eval "$MISSING --is-lightweight"; then
2774   am_missing_run="$MISSING "
2775 else
2776   am_missing_run=
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2778 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2779 fi
2780
2781 if test x"${install_sh}" != xset; then
2782   case $am_aux_dir in
2783   *\ * | *\     *)
2784     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2785   *)
2786     install_sh="\${SHELL} $am_aux_dir/install-sh"
2787   esac
2788 fi
2789
2790 # Installed binaries are usually stripped using 'strip' when the user
2791 # run "make install-strip".  However 'strip' might not be the right
2792 # tool to use in cross-compilation environments, therefore Automake
2793 # will honor the 'STRIP' environment variable to overrule this program.
2794 if test "$cross_compiling" != no; then
2795   if test -n "$ac_tool_prefix"; then
2796   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}strip; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_STRIP+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   if test -n "$STRIP"; then
2804   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809   IFS=$as_save_IFS
2810   test -z "$as_dir" && as_dir=.
2811     for ac_exec_ext in '' $ac_executable_extensions; do
2812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815     break 2
2816   fi
2817 done
2818   done
2819 IFS=$as_save_IFS
2820
2821 fi
2822 fi
2823 STRIP=$ac_cv_prog_STRIP
2824 if test -n "$STRIP"; then
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2826 $as_echo "$STRIP" >&6; }
2827 else
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832
2833 fi
2834 if test -z "$ac_cv_prog_STRIP"; then
2835   ac_ct_STRIP=$STRIP
2836   # Extract the first word of "strip", so it can be a program name with args.
2837 set dummy strip; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$ac_ct_STRIP"; then
2844   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_ac_ct_STRIP="strip"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2864 if test -n "$ac_ct_STRIP"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2866 $as_echo "$ac_ct_STRIP" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872   if test "x$ac_ct_STRIP" = x; then
2873     STRIP=":"
2874   else
2875     case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881     STRIP=$ac_ct_STRIP
2882   fi
2883 else
2884   STRIP="$ac_cv_prog_STRIP"
2885 fi
2886
2887 fi
2888 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2891 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2892 if test -z "$MKDIR_P"; then
2893   if ${ac_cv_path_mkdir+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_prog in mkdir gmkdir; do
2902          for ac_exec_ext in '' $ac_executable_extensions; do
2903            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2904            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905              'mkdir (GNU coreutils) '* | \
2906              'mkdir (coreutils) '* | \
2907              'mkdir (fileutils) '4.1*)
2908                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2909                break 3;;
2910            esac
2911          done
2912        done
2913   done
2914 IFS=$as_save_IFS
2915
2916 fi
2917
2918   test -d ./--version && rmdir ./--version
2919   if test "${ac_cv_path_mkdir+set}" = set; then
2920     MKDIR_P="$ac_cv_path_mkdir -p"
2921   else
2922     # As a last resort, use the slow shell script.  Don't cache a
2923     # value for MKDIR_P within a source directory, because that will
2924     # break other packages using the cache if that directory is
2925     # removed, or if the value is a relative name.
2926     MKDIR_P="$ac_install_sh -d"
2927   fi
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930 $as_echo "$MKDIR_P" >&6; }
2931
2932 for ac_prog in gawk mawk nawk awk
2933 do
2934   # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_AWK+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$AWK"; then
2942   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949     for ac_exec_ext in '' $ac_executable_extensions; do
2950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951     ac_cv_prog_AWK="$ac_prog"
2952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956   done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 AWK=$ac_cv_prog_AWK
2962 if test -n "$AWK"; then
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964 $as_echo "$AWK" >&6; }
2965 else
2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971   test -n "$AWK" && break
2972 done
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976 set x ${MAKE-make}
2977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2978 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   cat >conftest.make <<\_ACEOF
2982 SHELL = /bin/sh
2983 all:
2984         @echo '@@@%%%=$(MAKE)=@@@%%%'
2985 _ACEOF
2986 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988   *@@@%%%=?*=@@@%%%*)
2989     eval ac_cv_prog_make_${ac_make}_set=yes;;
2990   *)
2991     eval ac_cv_prog_make_${ac_make}_set=no;;
2992 esac
2993 rm -f conftest.make
2994 fi
2995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997 $as_echo "yes" >&6; }
2998   SET_MAKE=
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002   SET_MAKE="MAKE=${MAKE-make}"
3003 fi
3004
3005 rm -rf .tst 2>/dev/null
3006 mkdir .tst 2>/dev/null
3007 if test -d .tst; then
3008   am__leading_dot=.
3009 else
3010   am__leading_dot=_
3011 fi
3012 rmdir .tst 2>/dev/null
3013
3014 # Check whether --enable-silent-rules was given.
3015 if test "${enable_silent_rules+set}" = set; then :
3016   enableval=$enable_silent_rules;
3017 fi
3018
3019 case $enable_silent_rules in # (((
3020   yes) AM_DEFAULT_VERBOSITY=0;;
3021    no) AM_DEFAULT_VERBOSITY=1;;
3022     *) AM_DEFAULT_VERBOSITY=1;;
3023 esac
3024 am_make=${MAKE-make}
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3026 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3027 if ${am_cv_make_support_nested_variables+:} false; then :
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if $as_echo 'TRUE=$(BAR$(V))
3031 BAR0=false
3032 BAR1=true
3033 V=1
3034 am__doit:
3035         @$(TRUE)
3036 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3037   am_cv_make_support_nested_variables=yes
3038 else
3039   am_cv_make_support_nested_variables=no
3040 fi
3041 fi
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3043 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3044 if test $am_cv_make_support_nested_variables = yes; then
3045     AM_V='$(V)'
3046   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3047 else
3048   AM_V=$AM_DEFAULT_VERBOSITY
3049   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3050 fi
3051 AM_BACKSLASH='\'
3052
3053 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3054   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3055   # is not polluted with repeated "-I."
3056   am__isrc=' -I$(srcdir)'
3057   # test to see if srcdir already configured
3058   if test -f $srcdir/config.status; then
3059     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3060   fi
3061 fi
3062
3063 # test whether we have cygpath
3064 if test -z "$CYGPATH_W"; then
3065   if (cygpath --version) >/dev/null 2>/dev/null; then
3066     CYGPATH_W='cygpath -w'
3067   else
3068     CYGPATH_W=echo
3069   fi
3070 fi
3071
3072
3073 # Define the identity of the package.
3074  PACKAGE='gobject-introspection'
3075  VERSION='1.39.3'
3076
3077
3078 cat >>confdefs.h <<_ACEOF
3079 #define PACKAGE "$PACKAGE"
3080 _ACEOF
3081
3082
3083 cat >>confdefs.h <<_ACEOF
3084 #define VERSION "$VERSION"
3085 _ACEOF
3086
3087 # Some tools Automake needs.
3088
3089 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3090
3091
3092 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3093
3094
3095 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3096
3097
3098 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3099
3100
3101 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3102
3103 # For better backward compatibility.  To be removed once Automake 1.9.x
3104 # dies out for good.  For more background, see:
3105 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3106 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3107 mkdir_p='$(MKDIR_P)'
3108
3109 # We need awk for the "check" target.  The system "awk" is bad on
3110 # some platforms.
3111 # Always define AMTAR for backward compatibility.  Yes, it's still used
3112 # in the wild :-(  We should find a proper way to deprecate it ...
3113 AMTAR='$${TAR-tar}'
3114
3115
3116 # We'll loop over all known methods to create a tar archive until one works.
3117 _am_tools='gnutar plaintar pax cpio none'
3118
3119 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3120       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3121       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3122       # and bug#13588).
3123       am_max_uid=2097151 # 2^21 - 1
3124       am_max_gid=$am_max_uid
3125       # The $UID and $GID variables are not portable, so we need to resort
3126       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3127       # below are definitely unexpected, so allow the users to see them
3128       # (that is, avoid stderr redirection).
3129       am_uid=`id -u || echo unknown`
3130       am_gid=`id -g || echo unknown`
3131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3132 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3133       if test $am_uid -le $am_max_uid; then
3134          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135 $as_echo "yes" >&6; }
3136       else
3137          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139          _am_tools=none
3140       fi
3141       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3142 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3143       if test $am_gid -le $am_max_gid; then
3144          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146       else
3147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149         _am_tools=none
3150       fi
3151
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3153 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3154
3155   # Go ahead even if we have the value already cached.  We do so because we
3156   # need to set the values for the 'am__tar' and 'am__untar' variables.
3157   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3158
3159   for _am_tool in $_am_tools; do
3160     case $_am_tool in
3161     gnutar)
3162       for _am_tar in tar gnutar gtar; do
3163         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3164    ($_am_tar --version) >&5 2>&5
3165    ac_status=$?
3166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167    (exit $ac_status); } && break
3168       done
3169       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3170       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3171       am__untar="$_am_tar -xf -"
3172       ;;
3173     plaintar)
3174       # Must skip GNU tar: if it does not support --format= it doesn't create
3175       # ustar tarball either.
3176       (tar --version) >/dev/null 2>&1 && continue
3177       am__tar='tar chf - "$$tardir"'
3178       am__tar_='tar chf - "$tardir"'
3179       am__untar='tar xf -'
3180       ;;
3181     pax)
3182       am__tar='pax -L -x ustar -w "$$tardir"'
3183       am__tar_='pax -L -x ustar -w "$tardir"'
3184       am__untar='pax -r'
3185       ;;
3186     cpio)
3187       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3188       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3189       am__untar='cpio -i -H ustar -d'
3190       ;;
3191     none)
3192       am__tar=false
3193       am__tar_=false
3194       am__untar=false
3195       ;;
3196     esac
3197
3198     # If the value was cached, stop now.  We just wanted to have am__tar
3199     # and am__untar set.
3200     test -n "${am_cv_prog_tar_ustar}" && break
3201
3202     # tar/untar a dummy directory, and stop if the command works.
3203     rm -rf conftest.dir
3204     mkdir conftest.dir
3205     echo GrepMe > conftest.dir/file
3206     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3207    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3208    ac_status=$?
3209    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210    (exit $ac_status); }
3211     rm -rf conftest.dir
3212     if test -s conftest.tar; then
3213       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3214    ($am__untar <conftest.tar) >&5 2>&5
3215    ac_status=$?
3216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217    (exit $ac_status); }
3218       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3219    (cat conftest.dir/file) >&5 2>&5
3220    ac_status=$?
3221    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222    (exit $ac_status); }
3223       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3224     fi
3225   done
3226   rm -rf conftest.dir
3227
3228   if ${am_cv_prog_tar_ustar+:} false; then :
3229   $as_echo_n "(cached) " >&6
3230 else
3231   am_cv_prog_tar_ustar=$_am_tool
3232 fi
3233
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3235 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3236
3237
3238
3239
3240
3241
3242
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3245     # Check whether --enable-maintainer-mode was given.
3246 if test "${enable_maintainer_mode+set}" = set; then :
3247   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3248 else
3249   USE_MAINTAINER_MODE=yes
3250 fi
3251
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3253 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3254    if test $USE_MAINTAINER_MODE = yes; then
3255   MAINTAINER_MODE_TRUE=
3256   MAINTAINER_MODE_FALSE='#'
3257 else
3258   MAINTAINER_MODE_TRUE='#'
3259   MAINTAINER_MODE_FALSE=
3260 fi
3261
3262   MAINT=$MAINTAINER_MODE_TRUE
3263
3264
3265
3266 # Check whether --enable-silent-rules was given.
3267 if test "${enable_silent_rules+set}" = set; then :
3268   enableval=$enable_silent_rules;
3269 fi
3270
3271 case $enable_silent_rules in # (((
3272   yes) AM_DEFAULT_VERBOSITY=0;;
3273    no) AM_DEFAULT_VERBOSITY=1;;
3274     *) AM_DEFAULT_VERBOSITY=0;;
3275 esac
3276 am_make=${MAKE-make}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3278 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3279 if ${am_cv_make_support_nested_variables+:} false; then :
3280   $as_echo_n "(cached) " >&6
3281 else
3282   if $as_echo 'TRUE=$(BAR$(V))
3283 BAR0=false
3284 BAR1=true
3285 V=1
3286 am__doit:
3287         @$(TRUE)
3288 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3289   am_cv_make_support_nested_variables=yes
3290 else
3291   am_cv_make_support_nested_variables=no
3292 fi
3293 fi
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3295 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3296 if test $am_cv_make_support_nested_variables = yes; then
3297     AM_V='$(V)'
3298   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3299 else
3300   AM_V=$AM_DEFAULT_VERBOSITY
3301   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3302 fi
3303 AM_BACKSLASH='\'
3304
3305
3306 # Used in docs/reference/version.xml
3307 GI_VERSION=1.39.3
3308
3309
3310 # Check for Win32
3311 # Make sure we can run config.sub.
3312 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3313   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3316 $as_echo_n "checking build system type... " >&6; }
3317 if ${ac_cv_build+:} false; then :
3318   $as_echo_n "(cached) " >&6
3319 else
3320   ac_build_alias=$build_alias
3321 test "x$ac_build_alias" = x &&
3322   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3323 test "x$ac_build_alias" = x &&
3324   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3325 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3326   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3327
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3330 $as_echo "$ac_cv_build" >&6; }
3331 case $ac_cv_build in
3332 *-*-*) ;;
3333 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3334 esac
3335 build=$ac_cv_build
3336 ac_save_IFS=$IFS; IFS='-'
3337 set x $ac_cv_build
3338 shift
3339 build_cpu=$1
3340 build_vendor=$2
3341 shift; shift
3342 # Remember, the first character of IFS is used to create $*,
3343 # except with old shells:
3344 build_os=$*
3345 IFS=$ac_save_IFS
3346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3350 $as_echo_n "checking host system type... " >&6; }
3351 if ${ac_cv_host+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test "x$host_alias" = x; then
3355   ac_cv_host=$ac_cv_build
3356 else
3357   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3358     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3359 fi
3360
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3363 $as_echo "$ac_cv_host" >&6; }
3364 case $ac_cv_host in
3365 *-*-*) ;;
3366 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3367 esac
3368 host=$ac_cv_host
3369 ac_save_IFS=$IFS; IFS='-'
3370 set x $ac_cv_host
3371 shift
3372 host_cpu=$1
3373 host_vendor=$2
3374 shift; shift
3375 # Remember, the first character of IFS is used to create $*,
3376 # except with old shells:
3377 host_os=$*
3378 IFS=$ac_save_IFS
3379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3380
3381
3382 case "$host" in
3383 *-*-mingw*)
3384         os_win32=yes
3385         ;;
3386 *)
3387         os_win32=no
3388         ;;
3389 esac
3390  if test "x$os_win32" = "xyes"; then
3391   OS_WIN32_TRUE=
3392   OS_WIN32_FALSE='#'
3393 else
3394   OS_WIN32_TRUE='#'
3395   OS_WIN32_FALSE=
3396 fi
3397
3398
3399 # Checks for programs.
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$CC"; then
3414   ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428   done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$ac_cv_prog_CC"; then
3445   ac_ct_CC=$CC
3446   # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$ac_ct_CC"; then
3454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_ac_ct_CC="gcc"
3464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468   done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476 $as_echo "$ac_ct_CC" >&6; }
3477 else
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482   if test "x$ac_ct_CC" = x; then
3483     CC=""
3484   else
3485     case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491     CC=$ac_ct_CC
3492   fi
3493 else
3494   CC="$ac_cv_prog_CC"
3495 fi
3496
3497 if test -z "$CC"; then
3498           if test -n "$ac_tool_prefix"; then
3499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}cc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$CC"; then
3507   ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_prog_CC="${ac_tool_prefix}cc"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535
3536   fi
3537 fi
3538 if test -z "$CC"; then
3539   # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   if test -n "$CC"; then
3547   ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549   ac_prog_rejected=no
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3558        ac_prog_rejected=yes
3559        continue
3560      fi
3561     ac_cv_prog_CC="cc"
3562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563     break 2
3564   fi
3565 done
3566   done
3567 IFS=$as_save_IFS
3568
3569 if test $ac_prog_rejected = yes; then
3570   # We found a bogon in the path, so make sure we never use it.
3571   set dummy $ac_cv_prog_CC
3572   shift
3573   if test $# != 0; then
3574     # We chose a different compiler from the bogus one.
3575     # However, it has the same basename, so the bogon will be chosen
3576     # first if we set CC to just the basename; use the full file name.
3577     shift
3578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3579   fi
3580 fi
3581 fi
3582 fi
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593 fi
3594 if test -z "$CC"; then
3595   if test -n "$ac_tool_prefix"; then
3596   for ac_prog in cl.exe
3597   do
3598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_CC+:} false; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -n "$CC"; then
3606   ac_cv_prog_CC="$CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_exec_ext in '' $ac_executable_extensions; do
3614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617     break 2
3618   fi
3619 done
3620   done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 CC=$ac_cv_prog_CC
3626 if test -n "$CC"; then
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3629 else
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635     test -n "$CC" && break
3636   done
3637 fi
3638 if test -z "$CC"; then
3639   ac_ct_CC=$CC
3640   for ac_prog in cl.exe
3641 do
3642   # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   if test -n "$ac_ct_CC"; then
3650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657     for ac_exec_ext in '' $ac_executable_extensions; do
3658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659     ac_cv_prog_ac_ct_CC="$ac_prog"
3660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664   done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3673 else
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678
3679   test -n "$ac_ct_CC" && break
3680 done
3681
3682   if test "x$ac_ct_CC" = x; then
3683     CC=""
3684   else
3685     case $cross_compiling:$ac_tool_warned in
3686 yes:)
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689 ac_tool_warned=yes ;;
3690 esac
3691     CC=$ac_ct_CC
3692   fi
3693 fi
3694
3695 fi
3696
3697
3698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "no acceptable C compiler found in \$PATH
3701 See \`config.log' for more details" "$LINENO" 5; }
3702
3703 # Provide some information about the compiler.
3704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3705 set X $ac_compile
3706 ac_compiler=$2
3707 for ac_option in --version -v -V -qversion; do
3708   { { ac_try="$ac_compiler $ac_option >&5"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3716   ac_status=$?
3717   if test -s conftest.err; then
3718     sed '10a\
3719 ... rest of stderr output deleted ...
3720          10q' conftest.err >conftest.er1
3721     cat conftest.er1 >&5
3722   fi
3723   rm -f conftest.er1 conftest.err
3724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725   test $ac_status = 0; }
3726 done
3727
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files_save=$ac_clean_files
3740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3741 # Try to create an executable without -o first, disregard a.out.
3742 # It will help us diagnose broken compilers, and finding out an intuition
3743 # of exeext.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3747
3748 # The possible output files:
3749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3750
3751 ac_rmfiles=
3752 for ac_file in $ac_files
3753 do
3754   case $ac_file in
3755     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3756     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3757   esac
3758 done
3759 rm -f $ac_rmfiles
3760
3761 if { { ac_try="$ac_link_default"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_link_default") 2>&5
3769   ac_status=$?
3770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771   test $ac_status = 0; }; then :
3772   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3774 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3775 # so that the user can short-circuit this test for compilers unknown to
3776 # Autoconf.
3777 for ac_file in $ac_files ''
3778 do
3779   test -f "$ac_file" || continue
3780   case $ac_file in
3781     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3782         ;;
3783     [ab].out )
3784         # We found the default executable, but exeext='' is most
3785         # certainly right.
3786         break;;
3787     *.* )
3788         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3789         then :; else
3790            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791         fi
3792         # We set ac_cv_exeext here because the later test for it is not
3793         # safe: cross compilers may not add the suffix if given an `-o'
3794         # argument, so we may need to know it at that point already.
3795         # Even if this section looks crufty: it has the advantage of
3796         # actually working.
3797         break;;
3798     * )
3799         break;;
3800   esac
3801 done
3802 test "$ac_cv_exeext" = no && ac_cv_exeext=
3803
3804 else
3805   ac_file=''
3806 fi
3807 if test -z "$ac_file"; then :
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error 77 "C compiler cannot create executables
3816 See \`config.log' for more details" "$LINENO" 5; }
3817 else
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819 $as_echo "yes" >&6; }
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3822 $as_echo_n "checking for C compiler default output file name... " >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3824 $as_echo "$ac_file" >&6; }
3825 ac_exeext=$ac_cv_exeext
3826
3827 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3828 ac_clean_files=$ac_clean_files_save
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3830 $as_echo_n "checking for suffix of executables... " >&6; }
3831 if { { ac_try="$ac_link"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838   (eval "$ac_link") 2>&5
3839   ac_status=$?
3840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841   test $ac_status = 0; }; then :
3842   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3843 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3844 # work properly (i.e., refer to `conftest.exe'), while it won't with
3845 # `rm'.
3846 for ac_file in conftest.exe conftest conftest.*; do
3847   test -f "$ac_file" || continue
3848   case $ac_file in
3849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3850     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851           break;;
3852     * ) break;;
3853   esac
3854 done
3855 else
3856   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3859 See \`config.log' for more details" "$LINENO" 5; }
3860 fi
3861 rm -f conftest conftest$ac_cv_exeext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3863 $as_echo "$ac_cv_exeext" >&6; }
3864
3865 rm -f conftest.$ac_ext
3866 EXEEXT=$ac_cv_exeext
3867 ac_exeext=$EXEEXT
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870 #include <stdio.h>
3871 int
3872 main ()
3873 {
3874 FILE *f = fopen ("conftest.out", "w");
3875  return ferror (f) || fclose (f) != 0;
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 ac_clean_files="$ac_clean_files conftest.out"
3882 # Check that the compiler produces executables we can run.  If not, either
3883 # the compiler is broken, or we cross compile.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3885 $as_echo_n "checking whether we are cross compiling... " >&6; }
3886 if test "$cross_compiling" != yes; then
3887   { { ac_try="$ac_link"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894   (eval "$ac_link") 2>&5
3895   ac_status=$?
3896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897   test $ac_status = 0; }
3898   if { ac_try='./conftest$ac_cv_exeext'
3899   { { case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905   (eval "$ac_try") 2>&5
3906   ac_status=$?
3907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908   test $ac_status = 0; }; }; then
3909     cross_compiling=no
3910   else
3911     if test "$cross_compiling" = maybe; then
3912         cross_compiling=yes
3913     else
3914         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $? "cannot run C compiled programs.
3917 If you meant to cross compile, use \`--host'.
3918 See \`config.log' for more details" "$LINENO" 5; }
3919     fi
3920   fi
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3923 $as_echo "$cross_compiling" >&6; }
3924
3925 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3926 ac_clean_files=$ac_clean_files_save
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3928 $as_echo_n "checking for suffix of object files... " >&6; }
3929 if ${ac_cv_objext+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.o conftest.obj
3944 if { { ac_try="$ac_compile"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951   (eval "$ac_compile") 2>&5
3952   ac_status=$?
3953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954   test $ac_status = 0; }; then :
3955   for ac_file in conftest.o conftest.obj conftest.*; do
3956   test -f "$ac_file" || continue;
3957   case $ac_file in
3958     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3959     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3960        break;;
3961   esac
3962 done
3963 else
3964   $as_echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot compute suffix of object files: cannot compile
3970 See \`config.log' for more details" "$LINENO" 5; }
3971 fi
3972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3975 $as_echo "$ac_cv_objext" >&6; }
3976 OBJEXT=$ac_cv_objext
3977 ac_objext=$OBJEXT
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3980 if ${ac_cv_c_compiler_gnu+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985
3986 int
3987 main ()
3988 {
3989 #ifndef __GNUC__
3990        choke me
3991 #endif
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   ac_compiler_gnu=yes
3999 else
4000   ac_compiler_gnu=no
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4008 if test $ac_compiler_gnu = yes; then
4009   GCC=yes
4010 else
4011   GCC=
4012 fi
4013 ac_test_CFLAGS=${CFLAGS+set}
4014 ac_save_CFLAGS=$CFLAGS
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4017 if ${ac_cv_prog_cc_g+:} false; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   ac_save_c_werror_flag=$ac_c_werror_flag
4021    ac_c_werror_flag=yes
4022    ac_cv_prog_cc_g=no
4023    CFLAGS="-g"
4024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026
4027 int
4028 main ()
4029 {
4030
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036   ac_cv_prog_cc_g=yes
4037 else
4038   CFLAGS=""
4039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051
4052 else
4053   ac_c_werror_flag=$ac_save_c_werror_flag
4054          CFLAGS="-g"
4055          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067   ac_cv_prog_cc_g=yes
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074    ac_c_werror_flag=$ac_save_c_werror_flag
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4077 $as_echo "$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079   CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081   if test "$GCC" = yes; then
4082     CFLAGS="-g -O2"
4083   else
4084     CFLAGS="-g"
4085   fi
4086 else
4087   if test "$GCC" = yes; then
4088     CFLAGS="-O2"
4089   else
4090     CFLAGS=
4091   fi
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4095 if ${ac_cv_prog_cc_c89+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   ac_cv_prog_cc_c89=no
4099 ac_save_CC=$CC
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #include <stdarg.h>
4103 #include <stdio.h>
4104 struct stat;
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4109      char **p;
4110      int i;
4111 {
4112   return p[i];
4113 }
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4115 {
4116   char *s;
4117   va_list v;
4118   va_start (v,p);
4119   s = g (p, va_arg (v,int));
4120   va_end (v);
4121   return s;
4122 }
4123
4124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4125    function prototypes and stuff, but not '\xHH' hex character constants.
4126    These don't provoke an error unfortunately, instead are silently treated
4127    as 'x'.  The following induces an error, until -std is added to get
4128    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4129    array size at least.  It's necessary to write '\x00'==0 to get something
4130    that's true only with -std.  */
4131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4132
4133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4134    inside strings and character constants.  */
4135 #define FOO(x) 'x'
4136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4137
4138 int test (int i, double x);
4139 struct s1 {int (*f) (int a);};
4140 struct s2 {int (*f) (double a);};
4141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4142 int argc;
4143 char **argv;
4144 int
4145 main ()
4146 {
4147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4153         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 do
4155   CC="$ac_save_CC $ac_arg"
4156   if ac_fn_c_try_compile "$LINENO"; then :
4157   ac_cv_prog_cc_c89=$ac_arg
4158 fi
4159 rm -f core conftest.err conftest.$ac_objext
4160   test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 done
4162 rm -f conftest.$ac_ext
4163 CC=$ac_save_CC
4164
4165 fi
4166 # AC_CACHE_VAL
4167 case "x$ac_cv_prog_cc_c89" in
4168   x)
4169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 $as_echo "none needed" >&6; } ;;
4171   xno)
4172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4173 $as_echo "unsupported" >&6; } ;;
4174   *)
4175     CC="$CC $ac_cv_prog_cc_c89"
4176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4178 esac
4179 if test "x$ac_cv_prog_cc_c89" != xno; then :
4180
4181 fi
4182
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 DEPDIR="${am__leading_dot}deps"
4189
4190 ac_config_commands="$ac_config_commands depfiles"
4191
4192
4193 am_make=${MAKE-make}
4194 cat > confinc << 'END'
4195 am__doit:
4196         @echo this is the am__doit target
4197 .PHONY: am__doit
4198 END
4199 # If we don't find an include directive, just comment out the code.
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4201 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4202 am__include="#"
4203 am__quote=
4204 _am_result=none
4205 # First try GNU make style include.
4206 echo "include confinc" > confmf
4207 # Ignore all kinds of additional output from 'make'.
4208 case `$am_make -s -f confmf 2> /dev/null` in #(
4209 *the\ am__doit\ target*)
4210   am__include=include
4211   am__quote=
4212   _am_result=GNU
4213   ;;
4214 esac
4215 # Now try BSD make style include.
4216 if test "$am__include" = "#"; then
4217    echo '.include "confinc"' > confmf
4218    case `$am_make -s -f confmf 2> /dev/null` in #(
4219    *the\ am__doit\ target*)
4220      am__include=.include
4221      am__quote="\""
4222      _am_result=BSD
4223      ;;
4224    esac
4225 fi
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4229 $as_echo "$_am_result" >&6; }
4230 rm -f confinc confmf
4231
4232 # Check whether --enable-dependency-tracking was given.
4233 if test "${enable_dependency_tracking+set}" = set; then :
4234   enableval=$enable_dependency_tracking;
4235 fi
4236
4237 if test "x$enable_dependency_tracking" != xno; then
4238   am_depcomp="$ac_aux_dir/depcomp"
4239   AMDEPBACKSLASH='\'
4240   am__nodep='_no'
4241 fi
4242  if test "x$enable_dependency_tracking" != xno; then
4243   AMDEP_TRUE=
4244   AMDEP_FALSE='#'
4245 else
4246   AMDEP_TRUE='#'
4247   AMDEP_FALSE=
4248 fi
4249
4250
4251
4252 depcc="$CC"   am_compiler_list=
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4255 $as_echo_n "checking dependency style of $depcc... " >&6; }
4256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4260   # We make a subdir and do the tests there.  Otherwise we can end up
4261   # making bogus files that we don't know about and never remove.  For
4262   # instance it was reported that on HP-UX the gcc test will end up
4263   # making a dummy file named 'D' -- because '-MD' means "put the output
4264   # in D".
4265   rm -rf conftest.dir
4266   mkdir conftest.dir
4267   # Copy depcomp to subdir because otherwise we won't find it if we're
4268   # using a relative directory.
4269   cp "$am_depcomp" conftest.dir
4270   cd conftest.dir
4271   # We will build objects and dependencies in a subdirectory because
4272   # it helps to detect inapplicable dependency modes.  For instance
4273   # both Tru64's cc and ICC support -MD to output dependencies as a
4274   # side effect of compilation, but ICC will put the dependencies in
4275   # the current directory while Tru64 will put them in the object
4276   # directory.
4277   mkdir sub
4278
4279   am_cv_CC_dependencies_compiler_type=none
4280   if test "$am_compiler_list" = ""; then
4281      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4282   fi
4283   am__universal=false
4284   case " $depcc " in #(
4285      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4286      esac
4287
4288   for depmode in $am_compiler_list; do
4289     # Setup a source with many dependencies, because some compilers
4290     # like to wrap large dependency lists on column 80 (with \), and
4291     # we should not choose a depcomp mode which is confused by this.
4292     #
4293     # We need to recreate these files for each test, as the compiler may
4294     # overwrite some of them when testing with obscure command lines.
4295     # This happens at least with the AIX C compiler.
4296     : > sub/conftest.c
4297     for i in 1 2 3 4 5 6; do
4298       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4300       # Solaris 10 /bin/sh.
4301       echo '/* dummy */' > sub/conftst$i.h
4302     done
4303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4304
4305     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4306     # mode.  It turns out that the SunPro C++ compiler does not properly
4307     # handle '-M -o', and we need to detect this.  Also, some Intel
4308     # versions had trouble with output in subdirs.
4309     am__obj=sub/conftest.${OBJEXT-o}
4310     am__minus_obj="-o $am__obj"
4311     case $depmode in
4312     gcc)
4313       # This depmode causes a compiler race in universal mode.
4314       test "$am__universal" = false || continue
4315       ;;
4316     nosideeffect)
4317       # After this tag, mechanisms are not by side-effect, so they'll
4318       # only be used when explicitly requested.
4319       if test "x$enable_dependency_tracking" = xyes; then
4320         continue
4321       else
4322         break
4323       fi
4324       ;;
4325     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326       # This compiler won't grok '-c -o', but also, the minuso test has
4327       # not run yet.  These depmodes are late enough in the game, and
4328       # so weak that their functioning should not be impacted.
4329       am__obj=conftest.${OBJEXT-o}
4330       am__minus_obj=
4331       ;;
4332     none) break ;;
4333     esac
4334     if depmode=$depmode \
4335        source=sub/conftest.c object=$am__obj \
4336        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338          >/dev/null 2>conftest.err &&
4339        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343       # icc doesn't choke on unknown options, it will just issue warnings
4344       # or remarks (even with -Werror).  So we grep stderr for any message
4345       # that says an option was ignored or not supported.
4346       # When given -MP, icc 7.0 and 7.1 complain thusly:
4347       #   icc: Command line warning: ignoring option '-M'; no argument required
4348       # The diagnosis changed in icc 8.0:
4349       #   icc: Command line remark: option '-MP' not supported
4350       if (grep 'ignoring option' conftest.err ||
4351           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352         am_cv_CC_dependencies_compiler_type=$depmode
4353         break
4354       fi
4355     fi
4356   done
4357
4358   cd ..
4359   rm -rf conftest.dir
4360 else
4361   am_cv_CC_dependencies_compiler_type=none
4362 fi
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4368
4369  if
4370   test "x$enable_dependency_tracking" != xno \
4371   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372   am__fastdepCC_TRUE=
4373   am__fastdepCC_FALSE='#'
4374 else
4375   am__fastdepCC_TRUE='#'
4376   am__fastdepCC_FALSE=
4377 fi
4378
4379
4380 if test "x$CC" != xcc; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4382 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4385 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4386 fi
4387 set dummy $CC; ac_cc=`$as_echo "$2" |
4388                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4389 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h.  */
4394
4395 int
4396 main ()
4397 {
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 # Make sure it works both with $CC and with simple cc.
4404 # We do the test twice because some compilers refuse to overwrite an
4405 # existing .o file with -o, though they will create one.
4406 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4407 rm -f conftest2.*
4408 if { { case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417   test $ac_status = 0; } &&
4418    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427   test $ac_status = 0; };
4428 then
4429   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4430   if test "x$CC" != xcc; then
4431     # Test first that cc exists at all.
4432     if { ac_try='cc -c conftest.$ac_ext >&5'
4433   { { case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439   (eval "$ac_try") 2>&5
4440   ac_status=$?
4441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442   test $ac_status = 0; }; }; then
4443       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4444       rm -f conftest2.*
4445       if { { case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451   (eval "$ac_try") 2>&5
4452   ac_status=$?
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; } &&
4455          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461   (eval "$ac_try") 2>&5
4462   ac_status=$?
4463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464   test $ac_status = 0; };
4465       then
4466         # cc works too.
4467         :
4468       else
4469         # cc exists but doesn't like -o.
4470         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4471       fi
4472     fi
4473   fi
4474 else
4475   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4476 fi
4477 rm -f core conftest*
4478
4479 fi
4480 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486
4487 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4488
4489 fi
4490
4491 # FIXME: we rely on the cache variable name because
4492 # there is no other way.
4493 set dummy $CC
4494 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4495 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4496 if test "$am_t" != yes; then
4497    # Losing compiler, so override with the script.
4498    # FIXME: It is wrong to rewrite CC.
4499    # But if we don't then we get into trouble of one sort or another.
4500    # A longer-term fix would be to have automake use am__CC in this case,
4501    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4502    CC="$am_aux_dir/compile $CC"
4503 fi
4504
4505
4506
4507
4508 # Initialize libtool
4509
4510 case `pwd` in
4511   *\ * | *\     *)
4512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4513 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4514 esac
4515
4516
4517
4518 macro_version='2.4.2'
4519 macro_revision='1.3337'
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533 ltmain="$ac_aux_dir/ltmain.sh"
4534
4535 # Backslashify metacharacters that are still active within
4536 # double-quoted strings.
4537 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4538
4539 # Same as above, but do not quote variable references.
4540 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4541
4542 # Sed substitution to delay expansion of an escaped shell variable in a
4543 # double_quote_subst'ed string.
4544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4545
4546 # Sed substitution to delay expansion of an escaped single quote.
4547 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4548
4549 # Sed substitution to avoid accidental globbing in evaled expressions
4550 no_glob_subst='s/\*/\\\*/g'
4551
4552 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4553 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4554 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4557 $as_echo_n "checking how to print strings... " >&6; }
4558 # Test print first, because it will be a builtin if present.
4559 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4560    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4561   ECHO='print -r --'
4562 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4563   ECHO='printf %s\n'
4564 else
4565   # Use this function as a fallback that always works.
4566   func_fallback_echo ()
4567   {
4568     eval 'cat <<_LTECHO_EOF
4569 $1
4570 _LTECHO_EOF'
4571   }
4572   ECHO='func_fallback_echo'
4573 fi
4574
4575 # func_echo_all arg...
4576 # Invoke $ECHO with all args, space-separated.
4577 func_echo_all ()
4578 {
4579     $ECHO ""
4580 }
4581
4582 case "$ECHO" in
4583   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4584 $as_echo "printf" >&6; } ;;
4585   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4586 $as_echo "print -r" >&6; } ;;
4587   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4588 $as_echo "cat" >&6; } ;;
4589 esac
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4605 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4606 if ${ac_cv_path_SED+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4610      for ac_i in 1 2 3 4 5 6 7; do
4611        ac_script="$ac_script$as_nl$ac_script"
4612      done
4613      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4614      { ac_script=; unset ac_script;}
4615      if test -z "$SED"; then
4616   ac_path_SED_found=false
4617   # Loop through the user's path and test for each of PROGNAME-LIST
4618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621   IFS=$as_save_IFS
4622   test -z "$as_dir" && as_dir=.
4623     for ac_prog in sed gsed; do
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4626       as_fn_executable_p "$ac_path_SED" || continue
4627 # Check for GNU ac_path_SED and select it if it is found.
4628   # Check for GNU $ac_path_SED
4629 case `"$ac_path_SED" --version 2>&1` in
4630 *GNU*)
4631   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4632 *)
4633   ac_count=0
4634   $as_echo_n 0123456789 >"conftest.in"
4635   while :
4636   do
4637     cat "conftest.in" "conftest.in" >"conftest.tmp"
4638     mv "conftest.tmp" "conftest.in"
4639     cp "conftest.in" "conftest.nl"
4640     $as_echo '' >> "conftest.nl"
4641     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643     as_fn_arith $ac_count + 1 && ac_count=$as_val
4644     if test $ac_count -gt ${ac_path_SED_max-0}; then
4645       # Best one so far, save it but keep looking for a better one
4646       ac_cv_path_SED="$ac_path_SED"
4647       ac_path_SED_max=$ac_count
4648     fi
4649     # 10*(2^10) chars as input seems more than enough
4650     test $ac_count -gt 10 && break
4651   done
4652   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4653 esac
4654
4655       $ac_path_SED_found && break 3
4656     done
4657   done
4658   done
4659 IFS=$as_save_IFS
4660   if test -z "$ac_cv_path_SED"; then
4661     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4662   fi
4663 else
4664   ac_cv_path_SED=$SED
4665 fi
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4669 $as_echo "$ac_cv_path_SED" >&6; }
4670  SED="$ac_cv_path_SED"
4671   rm -f conftest.sed
4672
4673 test -z "$SED" && SED=sed
4674 Xsed="$SED -e 1s/^X//"
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4687 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4688 if ${ac_cv_path_GREP+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -z "$GREP"; then
4692   ac_path_GREP_found=false
4693   # Loop through the user's path and test for each of PROGNAME-LIST
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_prog in grep ggrep; do
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4702       as_fn_executable_p "$ac_path_GREP" || continue
4703 # Check for GNU ac_path_GREP and select it if it is found.
4704   # Check for GNU $ac_path_GREP
4705 case `"$ac_path_GREP" --version 2>&1` in
4706 *GNU*)
4707   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4708 *)
4709   ac_count=0
4710   $as_echo_n 0123456789 >"conftest.in"
4711   while :
4712   do
4713     cat "conftest.in" "conftest.in" >"conftest.tmp"
4714     mv "conftest.tmp" "conftest.in"
4715     cp "conftest.in" "conftest.nl"
4716     $as_echo 'GREP' >> "conftest.nl"
4717     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719     as_fn_arith $ac_count + 1 && ac_count=$as_val
4720     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4721       # Best one so far, save it but keep looking for a better one
4722       ac_cv_path_GREP="$ac_path_GREP"
4723       ac_path_GREP_max=$ac_count
4724     fi
4725     # 10*(2^10) chars as input seems more than enough
4726     test $ac_count -gt 10 && break
4727   done
4728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731       $ac_path_GREP_found && break 3
4732     done
4733   done
4734   done
4735 IFS=$as_save_IFS
4736   if test -z "$ac_cv_path_GREP"; then
4737     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738   fi
4739 else
4740   ac_cv_path_GREP=$GREP
4741 fi
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4745 $as_echo "$ac_cv_path_GREP" >&6; }
4746  GREP="$ac_cv_path_GREP"
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4750 $as_echo_n "checking for egrep... " >&6; }
4751 if ${ac_cv_path_EGREP+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4755    then ac_cv_path_EGREP="$GREP -E"
4756    else
4757      if test -z "$EGREP"; then
4758   ac_path_EGREP_found=false
4759   # Loop through the user's path and test for each of PROGNAME-LIST
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_prog in egrep; do
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4768       as_fn_executable_p "$ac_path_EGREP" || continue
4769 # Check for GNU ac_path_EGREP and select it if it is found.
4770   # Check for GNU $ac_path_EGREP
4771 case `"$ac_path_EGREP" --version 2>&1` in
4772 *GNU*)
4773   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4774 *)
4775   ac_count=0
4776   $as_echo_n 0123456789 >"conftest.in"
4777   while :
4778   do
4779     cat "conftest.in" "conftest.in" >"conftest.tmp"
4780     mv "conftest.tmp" "conftest.in"
4781     cp "conftest.in" "conftest.nl"
4782     $as_echo 'EGREP' >> "conftest.nl"
4783     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785     as_fn_arith $ac_count + 1 && ac_count=$as_val
4786     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4787       # Best one so far, save it but keep looking for a better one
4788       ac_cv_path_EGREP="$ac_path_EGREP"
4789       ac_path_EGREP_max=$ac_count
4790     fi
4791     # 10*(2^10) chars as input seems more than enough
4792     test $ac_count -gt 10 && break
4793   done
4794   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795 esac
4796
4797       $ac_path_EGREP_found && break 3
4798     done
4799   done
4800   done
4801 IFS=$as_save_IFS
4802   if test -z "$ac_cv_path_EGREP"; then
4803     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4804   fi
4805 else
4806   ac_cv_path_EGREP=$EGREP
4807 fi
4808
4809    fi
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4812 $as_echo "$ac_cv_path_EGREP" >&6; }
4813  EGREP="$ac_cv_path_EGREP"
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4817 $as_echo_n "checking for fgrep... " >&6; }
4818 if ${ac_cv_path_FGREP+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4822    then ac_cv_path_FGREP="$GREP -F"
4823    else
4824      if test -z "$FGREP"; then
4825   ac_path_FGREP_found=false
4826   # Loop through the user's path and test for each of PROGNAME-LIST
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_prog in fgrep; do
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4835       as_fn_executable_p "$ac_path_FGREP" || continue
4836 # Check for GNU ac_path_FGREP and select it if it is found.
4837   # Check for GNU $ac_path_FGREP
4838 case `"$ac_path_FGREP" --version 2>&1` in
4839 *GNU*)
4840   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4841 *)
4842   ac_count=0
4843   $as_echo_n 0123456789 >"conftest.in"
4844   while :
4845   do
4846     cat "conftest.in" "conftest.in" >"conftest.tmp"
4847     mv "conftest.tmp" "conftest.in"
4848     cp "conftest.in" "conftest.nl"
4849     $as_echo 'FGREP' >> "conftest.nl"
4850     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852     as_fn_arith $ac_count + 1 && ac_count=$as_val
4853     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4854       # Best one so far, save it but keep looking for a better one
4855       ac_cv_path_FGREP="$ac_path_FGREP"
4856       ac_path_FGREP_max=$ac_count
4857     fi
4858     # 10*(2^10) chars as input seems more than enough
4859     test $ac_count -gt 10 && break
4860   done
4861   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864       $ac_path_FGREP_found && break 3
4865     done
4866   done
4867   done
4868 IFS=$as_save_IFS
4869   if test -z "$ac_cv_path_FGREP"; then
4870     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871   fi
4872 else
4873   ac_cv_path_FGREP=$FGREP
4874 fi
4875
4876    fi
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4879 $as_echo "$ac_cv_path_FGREP" >&6; }
4880  FGREP="$ac_cv_path_FGREP"
4881
4882
4883 test -z "$GREP" && GREP=grep
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 # Check whether --with-gnu-ld was given.
4904 if test "${with_gnu_ld+set}" = set; then :
4905   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4906 else
4907   with_gnu_ld=no
4908 fi
4909
4910 ac_prog=ld
4911 if test "$GCC" = yes; then
4912   # Check if gcc -print-prog-name=ld gives a path.
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4914 $as_echo_n "checking for ld used by $CC... " >&6; }
4915   case $host in
4916   *-*-mingw*)
4917     # gcc leaves a trailing carriage return which upsets mingw
4918     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4919   *)
4920     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4921   esac
4922   case $ac_prog in
4923     # Accept absolute paths.
4924     [\\/]* | ?:[\\/]*)
4925       re_direlt='/[^/][^/]*/\.\./'
4926       # Canonicalize the pathname of ld
4927       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4928       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4929         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4930       done
4931       test -z "$LD" && LD="$ac_prog"
4932       ;;
4933   "")
4934     # If it fails, then pretend we aren't using GCC.
4935     ac_prog=ld
4936     ;;
4937   *)
4938     # If it is relative, then search for the first ld in PATH.
4939     with_gnu_ld=unknown
4940     ;;
4941   esac
4942 elif test "$with_gnu_ld" = yes; then
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4944 $as_echo_n "checking for GNU ld... " >&6; }
4945 else
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4947 $as_echo_n "checking for non-GNU ld... " >&6; }
4948 fi
4949 if ${lt_cv_path_LD+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -z "$LD"; then
4953   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4954   for ac_dir in $PATH; do
4955     IFS="$lt_save_ifs"
4956     test -z "$ac_dir" && ac_dir=.
4957     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4958       lt_cv_path_LD="$ac_dir/$ac_prog"
4959       # Check to see if the program is GNU ld.  I'd rather use --version,
4960       # but apparently some variants of GNU ld only accept -v.
4961       # Break only if it was the GNU/non-GNU ld that we prefer.
4962       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4963       *GNU* | *'with BFD'*)
4964         test "$with_gnu_ld" != no && break
4965         ;;
4966       *)
4967         test "$with_gnu_ld" != yes && break
4968         ;;
4969       esac
4970     fi
4971   done
4972   IFS="$lt_save_ifs"
4973 else
4974   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4975 fi
4976 fi
4977
4978 LD="$lt_cv_path_LD"
4979 if test -n "$LD"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4981 $as_echo "$LD" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4988 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4989 if ${lt_cv_prog_gnu_ld+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4993 case `$LD -v 2>&1 </dev/null` in
4994 *GNU* | *'with BFD'*)
4995   lt_cv_prog_gnu_ld=yes
4996   ;;
4997 *)
4998   lt_cv_prog_gnu_ld=no
4999   ;;
5000 esac
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5003 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5004 with_gnu_ld=$lt_cv_prog_gnu_ld
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5015 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5016 if ${lt_cv_path_NM+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -n "$NM"; then
5020   # Let the user override the test.
5021   lt_cv_path_NM="$NM"
5022 else
5023   lt_nm_to_check="${ac_tool_prefix}nm"
5024   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5025     lt_nm_to_check="$lt_nm_to_check nm"
5026   fi
5027   for lt_tmp_nm in $lt_nm_to_check; do
5028     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5029     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5030       IFS="$lt_save_ifs"
5031       test -z "$ac_dir" && ac_dir=.
5032       tmp_nm="$ac_dir/$lt_tmp_nm"
5033       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5034         # Check to see if the nm accepts a BSD-compat flag.
5035         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5036         #   nm: unknown option "B" ignored
5037         # Tru64's nm complains that /dev/null is an invalid object file
5038         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5039         */dev/null* | *'Invalid file or object type'*)
5040           lt_cv_path_NM="$tmp_nm -B"
5041           break
5042           ;;
5043         *)
5044           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5045           */dev/null*)
5046             lt_cv_path_NM="$tmp_nm -p"
5047             break
5048             ;;
5049           *)
5050             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5051             continue # so that we can try to find one that supports BSD flags
5052             ;;
5053           esac
5054           ;;
5055         esac
5056       fi
5057     done
5058     IFS="$lt_save_ifs"
5059   done
5060   : ${lt_cv_path_NM=no}
5061 fi
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5064 $as_echo "$lt_cv_path_NM" >&6; }
5065 if test "$lt_cv_path_NM" != "no"; then
5066   NM="$lt_cv_path_NM"
5067 else
5068   # Didn't find any BSD compatible name lister, look for dumpbin.
5069   if test -n "$DUMPBIN"; then :
5070     # Let the user override the test.
5071   else
5072     if test -n "$ac_tool_prefix"; then
5073   for ac_prog in dumpbin "link -dump"
5074   do
5075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_DUMPBIN+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if test -n "$DUMPBIN"; then
5083   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 DUMPBIN=$ac_cv_prog_DUMPBIN
5103 if test -n "$DUMPBIN"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5105 $as_echo "$DUMPBIN" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112     test -n "$DUMPBIN" && break
5113   done
5114 fi
5115 if test -z "$DUMPBIN"; then
5116   ac_ct_DUMPBIN=$DUMPBIN
5117   for ac_prog in dumpbin "link -dump"
5118 do
5119   # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$ac_ct_DUMPBIN"; then
5127   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5147 if test -n "$ac_ct_DUMPBIN"; then
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5149 $as_echo "$ac_ct_DUMPBIN" >&6; }
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156   test -n "$ac_ct_DUMPBIN" && break
5157 done
5158
5159   if test "x$ac_ct_DUMPBIN" = x; then
5160     DUMPBIN=":"
5161   else
5162     case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166 ac_tool_warned=yes ;;
5167 esac
5168     DUMPBIN=$ac_ct_DUMPBIN
5169   fi
5170 fi
5171
5172     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5173     *COFF*)
5174       DUMPBIN="$DUMPBIN -symbols"
5175       ;;
5176     *)
5177       DUMPBIN=:
5178       ;;
5179     esac
5180   fi
5181
5182   if test "$DUMPBIN" != ":"; then
5183     NM="$DUMPBIN"
5184   fi
5185 fi
5186 test -z "$NM" && NM=nm
5187
5188
5189
5190
5191
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5194 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5195 if ${lt_cv_nm_interface+:} false; then :
5196   $as_echo_n "(cached) " >&6
5197 else
5198   lt_cv_nm_interface="BSD nm"
5199   echo "int some_variable = 0;" > conftest.$ac_ext
5200   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5201   (eval "$ac_compile" 2>conftest.err)
5202   cat conftest.err >&5
5203   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5204   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5205   cat conftest.err >&5
5206   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5207   cat conftest.out >&5
5208   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5209     lt_cv_nm_interface="MS dumpbin"
5210   fi
5211   rm -f conftest*
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5214 $as_echo "$lt_cv_nm_interface" >&6; }
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5217 $as_echo_n "checking whether ln -s works... " >&6; }
5218 LN_S=$as_ln_s
5219 if test "$LN_S" = "ln -s"; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5224 $as_echo "no, using $LN_S" >&6; }
5225 fi
5226
5227 # find the maximum length of command line arguments
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5229 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5230 if ${lt_cv_sys_max_cmd_len+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233     i=0
5234   teststring="ABCD"
5235
5236   case $build_os in
5237   msdosdjgpp*)
5238     # On DJGPP, this test can blow up pretty badly due to problems in libc
5239     # (any single argument exceeding 2000 bytes causes a buffer overrun
5240     # during glob expansion).  Even if it were fixed, the result of this
5241     # check would be larger than it should be.
5242     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5243     ;;
5244
5245   gnu*)
5246     # Under GNU Hurd, this test is not required because there is
5247     # no limit to the length of command line arguments.
5248     # Libtool will interpret -1 as no limit whatsoever
5249     lt_cv_sys_max_cmd_len=-1;
5250     ;;
5251
5252   cygwin* | mingw* | cegcc*)
5253     # On Win9x/ME, this test blows up -- it succeeds, but takes
5254     # about 5 minutes as the teststring grows exponentially.
5255     # Worse, since 9x/ME are not pre-emptively multitasking,
5256     # you end up with a "frozen" computer, even though with patience
5257     # the test eventually succeeds (with a max line length of 256k).
5258     # Instead, let's just punt: use the minimum linelength reported by
5259     # all of the supported platforms: 8192 (on NT/2K/XP).
5260     lt_cv_sys_max_cmd_len=8192;
5261     ;;
5262
5263   mint*)
5264     # On MiNT this can take a long time and run out of memory.
5265     lt_cv_sys_max_cmd_len=8192;
5266     ;;
5267
5268   amigaos*)
5269     # On AmigaOS with pdksh, this test takes hours, literally.
5270     # So we just punt and use a minimum line length of 8192.
5271     lt_cv_sys_max_cmd_len=8192;
5272     ;;
5273
5274   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5275     # This has been around since 386BSD, at least.  Likely further.
5276     if test -x /sbin/sysctl; then
5277       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5278     elif test -x /usr/sbin/sysctl; then
5279       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5280     else
5281       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5282     fi
5283     # And add a safety zone
5284     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5286     ;;
5287
5288   interix*)
5289     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5290     lt_cv_sys_max_cmd_len=196608
5291     ;;
5292
5293   os2*)
5294     # The test takes a long time on OS/2.
5295     lt_cv_sys_max_cmd_len=8192
5296     ;;
5297
5298   osf*)
5299     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5300     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5301     # nice to cause kernel panics so lets avoid the loop below.
5302     # First set a reasonable default.
5303     lt_cv_sys_max_cmd_len=16384
5304     #
5305     if test -x /sbin/sysconfig; then
5306       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5307         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5308       esac
5309     fi
5310     ;;
5311   sco3.2v5*)
5312     lt_cv_sys_max_cmd_len=102400
5313     ;;
5314   sysv5* | sco5v6* | sysv4.2uw2*)
5315     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5316     if test -n "$kargmax"; then
5317       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5318     else
5319       lt_cv_sys_max_cmd_len=32768
5320     fi
5321     ;;
5322   *)
5323     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5324     if test -n "$lt_cv_sys_max_cmd_len"; then
5325       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5326       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5327     else
5328       # Make teststring a little bigger before we do anything with it.
5329       # a 1K string should be a reasonable start.
5330       for i in 1 2 3 4 5 6 7 8 ; do
5331         teststring=$teststring$teststring
5332       done
5333       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5334       # If test is not a shell built-in, we'll probably end up computing a
5335       # maximum length that is only half of the actual maximum length, but
5336       # we can't tell.
5337       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5338                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5339               test $i != 17 # 1/2 MB should be enough
5340       do
5341         i=`expr $i + 1`
5342         teststring=$teststring$teststring
5343       done
5344       # Only check the string length outside the loop.
5345       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5346       teststring=
5347       # Add a significant safety factor because C++ compilers can tack on
5348       # massive amounts of additional arguments before passing them to the
5349       # linker.  It appears as though 1/2 is a usable value.
5350       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5351     fi
5352     ;;
5353   esac
5354
5355 fi
5356
5357 if test -n $lt_cv_sys_max_cmd_len ; then
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5359 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5360 else
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5362 $as_echo "none" >&6; }
5363 fi
5364 max_cmd_len=$lt_cv_sys_max_cmd_len
5365
5366
5367
5368
5369
5370
5371 : ${CP="cp -f"}
5372 : ${MV="mv -f"}
5373 : ${RM="rm -f"}
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5376 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5377 # Try some XSI features
5378 xsi_shell=no
5379 ( _lt_dummy="a/b/c"
5380   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5381       = c,a/b,b/c, \
5382     && eval 'test $(( 1 + 1 )) -eq 2 \
5383     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5384   && xsi_shell=yes
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5386 $as_echo "$xsi_shell" >&6; }
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5390 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5391 lt_shell_append=no
5392 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5393     >/dev/null 2>&1 \
5394   && lt_shell_append=yes
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5396 $as_echo "$lt_shell_append" >&6; }
5397
5398
5399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5400   lt_unset=unset
5401 else
5402   lt_unset=false
5403 fi
5404
5405
5406
5407
5408
5409 # test EBCDIC or ASCII
5410 case `echo X|tr X '\101'` in
5411  A) # ASCII based system
5412     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5413   lt_SP2NL='tr \040 \012'
5414   lt_NL2SP='tr \015\012 \040\040'
5415   ;;
5416  *) # EBCDIC based system
5417   lt_SP2NL='tr \100 \n'
5418   lt_NL2SP='tr \r\n \100\100'
5419   ;;
5420 esac
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5431 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5432 if ${lt_cv_to_host_file_cmd+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   case $host in
5436   *-*-mingw* )
5437     case $build in
5438       *-*-mingw* ) # actually msys
5439         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5440         ;;
5441       *-*-cygwin* )
5442         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5443         ;;
5444       * ) # otherwise, assume *nix
5445         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5446         ;;
5447     esac
5448     ;;
5449   *-*-cygwin* )
5450     case $build in
5451       *-*-mingw* ) # actually msys
5452         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5453         ;;
5454       *-*-cygwin* )
5455         lt_cv_to_host_file_cmd=func_convert_file_noop
5456         ;;
5457       * ) # otherwise, assume *nix
5458         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5459         ;;
5460     esac
5461     ;;
5462   * ) # unhandled hosts (and "normal" native builds)
5463     lt_cv_to_host_file_cmd=func_convert_file_noop
5464     ;;
5465 esac
5466
5467 fi
5468
5469 to_host_file_cmd=$lt_cv_to_host_file_cmd
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5471 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5472
5473
5474
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5478 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5479 if ${lt_cv_to_tool_file_cmd+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   #assume ordinary cross tools, or native build.
5483 lt_cv_to_tool_file_cmd=func_convert_file_noop
5484 case $host in
5485   *-*-mingw* )
5486     case $build in
5487       *-*-mingw* ) # actually msys
5488         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5489         ;;
5490     esac
5491     ;;
5492 esac
5493
5494 fi
5495
5496 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5498 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5499
5500
5501
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5505 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5506 if ${lt_cv_ld_reload_flag+:} false; then :
5507   $as_echo_n "(cached) " >&6
5508 else
5509   lt_cv_ld_reload_flag='-r'
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5512 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5513 reload_flag=$lt_cv_ld_reload_flag
5514 case $reload_flag in
5515 "" | " "*) ;;
5516 *) reload_flag=" $reload_flag" ;;
5517 esac
5518 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5519 case $host_os in
5520   cygwin* | mingw* | pw32* | cegcc*)
5521     if test "$GCC" != yes; then
5522       reload_cmds=false
5523     fi
5524     ;;
5525   darwin*)
5526     if test "$GCC" = yes; then
5527       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5528     else
5529       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5530     fi
5531     ;;
5532 esac
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 if test -n "$ac_tool_prefix"; then
5543   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5544 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_OBJDUMP+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   if test -n "$OBJDUMP"; then
5551   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556   IFS=$as_save_IFS
5557   test -z "$as_dir" && as_dir=.
5558     for ac_exec_ext in '' $ac_executable_extensions; do
5559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562     break 2
5563   fi
5564 done
5565   done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 OBJDUMP=$ac_cv_prog_OBJDUMP
5571 if test -n "$OBJDUMP"; then
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5573 $as_echo "$OBJDUMP" >&6; }
5574 else
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579
5580 fi
5581 if test -z "$ac_cv_prog_OBJDUMP"; then
5582   ac_ct_OBJDUMP=$OBJDUMP
5583   # Extract the first word of "objdump", so it can be a program name with args.
5584 set dummy objdump; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5588   $as_echo_n "(cached) " >&6
5589 else
5590   if test -n "$ac_ct_OBJDUMP"; then
5591   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_exec_ext in '' $ac_executable_extensions; do
5599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605   done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5611 if test -n "$ac_ct_OBJDUMP"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5613 $as_echo "$ac_ct_OBJDUMP" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619   if test "x$ac_ct_OBJDUMP" = x; then
5620     OBJDUMP="false"
5621   else
5622     case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628     OBJDUMP=$ac_ct_OBJDUMP
5629   fi
5630 else
5631   OBJDUMP="$ac_cv_prog_OBJDUMP"
5632 fi
5633
5634 test -z "$OBJDUMP" && OBJDUMP=objdump
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5645 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5646 if ${lt_cv_deplibs_check_method+:} false; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   lt_cv_file_magic_cmd='$MAGIC_CMD'
5650 lt_cv_file_magic_test_file=
5651 lt_cv_deplibs_check_method='unknown'
5652 # Need to set the preceding variable on all platforms that support
5653 # interlibrary dependencies.
5654 # 'none' -- dependencies not supported.
5655 # `unknown' -- same as none, but documents that we really don't know.
5656 # 'pass_all' -- all dependencies passed with no checks.
5657 # 'test_compile' -- check by making test program.
5658 # 'file_magic [[regex]]' -- check by looking for files in library path
5659 # which responds to the $file_magic_cmd with a given extended regex.
5660 # If you have `file' or equivalent on your system and you're not sure
5661 # whether `pass_all' will *always* work, you probably want this one.
5662
5663 case $host_os in
5664 aix[4-9]*)
5665   lt_cv_deplibs_check_method=pass_all
5666   ;;
5667
5668 beos*)
5669   lt_cv_deplibs_check_method=pass_all
5670   ;;
5671
5672 bsdi[45]*)
5673   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5674   lt_cv_file_magic_cmd='/usr/bin/file -L'
5675   lt_cv_file_magic_test_file=/shlib/libc.so
5676   ;;
5677
5678 cygwin*)
5679   # func_win32_libid is a shell function defined in ltmain.sh
5680   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5681   lt_cv_file_magic_cmd='func_win32_libid'
5682   ;;
5683
5684 mingw* | pw32*)
5685   # Base MSYS/MinGW do not provide the 'file' command needed by
5686   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5687   # unless we find 'file', for example because we are cross-compiling.
5688   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5689   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5690     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5691     lt_cv_file_magic_cmd='func_win32_libid'
5692   else
5693     # Keep this pattern in sync with the one in func_win32_libid.
5694     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5695     lt_cv_file_magic_cmd='$OBJDUMP -f'
5696   fi
5697   ;;
5698
5699 cegcc*)
5700   # use the weaker test based on 'objdump'. See mingw*.
5701   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5702   lt_cv_file_magic_cmd='$OBJDUMP -f'
5703   ;;
5704
5705 darwin* | rhapsody*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708
5709 freebsd* | dragonfly*)
5710   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5711     case $host_cpu in
5712     i*86 )
5713       # Not sure whether the presence of OpenBSD here was a mistake.
5714       # Let's accept both of them until this is cleared up.
5715       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5716       lt_cv_file_magic_cmd=/usr/bin/file
5717       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5718       ;;
5719     esac
5720   else
5721     lt_cv_deplibs_check_method=pass_all
5722   fi
5723   ;;
5724
5725 gnu*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728
5729 haiku*)
5730   lt_cv_deplibs_check_method=pass_all
5731   ;;
5732
5733 hpux10.20* | hpux11*)
5734   lt_cv_file_magic_cmd=/usr/bin/file
5735   case $host_cpu in
5736   ia64*)
5737     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5738     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5739     ;;
5740   hppa*64*)
5741     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]'
5742     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5743     ;;
5744   *)
5745     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5746     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5747     ;;
5748   esac
5749   ;;
5750
5751 interix[3-9]*)
5752   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5753   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5754   ;;
5755
5756 irix5* | irix6* | nonstopux*)
5757   case $LD in
5758   *-32|*"-32 ") libmagic=32-bit;;
5759   *-n32|*"-n32 ") libmagic=N32;;
5760   *-64|*"-64 ") libmagic=64-bit;;
5761   *) libmagic=never-match;;
5762   esac
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765
5766 # This must be glibc/ELF.
5767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5768   lt_cv_deplibs_check_method=pass_all
5769   ;;
5770
5771 netbsd*)
5772   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774   else
5775     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5776   fi
5777   ;;
5778
5779 newos6*)
5780   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5781   lt_cv_file_magic_cmd=/usr/bin/file
5782   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5783   ;;
5784
5785 *nto* | *qnx*)
5786   lt_cv_deplibs_check_method=pass_all
5787   ;;
5788
5789 openbsd*)
5790   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5792   else
5793     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5794   fi
5795   ;;
5796
5797 osf3* | osf4* | osf5*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800
5801 rdos*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 solaris*)
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5810   lt_cv_deplibs_check_method=pass_all
5811   ;;
5812
5813 sysv4 | sysv4.3*)
5814   case $host_vendor in
5815   motorola)
5816     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]'
5817     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5818     ;;
5819   ncr)
5820     lt_cv_deplibs_check_method=pass_all
5821     ;;
5822   sequent)
5823     lt_cv_file_magic_cmd='/bin/file'
5824     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5825     ;;
5826   sni)
5827     lt_cv_file_magic_cmd='/bin/file'
5828     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5829     lt_cv_file_magic_test_file=/lib/libc.so
5830     ;;
5831   siemens)
5832     lt_cv_deplibs_check_method=pass_all
5833     ;;
5834   pc)
5835     lt_cv_deplibs_check_method=pass_all
5836     ;;
5837   esac
5838   ;;
5839
5840 tpf*)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843 esac
5844
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5847 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5848
5849 file_magic_glob=
5850 want_nocaseglob=no
5851 if test "$build" = "$host"; then
5852   case $host_os in
5853   mingw* | pw32*)
5854     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5855       want_nocaseglob=yes
5856     else
5857       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5858     fi
5859     ;;
5860   esac
5861 fi
5862
5863 file_magic_cmd=$lt_cv_file_magic_cmd
5864 deplibs_check_method=$lt_cv_deplibs_check_method
5865 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 if test -n "$ac_tool_prefix"; then
5889   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_DLLTOOL+:} false; then :
5894   $as_echo_n "(cached) " >&6
5895 else
5896   if test -n "$DLLTOOL"; then
5897   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904     for ac_exec_ext in '' $ac_executable_extensions; do
5905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911   done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 DLLTOOL=$ac_cv_prog_DLLTOOL
5917 if test -n "$DLLTOOL"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5919 $as_echo "$DLLTOOL" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926 fi
5927 if test -z "$ac_cv_prog_DLLTOOL"; then
5928   ac_ct_DLLTOOL=$DLLTOOL
5929   # Extract the first word of "dlltool", so it can be a program name with args.
5930 set dummy dlltool; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   if test -n "$ac_ct_DLLTOOL"; then
5937   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944     for ac_exec_ext in '' $ac_executable_extensions; do
5945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951   done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5957 if test -n "$ac_ct_DLLTOOL"; then
5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5959 $as_echo "$ac_ct_DLLTOOL" >&6; }
5960 else
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965   if test "x$ac_ct_DLLTOOL" = x; then
5966     DLLTOOL="false"
5967   else
5968     case $cross_compiling:$ac_tool_warned in
5969 yes:)
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5972 ac_tool_warned=yes ;;
5973 esac
5974     DLLTOOL=$ac_ct_DLLTOOL
5975   fi
5976 else
5977   DLLTOOL="$ac_cv_prog_DLLTOOL"
5978 fi
5979
5980 test -z "$DLLTOOL" && DLLTOOL=dlltool
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5992 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5993 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5994   $as_echo_n "(cached) " >&6
5995 else
5996   lt_cv_sharedlib_from_linklib_cmd='unknown'
5997
5998 case $host_os in
5999 cygwin* | mingw* | pw32* | cegcc*)
6000   # two different shell functions defined in ltmain.sh
6001   # decide which to use based on capabilities of $DLLTOOL
6002   case `$DLLTOOL --help 2>&1` in
6003   *--identify-strict*)
6004     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6005     ;;
6006   *)
6007     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6008     ;;
6009   esac
6010   ;;
6011 *)
6012   # fallback: assume linklib IS sharedlib
6013   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6014   ;;
6015 esac
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6019 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6020 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6021 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6022
6023
6024
6025
6026
6027
6028
6029
6030 if test -n "$ac_tool_prefix"; then
6031   for ac_prog in ar
6032   do
6033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_AR+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   if test -n "$AR"; then
6041   ac_cv_prog_AR="$AR" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_exec_ext in '' $ac_executable_extensions; do
6049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055   done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 AR=$ac_cv_prog_AR
6061 if test -n "$AR"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6063 $as_echo "$AR" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068
6069
6070     test -n "$AR" && break
6071   done
6072 fi
6073 if test -z "$AR"; then
6074   ac_ct_AR=$AR
6075   for ac_prog in ar
6076 do
6077   # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_AR"; then
6085   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_prog_ac_ct_AR="$ac_prog"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114   test -n "$ac_ct_AR" && break
6115 done
6116
6117   if test "x$ac_ct_AR" = x; then
6118     AR="false"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     AR=$ac_ct_AR
6127   fi
6128 fi
6129
6130 : ${AR=ar}
6131 : ${AR_FLAGS=cru}
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6144 $as_echo_n "checking for archiver @FILE support... " >&6; }
6145 if ${lt_cv_ar_at_file+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   lt_cv_ar_at_file=no
6149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h.  */
6151
6152 int
6153 main ()
6154 {
6155
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161   echo conftest.$ac_objext > conftest.lst
6162       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6163       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6164   (eval $lt_ar_try) 2>&5
6165   ac_status=$?
6166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167   test $ac_status = 0; }
6168       if test "$ac_status" -eq 0; then
6169         # Ensure the archiver fails upon bogus file names.
6170         rm -f conftest.$ac_objext libconftest.a
6171         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6172   (eval $lt_ar_try) 2>&5
6173   ac_status=$?
6174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175   test $ac_status = 0; }
6176         if test "$ac_status" -ne 0; then
6177           lt_cv_ar_at_file=@
6178         fi
6179       fi
6180       rm -f conftest.* libconftest.a
6181
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6187 $as_echo "$lt_cv_ar_at_file" >&6; }
6188
6189 if test "x$lt_cv_ar_at_file" = xno; then
6190   archiver_list_spec=
6191 else
6192   archiver_list_spec=$lt_cv_ar_at_file
6193 fi
6194
6195
6196
6197
6198
6199
6200
6201 if test -n "$ac_tool_prefix"; then
6202   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}strip; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_STRIP+:} false; then :
6207   $as_echo_n "(cached) " >&6
6208 else
6209   if test -n "$STRIP"; then
6210   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217     for ac_exec_ext in '' $ac_executable_extensions; do
6218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224   done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 STRIP=$ac_cv_prog_STRIP
6230 if test -n "$STRIP"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6232 $as_echo "$STRIP" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 fi
6240 if test -z "$ac_cv_prog_STRIP"; then
6241   ac_ct_STRIP=$STRIP
6242   # Extract the first word of "strip", so it can be a program name with args.
6243 set dummy strip; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -n "$ac_ct_STRIP"; then
6250   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259     ac_cv_prog_ac_ct_STRIP="strip"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264   done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6270 if test -n "$ac_ct_STRIP"; then
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6272 $as_echo "$ac_ct_STRIP" >&6; }
6273 else
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278   if test "x$ac_ct_STRIP" = x; then
6279     STRIP=":"
6280   else
6281     case $cross_compiling:$ac_tool_warned in
6282 yes:)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned=yes ;;
6286 esac
6287     STRIP=$ac_ct_STRIP
6288   fi
6289 else
6290   STRIP="$ac_cv_prog_STRIP"
6291 fi
6292
6293 test -z "$STRIP" && STRIP=:
6294
6295
6296
6297
6298
6299
6300 if test -n "$ac_tool_prefix"; then
6301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_RANLIB+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$RANLIB"; then
6309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 RANLIB=$ac_cv_prog_RANLIB
6329 if test -n "$RANLIB"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6331 $as_echo "$RANLIB" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_RANLIB"; then
6340   ac_ct_RANLIB=$RANLIB
6341   # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$ac_ct_RANLIB"; then
6349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_prog_ac_ct_RANLIB="ranlib"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369 if test -n "$ac_ct_RANLIB"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6371 $as_echo "$ac_ct_RANLIB" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377   if test "x$ac_ct_RANLIB" = x; then
6378     RANLIB=":"
6379   else
6380     case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386     RANLIB=$ac_ct_RANLIB
6387   fi
6388 else
6389   RANLIB="$ac_cv_prog_RANLIB"
6390 fi
6391
6392 test -z "$RANLIB" && RANLIB=:
6393
6394
6395
6396
6397
6398
6399 # Determine commands to create old-style static archives.
6400 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6401 old_postinstall_cmds='chmod 644 $oldlib'
6402 old_postuninstall_cmds=
6403
6404 if test -n "$RANLIB"; then
6405   case $host_os in
6406   openbsd*)
6407     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6408     ;;
6409   *)
6410     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6411     ;;
6412   esac
6413   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6414 fi
6415
6416 case $host_os in
6417   darwin*)
6418     lock_old_archive_extraction=yes ;;
6419   *)
6420     lock_old_archive_extraction=no ;;
6421 esac
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 # If no C compiler was specified, use CC.
6462 LTCC=${LTCC-"$CC"}
6463
6464 # If no C compiler flags were specified, use CFLAGS.
6465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6466
6467 # Allow CC to be a program name with arguments.
6468 compiler=$CC
6469
6470
6471 # Check for command to grab the raw symbol name followed by C symbol from nm.
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6473 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6474 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477
6478 # These are sane defaults that work on at least a few old systems.
6479 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6480
6481 # Character class describing NM global symbol codes.
6482 symcode='[BCDEGRST]'
6483
6484 # Regexp to match symbols that can be accessed directly from C.
6485 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6486
6487 # Define system-specific variables.
6488 case $host_os in
6489 aix*)
6490   symcode='[BCDT]'
6491   ;;
6492 cygwin* | mingw* | pw32* | cegcc*)
6493   symcode='[ABCDGISTW]'
6494   ;;
6495 hpux*)
6496   if test "$host_cpu" = ia64; then
6497     symcode='[ABCDEGRST]'
6498   fi
6499   ;;
6500 irix* | nonstopux*)
6501   symcode='[BCDEGRST]'
6502   ;;
6503 osf*)
6504   symcode='[BCDEGQRST]'
6505   ;;
6506 solaris*)
6507   symcode='[BDRT]'
6508   ;;
6509 sco3.2v5*)
6510   symcode='[DT]'
6511   ;;
6512 sysv4.2uw2*)
6513   symcode='[DT]'
6514   ;;
6515 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6516   symcode='[ABDT]'
6517   ;;
6518 sysv4)
6519   symcode='[DFNSTU]'
6520   ;;
6521 esac
6522
6523 # If we're using GNU nm, then use its standard symbol codes.
6524 case `$NM -V 2>&1` in
6525 *GNU* | *'with BFD'*)
6526   symcode='[ABCDGIRSTW]' ;;
6527 esac
6528
6529 # Transform an extracted symbol line into a proper C declaration.
6530 # Some systems (esp. on ia64) link data and code symbols differently,
6531 # so use this general approach.
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6533
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6536 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'"
6537
6538 # Handle CRLF in mingw tool chain
6539 opt_cr=
6540 case $build_os in
6541 mingw*)
6542   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6543   ;;
6544 esac
6545
6546 # Try without a prefix underscore, then with it.
6547 for ac_symprfx in "" "_"; do
6548
6549   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6550   symxfrm="\\1 $ac_symprfx\\2 \\2"
6551
6552   # Write the raw and C identifiers.
6553   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6554     # Fake it for dumpbin and say T for any non-static function
6555     # and D for any global variable.
6556     # Also find C++ and __fastcall symbols from MSVC++,
6557     # which start with @ or ?.
6558     lt_cv_sys_global_symbol_pipe="$AWK '"\
6559 "     {last_section=section; section=\$ 3};"\
6560 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6561 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6562 "     \$ 0!~/External *\|/{next};"\
6563 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6564 "     {if(hide[section]) next};"\
6565 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6566 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6567 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6568 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6569 "     ' prfx=^$ac_symprfx"
6570   else
6571     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6572   fi
6573   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6574
6575   # Check to see that the pipe works correctly.
6576   pipe_works=no
6577
6578   rm -f conftest*
6579   cat > conftest.$ac_ext <<_LT_EOF
6580 #ifdef __cplusplus
6581 extern "C" {
6582 #endif
6583 char nm_test_var;
6584 void nm_test_func(void);
6585 void nm_test_func(void){}
6586 #ifdef __cplusplus
6587 }
6588 #endif
6589 int main(){nm_test_var='a';nm_test_func();return(0);}
6590 _LT_EOF
6591
6592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593   (eval $ac_compile) 2>&5
6594   ac_status=$?
6595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596   test $ac_status = 0; }; then
6597     # Now try to grab the symbols.
6598     nlist=conftest.nm
6599     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6600   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6601   ac_status=$?
6602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603   test $ac_status = 0; } && test -s "$nlist"; then
6604       # Try sorting and uniquifying the output.
6605       if sort "$nlist" | uniq > "$nlist"T; then
6606         mv -f "$nlist"T "$nlist"
6607       else
6608         rm -f "$nlist"T
6609       fi
6610
6611       # Make sure that we snagged all the symbols we need.
6612       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6613         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6614           cat <<_LT_EOF > conftest.$ac_ext
6615 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6616 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6617 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6618    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6619 # define LT_DLSYM_CONST
6620 #elif defined(__osf__)
6621 /* This system does not cope well with relocations in const data.  */
6622 # define LT_DLSYM_CONST
6623 #else
6624 # define LT_DLSYM_CONST const
6625 #endif
6626
6627 #ifdef __cplusplus
6628 extern "C" {
6629 #endif
6630
6631 _LT_EOF
6632           # Now generate the symbol file.
6633           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6634
6635           cat <<_LT_EOF >> conftest.$ac_ext
6636
6637 /* The mapping between symbol names and symbols.  */
6638 LT_DLSYM_CONST struct {
6639   const char *name;
6640   void       *address;
6641 }
6642 lt__PROGRAM__LTX_preloaded_symbols[] =
6643 {
6644   { "@PROGRAM@", (void *) 0 },
6645 _LT_EOF
6646           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6647           cat <<\_LT_EOF >> conftest.$ac_ext
6648   {0, (void *) 0}
6649 };
6650
6651 /* This works around a problem in FreeBSD linker */
6652 #ifdef FREEBSD_WORKAROUND
6653 static const void *lt_preloaded_setup() {
6654   return lt__PROGRAM__LTX_preloaded_symbols;
6655 }
6656 #endif
6657
6658 #ifdef __cplusplus
6659 }
6660 #endif
6661 _LT_EOF
6662           # Now try linking the two files.
6663           mv conftest.$ac_objext conftstm.$ac_objext
6664           lt_globsym_save_LIBS=$LIBS
6665           lt_globsym_save_CFLAGS=$CFLAGS
6666           LIBS="conftstm.$ac_objext"
6667           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6668           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6669   (eval $ac_link) 2>&5
6670   ac_status=$?
6671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6673             pipe_works=yes
6674           fi
6675           LIBS=$lt_globsym_save_LIBS
6676           CFLAGS=$lt_globsym_save_CFLAGS
6677         else
6678           echo "cannot find nm_test_func in $nlist" >&5
6679         fi
6680       else
6681         echo "cannot find nm_test_var in $nlist" >&5
6682       fi
6683     else
6684       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6685     fi
6686   else
6687     echo "$progname: failed program was:" >&5
6688     cat conftest.$ac_ext >&5
6689   fi
6690   rm -rf conftest* conftst*
6691
6692   # Do not use the global_symbol_pipe unless it works.
6693   if test "$pipe_works" = yes; then
6694     break
6695   else
6696     lt_cv_sys_global_symbol_pipe=
6697   fi
6698 done
6699
6700 fi
6701
6702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6703   lt_cv_sys_global_symbol_to_cdecl=
6704 fi
6705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6707 $as_echo "failed" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6710 $as_echo "ok" >&6; }
6711 fi
6712
6713 # Response file support.
6714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6715   nm_file_list_spec='@'
6716 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6717   nm_file_list_spec='@'
6718 fi
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6747 $as_echo_n "checking for sysroot... " >&6; }
6748
6749 # Check whether --with-sysroot was given.
6750 if test "${with_sysroot+set}" = set; then :
6751   withval=$with_sysroot;
6752 else
6753   with_sysroot=no
6754 fi
6755
6756
6757 lt_sysroot=
6758 case ${with_sysroot} in #(
6759  yes)
6760    if test "$GCC" = yes; then
6761      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6762    fi
6763    ;; #(
6764  /*)
6765    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6766    ;; #(
6767  no|'')
6768    ;; #(
6769  *)
6770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6771 $as_echo "${with_sysroot}" >&6; }
6772    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6773    ;;
6774 esac
6775
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6777 $as_echo "${lt_sysroot:-no}" >&6; }
6778
6779
6780
6781
6782
6783 # Check whether --enable-libtool-lock was given.
6784 if test "${enable_libtool_lock+set}" = set; then :
6785   enableval=$enable_libtool_lock;
6786 fi
6787
6788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6789
6790 # Some flags need to be propagated to the compiler or linker for good
6791 # libtool support.
6792 case $host in
6793 ia64-*-hpux*)
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.$ac_objext` in
6802       *ELF-32*)
6803         HPUX_IA64_MODE="32"
6804         ;;
6805       *ELF-64*)
6806         HPUX_IA64_MODE="64"
6807         ;;
6808     esac
6809   fi
6810   rm -rf conftest*
6811   ;;
6812 *-*-irix6*)
6813   # Find out which ABI we are using.
6814   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816   (eval $ac_compile) 2>&5
6817   ac_status=$?
6818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819   test $ac_status = 0; }; then
6820     if test "$lt_cv_prog_gnu_ld" = yes; then
6821       case `/usr/bin/file conftest.$ac_objext` in
6822         *32-bit*)
6823           LD="${LD-ld} -melf32bsmip"
6824           ;;
6825         *N32*)
6826           LD="${LD-ld} -melf32bmipn32"
6827           ;;
6828         *64-bit*)
6829           LD="${LD-ld} -melf64bmip"
6830         ;;
6831       esac
6832     else
6833       case `/usr/bin/file conftest.$ac_objext` in
6834         *32-bit*)
6835           LD="${LD-ld} -32"
6836           ;;
6837         *N32*)
6838           LD="${LD-ld} -n32"
6839           ;;
6840         *64-bit*)
6841           LD="${LD-ld} -64"
6842           ;;
6843       esac
6844     fi
6845   fi
6846   rm -rf conftest*
6847   ;;
6848
6849 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6850 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6851   # Find out which ABI we are using.
6852   echo 'int i;' > conftest.$ac_ext
6853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857   test $ac_status = 0; }; then
6858     case `/usr/bin/file conftest.o` in
6859       *32-bit*)
6860         case $host in
6861           x86_64-*kfreebsd*-gnu)
6862             LD="${LD-ld} -m elf_i386_fbsd"
6863             ;;
6864           x86_64-*linux*)
6865             LD="${LD-ld} -m elf_i386"
6866             ;;
6867           ppc64-*linux*|powerpc64-*linux*)
6868             LD="${LD-ld} -m elf32ppclinux"
6869             ;;
6870           s390x-*linux*)
6871             LD="${LD-ld} -m elf_s390"
6872             ;;
6873           sparc64-*linux*)
6874             LD="${LD-ld} -m elf32_sparc"
6875             ;;
6876         esac
6877         ;;
6878       *64-bit*)
6879         case $host in
6880           x86_64-*kfreebsd*-gnu)
6881             LD="${LD-ld} -m elf_x86_64_fbsd"
6882             ;;
6883           x86_64-*linux*)
6884             LD="${LD-ld} -m elf_x86_64"
6885             ;;
6886           ppc*-*linux*|powerpc*-*linux*)
6887             LD="${LD-ld} -m elf64ppc"
6888             ;;
6889           s390*-*linux*|s390*-*tpf*)
6890             LD="${LD-ld} -m elf64_s390"
6891             ;;
6892           sparc*-*linux*)
6893             LD="${LD-ld} -m elf64_sparc"
6894             ;;
6895         esac
6896         ;;
6897     esac
6898   fi
6899   rm -rf conftest*
6900   ;;
6901
6902 *-*-sco3.2v5*)
6903   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6904   SAVE_CFLAGS="$CFLAGS"
6905   CFLAGS="$CFLAGS -belf"
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6907 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6908 if ${lt_cv_cc_needs_belf+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919
6920 int
6921 main ()
6922 {
6923
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_link "$LINENO"; then :
6929   lt_cv_cc_needs_belf=yes
6930 else
6931   lt_cv_cc_needs_belf=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext \
6934     conftest$ac_exeext conftest.$ac_ext
6935      ac_ext=c
6936 ac_cpp='$CPP $CPPFLAGS'
6937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6944   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6945     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6946     CFLAGS="$SAVE_CFLAGS"
6947   fi
6948   ;;
6949 *-*solaris*)
6950   # Find out which ABI we are using.
6951   echo 'int i;' > conftest.$ac_ext
6952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953   (eval $ac_compile) 2>&5
6954   ac_status=$?
6955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956   test $ac_status = 0; }; then
6957     case `/usr/bin/file conftest.o` in
6958     *64-bit*)
6959       case $lt_cv_prog_gnu_ld in
6960       yes*)
6961         case $host in
6962         i?86-*-solaris*)
6963           LD="${LD-ld} -m elf_x86_64"
6964           ;;
6965         sparc*-*-solaris*)
6966           LD="${LD-ld} -m elf64_sparc"
6967           ;;
6968         esac
6969         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6970         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6971           LD="${LD-ld}_sol2"
6972         fi
6973         ;;
6974       *)
6975         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976           LD="${LD-ld} -64"
6977         fi
6978         ;;
6979       esac
6980       ;;
6981     esac
6982   fi
6983   rm -rf conftest*
6984   ;;
6985 esac
6986
6987 need_locks="$enable_libtool_lock"
6988
6989 if test -n "$ac_tool_prefix"; then
6990   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}mt; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$MANIFEST_TOOL"; then
6998   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7018 if test -n "$MANIFEST_TOOL"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7020 $as_echo "$MANIFEST_TOOL" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7029   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7030   # Extract the first word of "mt", so it can be a program name with args.
7031 set dummy mt; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_MANIFEST_TOOL"; then
7038   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7058 if test -n "$ac_ct_MANIFEST_TOOL"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7060 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7067     MANIFEST_TOOL=":"
7068   else
7069     case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7076   fi
7077 else
7078   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7079 fi
7080
7081 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7083 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7084 if ${lt_cv_path_mainfest_tool+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   lt_cv_path_mainfest_tool=no
7088   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7089   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7090   cat conftest.err >&5
7091   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7092     lt_cv_path_mainfest_tool=yes
7093   fi
7094   rm -f conftest*
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7097 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7098 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7099   MANIFEST_TOOL=:
7100 fi
7101
7102
7103
7104
7105
7106
7107   case $host_os in
7108     rhapsody* | darwin*)
7109     if test -n "$ac_tool_prefix"; then
7110   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   if test -n "$DSYMUTIL"; then
7118   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7138 if test -n "$DSYMUTIL"; then
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7140 $as_echo "$DSYMUTIL" >&6; }
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_DSYMUTIL"; then
7149   ac_ct_DSYMUTIL=$DSYMUTIL
7150   # Extract the first word of "dsymutil", so it can be a program name with args.
7151 set dummy dsymutil; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   if test -n "$ac_ct_DSYMUTIL"; then
7158   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165     for ac_exec_ext in '' $ac_executable_extensions; do
7166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172   done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7180 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7181 else
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186   if test "x$ac_ct_DSYMUTIL" = x; then
7187     DSYMUTIL=":"
7188   else
7189     case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195     DSYMUTIL=$ac_ct_DSYMUTIL
7196   fi
7197 else
7198   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7199 fi
7200
7201     if test -n "$ac_tool_prefix"; then
7202   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_NMEDIT+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$NMEDIT"; then
7210   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 NMEDIT=$ac_cv_prog_NMEDIT
7230 if test -n "$NMEDIT"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7232 $as_echo "$NMEDIT" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_NMEDIT"; then
7241   ac_ct_NMEDIT=$NMEDIT
7242   # Extract the first word of "nmedit", so it can be a program name with args.
7243 set dummy nmedit; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$ac_ct_NMEDIT"; then
7250   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7270 if test -n "$ac_ct_NMEDIT"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7272 $as_echo "$ac_ct_NMEDIT" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_NMEDIT" = x; then
7279     NMEDIT=":"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     NMEDIT=$ac_ct_NMEDIT
7288   fi
7289 else
7290   NMEDIT="$ac_cv_prog_NMEDIT"
7291 fi
7292
7293     if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_LIPO+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$LIPO"; then
7302   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 LIPO=$ac_cv_prog_LIPO
7322 if test -n "$LIPO"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7324 $as_echo "$LIPO" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_LIPO"; then
7333   ac_ct_LIPO=$LIPO
7334   # Extract the first word of "lipo", so it can be a program name with args.
7335 set dummy lipo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_LIPO"; then
7342   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_LIPO="lipo"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7362 if test -n "$ac_ct_LIPO"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7364 $as_echo "$ac_ct_LIPO" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_LIPO" = x; then
7371     LIPO=":"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     LIPO=$ac_ct_LIPO
7380   fi
7381 else
7382   LIPO="$ac_cv_prog_LIPO"
7383 fi
7384
7385     if test -n "$ac_tool_prefix"; then
7386   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OTOOL+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$OTOOL"; then
7394   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 OTOOL=$ac_cv_prog_OTOOL
7414 if test -n "$OTOOL"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7416 $as_echo "$OTOOL" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_OTOOL"; then
7425   ac_ct_OTOOL=$OTOOL
7426   # Extract the first word of "otool", so it can be a program name with args.
7427 set dummy otool; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$ac_ct_OTOOL"; then
7434   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443     ac_cv_prog_ac_ct_OTOOL="otool"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7454 if test -n "$ac_ct_OTOOL"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7456 $as_echo "$ac_ct_OTOOL" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462   if test "x$ac_ct_OTOOL" = x; then
7463     OTOOL=":"
7464   else
7465     case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471     OTOOL=$ac_ct_OTOOL
7472   fi
7473 else
7474   OTOOL="$ac_cv_prog_OTOOL"
7475 fi
7476
7477     if test -n "$ac_tool_prefix"; then
7478   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7479 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_OTOOL64+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   if test -n "$OTOOL64"; then
7486   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493     for ac_exec_ext in '' $ac_executable_extensions; do
7494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500   done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 OTOOL64=$ac_cv_prog_OTOOL64
7506 if test -n "$OTOOL64"; then
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7508 $as_echo "$OTOOL64" >&6; }
7509 else
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514
7515 fi
7516 if test -z "$ac_cv_prog_OTOOL64"; then
7517   ac_ct_OTOOL64=$OTOOL64
7518   # Extract the first word of "otool64", so it can be a program name with args.
7519 set dummy otool64; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   if test -n "$ac_ct_OTOOL64"; then
7526   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_prog_ac_ct_OTOOL64="otool64"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7546 if test -n "$ac_ct_OTOOL64"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7548 $as_echo "$ac_ct_OTOOL64" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554   if test "x$ac_ct_OTOOL64" = x; then
7555     OTOOL64=":"
7556   else
7557     case $cross_compiling:$ac_tool_warned in
7558 yes:)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7562 esac
7563     OTOOL64=$ac_ct_OTOOL64
7564   fi
7565 else
7566   OTOOL64="$ac_cv_prog_OTOOL64"
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7596 $as_echo_n "checking for -single_module linker flag... " >&6; }
7597 if ${lt_cv_apple_cc_single_mod+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   lt_cv_apple_cc_single_mod=no
7601       if test -z "${LT_MULTI_MODULE}"; then
7602         # By default we will add the -single_module flag. You can override
7603         # by either setting the environment variable LT_MULTI_MODULE
7604         # non-empty at configure time, or by adding -multi_module to the
7605         # link flags.
7606         rm -rf libconftest.dylib*
7607         echo "int foo(void){return 1;}" > conftest.c
7608         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609 -dynamiclib -Wl,-single_module conftest.c" >&5
7610         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7611           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7612         _lt_result=$?
7613         # If there is a non-empty error log, and "single_module"
7614         # appears in it, assume the flag caused a linker warning
7615         if test -s conftest.err && $GREP single_module conftest.err; then
7616           cat conftest.err >&5
7617         # Otherwise, if the output was created with a 0 exit code from
7618         # the compiler, it worked.
7619         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7620           lt_cv_apple_cc_single_mod=yes
7621         else
7622           cat conftest.err >&5
7623         fi
7624         rm -rf libconftest.dylib*
7625         rm -f conftest.*
7626       fi
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7629 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7630
7631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7632 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   lt_cv_ld_exported_symbols_list=no
7637       save_LDFLAGS=$LDFLAGS
7638       echo "_main" > conftest.sym
7639       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642
7643 int
7644 main ()
7645 {
7646
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652   lt_cv_ld_exported_symbols_list=yes
7653 else
7654   lt_cv_ld_exported_symbols_list=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657     conftest$ac_exeext conftest.$ac_ext
7658         LDFLAGS="$save_LDFLAGS"
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7663
7664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7665 $as_echo_n "checking for -force_load linker flag... " >&6; }
7666 if ${lt_cv_ld_force_load+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   lt_cv_ld_force_load=no
7670       cat > conftest.c << _LT_EOF
7671 int forced_loaded() { return 2;}
7672 _LT_EOF
7673       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7674       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7675       echo "$AR cru libconftest.a conftest.o" >&5
7676       $AR cru libconftest.a conftest.o 2>&5
7677       echo "$RANLIB libconftest.a" >&5
7678       $RANLIB libconftest.a 2>&5
7679       cat > conftest.c << _LT_EOF
7680 int main() { return 0;}
7681 _LT_EOF
7682       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7683       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7684       _lt_result=$?
7685       if test -s conftest.err && $GREP force_load conftest.err; then
7686         cat conftest.err >&5
7687       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7688         lt_cv_ld_force_load=yes
7689       else
7690         cat conftest.err >&5
7691       fi
7692         rm -f conftest.err libconftest.a conftest conftest.c
7693         rm -rf conftest.dSYM
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7697 $as_echo "$lt_cv_ld_force_load" >&6; }
7698     case $host_os in
7699     rhapsody* | darwin1.[012])
7700       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7701     darwin1.*)
7702       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7703     darwin*) # darwin 5.x on
7704       # if running on 10.5 or later, the deployment target defaults
7705       # to the OS version, if on x86, and 10.4, the deployment
7706       # target defaults to 10.4. Don't you love it?
7707       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7708         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7709           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7710         10.[012]*)
7711           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7712         10.*)
7713           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714       esac
7715     ;;
7716   esac
7717     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7718       _lt_dar_single_mod='$single_module'
7719     fi
7720     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7721       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7722     else
7723       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7724     fi
7725     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7726       _lt_dsymutil='~$DSYMUTIL $lib || :'
7727     else
7728       _lt_dsymutil=
7729     fi
7730     ;;
7731   esac
7732
7733 ac_ext=c
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7740 # On Suns, sometimes $CPP names a directory.
7741 if test -n "$CPP" && test -d "$CPP"; then
7742   CPP=
7743 fi
7744 if test -z "$CPP"; then
7745   if ${ac_cv_prog_CPP+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748       # Double quotes because CPP needs to be expanded
7749     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7750     do
7751       ac_preproc_ok=false
7752 for ac_c_preproc_warn_flag in '' yes
7753 do
7754   # Use a header file that comes with gcc, so configuring glibc
7755   # with a fresh cross-compiler works.
7756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757   # <limits.h> exists even on freestanding compilers.
7758   # On the NeXT, cc -E runs the code through the compiler's parser,
7759   # not just through cpp. "Syntax error" is here to catch this case.
7760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h.  */
7762 #ifdef __STDC__
7763 # include <limits.h>
7764 #else
7765 # include <assert.h>
7766 #endif
7767                      Syntax error
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770
7771 else
7772   # Broken: fails on valid input.
7773 continue
7774 fi
7775 rm -f conftest.err conftest.i conftest.$ac_ext
7776
7777   # OK, works on sane cases.  Now check whether nonexistent headers
7778   # can be detected and how.
7779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781 #include <ac_nonexistent.h>
7782 _ACEOF
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784   # Broken: success on invalid input.
7785 continue
7786 else
7787   # Passes both tests.
7788 ac_preproc_ok=:
7789 break
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793 done
7794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok; then :
7797   break
7798 fi
7799
7800     done
7801     ac_cv_prog_CPP=$CPP
7802
7803 fi
7804   CPP=$ac_cv_prog_CPP
7805 else
7806   ac_cv_prog_CPP=$CPP
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7809 $as_echo "$CPP" >&6; }
7810 ac_preproc_ok=false
7811 for ac_c_preproc_warn_flag in '' yes
7812 do
7813   # Use a header file that comes with gcc, so configuring glibc
7814   # with a fresh cross-compiler works.
7815   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7816   # <limits.h> exists even on freestanding compilers.
7817   # On the NeXT, cc -E runs the code through the compiler's parser,
7818   # not just through cpp. "Syntax error" is here to catch this case.
7819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h.  */
7821 #ifdef __STDC__
7822 # include <limits.h>
7823 #else
7824 # include <assert.h>
7825 #endif
7826                      Syntax error
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829
7830 else
7831   # Broken: fails on valid input.
7832 continue
7833 fi
7834 rm -f conftest.err conftest.i conftest.$ac_ext
7835
7836   # OK, works on sane cases.  Now check whether nonexistent headers
7837   # can be detected and how.
7838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h.  */
7840 #include <ac_nonexistent.h>
7841 _ACEOF
7842 if ac_fn_c_try_cpp "$LINENO"; then :
7843   # Broken: success on invalid input.
7844 continue
7845 else
7846   # Passes both tests.
7847 ac_preproc_ok=:
7848 break
7849 fi
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7851
7852 done
7853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7854 rm -f conftest.i conftest.err conftest.$ac_ext
7855 if $ac_preproc_ok; then :
7856
7857 else
7858   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7860 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7861 See \`config.log' for more details" "$LINENO" 5; }
7862 fi
7863
7864 ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7872 $as_echo_n "checking for ANSI C header files... " >&6; }
7873 if ${ac_cv_header_stdc+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h.  */
7878 #include <stdlib.h>
7879 #include <stdarg.h>
7880 #include <string.h>
7881 #include <float.h>
7882
7883 int
7884 main ()
7885 {
7886
7887   ;
7888   return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892   ac_cv_header_stdc=yes
7893 else
7894   ac_cv_header_stdc=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897
7898 if test $ac_cv_header_stdc = yes; then
7899   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902 #include <string.h>
7903
7904 _ACEOF
7905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906   $EGREP "memchr" >/dev/null 2>&1; then :
7907
7908 else
7909   ac_cv_header_stdc=no
7910 fi
7911 rm -f conftest*
7912
7913 fi
7914
7915 if test $ac_cv_header_stdc = yes; then
7916   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h.  */
7919 #include <stdlib.h>
7920
7921 _ACEOF
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923   $EGREP "free" >/dev/null 2>&1; then :
7924
7925 else
7926   ac_cv_header_stdc=no
7927 fi
7928 rm -f conftest*
7929
7930 fi
7931
7932 if test $ac_cv_header_stdc = yes; then
7933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934   if test "$cross_compiling" = yes; then :
7935   :
7936 else
7937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h.  */
7939 #include <ctype.h>
7940 #include <stdlib.h>
7941 #if ((' ' & 0x0FF) == 0x020)
7942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7944 #else
7945 # define ISLOWER(c) \
7946                    (('a' <= (c) && (c) <= 'i') \
7947                      || ('j' <= (c) && (c) <= 'r') \
7948                      || ('s' <= (c) && (c) <= 'z'))
7949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7950 #endif
7951
7952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953 int
7954 main ()
7955 {
7956   int i;
7957   for (i = 0; i < 256; i++)
7958     if (XOR (islower (i), ISLOWER (i))
7959         || toupper (i) != TOUPPER (i))
7960       return 2;
7961   return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_run "$LINENO"; then :
7965
7966 else
7967   ac_cv_header_stdc=no
7968 fi
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970   conftest.$ac_objext conftest.beam conftest.$ac_ext
7971 fi
7972
7973 fi
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7976 $as_echo "$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7978
7979 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7980
7981 fi
7982
7983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7985                   inttypes.h stdint.h unistd.h
7986 do :
7987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7989 "
7990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7991   cat >>confdefs.h <<_ACEOF
7992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993 _ACEOF
7994
7995 fi
7996
7997 done
7998
7999
8000 for ac_header in dlfcn.h
8001 do :
8002   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8003 "
8004 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8005   cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DLFCN_H 1
8007 _ACEOF
8008
8009 fi
8010
8011 done
8012
8013
8014
8015
8016
8017 # Set options
8018
8019
8020
8021         enable_dlopen=no
8022
8023
8024   enable_win32_dll=no
8025
8026
8027             # Check whether --enable-shared was given.
8028 if test "${enable_shared+set}" = set; then :
8029   enableval=$enable_shared; p=${PACKAGE-default}
8030     case $enableval in
8031     yes) enable_shared=yes ;;
8032     no) enable_shared=no ;;
8033     *)
8034       enable_shared=no
8035       # Look at the argument we got.  We use all the common list separators.
8036       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8037       for pkg in $enableval; do
8038         IFS="$lt_save_ifs"
8039         if test "X$pkg" = "X$p"; then
8040           enable_shared=yes
8041         fi
8042       done
8043       IFS="$lt_save_ifs"
8044       ;;
8045     esac
8046 else
8047   enable_shared=yes
8048 fi
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058   # Check whether --enable-static was given.
8059 if test "${enable_static+set}" = set; then :
8060   enableval=$enable_static; p=${PACKAGE-default}
8061     case $enableval in
8062     yes) enable_static=yes ;;
8063     no) enable_static=no ;;
8064     *)
8065      enable_static=no
8066       # Look at the argument we got.  We use all the common list separators.
8067       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8068       for pkg in $enableval; do
8069         IFS="$lt_save_ifs"
8070         if test "X$pkg" = "X$p"; then
8071           enable_static=yes
8072         fi
8073       done
8074       IFS="$lt_save_ifs"
8075       ;;
8076     esac
8077 else
8078   enable_static=yes
8079 fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090 # Check whether --with-pic was given.
8091 if test "${with_pic+set}" = set; then :
8092   withval=$with_pic; lt_p=${PACKAGE-default}
8093     case $withval in
8094     yes|no) pic_mode=$withval ;;
8095     *)
8096       pic_mode=default
8097       # Look at the argument we got.  We use all the common list separators.
8098       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099       for lt_pkg in $withval; do
8100         IFS="$lt_save_ifs"
8101         if test "X$lt_pkg" = "X$lt_p"; then
8102           pic_mode=yes
8103         fi
8104       done
8105       IFS="$lt_save_ifs"
8106       ;;
8107     esac
8108 else
8109   pic_mode=default
8110 fi
8111
8112
8113 test -z "$pic_mode" && pic_mode=default
8114
8115
8116
8117
8118
8119
8120
8121   # Check whether --enable-fast-install was given.
8122 if test "${enable_fast_install+set}" = set; then :
8123   enableval=$enable_fast_install; p=${PACKAGE-default}
8124     case $enableval in
8125     yes) enable_fast_install=yes ;;
8126     no) enable_fast_install=no ;;
8127     *)
8128       enable_fast_install=no
8129       # Look at the argument we got.  We use all the common list separators.
8130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131       for pkg in $enableval; do
8132         IFS="$lt_save_ifs"
8133         if test "X$pkg" = "X$p"; then
8134           enable_fast_install=yes
8135         fi
8136       done
8137       IFS="$lt_save_ifs"
8138       ;;
8139     esac
8140 else
8141   enable_fast_install=yes
8142 fi
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 # This can be used to rebuild libtool when needed
8155 LIBTOOL_DEPS="$ltmain"
8156
8157 # Always use our own libtool.
8158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 test -z "$LN_S" && LN_S="ln -s"
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 if test -n "${ZSH_VERSION+set}" ; then
8205    setopt NO_GLOB_SUBST
8206 fi
8207
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8209 $as_echo_n "checking for objdir... " >&6; }
8210 if ${lt_cv_objdir+:} false; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   rm -f .libs 2>/dev/null
8214 mkdir .libs 2>/dev/null
8215 if test -d .libs; then
8216   lt_cv_objdir=.libs
8217 else
8218   # MS-DOS does not allow filenames that begin with a dot.
8219   lt_cv_objdir=_libs
8220 fi
8221 rmdir .libs 2>/dev/null
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8224 $as_echo "$lt_cv_objdir" >&6; }
8225 objdir=$lt_cv_objdir
8226
8227
8228
8229
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define LT_OBJDIR "$lt_cv_objdir/"
8233 _ACEOF
8234
8235
8236
8237
8238 case $host_os in
8239 aix3*)
8240   # AIX sometimes has problems with the GCC collect2 program.  For some
8241   # reason, if we set the COLLECT_NAMES environment variable, the problems
8242   # vanish in a puff of smoke.
8243   if test "X${COLLECT_NAMES+set}" != Xset; then
8244     COLLECT_NAMES=
8245     export COLLECT_NAMES
8246   fi
8247   ;;
8248 esac
8249
8250 # Global variables:
8251 ofile=libtool
8252 can_build_shared=yes
8253
8254 # All known linkers require a `.a' archive for static linking (except MSVC,
8255 # which needs '.lib').
8256 libext=a
8257
8258 with_gnu_ld="$lt_cv_prog_gnu_ld"
8259
8260 old_CC="$CC"
8261 old_CFLAGS="$CFLAGS"
8262
8263 # Set sane defaults for various variables
8264 test -z "$CC" && CC=cc
8265 test -z "$LTCC" && LTCC=$CC
8266 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8267 test -z "$LD" && LD=ld
8268 test -z "$ac_objext" && ac_objext=o
8269
8270 for cc_temp in $compiler""; do
8271   case $cc_temp in
8272     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8273     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8274     \-*) ;;
8275     *) break;;
8276   esac
8277 done
8278 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8279
8280
8281 # Only perform the check for file, if the check method requires it
8282 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8283 case $deplibs_check_method in
8284 file_magic*)
8285   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8287 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8288 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8289   $as_echo_n "(cached) " >&6
8290 else
8291   case $MAGIC_CMD in
8292 [\\/*] |  ?:[\\/]*)
8293   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8294   ;;
8295 *)
8296   lt_save_MAGIC_CMD="$MAGIC_CMD"
8297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8298   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8299   for ac_dir in $ac_dummy; do
8300     IFS="$lt_save_ifs"
8301     test -z "$ac_dir" && ac_dir=.
8302     if test -f $ac_dir/${ac_tool_prefix}file; then
8303       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8304       if test -n "$file_magic_test_file"; then
8305         case $deplibs_check_method in
8306         "file_magic "*)
8307           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8308           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8309           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8310             $EGREP "$file_magic_regex" > /dev/null; then
8311             :
8312           else
8313             cat <<_LT_EOF 1>&2
8314
8315 *** Warning: the command libtool uses to detect shared libraries,
8316 *** $file_magic_cmd, produces output that libtool cannot recognize.
8317 *** The result is that libtool may fail to recognize shared libraries
8318 *** as such.  This will affect the creation of libtool libraries that
8319 *** depend on shared libraries, but programs linked with such libtool
8320 *** libraries will work regardless of this problem.  Nevertheless, you
8321 *** may want to report the problem to your system manager and/or to
8322 *** bug-libtool@gnu.org
8323
8324 _LT_EOF
8325           fi ;;
8326         esac
8327       fi
8328       break
8329     fi
8330   done
8331   IFS="$lt_save_ifs"
8332   MAGIC_CMD="$lt_save_MAGIC_CMD"
8333   ;;
8334 esac
8335 fi
8336
8337 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8338 if test -n "$MAGIC_CMD"; then
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8340 $as_echo "$MAGIC_CMD" >&6; }
8341 else
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346
8347
8348
8349
8350 if test -z "$lt_cv_path_MAGIC_CMD"; then
8351   if test -n "$ac_tool_prefix"; then
8352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8353 $as_echo_n "checking for file... " >&6; }
8354 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   case $MAGIC_CMD in
8358 [\\/*] |  ?:[\\/]*)
8359   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8360   ;;
8361 *)
8362   lt_save_MAGIC_CMD="$MAGIC_CMD"
8363   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8364   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8365   for ac_dir in $ac_dummy; do
8366     IFS="$lt_save_ifs"
8367     test -z "$ac_dir" && ac_dir=.
8368     if test -f $ac_dir/file; then
8369       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8370       if test -n "$file_magic_test_file"; then
8371         case $deplibs_check_method in
8372         "file_magic "*)
8373           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8374           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8375           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8376             $EGREP "$file_magic_regex" > /dev/null; then
8377             :
8378           else
8379             cat <<_LT_EOF 1>&2
8380
8381 *** Warning: the command libtool uses to detect shared libraries,
8382 *** $file_magic_cmd, produces output that libtool cannot recognize.
8383 *** The result is that libtool may fail to recognize shared libraries
8384 *** as such.  This will affect the creation of libtool libraries that
8385 *** depend on shared libraries, but programs linked with such libtool
8386 *** libraries will work regardless of this problem.  Nevertheless, you
8387 *** may want to report the problem to your system manager and/or to
8388 *** bug-libtool@gnu.org
8389
8390 _LT_EOF
8391           fi ;;
8392         esac
8393       fi
8394       break
8395     fi
8396   done
8397   IFS="$lt_save_ifs"
8398   MAGIC_CMD="$lt_save_MAGIC_CMD"
8399   ;;
8400 esac
8401 fi
8402
8403 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8404 if test -n "$MAGIC_CMD"; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8406 $as_echo "$MAGIC_CMD" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411
8412
8413   else
8414     MAGIC_CMD=:
8415   fi
8416 fi
8417
8418   fi
8419   ;;
8420 esac
8421
8422 # Use C for the default configuration in the libtool script
8423
8424 lt_save_CC="$CC"
8425 ac_ext=c
8426 ac_cpp='$CPP $CPPFLAGS'
8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430
8431
8432 # Source file extension for C test sources.
8433 ac_ext=c
8434
8435 # Object file extension for compiled C test sources.
8436 objext=o
8437 objext=$objext
8438
8439 # Code to be used in simple compile tests
8440 lt_simple_compile_test_code="int some_variable = 0;"
8441
8442 # Code to be used in simple link tests
8443 lt_simple_link_test_code='int main(){return(0);}'
8444
8445
8446
8447
8448
8449
8450
8451 # If no C compiler was specified, use CC.
8452 LTCC=${LTCC-"$CC"}
8453
8454 # If no C compiler flags were specified, use CFLAGS.
8455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8456
8457 # Allow CC to be a program name with arguments.
8458 compiler=$CC
8459
8460 # Save the default compiler, since it gets overwritten when the other
8461 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8462 compiler_DEFAULT=$CC
8463
8464 # save warnings/boilerplate of simple test code
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_compiler_boilerplate=`cat conftest.err`
8469 $RM conftest*
8470
8471 ac_outfile=conftest.$ac_objext
8472 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8474 _lt_linker_boilerplate=`cat conftest.err`
8475 $RM -r conftest*
8476
8477
8478 ## CAVEAT EMPTOR:
8479 ## There is no encapsulation within the following macros, do not change
8480 ## the running order or otherwise move them around unless you know exactly
8481 ## what you are doing...
8482 if test -n "$compiler"; then
8483
8484 lt_prog_compiler_no_builtin_flag=
8485
8486 if test "$GCC" = yes; then
8487   case $cc_basename in
8488   nvcc*)
8489     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8490   *)
8491     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8492   esac
8493
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8495 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8496 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   lt_cv_prog_compiler_rtti_exceptions=no
8500    ac_outfile=conftest.$ac_objext
8501    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8502    lt_compiler_flag="-fno-rtti -fno-exceptions"
8503    # Insert the option either (1) after the last *FLAGS variable, or
8504    # (2) before a word containing "conftest.", or (3) at the end.
8505    # Note that $ac_compile itself does not contain backslashes and begins
8506    # with a dollar sign (not a hyphen), so the echo should work correctly.
8507    # The option is referenced via a variable to avoid confusing sed.
8508    lt_compile=`echo "$ac_compile" | $SED \
8509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8511    -e 's:$: $lt_compiler_flag:'`
8512    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8513    (eval "$lt_compile" 2>conftest.err)
8514    ac_status=$?
8515    cat conftest.err >&5
8516    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517    if (exit $ac_status) && test -s "$ac_outfile"; then
8518      # The compiler can only warn and ignore the option if not recognized
8519      # So say no if there are warnings other than the usual output.
8520      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8521      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8523        lt_cv_prog_compiler_rtti_exceptions=yes
8524      fi
8525    fi
8526    $RM conftest*
8527
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8530 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8531
8532 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8533     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8534 else
8535     :
8536 fi
8537
8538 fi
8539
8540
8541
8542
8543
8544
8545   lt_prog_compiler_wl=
8546 lt_prog_compiler_pic=
8547 lt_prog_compiler_static=
8548
8549
8550   if test "$GCC" = yes; then
8551     lt_prog_compiler_wl='-Wl,'
8552     lt_prog_compiler_static='-static'
8553
8554     case $host_os in
8555       aix*)
8556       # All AIX code is PIC.
8557       if test "$host_cpu" = ia64; then
8558         # AIX 5 now supports IA64 processor
8559         lt_prog_compiler_static='-Bstatic'
8560       fi
8561       ;;
8562
8563     amigaos*)
8564       case $host_cpu in
8565       powerpc)
8566             # see comment about AmigaOS4 .so support
8567             lt_prog_compiler_pic='-fPIC'
8568         ;;
8569       m68k)
8570             # FIXME: we need at least 68020 code to build shared libraries, but
8571             # adding the `-m68020' flag to GCC prevents building anything better,
8572             # like `-m68040'.
8573             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8574         ;;
8575       esac
8576       ;;
8577
8578     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8579       # PIC is the default for these OSes.
8580       ;;
8581
8582     mingw* | cygwin* | pw32* | os2* | cegcc*)
8583       # This hack is so that the source file can tell whether it is being
8584       # built for inclusion in a dll (and should export symbols for example).
8585       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8586       # (--disable-auto-import) libraries
8587       lt_prog_compiler_pic='-DDLL_EXPORT'
8588       ;;
8589
8590     darwin* | rhapsody*)
8591       # PIC is the default on this platform
8592       # Common symbols not allowed in MH_DYLIB files
8593       lt_prog_compiler_pic='-fno-common'
8594       ;;
8595
8596     haiku*)
8597       # PIC is the default for Haiku.
8598       # The "-static" flag exists, but is broken.
8599       lt_prog_compiler_static=
8600       ;;
8601
8602     hpux*)
8603       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8604       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8605       # sets the default TLS model and affects inlining.
8606       case $host_cpu in
8607       hppa*64*)
8608         # +Z the default
8609         ;;
8610       *)
8611         lt_prog_compiler_pic='-fPIC'
8612         ;;
8613       esac
8614       ;;
8615
8616     interix[3-9]*)
8617       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8618       # Instead, we relocate shared libraries at runtime.
8619       ;;
8620
8621     msdosdjgpp*)
8622       # Just because we use GCC doesn't mean we suddenly get shared libraries
8623       # on systems that don't support them.
8624       lt_prog_compiler_can_build_shared=no
8625       enable_shared=no
8626       ;;
8627
8628     *nto* | *qnx*)
8629       # QNX uses GNU C++, but need to define -shared option too, otherwise
8630       # it will coredump.
8631       lt_prog_compiler_pic='-fPIC -shared'
8632       ;;
8633
8634     sysv4*MP*)
8635       if test -d /usr/nec; then
8636         lt_prog_compiler_pic=-Kconform_pic
8637       fi
8638       ;;
8639
8640     *)
8641       lt_prog_compiler_pic='-fPIC'
8642       ;;
8643     esac
8644
8645     case $cc_basename in
8646     nvcc*) # Cuda Compiler Driver 2.2
8647       lt_prog_compiler_wl='-Xlinker '
8648       if test -n "$lt_prog_compiler_pic"; then
8649         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8650       fi
8651       ;;
8652     esac
8653   else
8654     # PORTME Check for flag to pass linker flags through the system compiler.
8655     case $host_os in
8656     aix*)
8657       lt_prog_compiler_wl='-Wl,'
8658       if test "$host_cpu" = ia64; then
8659         # AIX 5 now supports IA64 processor
8660         lt_prog_compiler_static='-Bstatic'
8661       else
8662         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8663       fi
8664       ;;
8665
8666     mingw* | cygwin* | pw32* | os2* | cegcc*)
8667       # This hack is so that the source file can tell whether it is being
8668       # built for inclusion in a dll (and should export symbols for example).
8669       lt_prog_compiler_pic='-DDLL_EXPORT'
8670       ;;
8671
8672     hpux9* | hpux10* | hpux11*)
8673       lt_prog_compiler_wl='-Wl,'
8674       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8675       # not for PA HP-UX.
8676       case $host_cpu in
8677       hppa*64*|ia64*)
8678         # +Z the default
8679         ;;
8680       *)
8681         lt_prog_compiler_pic='+Z'
8682         ;;
8683       esac
8684       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8685       lt_prog_compiler_static='${wl}-a ${wl}archive'
8686       ;;
8687
8688     irix5* | irix6* | nonstopux*)
8689       lt_prog_compiler_wl='-Wl,'
8690       # PIC (with -KPIC) is the default.
8691       lt_prog_compiler_static='-non_shared'
8692       ;;
8693
8694     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8695       case $cc_basename in
8696       # old Intel for x86_64 which still supported -KPIC.
8697       ecc*)
8698         lt_prog_compiler_wl='-Wl,'
8699         lt_prog_compiler_pic='-KPIC'
8700         lt_prog_compiler_static='-static'
8701         ;;
8702       # icc used to be incompatible with GCC.
8703       # ICC 10 doesn't accept -KPIC any more.
8704       icc* | ifort*)
8705         lt_prog_compiler_wl='-Wl,'
8706         lt_prog_compiler_pic='-fPIC'
8707         lt_prog_compiler_static='-static'
8708         ;;
8709       # Lahey Fortran 8.1.
8710       lf95*)
8711         lt_prog_compiler_wl='-Wl,'
8712         lt_prog_compiler_pic='--shared'
8713         lt_prog_compiler_static='--static'
8714         ;;
8715       nagfor*)
8716         # NAG Fortran compiler
8717         lt_prog_compiler_wl='-Wl,-Wl,,'
8718         lt_prog_compiler_pic='-PIC'
8719         lt_prog_compiler_static='-Bstatic'
8720         ;;
8721       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8722         # Portland Group compilers (*not* the Pentium gcc compiler,
8723         # which looks to be a dead project)
8724         lt_prog_compiler_wl='-Wl,'
8725         lt_prog_compiler_pic='-fpic'
8726         lt_prog_compiler_static='-Bstatic'
8727         ;;
8728       ccc*)
8729         lt_prog_compiler_wl='-Wl,'
8730         # All Alpha code is PIC.
8731         lt_prog_compiler_static='-non_shared'
8732         ;;
8733       xl* | bgxl* | bgf* | mpixl*)
8734         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8735         lt_prog_compiler_wl='-Wl,'
8736         lt_prog_compiler_pic='-qpic'
8737         lt_prog_compiler_static='-qstaticlink'
8738         ;;
8739       *)
8740         case `$CC -V 2>&1 | sed 5q` in
8741         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8742           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8743           lt_prog_compiler_pic='-KPIC'
8744           lt_prog_compiler_static='-Bstatic'
8745           lt_prog_compiler_wl=''
8746           ;;
8747         *Sun\ F* | *Sun*Fortran*)
8748           lt_prog_compiler_pic='-KPIC'
8749           lt_prog_compiler_static='-Bstatic'
8750           lt_prog_compiler_wl='-Qoption ld '
8751           ;;
8752         *Sun\ C*)
8753           # Sun C 5.9
8754           lt_prog_compiler_pic='-KPIC'
8755           lt_prog_compiler_static='-Bstatic'
8756           lt_prog_compiler_wl='-Wl,'
8757           ;;
8758         *Intel*\ [CF]*Compiler*)
8759           lt_prog_compiler_wl='-Wl,'
8760           lt_prog_compiler_pic='-fPIC'
8761           lt_prog_compiler_static='-static'
8762           ;;
8763         *Portland\ Group*)
8764           lt_prog_compiler_wl='-Wl,'
8765           lt_prog_compiler_pic='-fpic'
8766           lt_prog_compiler_static='-Bstatic'
8767           ;;
8768         esac
8769         ;;
8770       esac
8771       ;;
8772
8773     newsos6)
8774       lt_prog_compiler_pic='-KPIC'
8775       lt_prog_compiler_static='-Bstatic'
8776       ;;
8777
8778     *nto* | *qnx*)
8779       # QNX uses GNU C++, but need to define -shared option too, otherwise
8780       # it will coredump.
8781       lt_prog_compiler_pic='-fPIC -shared'
8782       ;;
8783
8784     osf3* | osf4* | osf5*)
8785       lt_prog_compiler_wl='-Wl,'
8786       # All OSF/1 code is PIC.
8787       lt_prog_compiler_static='-non_shared'
8788       ;;
8789
8790     rdos*)
8791       lt_prog_compiler_static='-non_shared'
8792       ;;
8793
8794     solaris*)
8795       lt_prog_compiler_pic='-KPIC'
8796       lt_prog_compiler_static='-Bstatic'
8797       case $cc_basename in
8798       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8799         lt_prog_compiler_wl='-Qoption ld ';;
8800       *)
8801         lt_prog_compiler_wl='-Wl,';;
8802       esac
8803       ;;
8804
8805     sunos4*)
8806       lt_prog_compiler_wl='-Qoption ld '
8807       lt_prog_compiler_pic='-PIC'
8808       lt_prog_compiler_static='-Bstatic'
8809       ;;
8810
8811     sysv4 | sysv4.2uw2* | sysv4.3*)
8812       lt_prog_compiler_wl='-Wl,'
8813       lt_prog_compiler_pic='-KPIC'
8814       lt_prog_compiler_static='-Bstatic'
8815       ;;
8816
8817     sysv4*MP*)
8818       if test -d /usr/nec ;then
8819         lt_prog_compiler_pic='-Kconform_pic'
8820         lt_prog_compiler_static='-Bstatic'
8821       fi
8822       ;;
8823
8824     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8825       lt_prog_compiler_wl='-Wl,'
8826       lt_prog_compiler_pic='-KPIC'
8827       lt_prog_compiler_static='-Bstatic'
8828       ;;
8829
8830     unicos*)
8831       lt_prog_compiler_wl='-Wl,'
8832       lt_prog_compiler_can_build_shared=no
8833       ;;
8834
8835     uts4*)
8836       lt_prog_compiler_pic='-pic'
8837       lt_prog_compiler_static='-Bstatic'
8838       ;;
8839
8840     *)
8841       lt_prog_compiler_can_build_shared=no
8842       ;;
8843     esac
8844   fi
8845
8846 case $host_os in
8847   # For platforms which do not support PIC, -DPIC is meaningless:
8848   *djgpp*)
8849     lt_prog_compiler_pic=
8850     ;;
8851   *)
8852     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8853     ;;
8854 esac
8855
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8857 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8858 if ${lt_cv_prog_compiler_pic+:} false; then :
8859   $as_echo_n "(cached) " >&6
8860 else
8861   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8864 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8865 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8866
8867 #
8868 # Check to make sure the PIC flag actually works.
8869 #
8870 if test -n "$lt_prog_compiler_pic"; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8873 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   lt_cv_prog_compiler_pic_works=no
8877    ac_outfile=conftest.$ac_objext
8878    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8880    # Insert the option either (1) after the last *FLAGS variable, or
8881    # (2) before a word containing "conftest.", or (3) at the end.
8882    # Note that $ac_compile itself does not contain backslashes and begins
8883    # with a dollar sign (not a hyphen), so the echo should work correctly.
8884    # The option is referenced via a variable to avoid confusing sed.
8885    lt_compile=`echo "$ac_compile" | $SED \
8886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888    -e 's:$: $lt_compiler_flag:'`
8889    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890    (eval "$lt_compile" 2>conftest.err)
8891    ac_status=$?
8892    cat conftest.err >&5
8893    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894    if (exit $ac_status) && test -s "$ac_outfile"; then
8895      # The compiler can only warn and ignore the option if not recognized
8896      # So say no if there are warnings other than the usual output.
8897      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8898      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8900        lt_cv_prog_compiler_pic_works=yes
8901      fi
8902    fi
8903    $RM conftest*
8904
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8907 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8908
8909 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8910     case $lt_prog_compiler_pic in
8911      "" | " "*) ;;
8912      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8913      esac
8914 else
8915     lt_prog_compiler_pic=
8916      lt_prog_compiler_can_build_shared=no
8917 fi
8918
8919 fi
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 #
8932 # Check to make sure the static flag actually works.
8933 #
8934 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8937 if ${lt_cv_prog_compiler_static_works+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   lt_cv_prog_compiler_static_works=no
8941    save_LDFLAGS="$LDFLAGS"
8942    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8943    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8944    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8945      # The linker can only warn and ignore the option if not recognized
8946      # So say no if there are warnings
8947      if test -s conftest.err; then
8948        # Append any errors to the config.log.
8949        cat conftest.err 1>&5
8950        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8951        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8952        if diff conftest.exp conftest.er2 >/dev/null; then
8953          lt_cv_prog_compiler_static_works=yes
8954        fi
8955      else
8956        lt_cv_prog_compiler_static_works=yes
8957      fi
8958    fi
8959    $RM -r conftest*
8960    LDFLAGS="$save_LDFLAGS"
8961
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8964 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8965
8966 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8967     :
8968 else
8969     lt_prog_compiler_static=
8970 fi
8971
8972
8973
8974
8975
8976
8977
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8979 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8980 if ${lt_cv_prog_compiler_c_o+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   lt_cv_prog_compiler_c_o=no
8984    $RM -r conftest 2>/dev/null
8985    mkdir conftest
8986    cd conftest
8987    mkdir out
8988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8989
8990    lt_compiler_flag="-o out/conftest2.$ac_objext"
8991    # Insert the option either (1) after the last *FLAGS variable, or
8992    # (2) before a word containing "conftest.", or (3) at the end.
8993    # Note that $ac_compile itself does not contain backslashes and begins
8994    # with a dollar sign (not a hyphen), so the echo should work correctly.
8995    lt_compile=`echo "$ac_compile" | $SED \
8996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8998    -e 's:$: $lt_compiler_flag:'`
8999    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9000    (eval "$lt_compile" 2>out/conftest.err)
9001    ac_status=$?
9002    cat out/conftest.err >&5
9003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9005    then
9006      # The compiler can only warn and ignore the option if not recognized
9007      # So say no if there are warnings
9008      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9009      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9010      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9011        lt_cv_prog_compiler_c_o=yes
9012      fi
9013    fi
9014    chmod u+w . 2>&5
9015    $RM conftest*
9016    # SGI C++ compiler will create directory out/ii_files/ for
9017    # template instantiation
9018    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9019    $RM out/* && rmdir out
9020    cd ..
9021    $RM -r conftest
9022    $RM conftest*
9023
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9026 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9027
9028
9029
9030
9031
9032
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9035 if ${lt_cv_prog_compiler_c_o+:} false; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   lt_cv_prog_compiler_c_o=no
9039    $RM -r conftest 2>/dev/null
9040    mkdir conftest
9041    cd conftest
9042    mkdir out
9043    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9044
9045    lt_compiler_flag="-o out/conftest2.$ac_objext"
9046    # Insert the option either (1) after the last *FLAGS variable, or
9047    # (2) before a word containing "conftest.", or (3) at the end.
9048    # Note that $ac_compile itself does not contain backslashes and begins
9049    # with a dollar sign (not a hyphen), so the echo should work correctly.
9050    lt_compile=`echo "$ac_compile" | $SED \
9051    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053    -e 's:$: $lt_compiler_flag:'`
9054    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9055    (eval "$lt_compile" 2>out/conftest.err)
9056    ac_status=$?
9057    cat out/conftest.err >&5
9058    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9060    then
9061      # The compiler can only warn and ignore the option if not recognized
9062      # So say no if there are warnings
9063      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9064      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066        lt_cv_prog_compiler_c_o=yes
9067      fi
9068    fi
9069    chmod u+w . 2>&5
9070    $RM conftest*
9071    # SGI C++ compiler will create directory out/ii_files/ for
9072    # template instantiation
9073    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9074    $RM out/* && rmdir out
9075    cd ..
9076    $RM -r conftest
9077    $RM conftest*
9078
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9082
9083
9084
9085
9086 hard_links="nottested"
9087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9088   # do not overwrite the value of need_locks provided by the user
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9090 $as_echo_n "checking if we can lock with hard links... " >&6; }
9091   hard_links=yes
9092   $RM conftest*
9093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9094   touch conftest.a
9095   ln conftest.a conftest.b 2>&5 || hard_links=no
9096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9098 $as_echo "$hard_links" >&6; }
9099   if test "$hard_links" = no; then
9100     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9101 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9102     need_locks=warn
9103   fi
9104 else
9105   need_locks=no
9106 fi
9107
9108
9109
9110
9111
9112
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9114 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9115
9116   runpath_var=
9117   allow_undefined_flag=
9118   always_export_symbols=no
9119   archive_cmds=
9120   archive_expsym_cmds=
9121   compiler_needs_object=no
9122   enable_shared_with_static_runtimes=no
9123   export_dynamic_flag_spec=
9124   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9125   hardcode_automatic=no
9126   hardcode_direct=no
9127   hardcode_direct_absolute=no
9128   hardcode_libdir_flag_spec=
9129   hardcode_libdir_separator=
9130   hardcode_minus_L=no
9131   hardcode_shlibpath_var=unsupported
9132   inherit_rpath=no
9133   link_all_deplibs=unknown
9134   module_cmds=
9135   module_expsym_cmds=
9136   old_archive_from_new_cmds=
9137   old_archive_from_expsyms_cmds=
9138   thread_safe_flag_spec=
9139   whole_archive_flag_spec=
9140   # include_expsyms should be a list of space-separated symbols to be *always*
9141   # included in the symbol list
9142   include_expsyms=
9143   # exclude_expsyms can be an extended regexp of symbols to exclude
9144   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9145   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9146   # as well as any symbol that contains `d'.
9147   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9148   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9149   # platforms (ab)use it in PIC code, but their linkers get confused if
9150   # the symbol is explicitly referenced.  Since portable code cannot
9151   # rely on this symbol name, it's probably fine to never include it in
9152   # preloaded symbol tables.
9153   # Exclude shared library initialization/finalization symbols.
9154   extract_expsyms_cmds=
9155
9156   case $host_os in
9157   cygwin* | mingw* | pw32* | cegcc*)
9158     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9159     # When not using gcc, we currently assume that we are using
9160     # Microsoft Visual C++.
9161     if test "$GCC" != yes; then
9162       with_gnu_ld=no
9163     fi
9164     ;;
9165   interix*)
9166     # we just hope/assume this is gcc and not c89 (= MSVC++)
9167     with_gnu_ld=yes
9168     ;;
9169   openbsd*)
9170     with_gnu_ld=no
9171     ;;
9172   esac
9173
9174   ld_shlibs=yes
9175
9176   # On some targets, GNU ld is compatible enough with the native linker
9177   # that we're better off using the native interface for both.
9178   lt_use_gnu_ld_interface=no
9179   if test "$with_gnu_ld" = yes; then
9180     case $host_os in
9181       aix*)
9182         # The AIX port of GNU ld has always aspired to compatibility
9183         # with the native linker.  However, as the warning in the GNU ld
9184         # block says, versions before 2.19.5* couldn't really create working
9185         # shared libraries, regardless of the interface used.
9186         case `$LD -v 2>&1` in
9187           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9188           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9189           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9190           *)
9191             lt_use_gnu_ld_interface=yes
9192             ;;
9193         esac
9194         ;;
9195       *)
9196         lt_use_gnu_ld_interface=yes
9197         ;;
9198     esac
9199   fi
9200
9201   if test "$lt_use_gnu_ld_interface" = yes; then
9202     # If archive_cmds runs LD, not CC, wlarc should be empty
9203     wlarc='${wl}'
9204
9205     # Set some defaults for GNU ld with shared library support. These
9206     # are reset later if shared libraries are not supported. Putting them
9207     # here allows them to be overridden if necessary.
9208     runpath_var=LD_RUN_PATH
9209     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210     export_dynamic_flag_spec='${wl}--export-dynamic'
9211     # ancient GNU ld didn't support --whole-archive et. al.
9212     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9213       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9214     else
9215       whole_archive_flag_spec=
9216     fi
9217     supports_anon_versioning=no
9218     case `$LD -v 2>&1` in
9219       *GNU\ gold*) supports_anon_versioning=yes ;;
9220       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9221       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9222       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9223       *\ 2.11.*) ;; # other 2.11 versions
9224       *) supports_anon_versioning=yes ;;
9225     esac
9226
9227     # See if GNU ld supports shared libraries.
9228     case $host_os in
9229     aix[3-9]*)
9230       # On AIX/PPC, the GNU linker is very broken
9231       if test "$host_cpu" != ia64; then
9232         ld_shlibs=no
9233         cat <<_LT_EOF 1>&2
9234
9235 *** Warning: the GNU linker, at least up to release 2.19, is reported
9236 *** to be unable to reliably create shared libraries on AIX.
9237 *** Therefore, libtool is disabling shared libraries support.  If you
9238 *** really care for shared libraries, you may want to install binutils
9239 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9240 *** You will then need to restart the configuration process.
9241
9242 _LT_EOF
9243       fi
9244       ;;
9245
9246     amigaos*)
9247       case $host_cpu in
9248       powerpc)
9249             # see comment about AmigaOS4 .so support
9250             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251             archive_expsym_cmds=''
9252         ;;
9253       m68k)
9254             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)'
9255             hardcode_libdir_flag_spec='-L$libdir'
9256             hardcode_minus_L=yes
9257         ;;
9258       esac
9259       ;;
9260
9261     beos*)
9262       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263         allow_undefined_flag=unsupported
9264         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9265         # support --undefined.  This deserves some investigation.  FIXME
9266         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267       else
9268         ld_shlibs=no
9269       fi
9270       ;;
9271
9272     cygwin* | mingw* | pw32* | cegcc*)
9273       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9274       # as there is no search path for DLLs.
9275       hardcode_libdir_flag_spec='-L$libdir'
9276       export_dynamic_flag_spec='${wl}--export-all-symbols'
9277       allow_undefined_flag=unsupported
9278       always_export_symbols=no
9279       enable_shared_with_static_runtimes=yes
9280       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'
9281       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9282
9283       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9285         # If the export-symbols file already is a .def file (1st line
9286         # is EXPORTS), use it as is; otherwise, prepend...
9287         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9288           cp $export_symbols $output_objdir/$soname.def;
9289         else
9290           echo EXPORTS > $output_objdir/$soname.def;
9291           cat $export_symbols >> $output_objdir/$soname.def;
9292         fi~
9293         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9294       else
9295         ld_shlibs=no
9296       fi
9297       ;;
9298
9299     haiku*)
9300       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301       link_all_deplibs=yes
9302       ;;
9303
9304     interix[3-9]*)
9305       hardcode_direct=no
9306       hardcode_shlibpath_var=no
9307       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308       export_dynamic_flag_spec='${wl}-E'
9309       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9310       # Instead, shared libraries are loaded at an image base (0x10000000 by
9311       # default) and relocated if they conflict, which is a slow very memory
9312       # consuming and fragmenting process.  To avoid this, we pick a random,
9313       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9314       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9315       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9316       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'
9317       ;;
9318
9319     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9320       tmp_diet=no
9321       if test "$host_os" = linux-dietlibc; then
9322         case $cc_basename in
9323           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9324         esac
9325       fi
9326       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9327          && test "$tmp_diet" = no
9328       then
9329         tmp_addflag=' $pic_flag'
9330         tmp_sharedflag='-shared'
9331         case $cc_basename,$host_cpu in
9332         pgcc*)                          # Portland Group C compiler
9333           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'
9334           tmp_addflag=' $pic_flag'
9335           ;;
9336         pgf77* | pgf90* | pgf95* | pgfortran*)
9337                                         # Portland Group f77 and f90 compilers
9338           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'
9339           tmp_addflag=' $pic_flag -Mnomain' ;;
9340         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9341           tmp_addflag=' -i_dynamic' ;;
9342         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9343           tmp_addflag=' -i_dynamic -nofor_main' ;;
9344         ifc* | ifort*)                  # Intel Fortran compiler
9345           tmp_addflag=' -nofor_main' ;;
9346         lf95*)                          # Lahey Fortran 8.1
9347           whole_archive_flag_spec=
9348           tmp_sharedflag='--shared' ;;
9349         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9350           tmp_sharedflag='-qmkshrobj'
9351           tmp_addflag= ;;
9352         nvcc*)  # Cuda Compiler Driver 2.2
9353           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'
9354           compiler_needs_object=yes
9355           ;;
9356         esac
9357         case `$CC -V 2>&1 | sed 5q` in
9358         *Sun\ C*)                       # Sun C 5.9
9359           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'
9360           compiler_needs_object=yes
9361           tmp_sharedflag='-G' ;;
9362         *Sun\ F*)                       # Sun Fortran 8.3
9363           tmp_sharedflag='-G' ;;
9364         esac
9365         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366
9367         if test "x$supports_anon_versioning" = xyes; then
9368           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9369             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9370             echo "local: *; };" >> $output_objdir/$libname.ver~
9371             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9372         fi
9373
9374         case $cc_basename in
9375         xlf* | bgf* | bgxlf* | mpixlf*)
9376           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9377           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9378           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9380           if test "x$supports_anon_versioning" = xyes; then
9381             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9382               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9383               echo "local: *; };" >> $output_objdir/$libname.ver~
9384               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9385           fi
9386           ;;
9387         esac
9388       else
9389         ld_shlibs=no
9390       fi
9391       ;;
9392
9393     netbsd*)
9394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9396         wlarc=
9397       else
9398         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400       fi
9401       ;;
9402
9403     solaris*)
9404       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9405         ld_shlibs=no
9406         cat <<_LT_EOF 1>&2
9407
9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409 *** create shared libraries on Solaris systems.  Therefore, libtool
9410 *** is disabling shared libraries support.  We urge you to upgrade GNU
9411 *** binutils to release 2.9.1 or newer.  Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9414
9415 _LT_EOF
9416       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9417         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419       else
9420         ld_shlibs=no
9421       fi
9422       ;;
9423
9424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425       case `$LD -v 2>&1` in
9426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9427         ld_shlibs=no
9428         cat <<_LT_EOF 1>&2
9429
9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9432 *** is disabling shared libraries support.  We urge you to upgrade GNU
9433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9436
9437 _LT_EOF
9438         ;;
9439         *)
9440           # For security reasons, it is highly recommended that you always
9441           # use absolute paths for naming shared libraries, and exclude the
9442           # DT_RUNPATH tag from executables and libraries.  But doing so
9443           # requires that you compile everything twice, which is a pain.
9444           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448           else
9449             ld_shlibs=no
9450           fi
9451         ;;
9452       esac
9453       ;;
9454
9455     sunos4*)
9456       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457       wlarc=
9458       hardcode_direct=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     *)
9463       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466       else
9467         ld_shlibs=no
9468       fi
9469       ;;
9470     esac
9471
9472     if test "$ld_shlibs" = no; then
9473       runpath_var=
9474       hardcode_libdir_flag_spec=
9475       export_dynamic_flag_spec=
9476       whole_archive_flag_spec=
9477     fi
9478   else
9479     # PORTME fill in a description of your system's linker (not GNU ld)
9480     case $host_os in
9481     aix3*)
9482       allow_undefined_flag=unsupported
9483       always_export_symbols=yes
9484       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'
9485       # Note: this linker hardcodes the directories in LIBPATH if there
9486       # are no directories specified by -L.
9487       hardcode_minus_L=yes
9488       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489         # Neither direct hardcoding nor static linking is supported with a
9490         # broken collect2.
9491         hardcode_direct=unsupported
9492       fi
9493       ;;
9494
9495     aix[4-9]*)
9496       if test "$host_cpu" = ia64; then
9497         # On IA64, the linker does run time linking by default, so we don't
9498         # have to do anything special.
9499         aix_use_runtimelinking=no
9500         exp_sym_flag='-Bexport'
9501         no_entry_flag=""
9502       else
9503         # If we're using GNU nm, then we don't want the "-C" option.
9504         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505         # Also, AIX nm treats weak defined symbols like other global
9506         # defined symbols, whereas GNU nm marks them as "W".
9507         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9508           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'
9509         else
9510           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'
9511         fi
9512         aix_use_runtimelinking=no
9513
9514         # Test if we are trying to use run time linking or normal
9515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516         # need to do runtime linking.
9517         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9518           for ld_flag in $LDFLAGS; do
9519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520             aix_use_runtimelinking=yes
9521             break
9522           fi
9523           done
9524           ;;
9525         esac
9526
9527         exp_sym_flag='-bexport'
9528         no_entry_flag='-bnoentry'
9529       fi
9530
9531       # When large executables or shared objects are built, AIX ld can
9532       # have problems creating the table of contents.  If linking a library
9533       # or program results in "error TOC overflow" add -mminimal-toc to
9534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536
9537       archive_cmds=''
9538       hardcode_direct=yes
9539       hardcode_direct_absolute=yes
9540       hardcode_libdir_separator=':'
9541       link_all_deplibs=yes
9542       file_list_spec='${wl}-f,'
9543
9544       if test "$GCC" = yes; then
9545         case $host_os in aix4.[012]|aix4.[012].*)
9546         # We only want to do this on AIX 4.2 and lower, the check
9547         # below for broken collect2 doesn't work under 4.3+
9548           collect2name=`${CC} -print-prog-name=collect2`
9549           if test -f "$collect2name" &&
9550            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9551           then
9552           # We have reworked collect2
9553           :
9554           else
9555           # We have old collect2
9556           hardcode_direct=unsupported
9557           # It fails to find uninstalled libraries when the uninstalled
9558           # path is not listed in the libpath.  Setting hardcode_minus_L
9559           # to unsupported forces relinking
9560           hardcode_minus_L=yes
9561           hardcode_libdir_flag_spec='-L$libdir'
9562           hardcode_libdir_separator=
9563           fi
9564           ;;
9565         esac
9566         shared_flag='-shared'
9567         if test "$aix_use_runtimelinking" = yes; then
9568           shared_flag="$shared_flag "'${wl}-G'
9569         fi
9570       else
9571         # not using gcc
9572         if test "$host_cpu" = ia64; then
9573         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9574         # chokes on -Wl,-G. The following line is correct:
9575           shared_flag='-G'
9576         else
9577           if test "$aix_use_runtimelinking" = yes; then
9578             shared_flag='${wl}-G'
9579           else
9580             shared_flag='${wl}-bM:SRE'
9581           fi
9582         fi
9583       fi
9584
9585       export_dynamic_flag_spec='${wl}-bexpall'
9586       # It seems that -bexpall does not export symbols beginning with
9587       # underscore (_), so it is better to generate a list of symbols to export.
9588       always_export_symbols=yes
9589       if test "$aix_use_runtimelinking" = yes; then
9590         # Warning - without using the other runtime loading flags (-brtl),
9591         # -berok will link without error, but may produce a broken library.
9592         allow_undefined_flag='-berok'
9593         # Determine the default libpath from the value encoded in an
9594         # empty executable.
9595         if test "${lt_cv_aix_libpath+set}" = set; then
9596   aix_libpath=$lt_cv_aix_libpath
9597 else
9598   if ${lt_cv_aix_libpath_+:} false; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h.  */
9603
9604 int
9605 main ()
9606 {
9607
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613
9614   lt_aix_libpath_sed='
9615       /Import File Strings/,/^$/ {
9616           /^0/ {
9617               s/^0  *\([^ ]*\) *$/\1/
9618               p
9619           }
9620       }'
9621   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622   # Check for a 64-bit object if we didn't find anything.
9623   if test -z "$lt_cv_aix_libpath_"; then
9624     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625   fi
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628     conftest$ac_exeext conftest.$ac_ext
9629   if test -z "$lt_cv_aix_libpath_"; then
9630     lt_cv_aix_libpath_="/usr/lib:/lib"
9631   fi
9632
9633 fi
9634
9635   aix_libpath=$lt_cv_aix_libpath_
9636 fi
9637
9638         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9639         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"
9640       else
9641         if test "$host_cpu" = ia64; then
9642           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9643           allow_undefined_flag="-z nodefs"
9644           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"
9645         else
9646          # Determine the default libpath from the value encoded in an
9647          # empty executable.
9648          if test "${lt_cv_aix_libpath+set}" = set; then
9649   aix_libpath=$lt_cv_aix_libpath
9650 else
9651   if ${lt_cv_aix_libpath_+:} false; then :
9652   $as_echo_n "(cached) " >&6
9653 else
9654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h.  */
9656
9657 int
9658 main ()
9659 {
9660
9661   ;
9662   return 0;
9663 }
9664 _ACEOF
9665 if ac_fn_c_try_link "$LINENO"; then :
9666
9667   lt_aix_libpath_sed='
9668       /Import File Strings/,/^$/ {
9669           /^0/ {
9670               s/^0  *\([^ ]*\) *$/\1/
9671               p
9672           }
9673       }'
9674   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675   # Check for a 64-bit object if we didn't find anything.
9676   if test -z "$lt_cv_aix_libpath_"; then
9677     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678   fi
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681     conftest$ac_exeext conftest.$ac_ext
9682   if test -z "$lt_cv_aix_libpath_"; then
9683     lt_cv_aix_libpath_="/usr/lib:/lib"
9684   fi
9685
9686 fi
9687
9688   aix_libpath=$lt_cv_aix_libpath_
9689 fi
9690
9691          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9692           # Warning - without using the other run time loading flags,
9693           # -berok will link without error, but may produce a broken library.
9694           no_undefined_flag=' ${wl}-bernotok'
9695           allow_undefined_flag=' ${wl}-berok'
9696           if test "$with_gnu_ld" = yes; then
9697             # We only use this code for GNU lds that support --whole-archive.
9698             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9699           else
9700             # Exported symbols can be pulled into shared objects from archives
9701             whole_archive_flag_spec='$convenience'
9702           fi
9703           archive_cmds_need_lc=yes
9704           # This is similar to how AIX traditionally builds its shared libraries.
9705           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'
9706         fi
9707       fi
9708       ;;
9709
9710     amigaos*)
9711       case $host_cpu in
9712       powerpc)
9713             # see comment about AmigaOS4 .so support
9714             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715             archive_expsym_cmds=''
9716         ;;
9717       m68k)
9718             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)'
9719             hardcode_libdir_flag_spec='-L$libdir'
9720             hardcode_minus_L=yes
9721         ;;
9722       esac
9723       ;;
9724
9725     bsdi[45]*)
9726       export_dynamic_flag_spec=-rdynamic
9727       ;;
9728
9729     cygwin* | mingw* | pw32* | cegcc*)
9730       # When not using gcc, we currently assume that we are using
9731       # Microsoft Visual C++.
9732       # hardcode_libdir_flag_spec is actually meaningless, as there is
9733       # no search path for DLLs.
9734       case $cc_basename in
9735       cl*)
9736         # Native MSVC
9737         hardcode_libdir_flag_spec=' '
9738         allow_undefined_flag=unsupported
9739         always_export_symbols=yes
9740         file_list_spec='@'
9741         # Tell ltmain to make .lib files, not .a files.
9742         libext=lib
9743         # Tell ltmain to make .dll files, not .so files.
9744         shrext_cmds=".dll"
9745         # FIXME: Setting linknames here is a bad hack.
9746         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9747         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9748             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9749           else
9750             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9751           fi~
9752           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9753           linknames='
9754         # The linker will not automatically build a static lib if we build a DLL.
9755         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9756         enable_shared_with_static_runtimes=yes
9757         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9758         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9759         # Don't use ranlib
9760         old_postinstall_cmds='chmod 644 $oldlib'
9761         postlink_cmds='lt_outputfile="@OUTPUT@"~
9762           lt_tool_outputfile="@TOOL_OUTPUT@"~
9763           case $lt_outputfile in
9764             *.exe|*.EXE) ;;
9765             *)
9766               lt_outputfile="$lt_outputfile.exe"
9767               lt_tool_outputfile="$lt_tool_outputfile.exe"
9768               ;;
9769           esac~
9770           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9771             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9772             $RM "$lt_outputfile.manifest";
9773           fi'
9774         ;;
9775       *)
9776         # Assume MSVC wrapper
9777         hardcode_libdir_flag_spec=' '
9778         allow_undefined_flag=unsupported
9779         # Tell ltmain to make .lib files, not .a files.
9780         libext=lib
9781         # Tell ltmain to make .dll files, not .so files.
9782         shrext_cmds=".dll"
9783         # FIXME: Setting linknames here is a bad hack.
9784         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9785         # The linker will automatically build a .lib file if we build a DLL.
9786         old_archive_from_new_cmds='true'
9787         # FIXME: Should let the user specify the lib program.
9788         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9789         enable_shared_with_static_runtimes=yes
9790         ;;
9791       esac
9792       ;;
9793
9794     darwin* | rhapsody*)
9795
9796
9797   archive_cmds_need_lc=no
9798   hardcode_direct=no
9799   hardcode_automatic=yes
9800   hardcode_shlibpath_var=unsupported
9801   if test "$lt_cv_ld_force_load" = "yes"; then
9802     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\"`'
9803
9804   else
9805     whole_archive_flag_spec=''
9806   fi
9807   link_all_deplibs=yes
9808   allow_undefined_flag="$_lt_dar_allow_undefined"
9809   case $cc_basename in
9810      ifort*) _lt_dar_can_shared=yes ;;
9811      *) _lt_dar_can_shared=$GCC ;;
9812   esac
9813   if test "$_lt_dar_can_shared" = "yes"; then
9814     output_verbose_link_cmd=func_echo_all
9815     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9816     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9817     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}"
9818     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}"
9819
9820   else
9821   ld_shlibs=no
9822   fi
9823
9824       ;;
9825
9826     dgux*)
9827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828       hardcode_libdir_flag_spec='-L$libdir'
9829       hardcode_shlibpath_var=no
9830       ;;
9831
9832     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9833     # support.  Future versions do this automatically, but an explicit c++rt0.o
9834     # does not break anything, and helps significantly (at the cost of a little
9835     # extra space).
9836     freebsd2.2*)
9837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9838       hardcode_libdir_flag_spec='-R$libdir'
9839       hardcode_direct=yes
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9844     freebsd2.*)
9845       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9846       hardcode_direct=yes
9847       hardcode_minus_L=yes
9848       hardcode_shlibpath_var=no
9849       ;;
9850
9851     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9852     freebsd* | dragonfly*)
9853       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9854       hardcode_libdir_flag_spec='-R$libdir'
9855       hardcode_direct=yes
9856       hardcode_shlibpath_var=no
9857       ;;
9858
9859     hpux9*)
9860       if test "$GCC" = yes; then
9861         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'
9862       else
9863         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'
9864       fi
9865       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9866       hardcode_libdir_separator=:
9867       hardcode_direct=yes
9868
9869       # hardcode_minus_L: Not really in the search PATH,
9870       # but as the default location of the library.
9871       hardcode_minus_L=yes
9872       export_dynamic_flag_spec='${wl}-E'
9873       ;;
9874
9875     hpux10*)
9876       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9877         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9878       else
9879         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9880       fi
9881       if test "$with_gnu_ld" = no; then
9882         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883         hardcode_libdir_separator=:
9884         hardcode_direct=yes
9885         hardcode_direct_absolute=yes
9886         export_dynamic_flag_spec='${wl}-E'
9887         # hardcode_minus_L: Not really in the search PATH,
9888         # but as the default location of the library.
9889         hardcode_minus_L=yes
9890       fi
9891       ;;
9892
9893     hpux11*)
9894       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9895         case $host_cpu in
9896         hppa*64*)
9897           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9898           ;;
9899         ia64*)
9900           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9901           ;;
9902         *)
9903           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904           ;;
9905         esac
9906       else
9907         case $host_cpu in
9908         hppa*64*)
9909           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9910           ;;
9911         ia64*)
9912           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9913           ;;
9914         *)
9915
9916           # Older versions of the 11.00 compiler do not understand -b yet
9917           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9919 $as_echo_n "checking if $CC understands -b... " >&6; }
9920 if ${lt_cv_prog_compiler__b+:} false; then :
9921   $as_echo_n "(cached) " >&6
9922 else
9923   lt_cv_prog_compiler__b=no
9924    save_LDFLAGS="$LDFLAGS"
9925    LDFLAGS="$LDFLAGS -b"
9926    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9927    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9928      # The linker can only warn and ignore the option if not recognized
9929      # So say no if there are warnings
9930      if test -s conftest.err; then
9931        # Append any errors to the config.log.
9932        cat conftest.err 1>&5
9933        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9934        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9935        if diff conftest.exp conftest.er2 >/dev/null; then
9936          lt_cv_prog_compiler__b=yes
9937        fi
9938      else
9939        lt_cv_prog_compiler__b=yes
9940      fi
9941    fi
9942    $RM -r conftest*
9943    LDFLAGS="$save_LDFLAGS"
9944
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9947 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9948
9949 if test x"$lt_cv_prog_compiler__b" = xyes; then
9950     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951 else
9952     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9953 fi
9954
9955           ;;
9956         esac
9957       fi
9958       if test "$with_gnu_ld" = no; then
9959         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9960         hardcode_libdir_separator=:
9961
9962         case $host_cpu in
9963         hppa*64*|ia64*)
9964           hardcode_direct=no
9965           hardcode_shlibpath_var=no
9966           ;;
9967         *)
9968           hardcode_direct=yes
9969           hardcode_direct_absolute=yes
9970           export_dynamic_flag_spec='${wl}-E'
9971
9972           # hardcode_minus_L: Not really in the search PATH,
9973           # but as the default location of the library.
9974           hardcode_minus_L=yes
9975           ;;
9976         esac
9977       fi
9978       ;;
9979
9980     irix5* | irix6* | nonstopux*)
9981       if test "$GCC" = yes; then
9982         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'
9983         # Try to use the -exported_symbol ld option, if it does not
9984         # work, assume that -exports_file does not work either and
9985         # implicitly export all symbols.
9986         # This should be the same for all languages, so no per-tag cache variable.
9987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9988 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9989 if ${lt_cv_irix_exported_symbol+:} false; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   save_LDFLAGS="$LDFLAGS"
9993            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9994            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h.  */
9996 int foo (void) { return 0; }
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"; then :
9999   lt_cv_irix_exported_symbol=yes
10000 else
10001   lt_cv_irix_exported_symbol=no
10002 fi
10003 rm -f core conftest.err conftest.$ac_objext \
10004     conftest$ac_exeext conftest.$ac_ext
10005            LDFLAGS="$save_LDFLAGS"
10006 fi
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10008 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10009         if test "$lt_cv_irix_exported_symbol" = yes; then
10010           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'
10011         fi
10012       else
10013         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'
10014         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'
10015       fi
10016       archive_cmds_need_lc='no'
10017       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018       hardcode_libdir_separator=:
10019       inherit_rpath=yes
10020       link_all_deplibs=yes
10021       ;;
10022
10023     netbsd*)
10024       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10025         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10026       else
10027         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10028       fi
10029       hardcode_libdir_flag_spec='-R$libdir'
10030       hardcode_direct=yes
10031       hardcode_shlibpath_var=no
10032       ;;
10033
10034     newsos6)
10035       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036       hardcode_direct=yes
10037       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038       hardcode_libdir_separator=:
10039       hardcode_shlibpath_var=no
10040       ;;
10041
10042     *nto* | *qnx*)
10043       ;;
10044
10045     openbsd*)
10046       if test -f /usr/libexec/ld.so; then
10047         hardcode_direct=yes
10048         hardcode_shlibpath_var=no
10049         hardcode_direct_absolute=yes
10050         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10051           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10052           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10053           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10054           export_dynamic_flag_spec='${wl}-E'
10055         else
10056           case $host_os in
10057            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10058              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10059              hardcode_libdir_flag_spec='-R$libdir'
10060              ;;
10061            *)
10062              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10063              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10064              ;;
10065           esac
10066         fi
10067       else
10068         ld_shlibs=no
10069       fi
10070       ;;
10071
10072     os2*)
10073       hardcode_libdir_flag_spec='-L$libdir'
10074       hardcode_minus_L=yes
10075       allow_undefined_flag=unsupported
10076       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'
10077       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10078       ;;
10079
10080     osf3*)
10081       if test "$GCC" = yes; then
10082         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10083         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'
10084       else
10085         allow_undefined_flag=' -expect_unresolved \*'
10086         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'
10087       fi
10088       archive_cmds_need_lc='no'
10089       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       hardcode_libdir_separator=:
10091       ;;
10092
10093     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10094       if test "$GCC" = yes; then
10095         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10096         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'
10097         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10098       else
10099         allow_undefined_flag=' -expect_unresolved \*'
10100         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'
10101         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~
10102         $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'
10103
10104         # Both c and cxx compiler support -rpath directly
10105         hardcode_libdir_flag_spec='-rpath $libdir'
10106       fi
10107       archive_cmds_need_lc='no'
10108       hardcode_libdir_separator=:
10109       ;;
10110
10111     solaris*)
10112       no_undefined_flag=' -z defs'
10113       if test "$GCC" = yes; then
10114         wlarc='${wl}'
10115         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10116         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10117           $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'
10118       else
10119         case `$CC -V 2>&1` in
10120         *"Compilers 5.0"*)
10121           wlarc=''
10122           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10124           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10125           ;;
10126         *)
10127           wlarc='${wl}'
10128           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10129           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10130           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10131           ;;
10132         esac
10133       fi
10134       hardcode_libdir_flag_spec='-R$libdir'
10135       hardcode_shlibpath_var=no
10136       case $host_os in
10137       solaris2.[0-5] | solaris2.[0-5].*) ;;
10138       *)
10139         # The compiler driver will combine and reorder linker options,
10140         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10141         # but is careful enough not to reorder.
10142         # Supported since Solaris 2.6 (maybe 2.5.1?)
10143         if test "$GCC" = yes; then
10144           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10145         else
10146           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10147         fi
10148         ;;
10149       esac
10150       link_all_deplibs=yes
10151       ;;
10152
10153     sunos4*)
10154       if test "x$host_vendor" = xsequent; then
10155         # Use $CC to link under sequent, because it throws in some extra .o
10156         # files that make .init and .fini sections work.
10157         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10158       else
10159         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10160       fi
10161       hardcode_libdir_flag_spec='-L$libdir'
10162       hardcode_direct=yes
10163       hardcode_minus_L=yes
10164       hardcode_shlibpath_var=no
10165       ;;
10166
10167     sysv4)
10168       case $host_vendor in
10169         sni)
10170           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171           hardcode_direct=yes # is this really true???
10172         ;;
10173         siemens)
10174           ## LD is ld it makes a PLAMLIB
10175           ## CC just makes a GrossModule.
10176           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10177           reload_cmds='$CC -r -o $output$reload_objs'
10178           hardcode_direct=no
10179         ;;
10180         motorola)
10181           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10183         ;;
10184       esac
10185       runpath_var='LD_RUN_PATH'
10186       hardcode_shlibpath_var=no
10187       ;;
10188
10189     sysv4.3*)
10190       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191       hardcode_shlibpath_var=no
10192       export_dynamic_flag_spec='-Bexport'
10193       ;;
10194
10195     sysv4*MP*)
10196       if test -d /usr/nec; then
10197         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198         hardcode_shlibpath_var=no
10199         runpath_var=LD_RUN_PATH
10200         hardcode_runpath_var=yes
10201         ld_shlibs=yes
10202       fi
10203       ;;
10204
10205     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10206       no_undefined_flag='${wl}-z,text'
10207       archive_cmds_need_lc=no
10208       hardcode_shlibpath_var=no
10209       runpath_var='LD_RUN_PATH'
10210
10211       if test "$GCC" = yes; then
10212         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214       else
10215         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217       fi
10218       ;;
10219
10220     sysv5* | sco3.2v5* | sco5v6*)
10221       # Note: We can NOT use -z defs as we might desire, because we do not
10222       # link with -lc, and that would cause any symbols used from libc to
10223       # always be unresolved, which means just about no library would
10224       # ever link correctly.  If we're not using GNU ld we use -z text
10225       # though, which does catch some bad symbols but isn't as heavy-handed
10226       # as -z defs.
10227       no_undefined_flag='${wl}-z,text'
10228       allow_undefined_flag='${wl}-z,nodefs'
10229       archive_cmds_need_lc=no
10230       hardcode_shlibpath_var=no
10231       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10232       hardcode_libdir_separator=':'
10233       link_all_deplibs=yes
10234       export_dynamic_flag_spec='${wl}-Bexport'
10235       runpath_var='LD_RUN_PATH'
10236
10237       if test "$GCC" = yes; then
10238         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240       else
10241         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243       fi
10244       ;;
10245
10246     uts4*)
10247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248       hardcode_libdir_flag_spec='-L$libdir'
10249       hardcode_shlibpath_var=no
10250       ;;
10251
10252     *)
10253       ld_shlibs=no
10254       ;;
10255     esac
10256
10257     if test x$host_vendor = xsni; then
10258       case $host in
10259       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10260         export_dynamic_flag_spec='${wl}-Blargedynsym'
10261         ;;
10262       esac
10263     fi
10264   fi
10265
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10267 $as_echo "$ld_shlibs" >&6; }
10268 test "$ld_shlibs" = no && can_build_shared=no
10269
10270 with_gnu_ld=$with_gnu_ld
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286 #
10287 # Do we need to explicitly link libc?
10288 #
10289 case "x$archive_cmds_need_lc" in
10290 x|xyes)
10291   # Assume -lc should be added
10292   archive_cmds_need_lc=yes
10293
10294   if test "$enable_shared" = yes && test "$GCC" = yes; then
10295     case $archive_cmds in
10296     *'~'*)
10297       # FIXME: we may have to deal with multi-command sequences.
10298       ;;
10299     '$CC '*)
10300       # Test whether the compiler implicitly links with -lc since on some
10301       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10302       # to ld, don't add -lc before -lgcc.
10303       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10304 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10305 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10306   $as_echo_n "(cached) " >&6
10307 else
10308   $RM conftest*
10309         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10310
10311         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10312   (eval $ac_compile) 2>&5
10313   ac_status=$?
10314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10315   test $ac_status = 0; } 2>conftest.err; then
10316           soname=conftest
10317           lib=conftest
10318           libobjs=conftest.$ac_objext
10319           deplibs=
10320           wl=$lt_prog_compiler_wl
10321           pic_flag=$lt_prog_compiler_pic
10322           compiler_flags=-v
10323           linker_flags=-v
10324           verstring=
10325           output_objdir=.
10326           libname=conftest
10327           lt_save_allow_undefined_flag=$allow_undefined_flag
10328           allow_undefined_flag=
10329           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10330   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10331   ac_status=$?
10332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10333   test $ac_status = 0; }
10334           then
10335             lt_cv_archive_cmds_need_lc=no
10336           else
10337             lt_cv_archive_cmds_need_lc=yes
10338           fi
10339           allow_undefined_flag=$lt_save_allow_undefined_flag
10340         else
10341           cat conftest.err 1>&5
10342         fi
10343         $RM conftest*
10344
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10347 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10348       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10349       ;;
10350     esac
10351   fi
10352   ;;
10353 esac
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10507 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10508
10509 if test "$GCC" = yes; then
10510   case $host_os in
10511     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10512     *) lt_awk_arg="/^libraries:/" ;;
10513   esac
10514   case $host_os in
10515     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10516     *) lt_sed_strip_eq="s,=/,/,g" ;;
10517   esac
10518   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10519   case $lt_search_path_spec in
10520   *\;*)
10521     # if the path contains ";" then we assume it to be the separator
10522     # otherwise default to the standard path separator (i.e. ":") - it is
10523     # assumed that no part of a normal pathname contains ";" but that should
10524     # okay in the real world where ";" in dirpaths is itself problematic.
10525     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10526     ;;
10527   *)
10528     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10529     ;;
10530   esac
10531   # Ok, now we have the path, separated by spaces, we can step through it
10532   # and add multilib dir if necessary.
10533   lt_tmp_lt_search_path_spec=
10534   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10535   for lt_sys_path in $lt_search_path_spec; do
10536     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10537       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10538     else
10539       test -d "$lt_sys_path" && \
10540         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10541     fi
10542   done
10543   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10544 BEGIN {RS=" "; FS="/|\n";} {
10545   lt_foo="";
10546   lt_count=0;
10547   for (lt_i = NF; lt_i > 0; lt_i--) {
10548     if ($lt_i != "" && $lt_i != ".") {
10549       if ($lt_i == "..") {
10550         lt_count++;
10551       } else {
10552         if (lt_count == 0) {
10553           lt_foo="/" $lt_i lt_foo;
10554         } else {
10555           lt_count--;
10556         }
10557       }
10558     }
10559   }
10560   if (lt_foo != "") { lt_freq[lt_foo]++; }
10561   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10562 }'`
10563   # AWK program above erroneously prepends '/' to C:/dos/paths
10564   # for these hosts.
10565   case $host_os in
10566     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10567       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10568   esac
10569   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10570 else
10571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10572 fi
10573 library_names_spec=
10574 libname_spec='lib$name'
10575 soname_spec=
10576 shrext_cmds=".so"
10577 postinstall_cmds=
10578 postuninstall_cmds=
10579 finish_cmds=
10580 finish_eval=
10581 shlibpath_var=
10582 shlibpath_overrides_runpath=unknown
10583 version_type=none
10584 dynamic_linker="$host_os ld.so"
10585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10586 need_lib_prefix=unknown
10587 hardcode_into_libs=no
10588
10589 # when you set need_version to no, make sure it does not cause -set_version
10590 # flags to be left without arguments
10591 need_version=unknown
10592
10593 case $host_os in
10594 aix3*)
10595   version_type=linux # correct to gnu/linux during the next big refactor
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10597   shlibpath_var=LIBPATH
10598
10599   # AIX 3 has no versioning support, so we append a major version to the name.
10600   soname_spec='${libname}${release}${shared_ext}$major'
10601   ;;
10602
10603 aix[4-9]*)
10604   version_type=linux # correct to gnu/linux during the next big refactor
10605   need_lib_prefix=no
10606   need_version=no
10607   hardcode_into_libs=yes
10608   if test "$host_cpu" = ia64; then
10609     # AIX 5 supports IA64
10610     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10611     shlibpath_var=LD_LIBRARY_PATH
10612   else
10613     # With GCC up to 2.95.x, collect2 would create an import file
10614     # for dependence libraries.  The import file would start with
10615     # the line `#! .'.  This would cause the generated library to
10616     # depend on `.', always an invalid library.  This was fixed in
10617     # development snapshots of GCC prior to 3.0.
10618     case $host_os in
10619       aix4 | aix4.[01] | aix4.[01].*)
10620       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10621            echo ' yes '
10622            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10623         :
10624       else
10625         can_build_shared=no
10626       fi
10627       ;;
10628     esac
10629     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10630     # soname into executable. Probably we can add versioning support to
10631     # collect2, so additional links can be useful in future.
10632     if test "$aix_use_runtimelinking" = yes; then
10633       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10634       # instead of lib<name>.a to let people know that these are not
10635       # typical AIX shared libraries.
10636       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637     else
10638       # We preserve .a as extension for shared libraries through AIX4.2
10639       # and later when we are not doing run time linking.
10640       library_names_spec='${libname}${release}.a $libname.a'
10641       soname_spec='${libname}${release}${shared_ext}$major'
10642     fi
10643     shlibpath_var=LIBPATH
10644   fi
10645   ;;
10646
10647 amigaos*)
10648   case $host_cpu in
10649   powerpc)
10650     # Since July 2007 AmigaOS4 officially supports .so libraries.
10651     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653     ;;
10654   m68k)
10655     library_names_spec='$libname.ixlibrary $libname.a'
10656     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10657     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'
10658     ;;
10659   esac
10660   ;;
10661
10662 beos*)
10663   library_names_spec='${libname}${shared_ext}'
10664   dynamic_linker="$host_os ld.so"
10665   shlibpath_var=LIBRARY_PATH
10666   ;;
10667
10668 bsdi[45]*)
10669   version_type=linux # correct to gnu/linux during the next big refactor
10670   need_version=no
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672   soname_spec='${libname}${release}${shared_ext}$major'
10673   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10674   shlibpath_var=LD_LIBRARY_PATH
10675   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10676   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10677   # the default ld.so.conf also contains /usr/contrib/lib and
10678   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10679   # libtool to hard-code these into programs
10680   ;;
10681
10682 cygwin* | mingw* | pw32* | cegcc*)
10683   version_type=windows
10684   shrext_cmds=".dll"
10685   need_version=no
10686   need_lib_prefix=no
10687
10688   case $GCC,$cc_basename in
10689   yes,*)
10690     # gcc
10691     library_names_spec='$libname.dll.a'
10692     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10693     postinstall_cmds='base_file=`basename \${file}`~
10694       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10695       dldir=$destdir/`dirname \$dlpath`~
10696       test -d \$dldir || mkdir -p \$dldir~
10697       $install_prog $dir/$dlname \$dldir/$dlname~
10698       chmod a+x \$dldir/$dlname~
10699       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10700         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10701       fi'
10702     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10703       dlpath=$dir/\$dldll~
10704        $RM \$dlpath'
10705     shlibpath_overrides_runpath=yes
10706
10707     case $host_os in
10708     cygwin*)
10709       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10710       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711
10712       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10713       ;;
10714     mingw* | cegcc*)
10715       # MinGW DLLs use traditional 'lib' prefix
10716       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717       ;;
10718     pw32*)
10719       # pw32 DLLs use 'pw' prefix rather than 'lib'
10720       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10721       ;;
10722     esac
10723     dynamic_linker='Win32 ld.exe'
10724     ;;
10725
10726   *,cl*)
10727     # Native MSVC
10728     libname_spec='$name'
10729     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730     library_names_spec='${libname}.dll.lib'
10731
10732     case $build_os in
10733     mingw*)
10734       sys_lib_search_path_spec=
10735       lt_save_ifs=$IFS
10736       IFS=';'
10737       for lt_path in $LIB
10738       do
10739         IFS=$lt_save_ifs
10740         # Let DOS variable expansion print the short 8.3 style file name.
10741         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10742         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10743       done
10744       IFS=$lt_save_ifs
10745       # Convert to MSYS style.
10746       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10747       ;;
10748     cygwin*)
10749       # Convert to unix form, then to dos form, then back to unix form
10750       # but this time dos style (no spaces!) so that the unix form looks
10751       # like /cygdrive/c/PROGRA~1:/cygdr...
10752       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10753       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10754       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755       ;;
10756     *)
10757       sys_lib_search_path_spec="$LIB"
10758       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10759         # It is most probably a Windows format PATH.
10760         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10761       else
10762         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10763       fi
10764       # FIXME: find the short name or the path components, as spaces are
10765       # common. (e.g. "Program Files" -> "PROGRA~1")
10766       ;;
10767     esac
10768
10769     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10770     postinstall_cmds='base_file=`basename \${file}`~
10771       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10772       dldir=$destdir/`dirname \$dlpath`~
10773       test -d \$dldir || mkdir -p \$dldir~
10774       $install_prog $dir/$dlname \$dldir/$dlname'
10775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10776       dlpath=$dir/\$dldll~
10777        $RM \$dlpath'
10778     shlibpath_overrides_runpath=yes
10779     dynamic_linker='Win32 link.exe'
10780     ;;
10781
10782   *)
10783     # Assume MSVC wrapper
10784     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10785     dynamic_linker='Win32 ld.exe'
10786     ;;
10787   esac
10788   # FIXME: first we should search . and the directory the executable is in
10789   shlibpath_var=PATH
10790   ;;
10791
10792 darwin* | rhapsody*)
10793   dynamic_linker="$host_os dyld"
10794   version_type=darwin
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10798   soname_spec='${libname}${release}${major}$shared_ext'
10799   shlibpath_overrides_runpath=yes
10800   shlibpath_var=DYLD_LIBRARY_PATH
10801   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10802
10803   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10804   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10805   ;;
10806
10807 dgux*)
10808   version_type=linux # correct to gnu/linux during the next big refactor
10809   need_lib_prefix=no
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   shlibpath_var=LD_LIBRARY_PATH
10814   ;;
10815
10816 freebsd* | dragonfly*)
10817   # DragonFly does not have aout.  When/if they implement a new
10818   # versioning mechanism, adjust this.
10819   if test -x /usr/bin/objformat; then
10820     objformat=`/usr/bin/objformat`
10821   else
10822     case $host_os in
10823     freebsd[23].*) objformat=aout ;;
10824     *) objformat=elf ;;
10825     esac
10826   fi
10827   version_type=freebsd-$objformat
10828   case $version_type in
10829     freebsd-elf*)
10830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10831       need_version=no
10832       need_lib_prefix=no
10833       ;;
10834     freebsd-*)
10835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10836       need_version=yes
10837       ;;
10838   esac
10839   shlibpath_var=LD_LIBRARY_PATH
10840   case $host_os in
10841   freebsd2.*)
10842     shlibpath_overrides_runpath=yes
10843     ;;
10844   freebsd3.[01]* | freebsdelf3.[01]*)
10845     shlibpath_overrides_runpath=yes
10846     hardcode_into_libs=yes
10847     ;;
10848   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10849   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10850     shlibpath_overrides_runpath=no
10851     hardcode_into_libs=yes
10852     ;;
10853   *) # from 4.6 on, and DragonFly
10854     shlibpath_overrides_runpath=yes
10855     hardcode_into_libs=yes
10856     ;;
10857   esac
10858   ;;
10859
10860 gnu*)
10861   version_type=linux # correct to gnu/linux during the next big refactor
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   shlibpath_var=LD_LIBRARY_PATH
10867   shlibpath_overrides_runpath=no
10868   hardcode_into_libs=yes
10869   ;;
10870
10871 haiku*)
10872   version_type=linux # correct to gnu/linux during the next big refactor
10873   need_lib_prefix=no
10874   need_version=no
10875   dynamic_linker="$host_os runtime_loader"
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10877   soname_spec='${libname}${release}${shared_ext}$major'
10878   shlibpath_var=LIBRARY_PATH
10879   shlibpath_overrides_runpath=yes
10880   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10881   hardcode_into_libs=yes
10882   ;;
10883
10884 hpux9* | hpux10* | hpux11*)
10885   # Give a soname corresponding to the major version so that dld.sl refuses to
10886   # link against other versions.
10887   version_type=sunos
10888   need_lib_prefix=no
10889   need_version=no
10890   case $host_cpu in
10891   ia64*)
10892     shrext_cmds='.so'
10893     hardcode_into_libs=yes
10894     dynamic_linker="$host_os dld.so"
10895     shlibpath_var=LD_LIBRARY_PATH
10896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898     soname_spec='${libname}${release}${shared_ext}$major'
10899     if test "X$HPUX_IA64_MODE" = X32; then
10900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10901     else
10902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10903     fi
10904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10905     ;;
10906   hppa*64*)
10907     shrext_cmds='.sl'
10908     hardcode_into_libs=yes
10909     dynamic_linker="$host_os dld.sl"
10910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913     soname_spec='${libname}${release}${shared_ext}$major'
10914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10916     ;;
10917   *)
10918     shrext_cmds='.sl'
10919     dynamic_linker="$host_os dld.sl"
10920     shlibpath_var=SHLIB_PATH
10921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923     soname_spec='${libname}${release}${shared_ext}$major'
10924     ;;
10925   esac
10926   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10927   postinstall_cmds='chmod 555 $lib'
10928   # or fails outright, so override atomically:
10929   install_override_mode=555
10930   ;;
10931
10932 interix[3-9]*)
10933   version_type=linux # correct to gnu/linux during the next big refactor
10934   need_lib_prefix=no
10935   need_version=no
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=no
10941   hardcode_into_libs=yes
10942   ;;
10943
10944 irix5* | irix6* | nonstopux*)
10945   case $host_os in
10946     nonstopux*) version_type=nonstopux ;;
10947     *)
10948         if test "$lt_cv_prog_gnu_ld" = yes; then
10949                 version_type=linux # correct to gnu/linux during the next big refactor
10950         else
10951                 version_type=irix
10952         fi ;;
10953   esac
10954   need_lib_prefix=no
10955   need_version=no
10956   soname_spec='${libname}${release}${shared_ext}$major'
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10958   case $host_os in
10959   irix5* | nonstopux*)
10960     libsuff= shlibsuff=
10961     ;;
10962   *)
10963     case $LD in # libtool.m4 will add one of these switches to LD
10964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10965       libsuff= shlibsuff= libmagic=32-bit;;
10966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10967       libsuff=32 shlibsuff=N32 libmagic=N32;;
10968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10970     *) libsuff= shlibsuff= libmagic=never-match;;
10971     esac
10972     ;;
10973   esac
10974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10975   shlibpath_overrides_runpath=no
10976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10978   hardcode_into_libs=yes
10979   ;;
10980
10981 # No shared lib support for Linux oldld, aout, or coff.
10982 linux*oldld* | linux*aout* | linux*coff*)
10983   dynamic_linker=no
10984   ;;
10985
10986 # This must be glibc/ELF.
10987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10994   shlibpath_var=LD_LIBRARY_PATH
10995   shlibpath_overrides_runpath=no
10996
10997   # Some binutils ld are patched to set DT_RUNPATH
10998   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10999   $as_echo_n "(cached) " >&6
11000 else
11001   lt_cv_shlibpath_overrides_runpath=no
11002     save_LDFLAGS=$LDFLAGS
11003     save_libdir=$libdir
11004     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11005          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h.  */
11008
11009 int
11010 main ()
11011 {
11012
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11019   lt_cv_shlibpath_overrides_runpath=yes
11020 fi
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext \
11023     conftest$ac_exeext conftest.$ac_ext
11024     LDFLAGS=$save_LDFLAGS
11025     libdir=$save_libdir
11026
11027 fi
11028
11029   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11030
11031   # This implies no fast_install, which is unacceptable.
11032   # Some rework will be needed to allow for fast_install
11033   # before this can be enabled.
11034   hardcode_into_libs=yes
11035
11036   # Add ABI-specific directories to the system library path.
11037   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11038
11039   # Append ld.so.conf contents to the search path
11040   if test -f /etc/ld.so.conf; then
11041     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' ' '`
11042     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11043
11044   fi
11045
11046   # We used to test for /lib/ld.so.1 and disable shared libraries on
11047   # powerpc, because MkLinux only supported shared libraries with the
11048   # GNU dynamic linker.  Since this was broken with cross compilers,
11049   # most powerpc-linux boxes support dynamic linking these days and
11050   # people can always --disable-shared, the test was removed, and we
11051   # assume the GNU/Linux dynamic linker is in use.
11052   dynamic_linker='GNU/Linux ld.so'
11053   ;;
11054
11055 netbsd*)
11056   version_type=sunos
11057   need_lib_prefix=no
11058   need_version=no
11059   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062     dynamic_linker='NetBSD (a.out) ld.so'
11063   else
11064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11065     soname_spec='${libname}${release}${shared_ext}$major'
11066     dynamic_linker='NetBSD ld.elf_so'
11067   fi
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=yes
11070   hardcode_into_libs=yes
11071   ;;
11072
11073 newsos6)
11074   version_type=linux # correct to gnu/linux during the next big refactor
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076   shlibpath_var=LD_LIBRARY_PATH
11077   shlibpath_overrides_runpath=yes
11078   ;;
11079
11080 *nto* | *qnx*)
11081   version_type=qnx
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   shlibpath_var=LD_LIBRARY_PATH
11087   shlibpath_overrides_runpath=no
11088   hardcode_into_libs=yes
11089   dynamic_linker='ldqnx.so'
11090   ;;
11091
11092 openbsd*)
11093   version_type=sunos
11094   sys_lib_dlsearch_path_spec="/usr/lib"
11095   need_lib_prefix=no
11096   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11097   case $host_os in
11098     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11099     *)                          need_version=no  ;;
11100   esac
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11102   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11105     case $host_os in
11106       openbsd2.[89] | openbsd2.[89].*)
11107         shlibpath_overrides_runpath=no
11108         ;;
11109       *)
11110         shlibpath_overrides_runpath=yes
11111         ;;
11112       esac
11113   else
11114     shlibpath_overrides_runpath=yes
11115   fi
11116   ;;
11117
11118 os2*)
11119   libname_spec='$name'
11120   shrext_cmds=".dll"
11121   need_lib_prefix=no
11122   library_names_spec='$libname${shared_ext} $libname.a'
11123   dynamic_linker='OS/2 ld.exe'
11124   shlibpath_var=LIBPATH
11125   ;;
11126
11127 osf3* | osf4* | osf5*)
11128   version_type=osf
11129   need_lib_prefix=no
11130   need_version=no
11131   soname_spec='${libname}${release}${shared_ext}$major'
11132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11135   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11136   ;;
11137
11138 rdos*)
11139   dynamic_linker=no
11140   ;;
11141
11142 solaris*)
11143   version_type=linux # correct to gnu/linux during the next big refactor
11144   need_lib_prefix=no
11145   need_version=no
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147   soname_spec='${libname}${release}${shared_ext}$major'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   shlibpath_overrides_runpath=yes
11150   hardcode_into_libs=yes
11151   # ldd complains unless libraries are executable
11152   postinstall_cmds='chmod +x $lib'
11153   ;;
11154
11155 sunos4*)
11156   version_type=sunos
11157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11158   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11159   shlibpath_var=LD_LIBRARY_PATH
11160   shlibpath_overrides_runpath=yes
11161   if test "$with_gnu_ld" = yes; then
11162     need_lib_prefix=no
11163   fi
11164   need_version=yes
11165   ;;
11166
11167 sysv4 | sysv4.3*)
11168   version_type=linux # correct to gnu/linux during the next big refactor
11169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170   soname_spec='${libname}${release}${shared_ext}$major'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   case $host_vendor in
11173     sni)
11174       shlibpath_overrides_runpath=no
11175       need_lib_prefix=no
11176       runpath_var=LD_RUN_PATH
11177       ;;
11178     siemens)
11179       need_lib_prefix=no
11180       ;;
11181     motorola)
11182       need_lib_prefix=no
11183       need_version=no
11184       shlibpath_overrides_runpath=no
11185       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11186       ;;
11187   esac
11188   ;;
11189
11190 sysv4*MP*)
11191   if test -d /usr/nec ;then
11192     version_type=linux # correct to gnu/linux during the next big refactor
11193     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11194     soname_spec='$libname${shared_ext}.$major'
11195     shlibpath_var=LD_LIBRARY_PATH
11196   fi
11197   ;;
11198
11199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11200   version_type=freebsd-elf
11201   need_lib_prefix=no
11202   need_version=no
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11204   soname_spec='${libname}${release}${shared_ext}$major'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   shlibpath_overrides_runpath=yes
11207   hardcode_into_libs=yes
11208   if test "$with_gnu_ld" = yes; then
11209     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11210   else
11211     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11212     case $host_os in
11213       sco3.2v5*)
11214         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11215         ;;
11216     esac
11217   fi
11218   sys_lib_dlsearch_path_spec='/usr/lib'
11219   ;;
11220
11221 tpf*)
11222   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11223   version_type=linux # correct to gnu/linux during the next big refactor
11224   need_lib_prefix=no
11225   need_version=no
11226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227   shlibpath_var=LD_LIBRARY_PATH
11228   shlibpath_overrides_runpath=no
11229   hardcode_into_libs=yes
11230   ;;
11231
11232 uts4*)
11233   version_type=linux # correct to gnu/linux during the next big refactor
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   ;;
11238
11239 *)
11240   dynamic_linker=no
11241   ;;
11242 esac
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11244 $as_echo "$dynamic_linker" >&6; }
11245 test "$dynamic_linker" = no && can_build_shared=no
11246
11247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11248 if test "$GCC" = yes; then
11249   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11250 fi
11251
11252 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11253   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11254 fi
11255 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11256   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11257 fi
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11351 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11352 hardcode_action=
11353 if test -n "$hardcode_libdir_flag_spec" ||
11354    test -n "$runpath_var" ||
11355    test "X$hardcode_automatic" = "Xyes" ; then
11356
11357   # We can hardcode non-existent directories.
11358   if test "$hardcode_direct" != no &&
11359      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11360      # have to relink, otherwise we might link with an installed library
11361      # when we should be linking with a yet-to-be-installed one
11362      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11363      test "$hardcode_minus_L" != no; then
11364     # Linking always hardcodes the temporary library directory.
11365     hardcode_action=relink
11366   else
11367     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11368     hardcode_action=immediate
11369   fi
11370 else
11371   # We cannot hardcode anything, or else we can only hardcode existing
11372   # directories.
11373   hardcode_action=unsupported
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11376 $as_echo "$hardcode_action" >&6; }
11377
11378 if test "$hardcode_action" = relink ||
11379    test "$inherit_rpath" = yes; then
11380   # Fast installation is not supported
11381   enable_fast_install=no
11382 elif test "$shlibpath_overrides_runpath" = yes ||
11383      test "$enable_shared" = no; then
11384   # Fast installation is not necessary
11385   enable_fast_install=needless
11386 fi
11387
11388
11389
11390
11391
11392
11393   if test "x$enable_dlopen" != xyes; then
11394   enable_dlopen=unknown
11395   enable_dlopen_self=unknown
11396   enable_dlopen_self_static=unknown
11397 else
11398   lt_cv_dlopen=no
11399   lt_cv_dlopen_libs=
11400
11401   case $host_os in
11402   beos*)
11403     lt_cv_dlopen="load_add_on"
11404     lt_cv_dlopen_libs=
11405     lt_cv_dlopen_self=yes
11406     ;;
11407
11408   mingw* | pw32* | cegcc*)
11409     lt_cv_dlopen="LoadLibrary"
11410     lt_cv_dlopen_libs=
11411     ;;
11412
11413   cygwin*)
11414     lt_cv_dlopen="dlopen"
11415     lt_cv_dlopen_libs=
11416     ;;
11417
11418   darwin*)
11419   # if libdl is installed we need to link against it
11420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11422 if ${ac_cv_lib_dl_dlopen+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldl  $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h.  */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431    Use char because int might match the return type of a GCC
11432    builtin and then its argument prototype would still apply.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dlopen ();
11437 int
11438 main ()
11439 {
11440 return dlopen ();
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446   ac_cv_lib_dl_dlopen=yes
11447 else
11448   ac_cv_lib_dl_dlopen=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451     conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11455 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11456 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11457   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11458 else
11459
11460     lt_cv_dlopen="dyld"
11461     lt_cv_dlopen_libs=
11462     lt_cv_dlopen_self=yes
11463
11464 fi
11465
11466     ;;
11467
11468   *)
11469     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11470 if test "x$ac_cv_func_shl_load" = xyes; then :
11471   lt_cv_dlopen="shl_load"
11472 else
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11474 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11475 if ${ac_cv_lib_dld_shl_load+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   ac_check_lib_save_LIBS=$LIBS
11479 LIBS="-ldld  $LIBS"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h.  */
11482
11483 /* Override any GCC internal prototype to avoid an error.
11484    Use char because int might match the return type of a GCC
11485    builtin and then its argument prototype would still apply.  */
11486 #ifdef __cplusplus
11487 extern "C"
11488 #endif
11489 char shl_load ();
11490 int
11491 main ()
11492 {
11493 return shl_load ();
11494   ;
11495   return 0;
11496 }
11497 _ACEOF
11498 if ac_fn_c_try_link "$LINENO"; then :
11499   ac_cv_lib_dld_shl_load=yes
11500 else
11501   ac_cv_lib_dld_shl_load=no
11502 fi
11503 rm -f core conftest.err conftest.$ac_objext \
11504     conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11508 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11509 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11510   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11511 else
11512   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11513 if test "x$ac_cv_func_dlopen" = xyes; then :
11514   lt_cv_dlopen="dlopen"
11515 else
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11518 if ${ac_cv_lib_dl_dlopen+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldl  $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h.  */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527    Use char because int might match the return type of a GCC
11528    builtin and then its argument prototype would still apply.  */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char dlopen ();
11533 int
11534 main ()
11535 {
11536 return dlopen ();
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542   ac_cv_lib_dl_dlopen=yes
11543 else
11544   ac_cv_lib_dl_dlopen=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11551 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11552 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11554 else
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11556 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11557 if ${ac_cv_lib_svld_dlopen+:} false; then :
11558   $as_echo_n "(cached) " >&6
11559 else
11560   ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-lsvld  $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h.  */
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566    Use char because int might match the return type of a GCC
11567    builtin and then its argument prototype would still apply.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char dlopen ();
11572 int
11573 main ()
11574 {
11575 return dlopen ();
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581   ac_cv_lib_svld_dlopen=yes
11582 else
11583   ac_cv_lib_svld_dlopen=no
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext \
11586     conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11590 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11591 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11592   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11595 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11596 if ${ac_cv_lib_dld_dld_link+:} false; then :
11597   $as_echo_n "(cached) " >&6
11598 else
11599   ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ldld  $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h.  */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605    Use char because int might match the return type of a GCC
11606    builtin and then its argument prototype would still apply.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char dld_link ();
11611 int
11612 main ()
11613 {
11614 return dld_link ();
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620   ac_cv_lib_dld_dld_link=yes
11621 else
11622   ac_cv_lib_dld_dld_link=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11629 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11630 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11631   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11632 fi
11633
11634
11635 fi
11636
11637
11638 fi
11639
11640
11641 fi
11642
11643
11644 fi
11645
11646
11647 fi
11648
11649     ;;
11650   esac
11651
11652   if test "x$lt_cv_dlopen" != xno; then
11653     enable_dlopen=yes
11654   else
11655     enable_dlopen=no
11656   fi
11657
11658   case $lt_cv_dlopen in
11659   dlopen)
11660     save_CPPFLAGS="$CPPFLAGS"
11661     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11662
11663     save_LDFLAGS="$LDFLAGS"
11664     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11665
11666     save_LIBS="$LIBS"
11667     LIBS="$lt_cv_dlopen_libs $LIBS"
11668
11669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11670 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11671 if ${lt_cv_dlopen_self+:} false; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674           if test "$cross_compiling" = yes; then :
11675   lt_cv_dlopen_self=cross
11676 else
11677   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11678   lt_status=$lt_dlunknown
11679   cat > conftest.$ac_ext <<_LT_EOF
11680 #line $LINENO "configure"
11681 #include "confdefs.h"
11682
11683 #if HAVE_DLFCN_H
11684 #include <dlfcn.h>
11685 #endif
11686
11687 #include <stdio.h>
11688
11689 #ifdef RTLD_GLOBAL
11690 #  define LT_DLGLOBAL           RTLD_GLOBAL
11691 #else
11692 #  ifdef DL_GLOBAL
11693 #    define LT_DLGLOBAL         DL_GLOBAL
11694 #  else
11695 #    define LT_DLGLOBAL         0
11696 #  endif
11697 #endif
11698
11699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11700    find out it does not work in some platform. */
11701 #ifndef LT_DLLAZY_OR_NOW
11702 #  ifdef RTLD_LAZY
11703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11704 #  else
11705 #    ifdef DL_LAZY
11706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11707 #    else
11708 #      ifdef RTLD_NOW
11709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11710 #      else
11711 #        ifdef DL_NOW
11712 #          define LT_DLLAZY_OR_NOW      DL_NOW
11713 #        else
11714 #          define LT_DLLAZY_OR_NOW      0
11715 #        endif
11716 #      endif
11717 #    endif
11718 #  endif
11719 #endif
11720
11721 /* When -fvisbility=hidden is used, assume the code has been annotated
11722    correspondingly for the symbols needed.  */
11723 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11724 int fnord () __attribute__((visibility("default")));
11725 #endif
11726
11727 int fnord () { return 42; }
11728 int main ()
11729 {
11730   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11731   int status = $lt_dlunknown;
11732
11733   if (self)
11734     {
11735       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11736       else
11737         {
11738           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11739           else puts (dlerror ());
11740         }
11741       /* dlclose (self); */
11742     }
11743   else
11744     puts (dlerror ());
11745
11746   return status;
11747 }
11748 _LT_EOF
11749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11750   (eval $ac_link) 2>&5
11751   ac_status=$?
11752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11753   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11754     (./conftest; exit; ) >&5 2>/dev/null
11755     lt_status=$?
11756     case x$lt_status in
11757       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11758       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11759       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11760     esac
11761   else :
11762     # compilation failed
11763     lt_cv_dlopen_self=no
11764   fi
11765 fi
11766 rm -fr conftest*
11767
11768
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11771 $as_echo "$lt_cv_dlopen_self" >&6; }
11772
11773     if test "x$lt_cv_dlopen_self" = xyes; then
11774       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11775       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11776 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11777 if ${lt_cv_dlopen_self_static+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780           if test "$cross_compiling" = yes; then :
11781   lt_cv_dlopen_self_static=cross
11782 else
11783   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784   lt_status=$lt_dlunknown
11785   cat > conftest.$ac_ext <<_LT_EOF
11786 #line $LINENO "configure"
11787 #include "confdefs.h"
11788
11789 #if HAVE_DLFCN_H
11790 #include <dlfcn.h>
11791 #endif
11792
11793 #include <stdio.h>
11794
11795 #ifdef RTLD_GLOBAL
11796 #  define LT_DLGLOBAL           RTLD_GLOBAL
11797 #else
11798 #  ifdef DL_GLOBAL
11799 #    define LT_DLGLOBAL         DL_GLOBAL
11800 #  else
11801 #    define LT_DLGLOBAL         0
11802 #  endif
11803 #endif
11804
11805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806    find out it does not work in some platform. */
11807 #ifndef LT_DLLAZY_OR_NOW
11808 #  ifdef RTLD_LAZY
11809 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11810 #  else
11811 #    ifdef DL_LAZY
11812 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11813 #    else
11814 #      ifdef RTLD_NOW
11815 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11816 #      else
11817 #        ifdef DL_NOW
11818 #          define LT_DLLAZY_OR_NOW      DL_NOW
11819 #        else
11820 #          define LT_DLLAZY_OR_NOW      0
11821 #        endif
11822 #      endif
11823 #    endif
11824 #  endif
11825 #endif
11826
11827 /* When -fvisbility=hidden is used, assume the code has been annotated
11828    correspondingly for the symbols needed.  */
11829 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11830 int fnord () __attribute__((visibility("default")));
11831 #endif
11832
11833 int fnord () { return 42; }
11834 int main ()
11835 {
11836   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11837   int status = $lt_dlunknown;
11838
11839   if (self)
11840     {
11841       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11842       else
11843         {
11844           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11845           else puts (dlerror ());
11846         }
11847       /* dlclose (self); */
11848     }
11849   else
11850     puts (dlerror ());
11851
11852   return status;
11853 }
11854 _LT_EOF
11855   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11856   (eval $ac_link) 2>&5
11857   ac_status=$?
11858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11860     (./conftest; exit; ) >&5 2>/dev/null
11861     lt_status=$?
11862     case x$lt_status in
11863       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11864       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11865       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11866     esac
11867   else :
11868     # compilation failed
11869     lt_cv_dlopen_self_static=no
11870   fi
11871 fi
11872 rm -fr conftest*
11873
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11877 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11878     fi
11879
11880     CPPFLAGS="$save_CPPFLAGS"
11881     LDFLAGS="$save_LDFLAGS"
11882     LIBS="$save_LIBS"
11883     ;;
11884   esac
11885
11886   case $lt_cv_dlopen_self in
11887   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11888   *) enable_dlopen_self=unknown ;;
11889   esac
11890
11891   case $lt_cv_dlopen_self_static in
11892   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11893   *) enable_dlopen_self_static=unknown ;;
11894   esac
11895 fi
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 striplib=
11914 old_striplib=
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11916 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11917 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11918   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11919   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922 else
11923 # FIXME - insert some real tests, host_os isn't really good enough
11924   case $host_os in
11925   darwin*)
11926     if test -n "$STRIP" ; then
11927       striplib="$STRIP -x"
11928       old_striplib="$STRIP -S"
11929       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11931     else
11932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934     fi
11935     ;;
11936   *)
11937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939     ;;
11940   esac
11941 fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954   # Report which library types will actually be built
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11956 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11958 $as_echo "$can_build_shared" >&6; }
11959
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11961 $as_echo_n "checking whether to build shared libraries... " >&6; }
11962   test "$can_build_shared" = "no" && enable_shared=no
11963
11964   # On AIX, shared libraries and static libraries use the same namespace, and
11965   # are all built from PIC.
11966   case $host_os in
11967   aix3*)
11968     test "$enable_shared" = yes && enable_static=no
11969     if test -n "$RANLIB"; then
11970       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11971       postinstall_cmds='$RANLIB $lib'
11972     fi
11973     ;;
11974
11975   aix[4-9]*)
11976     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11977       test "$enable_shared" = yes && enable_static=no
11978     fi
11979     ;;
11980   esac
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11982 $as_echo "$enable_shared" >&6; }
11983
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11985 $as_echo_n "checking whether to build static libraries... " >&6; }
11986   # Make sure either enable_shared or enable_static is yes.
11987   test "$enable_shared" = yes || enable_static=yes
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11989 $as_echo "$enable_static" >&6; }
11990
11991
11992
11993
11994 fi
11995 ac_ext=c
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000
12001 CC="$lt_save_CC"
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017         ac_config_commands="$ac_config_commands libtool"
12018
12019
12020
12021
12022 # Only expand once:
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12034         if test -n "$ac_tool_prefix"; then
12035   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12036 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12040   $as_echo_n "(cached) " >&6
12041 else
12042   case $PKG_CONFIG in
12043   [\\/]* | ?:[\\/]*)
12044   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12045   ;;
12046   *)
12047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050   IFS=$as_save_IFS
12051   test -z "$as_dir" && as_dir=.
12052     for ac_exec_ext in '' $ac_executable_extensions; do
12053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056     break 2
12057   fi
12058 done
12059   done
12060 IFS=$as_save_IFS
12061
12062   ;;
12063 esac
12064 fi
12065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12066 if test -n "$PKG_CONFIG"; then
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12068 $as_echo "$PKG_CONFIG" >&6; }
12069 else
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075 fi
12076 if test -z "$ac_cv_path_PKG_CONFIG"; then
12077   ac_pt_PKG_CONFIG=$PKG_CONFIG
12078   # Extract the first word of "pkg-config", so it can be a program name with args.
12079 set dummy pkg-config; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   case $ac_pt_PKG_CONFIG in
12086   [\\/]* | ?:[\\/]*)
12087   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12088   ;;
12089   *)
12090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093   IFS=$as_save_IFS
12094   test -z "$as_dir" && as_dir=.
12095     for ac_exec_ext in '' $ac_executable_extensions; do
12096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099     break 2
12100   fi
12101 done
12102   done
12103 IFS=$as_save_IFS
12104
12105   ;;
12106 esac
12107 fi
12108 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12109 if test -n "$ac_pt_PKG_CONFIG"; then
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12111 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12112 else
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116
12117   if test "x$ac_pt_PKG_CONFIG" = x; then
12118     PKG_CONFIG=""
12119   else
12120     case $cross_compiling:$ac_tool_warned in
12121 yes:)
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12125 esac
12126     PKG_CONFIG=$ac_pt_PKG_CONFIG
12127   fi
12128 else
12129   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12130 fi
12131
12132 fi
12133 if test -n "$PKG_CONFIG"; then
12134         _pkg_min_version=0.9.0
12135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12136 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12137         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12138                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12140         else
12141                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143                 PKG_CONFIG=""
12144         fi
12145 fi
12146
12147 for ac_prog in flex lex
12148 do
12149   # Extract the first word of "$ac_prog", so it can be a program name with args.
12150 set dummy $ac_prog; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_LEX+:} false; then :
12154   $as_echo_n "(cached) " >&6
12155 else
12156   if test -n "$LEX"; then
12157   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12158 else
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12161 do
12162   IFS=$as_save_IFS
12163   test -z "$as_dir" && as_dir=.
12164     for ac_exec_ext in '' $ac_executable_extensions; do
12165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166     ac_cv_prog_LEX="$ac_prog"
12167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168     break 2
12169   fi
12170 done
12171   done
12172 IFS=$as_save_IFS
12173
12174 fi
12175 fi
12176 LEX=$ac_cv_prog_LEX
12177 if test -n "$LEX"; then
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12179 $as_echo "$LEX" >&6; }
12180 else
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183 fi
12184
12185
12186   test -n "$LEX" && break
12187 done
12188 test -n "$LEX" || LEX=":"
12189
12190 if test "x$LEX" != "x:"; then
12191   cat >conftest.l <<_ACEOF
12192 %%
12193 a { ECHO; }
12194 b { REJECT; }
12195 c { yymore (); }
12196 d { yyless (1); }
12197 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12198     yyless ((input () != 0)); }
12199 f { unput (yytext[0]); }
12200 . { BEGIN INITIAL; }
12201 %%
12202 #ifdef YYTEXT_POINTER
12203 extern char *yytext;
12204 #endif
12205 int
12206 main (void)
12207 {
12208   return ! yylex () + ! yywrap ();
12209 }
12210 _ACEOF
12211 { { ac_try="$LEX conftest.l"
12212 case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12217 $as_echo "$ac_try_echo"; } >&5
12218   (eval "$LEX conftest.l") 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221   test $ac_status = 0; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12223 $as_echo_n "checking lex output file root... " >&6; }
12224 if ${ac_cv_prog_lex_root+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227
12228 if test -f lex.yy.c; then
12229   ac_cv_prog_lex_root=lex.yy
12230 elif test -f lexyy.c; then
12231   ac_cv_prog_lex_root=lexyy
12232 else
12233   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12234 fi
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12237 $as_echo "$ac_cv_prog_lex_root" >&6; }
12238 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12239
12240 if test -z "${LEXLIB+set}"; then
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12242 $as_echo_n "checking lex library... " >&6; }
12243 if ${ac_cv_lib_lex+:} false; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246
12247     ac_save_LIBS=$LIBS
12248     ac_cv_lib_lex='none needed'
12249     for ac_lib in '' -lfl -ll; do
12250       LIBS="$ac_lib $ac_save_LIBS"
12251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h.  */
12253 `cat $LEX_OUTPUT_ROOT.c`
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256   ac_cv_lib_lex=$ac_lib
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259     conftest$ac_exeext conftest.$ac_ext
12260       test "$ac_cv_lib_lex" != 'none needed' && break
12261     done
12262     LIBS=$ac_save_LIBS
12263
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12266 $as_echo "$ac_cv_lib_lex" >&6; }
12267   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12268 fi
12269
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12272 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12273 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   # POSIX says lex can declare yytext either as a pointer or an array; the
12277 # default is implementation-dependent.  Figure out which it is, since
12278 # not all implementations provide the %pointer and %array declarations.
12279 ac_cv_prog_lex_yytext_pointer=no
12280 ac_save_LIBS=$LIBS
12281 LIBS="$LEXLIB $ac_save_LIBS"
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284
12285   #define YYTEXT_POINTER 1
12286 `cat $LEX_OUTPUT_ROOT.c`
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289   ac_cv_prog_lex_yytext_pointer=yes
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext \
12292     conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_save_LIBS
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12297 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12298 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12299
12300 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12301
12302 fi
12303 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12304
12305 fi
12306 if test "$LEX" = :; then
12307         as_fn_error $? "flex not found but required" "$LINENO" 5
12308 fi
12309
12310 for ac_prog in 'bison -y'
12311 do
12312   # Extract the first word of "$ac_prog", so it can be a program name with args.
12313 set dummy $ac_prog; ac_word=$2
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315 $as_echo_n "checking for $ac_word... " >&6; }
12316 if ${ac_cv_prog_YACC+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319   if test -n "$YACC"; then
12320   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12321 else
12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323 for as_dir in $PATH
12324 do
12325   IFS=$as_save_IFS
12326   test -z "$as_dir" && as_dir=.
12327     for ac_exec_ext in '' $ac_executable_extensions; do
12328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329     ac_cv_prog_YACC="$ac_prog"
12330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331     break 2
12332   fi
12333 done
12334   done
12335 IFS=$as_save_IFS
12336
12337 fi
12338 fi
12339 YACC=$ac_cv_prog_YACC
12340 if test -n "$YACC"; then
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12342 $as_echo "$YACC" >&6; }
12343 else
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346 fi
12347
12348
12349   test -n "$YACC" && break
12350 done
12351 test -n "$YACC" || YACC=":"
12352
12353 if test "$YACC" = :; then
12354         as_fn_error $? "bison not found but required" "$LINENO" 5
12355 fi
12356
12357
12358 ensureflag() {
12359   flag="$1"; shift
12360   result="$@"
12361
12362   case " ${result} " in
12363   *[\ \ ]${flag}[\ \    ]*) ;;
12364   *) result="${flag} ${result}" ;;
12365   esac
12366
12367   echo ${result}
12368 }
12369
12370 if test "$GCC" = "yes"; then
12371     for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12372         -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12373         -Wsign-compare -fno-strict-aliasing;
12374     do
12375         CFLAGS="$(ensureflag $flag $CFLAGS)"
12376     done
12377 fi
12378
12379 # Checks for libraries.
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12382 if ${ac_cv_lib_dl_dlopen+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-ldl  $LIBS"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389
12390 /* Override any GCC internal prototype to avoid an error.
12391    Use char because int might match the return type of a GCC
12392    builtin and then its argument prototype would still apply.  */
12393 #ifdef __cplusplus
12394 extern "C"
12395 #endif
12396 char dlopen ();
12397 int
12398 main ()
12399 {
12400 return dlopen ();
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_link "$LINENO"; then :
12406   ac_cv_lib_dl_dlopen=yes
12407 else
12408   ac_cv_lib_dl_dlopen=no
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext \
12411     conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12416 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12417   cat >>confdefs.h <<_ACEOF
12418 #define HAVE_LIBDL 1
12419 _ACEOF
12420
12421   LIBS="-ldl $LIBS"
12422
12423 fi
12424
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12427 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12428 # libtool variables are immediately available since 2.0, prior to that we need
12429 # to call libtool --config explicitly
12430 if test "x$shrext_cmds" = x; then
12431     shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12432     eval $shrext_cmds
12433 fi
12434 eval std_shrext=$shrext_cmds
12435 # chop the initial dot
12436 SHLIB_SUFFIX=${std_shrext#.}
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12438 $as_echo ".$SHLIB_SUFFIX" >&6; }
12439 # any reason it may fail?
12440 if test "x$SHLIB_SUFFIX" = x; then
12441         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12442 fi
12443
12444 cat >>confdefs.h <<_ACEOF
12445 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12446 _ACEOF
12447
12448
12449 # Copied from dbus configure.in
12450 #### find the actual value for $prefix that we'll end up with
12451 ##   (I know this is broken and should be done in the Makefile, but
12452 ##    that's a major pain and almost nobody actually seems to care)
12453
12454   EXP_VAR=EXPANDED_LOCALSTATEDIR
12455   FROM_VAR="$localstatedir"
12456
12457     prefix_save=$prefix
12458   exec_prefix_save=$exec_prefix
12459
12460     if test "x$prefix" = "xNONE"; then
12461     prefix="$ac_default_prefix"
12462   fi
12463     if test "x$exec_prefix" = "xNONE"; then
12464     exec_prefix=$prefix
12465   fi
12466
12467   full_var="$FROM_VAR"
12468     while true; do
12469     new_full_var="`eval echo $full_var`"
12470     if test "x$new_full_var" = "x$full_var"; then break; fi
12471     full_var=$new_full_var
12472   done
12473
12474     full_var=$new_full_var
12475   EXPANDED_LOCALSTATEDIR="$full_var"
12476
12477
12478     prefix=$prefix_save
12479   exec_prefix=$exec_prefix_save
12480
12481
12482   EXP_VAR=EXPANDED_SYSCONFDIR
12483   FROM_VAR="$sysconfdir"
12484
12485     prefix_save=$prefix
12486   exec_prefix_save=$exec_prefix
12487
12488     if test "x$prefix" = "xNONE"; then
12489     prefix="$ac_default_prefix"
12490   fi
12491     if test "x$exec_prefix" = "xNONE"; then
12492     exec_prefix=$prefix
12493   fi
12494
12495   full_var="$FROM_VAR"
12496     while true; do
12497     new_full_var="`eval echo $full_var`"
12498     if test "x$new_full_var" = "x$full_var"; then break; fi
12499     full_var=$new_full_var
12500   done
12501
12502     full_var=$new_full_var
12503   EXPANDED_SYSCONFDIR="$full_var"
12504
12505
12506     prefix=$prefix_save
12507   exec_prefix=$exec_prefix_save
12508
12509
12510   EXP_VAR=EXPANDED_BINDIR
12511   FROM_VAR="$bindir"
12512
12513     prefix_save=$prefix
12514   exec_prefix_save=$exec_prefix
12515
12516     if test "x$prefix" = "xNONE"; then
12517     prefix="$ac_default_prefix"
12518   fi
12519     if test "x$exec_prefix" = "xNONE"; then
12520     exec_prefix=$prefix
12521   fi
12522
12523   full_var="$FROM_VAR"
12524     while true; do
12525     new_full_var="`eval echo $full_var`"
12526     if test "x$new_full_var" = "x$full_var"; then break; fi
12527     full_var=$new_full_var
12528   done
12529
12530     full_var=$new_full_var
12531   EXPANDED_BINDIR="$full_var"
12532
12533
12534     prefix=$prefix_save
12535   exec_prefix=$exec_prefix_save
12536
12537
12538   EXP_VAR=EXPANDED_LIBDIR
12539   FROM_VAR="$libdir"
12540
12541     prefix_save=$prefix
12542   exec_prefix_save=$exec_prefix
12543
12544     if test "x$prefix" = "xNONE"; then
12545     prefix="$ac_default_prefix"
12546   fi
12547     if test "x$exec_prefix" = "xNONE"; then
12548     exec_prefix=$prefix
12549   fi
12550
12551   full_var="$FROM_VAR"
12552     while true; do
12553     new_full_var="`eval echo $full_var`"
12554     if test "x$new_full_var" = "x$full_var"; then break; fi
12555     full_var=$new_full_var
12556   done
12557
12558     full_var=$new_full_var
12559   EXPANDED_LIBDIR="$full_var"
12560
12561
12562     prefix=$prefix_save
12563   exec_prefix=$exec_prefix_save
12564
12565
12566   EXP_VAR=EXPANDED_LIBEXECDIR
12567   FROM_VAR="$libexecdir"
12568
12569     prefix_save=$prefix
12570   exec_prefix_save=$exec_prefix
12571
12572     if test "x$prefix" = "xNONE"; then
12573     prefix="$ac_default_prefix"
12574   fi
12575     if test "x$exec_prefix" = "xNONE"; then
12576     exec_prefix=$prefix
12577   fi
12578
12579   full_var="$FROM_VAR"
12580     while true; do
12581     new_full_var="`eval echo $full_var`"
12582     if test "x$new_full_var" = "x$full_var"; then break; fi
12583     full_var=$new_full_var
12584   done
12585
12586     full_var=$new_full_var
12587   EXPANDED_LIBEXECDIR="$full_var"
12588
12589
12590     prefix=$prefix_save
12591   exec_prefix=$exec_prefix_save
12592
12593
12594   EXP_VAR=EXPANDED_DATADIR
12595   FROM_VAR="$datadir"
12596
12597     prefix_save=$prefix
12598   exec_prefix_save=$exec_prefix
12599
12600     if test "x$prefix" = "xNONE"; then
12601     prefix="$ac_default_prefix"
12602   fi
12603     if test "x$exec_prefix" = "xNONE"; then
12604     exec_prefix=$prefix
12605   fi
12606
12607   full_var="$FROM_VAR"
12608     while true; do
12609     new_full_var="`eval echo $full_var`"
12610     if test "x$new_full_var" = "x$full_var"; then break; fi
12611     full_var=$new_full_var
12612   done
12613
12614     full_var=$new_full_var
12615   EXPANDED_DATADIR="$full_var"
12616
12617
12618     prefix=$prefix_save
12619   exec_prefix=$exec_prefix_save
12620
12621
12622 #### Directory to install the libexec binaries
12623 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
12624
12625
12626 cat >>confdefs.h <<_ACEOF
12627 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
12628 _ACEOF
12629
12630
12631 #### Directory to install the gir files
12632 GIR_SUFFIX="gir-1.0"
12633
12634
12635 cat >>confdefs.h <<_ACEOF
12636 #define GIR_SUFFIX "$GIR_SUFFIX"
12637 _ACEOF
12638
12639
12640 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
12641
12642
12643 cat >>confdefs.h <<_ACEOF
12644 #define GIR_DIR "$GIR_DIR"
12645 _ACEOF
12646
12647
12648
12649 pkg_failed=no
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12651 $as_echo_n "checking for GLIB... " >&6; }
12652
12653 if test -n "$GLIB_CFLAGS"; then
12654     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12655  elif test -n "$PKG_CONFIG"; then
12656     if test -n "$PKG_CONFIG" && \
12657     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12658   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12659   ac_status=$?
12660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12661   test $ac_status = 0; }; then
12662   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.36.0" 2>/dev/null`
12663                       test "x$?" != "x0" && pkg_failed=yes
12664 else
12665   pkg_failed=yes
12666 fi
12667  else
12668     pkg_failed=untried
12669 fi
12670 if test -n "$GLIB_LIBS"; then
12671     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12672  elif test -n "$PKG_CONFIG"; then
12673     if test -n "$PKG_CONFIG" && \
12674     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12675   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12676   ac_status=$?
12677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678   test $ac_status = 0; }; then
12679   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.36.0" 2>/dev/null`
12680                       test "x$?" != "x0" && pkg_failed=yes
12681 else
12682   pkg_failed=yes
12683 fi
12684  else
12685     pkg_failed=untried
12686 fi
12687
12688
12689
12690 if test $pkg_failed = yes; then
12691         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692 $as_echo "no" >&6; }
12693
12694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12695         _pkg_short_errors_supported=yes
12696 else
12697         _pkg_short_errors_supported=no
12698 fi
12699         if test $_pkg_short_errors_supported = yes; then
12700                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12701         else
12702                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12703         fi
12704         # Put the nasty error message in config.log where it belongs
12705         echo "$GLIB_PKG_ERRORS" >&5
12706
12707         as_fn_error $? "Package requirements (glib-2.0 >= 2.36.0) were not met:
12708
12709 $GLIB_PKG_ERRORS
12710
12711 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12712 installed software in a non-standard prefix.
12713
12714 Alternatively, you may set the environment variables GLIB_CFLAGS
12715 and GLIB_LIBS to avoid the need to call pkg-config.
12716 See the pkg-config man page for more details." "$LINENO" 5
12717 elif test $pkg_failed = untried; then
12718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12722 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12723 is in your PATH or set the PKG_CONFIG environment variable to the full
12724 path to pkg-config.
12725
12726 Alternatively, you may set the environment variables GLIB_CFLAGS
12727 and GLIB_LIBS to avoid the need to call pkg-config.
12728 See the pkg-config man page for more details.
12729
12730 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12731 See \`config.log' for more details" "$LINENO" 5; }
12732 else
12733         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12734         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12736 $as_echo "yes" >&6; }
12737
12738 fi
12739
12740 pkg_failed=no
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12742 $as_echo_n "checking for GOBJECT... " >&6; }
12743
12744 if test -n "$GOBJECT_CFLAGS"; then
12745     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12746  elif test -n "$PKG_CONFIG"; then
12747     if test -n "$PKG_CONFIG" && \
12748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12749   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12750   ac_status=$?
12751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752   test $ac_status = 0; }; then
12753   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12754                       test "x$?" != "x0" && pkg_failed=yes
12755 else
12756   pkg_failed=yes
12757 fi
12758  else
12759     pkg_failed=untried
12760 fi
12761 if test -n "$GOBJECT_LIBS"; then
12762     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12763  elif test -n "$PKG_CONFIG"; then
12764     if test -n "$PKG_CONFIG" && \
12765     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12766   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12767   ac_status=$?
12768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12769   test $ac_status = 0; }; then
12770   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12771                       test "x$?" != "x0" && pkg_failed=yes
12772 else
12773   pkg_failed=yes
12774 fi
12775  else
12776     pkg_failed=untried
12777 fi
12778
12779
12780
12781 if test $pkg_failed = yes; then
12782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784
12785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12786         _pkg_short_errors_supported=yes
12787 else
12788         _pkg_short_errors_supported=no
12789 fi
12790         if test $_pkg_short_errors_supported = yes; then
12791                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
12792         else
12793                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
12794         fi
12795         # Put the nasty error message in config.log where it belongs
12796         echo "$GOBJECT_PKG_ERRORS" >&5
12797
12798         as_fn_error $? "Package requirements (gobject-2.0) were not met:
12799
12800 $GOBJECT_PKG_ERRORS
12801
12802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12803 installed software in a non-standard prefix.
12804
12805 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12806 and GOBJECT_LIBS to avoid the need to call pkg-config.
12807 See the pkg-config man page for more details." "$LINENO" 5
12808 elif test $pkg_failed = untried; then
12809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12811         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12813 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12814 is in your PATH or set the PKG_CONFIG environment variable to the full
12815 path to pkg-config.
12816
12817 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12818 and GOBJECT_LIBS to avoid the need to call pkg-config.
12819 See the pkg-config man page for more details.
12820
12821 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12822 See \`config.log' for more details" "$LINENO" 5; }
12823 else
12824         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12825         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12828
12829 fi
12830
12831 pkg_failed=no
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12833 $as_echo_n "checking for GMODULE... " >&6; }
12834
12835 if test -n "$GMODULE_CFLAGS"; then
12836     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12837  elif test -n "$PKG_CONFIG"; then
12838     if test -n "$PKG_CONFIG" && \
12839     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12840   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12841   ac_status=$?
12842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843   test $ac_status = 0; }; then
12844   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12845                       test "x$?" != "x0" && pkg_failed=yes
12846 else
12847   pkg_failed=yes
12848 fi
12849  else
12850     pkg_failed=untried
12851 fi
12852 if test -n "$GMODULE_LIBS"; then
12853     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12854  elif test -n "$PKG_CONFIG"; then
12855     if test -n "$PKG_CONFIG" && \
12856     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12857   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12858   ac_status=$?
12859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12860   test $ac_status = 0; }; then
12861   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12862                       test "x$?" != "x0" && pkg_failed=yes
12863 else
12864   pkg_failed=yes
12865 fi
12866  else
12867     pkg_failed=untried
12868 fi
12869
12870
12871
12872 if test $pkg_failed = yes; then
12873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875
12876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12877         _pkg_short_errors_supported=yes
12878 else
12879         _pkg_short_errors_supported=no
12880 fi
12881         if test $_pkg_short_errors_supported = yes; then
12882                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12883         else
12884                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12885         fi
12886         # Put the nasty error message in config.log where it belongs
12887         echo "$GMODULE_PKG_ERRORS" >&5
12888
12889         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12890
12891 $GMODULE_PKG_ERRORS
12892
12893 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12894 installed software in a non-standard prefix.
12895
12896 Alternatively, you may set the environment variables GMODULE_CFLAGS
12897 and GMODULE_LIBS to avoid the need to call pkg-config.
12898 See the pkg-config man page for more details." "$LINENO" 5
12899 elif test $pkg_failed = untried; then
12900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12902         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12904 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12905 is in your PATH or set the PKG_CONFIG environment variable to the full
12906 path to pkg-config.
12907
12908 Alternatively, you may set the environment variables GMODULE_CFLAGS
12909 and GMODULE_LIBS to avoid the need to call pkg-config.
12910 See the pkg-config man page for more details.
12911
12912 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12913 See \`config.log' for more details" "$LINENO" 5; }
12914 else
12915         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12916         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919
12920 fi
12921
12922 pkg_failed=no
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12924 $as_echo_n "checking for GIO... " >&6; }
12925
12926 if test -n "$GIO_CFLAGS"; then
12927     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12928  elif test -n "$PKG_CONFIG"; then
12929     if test -n "$PKG_CONFIG" && \
12930     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12931   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12932   ac_status=$?
12933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12934   test $ac_status = 0; }; then
12935   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
12936                       test "x$?" != "x0" && pkg_failed=yes
12937 else
12938   pkg_failed=yes
12939 fi
12940  else
12941     pkg_failed=untried
12942 fi
12943 if test -n "$GIO_LIBS"; then
12944     pkg_cv_GIO_LIBS="$GIO_LIBS"
12945  elif test -n "$PKG_CONFIG"; then
12946     if test -n "$PKG_CONFIG" && \
12947     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12948   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12949   ac_status=$?
12950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951   test $ac_status = 0; }; then
12952   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
12953                       test "x$?" != "x0" && pkg_failed=yes
12954 else
12955   pkg_failed=yes
12956 fi
12957  else
12958     pkg_failed=untried
12959 fi
12960
12961
12962
12963 if test $pkg_failed = yes; then
12964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966
12967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12968         _pkg_short_errors_supported=yes
12969 else
12970         _pkg_short_errors_supported=no
12971 fi
12972         if test $_pkg_short_errors_supported = yes; then
12973                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
12974         else
12975                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
12976         fi
12977         # Put the nasty error message in config.log where it belongs
12978         echo "$GIO_PKG_ERRORS" >&5
12979
12980         as_fn_error $? "Package requirements (gio-2.0) were not met:
12981
12982 $GIO_PKG_ERRORS
12983
12984 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12985 installed software in a non-standard prefix.
12986
12987 Alternatively, you may set the environment variables GIO_CFLAGS
12988 and GIO_LIBS to avoid the need to call pkg-config.
12989 See the pkg-config man page for more details." "$LINENO" 5
12990 elif test $pkg_failed = untried; then
12991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12993         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12995 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12996 is in your PATH or set the PKG_CONFIG environment variable to the full
12997 path to pkg-config.
12998
12999 Alternatively, you may set the environment variables GIO_CFLAGS
13000 and GIO_LIBS to avoid the need to call pkg-config.
13001 See the pkg-config man page for more details.
13002
13003 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13004 See \`config.log' for more details" "$LINENO" 5; }
13005 else
13006         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13007         GIO_LIBS=$pkg_cv_GIO_LIBS
13008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13009 $as_echo "yes" >&6; }
13010
13011 fi
13012
13013 pkg_failed=no
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
13015 $as_echo_n "checking for GIO_UNIX... " >&6; }
13016
13017 if test -n "$GIO_UNIX_CFLAGS"; then
13018     pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
13019  elif test -n "$PKG_CONFIG"; then
13020     if test -n "$PKG_CONFIG" && \
13021     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13022   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13023   ac_status=$?
13024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13025   test $ac_status = 0; }; then
13026   pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
13027                       test "x$?" != "x0" && pkg_failed=yes
13028 else
13029   pkg_failed=yes
13030 fi
13031  else
13032     pkg_failed=untried
13033 fi
13034 if test -n "$GIO_UNIX_LIBS"; then
13035     pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
13036  elif test -n "$PKG_CONFIG"; then
13037     if test -n "$PKG_CONFIG" && \
13038     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13039   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042   test $ac_status = 0; }; then
13043   pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
13044                       test "x$?" != "x0" && pkg_failed=yes
13045 else
13046   pkg_failed=yes
13047 fi
13048  else
13049     pkg_failed=untried
13050 fi
13051
13052
13053
13054 if test $pkg_failed = yes; then
13055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057
13058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13059         _pkg_short_errors_supported=yes
13060 else
13061         _pkg_short_errors_supported=no
13062 fi
13063         if test $_pkg_short_errors_supported = yes; then
13064                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13065         else
13066                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13067         fi
13068         # Put the nasty error message in config.log where it belongs
13069         echo "$GIO_UNIX_PKG_ERRORS" >&5
13070
13071         have_gio_unix=false
13072 elif test $pkg_failed = untried; then
13073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075         have_gio_unix=false
13076 else
13077         GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
13078         GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
13079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081         have_gio_unix=true
13082 fi
13083  if test x$have_gio_unix = xtrue; then
13084   HAVE_GIO_UNIX_TRUE=
13085   HAVE_GIO_UNIX_FALSE='#'
13086 else
13087   HAVE_GIO_UNIX_TRUE='#'
13088   HAVE_GIO_UNIX_FALSE=
13089 fi
13090
13091
13092 # Prefer cairo-gobject if we have it
13093
13094 # Check whether --with-cairo was given.
13095 if test "${with_cairo+set}" = set; then :
13096   withval=$with_cairo;
13097 else
13098   with_cairo=maybe
13099 fi
13100
13101
13102 if test x${with_cairo} != xno; then :
13103
13104
13105 pkg_failed=no
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13107 $as_echo_n "checking for CAIRO... " >&6; }
13108
13109 if test -n "$CAIRO_CFLAGS"; then
13110     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13111  elif test -n "$PKG_CONFIG"; then
13112     if test -n "$PKG_CONFIG" && \
13113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13114   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13115   ac_status=$?
13116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117   test $ac_status = 0; }; then
13118   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13119                       test "x$?" != "x0" && pkg_failed=yes
13120 else
13121   pkg_failed=yes
13122 fi
13123  else
13124     pkg_failed=untried
13125 fi
13126 if test -n "$CAIRO_LIBS"; then
13127     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13128  elif test -n "$PKG_CONFIG"; then
13129     if test -n "$PKG_CONFIG" && \
13130     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13131   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13132   ac_status=$?
13133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134   test $ac_status = 0; }; then
13135   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13136                       test "x$?" != "x0" && pkg_failed=yes
13137 else
13138   pkg_failed=yes
13139 fi
13140  else
13141     pkg_failed=untried
13142 fi
13143
13144
13145
13146 if test $pkg_failed = yes; then
13147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149
13150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13151         _pkg_short_errors_supported=yes
13152 else
13153         _pkg_short_errors_supported=no
13154 fi
13155         if test $_pkg_short_errors_supported = yes; then
13156                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13157         else
13158                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13159         fi
13160         # Put the nasty error message in config.log where it belongs
13161         echo "$CAIRO_PKG_ERRORS" >&5
13162
13163         have_cairo=no
13164 elif test $pkg_failed = untried; then
13165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167         have_cairo=no
13168 else
13169         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13170         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13171         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172 $as_echo "yes" >&6; }
13173         have_cairo=yes
13174 fi
13175   if  test x$have_cairo = xno && test x$with_cairo = xyes ; then :
13176
13177     as_fn_error $? "cairo enabled but not found" "$LINENO" 5
13178
13179 fi
13180
13181 fi
13182  if test x$have_cairo = xyes; then
13183   HAVE_CAIRO_TRUE=
13184   HAVE_CAIRO_FALSE='#'
13185 else
13186   HAVE_CAIRO_TRUE='#'
13187   HAVE_CAIRO_FALSE=
13188 fi
13189
13190
13191 case "$host" in
13192   *-*-darwin*)
13193     CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13194     ;;
13195   *-*-mingw*)
13196     CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13197     ;;
13198   *-*-openbsd*)
13199     CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13200     ;;
13201   *)
13202     CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13203     ;;
13204 esac
13205 CAIRO_GIR_PACKAGE="cairo-gobject"
13206
13207
13208
13209
13210
13211
13212 pkg_failed=no
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13214 $as_echo_n "checking for SCANNER... " >&6; }
13215
13216 if test -n "$SCANNER_CFLAGS"; then
13217     pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13218  elif test -n "$PKG_CONFIG"; then
13219     if test -n "$PKG_CONFIG" && \
13220     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13221   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13222   ac_status=$?
13223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13224   test $ac_status = 0; }; then
13225   pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gio-2.0" 2>/dev/null`
13226                       test "x$?" != "x0" && pkg_failed=yes
13227 else
13228   pkg_failed=yes
13229 fi
13230  else
13231     pkg_failed=untried
13232 fi
13233 if test -n "$SCANNER_LIBS"; then
13234     pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13235  elif test -n "$PKG_CONFIG"; then
13236     if test -n "$PKG_CONFIG" && \
13237     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13238   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13239   ac_status=$?
13240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241   test $ac_status = 0; }; then
13242   pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gio-2.0" 2>/dev/null`
13243                       test "x$?" != "x0" && pkg_failed=yes
13244 else
13245   pkg_failed=yes
13246 fi
13247  else
13248     pkg_failed=untried
13249 fi
13250
13251
13252
13253 if test $pkg_failed = yes; then
13254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13256
13257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13258         _pkg_short_errors_supported=yes
13259 else
13260         _pkg_short_errors_supported=no
13261 fi
13262         if test $_pkg_short_errors_supported = yes; then
13263                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13264         else
13265                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13266         fi
13267         # Put the nasty error message in config.log where it belongs
13268         echo "$SCANNER_PKG_ERRORS" >&5
13269
13270         as_fn_error $? "Package requirements (gobject-2.0 gio-2.0) were not met:
13271
13272 $SCANNER_PKG_ERRORS
13273
13274 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13275 installed software in a non-standard prefix.
13276
13277 Alternatively, you may set the environment variables SCANNER_CFLAGS
13278 and SCANNER_LIBS to avoid the need to call pkg-config.
13279 See the pkg-config man page for more details." "$LINENO" 5
13280 elif test $pkg_failed = untried; then
13281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13285 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13286 is in your PATH or set the PKG_CONFIG environment variable to the full
13287 path to pkg-config.
13288
13289 Alternatively, you may set the environment variables SCANNER_CFLAGS
13290 and SCANNER_LIBS to avoid the need to call pkg-config.
13291 See the pkg-config man page for more details.
13292
13293 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13294 See \`config.log' for more details" "$LINENO" 5; }
13295 else
13296         SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13297         SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13299 $as_echo "yes" >&6; }
13300
13301 fi
13302
13303
13304 pkg_failed=no
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13306 $as_echo_n "checking for FFI... " >&6; }
13307
13308 if test -n "$FFI_CFLAGS"; then
13309     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13310  elif test -n "$PKG_CONFIG"; then
13311     if test -n "$PKG_CONFIG" && \
13312     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13313   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13314   ac_status=$?
13315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316   test $ac_status = 0; }; then
13317   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0 " 2>/dev/null`
13318                       test "x$?" != "x0" && pkg_failed=yes
13319 else
13320   pkg_failed=yes
13321 fi
13322  else
13323     pkg_failed=untried
13324 fi
13325 if test -n "$FFI_LIBS"; then
13326     pkg_cv_FFI_LIBS="$FFI_LIBS"
13327  elif test -n "$PKG_CONFIG"; then
13328     if test -n "$PKG_CONFIG" && \
13329     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13330   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13331   ac_status=$?
13332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13333   test $ac_status = 0; }; then
13334   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0 " 2>/dev/null`
13335                       test "x$?" != "x0" && pkg_failed=yes
13336 else
13337   pkg_failed=yes
13338 fi
13339  else
13340     pkg_failed=untried
13341 fi
13342
13343
13344
13345 if test $pkg_failed = yes; then
13346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348
13349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13350         _pkg_short_errors_supported=yes
13351 else
13352         _pkg_short_errors_supported=no
13353 fi
13354         if test $_pkg_short_errors_supported = yes; then
13355                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13356         else
13357                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13358         fi
13359         # Put the nasty error message in config.log where it belongs
13360         echo "$FFI_PKG_ERRORS" >&5
13361
13362         have_ffi_pkgconfig=no
13363 elif test $pkg_failed = untried; then
13364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366         have_ffi_pkgconfig=no
13367 else
13368         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13369         FFI_LIBS=$pkg_cv_FFI_LIBS
13370         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13371 $as_echo "yes" >&6; }
13372         have_ffi_pkgconfig=yes
13373 fi
13374 FFI_PC_CFLAGS=""
13375 FFI_PC_LIBS=""
13376 FFI_PC_PACKAGES=""
13377 if test x"$have_ffi_pkgconfig" = xyes ; then
13378     FFI_PC_PACKAGES="libffi"
13379 else
13380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13381 $as_echo_n "checking for ffi.h... " >&6; }
13382
13383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h.  */
13385 #include <ffi.h>
13386 _ACEOF
13387 if ac_fn_c_try_cpp "$LINENO"; then :
13388   have_ffi_h=yes
13389 else
13390   have_ffi_h=no
13391 fi
13392 rm -f conftest.err conftest.i conftest.$ac_ext
13393   if test x"$have_ffi_h" = x"yes"; then
13394
13395     save_LIBS=$LIBS
13396     if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13397       other_LIBS=
13398     else
13399       other_LIBS=$with_ffi
13400     fi
13401
13402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13403 $as_echo_n "checking for library containing ffi_call... " >&6; }
13404 if ${ac_cv_search_ffi_call+:} false; then :
13405   $as_echo_n "(cached) " >&6
13406 else
13407   ac_func_search_save_LIBS=$LIBS
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h.  */
13410
13411 /* Override any GCC internal prototype to avoid an error.
13412    Use char because int might match the return type of a GCC
13413    builtin and then its argument prototype would still apply.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 #endif
13417 char ffi_call ();
13418 int
13419 main ()
13420 {
13421 return ffi_call ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 for ac_lib in '' ffi; do
13427   if test -z "$ac_lib"; then
13428     ac_res="none required"
13429   else
13430     ac_res=-l$ac_lib
13431     LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13432   fi
13433   if ac_fn_c_try_link "$LINENO"; then :
13434   ac_cv_search_ffi_call=$ac_res
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext \
13437     conftest$ac_exeext
13438   if ${ac_cv_search_ffi_call+:} false; then :
13439   break
13440 fi
13441 done
13442 if ${ac_cv_search_ffi_call+:} false; then :
13443
13444 else
13445   ac_cv_search_ffi_call=no
13446 fi
13447 rm conftest.$ac_ext
13448 LIBS=$ac_func_search_save_LIBS
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13451 $as_echo "$ac_cv_search_ffi_call" >&6; }
13452 ac_res=$ac_cv_search_ffi_call
13453 if test "$ac_res" != no; then :
13454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13455
13456 else
13457   as_fn_error $? "libffi not found" "$LINENO" 5
13458 fi
13459
13460     if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13461       FFI_LIBS=$other_LIBS
13462     else
13463       FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13464     fi
13465
13466     LIBS=$save_LIBS
13467   fi
13468   if test x"$have_ffi_h" != x"yes" ; then
13469     as_fn_error $? "ffi.h not found" "$LINENO" 5
13470   fi
13471
13472   FFI_PC_LIBS=$FFI_LIBS
13473   FFI_PC_CFLAGS=$FFI_CFLAGS
13474   FFI_CFLAGS=
13475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13476 $as_echo "$have_ffi_h" >&6; }
13477
13478
13479 fi
13480
13481
13482
13483
13484 # The cast to long int works around a bug in the HP C Compiler
13485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13487 # This bug is HP SR number 8606223364.
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13489 $as_echo_n "checking size of char... " >&6; }
13490 if ${ac_cv_sizeof_char+:} false; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13494
13495 else
13496   if test "$ac_cv_type_char" = yes; then
13497      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13499 as_fn_error 77 "cannot compute sizeof (char)
13500 See \`config.log' for more details" "$LINENO" 5; }
13501    else
13502      ac_cv_sizeof_char=0
13503    fi
13504 fi
13505
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13508 $as_echo "$ac_cv_sizeof_char" >&6; }
13509
13510
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define SIZEOF_CHAR $ac_cv_sizeof_char
13514 _ACEOF
13515
13516
13517 # The cast to long int works around a bug in the HP C Compiler
13518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13520 # This bug is HP SR number 8606223364.
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13522 $as_echo_n "checking size of short... " >&6; }
13523 if ${ac_cv_sizeof_short+:} false; then :
13524   $as_echo_n "(cached) " >&6
13525 else
13526   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13527
13528 else
13529   if test "$ac_cv_type_short" = yes; then
13530      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13532 as_fn_error 77 "cannot compute sizeof (short)
13533 See \`config.log' for more details" "$LINENO" 5; }
13534    else
13535      ac_cv_sizeof_short=0
13536    fi
13537 fi
13538
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13541 $as_echo "$ac_cv_sizeof_short" >&6; }
13542
13543
13544
13545 cat >>confdefs.h <<_ACEOF
13546 #define SIZEOF_SHORT $ac_cv_sizeof_short
13547 _ACEOF
13548
13549
13550 # The cast to long int works around a bug in the HP C Compiler
13551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13553 # This bug is HP SR number 8606223364.
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13555 $as_echo_n "checking size of int... " >&6; }
13556 if ${ac_cv_sizeof_int+:} false; then :
13557   $as_echo_n "(cached) " >&6
13558 else
13559   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13560
13561 else
13562   if test "$ac_cv_type_int" = yes; then
13563      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13565 as_fn_error 77 "cannot compute sizeof (int)
13566 See \`config.log' for more details" "$LINENO" 5; }
13567    else
13568      ac_cv_sizeof_int=0
13569    fi
13570 fi
13571
13572 fi
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13574 $as_echo "$ac_cv_sizeof_int" >&6; }
13575
13576
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define SIZEOF_INT $ac_cv_sizeof_int
13580 _ACEOF
13581
13582
13583 # The cast to long int works around a bug in the HP C Compiler
13584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13586 # This bug is HP SR number 8606223364.
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13588 $as_echo_n "checking size of long... " >&6; }
13589 if ${ac_cv_sizeof_long+:} false; then :
13590   $as_echo_n "(cached) " >&6
13591 else
13592   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13593
13594 else
13595   if test "$ac_cv_type_long" = yes; then
13596      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13598 as_fn_error 77 "cannot compute sizeof (long)
13599 See \`config.log' for more details" "$LINENO" 5; }
13600    else
13601      ac_cv_sizeof_long=0
13602    fi
13603 fi
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13607 $as_echo "$ac_cv_sizeof_long" >&6; }
13608
13609
13610
13611 cat >>confdefs.h <<_ACEOF
13612 #define SIZEOF_LONG $ac_cv_sizeof_long
13613 _ACEOF
13614
13615
13616
13617
13618 pkg_failed=no
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
13620 $as_echo_n "checking for GIREPO... " >&6; }
13621
13622 if test -n "$GIREPO_CFLAGS"; then
13623     pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
13624  elif test -n "$PKG_CONFIG"; then
13625     if test -n "$PKG_CONFIG" && \
13626     { { $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
13627   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13628   ac_status=$?
13629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630   test $ac_status = 0; }; then
13631   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`
13632                       test "x$?" != "x0" && pkg_failed=yes
13633 else
13634   pkg_failed=yes
13635 fi
13636  else
13637     pkg_failed=untried
13638 fi
13639 if test -n "$GIREPO_LIBS"; then
13640     pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
13641  elif test -n "$PKG_CONFIG"; then
13642     if test -n "$PKG_CONFIG" && \
13643     { { $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
13644   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13645   ac_status=$?
13646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647   test $ac_status = 0; }; then
13648   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`
13649                       test "x$?" != "x0" && pkg_failed=yes
13650 else
13651   pkg_failed=yes
13652 fi
13653  else
13654     pkg_failed=untried
13655 fi
13656
13657
13658
13659 if test $pkg_failed = yes; then
13660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13662
13663 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13664         _pkg_short_errors_supported=yes
13665 else
13666         _pkg_short_errors_supported=no
13667 fi
13668         if test $_pkg_short_errors_supported = yes; then
13669                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13670         else
13671                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13672         fi
13673         # Put the nasty error message in config.log where it belongs
13674         echo "$GIREPO_PKG_ERRORS" >&5
13675
13676         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
13677
13678 $GIREPO_PKG_ERRORS
13679
13680 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13681 installed software in a non-standard prefix.
13682
13683 Alternatively, you may set the environment variables GIREPO_CFLAGS
13684 and GIREPO_LIBS to avoid the need to call pkg-config.
13685 See the pkg-config man page for more details." "$LINENO" 5
13686 elif test $pkg_failed = untried; then
13687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13689         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13691 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13692 is in your PATH or set the PKG_CONFIG environment variable to the full
13693 path to pkg-config.
13694
13695 Alternatively, you may set the environment variables GIREPO_CFLAGS
13696 and GIREPO_LIBS to avoid the need to call pkg-config.
13697 See the pkg-config man page for more details.
13698
13699 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13700 See \`config.log' for more details" "$LINENO" 5; }
13701 else
13702         GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
13703         GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
13704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13705 $as_echo "yes" >&6; }
13706
13707 fi
13708
13709 # if we ever remove manual check for ffi and require .pc file, then
13710 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
13711 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
13712 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
13713
13714 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
13715
13716 # gtk-doc
13717 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
13718 # it on it's own line.
13719
13720
13721
13722
13723             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13724 set dummy gtkdoc-check; ac_word=$2
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13726 $as_echo_n "checking for $ac_word... " >&6; }
13727 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   if test -n "$GTKDOC_CHECK"; then
13731   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
13732 else
13733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738     for ac_exec_ext in '' $ac_executable_extensions; do
13739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
13741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742     break 2
13743   fi
13744 done
13745   done
13746 IFS=$as_save_IFS
13747
13748 fi
13749 fi
13750 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
13751 if test -n "$GTKDOC_CHECK"; then
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13753 $as_echo "$GTKDOC_CHECK" >&6; }
13754 else
13755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757 fi
13758
13759
13760   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13761 set dummy gtkdoc-check; ac_word=$2
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763 $as_echo_n "checking for $ac_word... " >&6; }
13764 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
13765   $as_echo_n "(cached) " >&6
13766 else
13767   case $GTKDOC_CHECK_PATH in
13768   [\\/]* | ?:[\\/]*)
13769   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
13770   ;;
13771   *)
13772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775   IFS=$as_save_IFS
13776   test -z "$as_dir" && as_dir=.
13777     for ac_exec_ext in '' $ac_executable_extensions; do
13778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
13780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781     break 2
13782   fi
13783 done
13784   done
13785 IFS=$as_save_IFS
13786
13787   ;;
13788 esac
13789 fi
13790 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
13791 if test -n "$GTKDOC_CHECK_PATH"; then
13792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
13793 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
13794 else
13795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 $as_echo "no" >&6; }
13797 fi
13798
13799
13800   for ac_prog in gtkdoc-rebase
13801 do
13802   # Extract the first word of "$ac_prog", so it can be a program name with args.
13803 set dummy $ac_prog; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   case $GTKDOC_REBASE in
13810   [\\/]* | ?:[\\/]*)
13811   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13812   ;;
13813   *)
13814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13816 do
13817   IFS=$as_save_IFS
13818   test -z "$as_dir" && as_dir=.
13819     for ac_exec_ext in '' $ac_executable_extensions; do
13820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823     break 2
13824   fi
13825 done
13826   done
13827 IFS=$as_save_IFS
13828
13829   ;;
13830 esac
13831 fi
13832 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13833 if test -n "$GTKDOC_REBASE"; then
13834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13835 $as_echo "$GTKDOC_REBASE" >&6; }
13836 else
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839 fi
13840
13841
13842   test -n "$GTKDOC_REBASE" && break
13843 done
13844 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13845
13846   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13847 set dummy gtkdoc-mkpdf; ac_word=$2
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849 $as_echo_n "checking for $ac_word... " >&6; }
13850 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13851   $as_echo_n "(cached) " >&6
13852 else
13853   case $GTKDOC_MKPDF in
13854   [\\/]* | ?:[\\/]*)
13855   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13856   ;;
13857   *)
13858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13860 do
13861   IFS=$as_save_IFS
13862   test -z "$as_dir" && as_dir=.
13863     for ac_exec_ext in '' $ac_executable_extensions; do
13864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867     break 2
13868   fi
13869 done
13870   done
13871 IFS=$as_save_IFS
13872
13873   ;;
13874 esac
13875 fi
13876 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13877 if test -n "$GTKDOC_MKPDF"; then
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13879 $as_echo "$GTKDOC_MKPDF" >&6; }
13880 else
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882 $as_echo "no" >&6; }
13883 fi
13884
13885
13886
13887
13888 # Check whether --with-html-dir was given.
13889 if test "${with_html_dir+set}" = set; then :
13890   withval=$with_html_dir;
13891 else
13892   with_html_dir='${datadir}/gtk-doc/html'
13893 fi
13894
13895   HTML_DIR="$with_html_dir"
13896
13897
13898     # Check whether --enable-gtk-doc was given.
13899 if test "${enable_gtk_doc+set}" = set; then :
13900   enableval=$enable_gtk_doc;
13901 else
13902   enable_gtk_doc=no
13903 fi
13904
13905
13906   if test x$enable_gtk_doc = xyes; then
13907     if test -n "$PKG_CONFIG" && \
13908     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.19\""; } >&5
13909   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.19") 2>&5
13910   ac_status=$?
13911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912   test $ac_status = 0; }; then
13913   :
13914 else
13915   as_fn_error $? "You need to have gtk-doc >= 1.19 installed to build $PACKAGE_NAME" "$LINENO" 5
13916 fi
13917         if test "x$PACKAGE_NAME" != "xglib"; then
13918
13919 pkg_failed=no
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13921 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13922
13923 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13924     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13925  elif test -n "$PKG_CONFIG"; then
13926     if test -n "$PKG_CONFIG" && \
13927     { { $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
13928   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13929   ac_status=$?
13930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13931   test $ac_status = 0; }; then
13932   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13933                       test "x$?" != "x0" && pkg_failed=yes
13934 else
13935   pkg_failed=yes
13936 fi
13937  else
13938     pkg_failed=untried
13939 fi
13940 if test -n "$GTKDOC_DEPS_LIBS"; then
13941     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13942  elif test -n "$PKG_CONFIG"; then
13943     if test -n "$PKG_CONFIG" && \
13944     { { $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
13945   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13946   ac_status=$?
13947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948   test $ac_status = 0; }; then
13949   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13950                       test "x$?" != "x0" && pkg_failed=yes
13951 else
13952   pkg_failed=yes
13953 fi
13954  else
13955     pkg_failed=untried
13956 fi
13957
13958
13959
13960 if test $pkg_failed = yes; then
13961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13963
13964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13965         _pkg_short_errors_supported=yes
13966 else
13967         _pkg_short_errors_supported=no
13968 fi
13969         if test $_pkg_short_errors_supported = yes; then
13970                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13971         else
13972                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13973         fi
13974         # Put the nasty error message in config.log where it belongs
13975         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13976
13977         :
13978 elif test $pkg_failed = untried; then
13979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13981         :
13982 else
13983         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13984         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13986 $as_echo "yes" >&6; }
13987
13988 fi
13989     fi
13990   fi
13991
13992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13993 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13995 $as_echo "$enable_gtk_doc" >&6; }
13996
13997     # Check whether --enable-gtk-doc-html was given.
13998 if test "${enable_gtk_doc_html+set}" = set; then :
13999   enableval=$enable_gtk_doc_html;
14000 else
14001   enable_gtk_doc_html=yes
14002 fi
14003
14004     # Check whether --enable-gtk-doc-pdf was given.
14005 if test "${enable_gtk_doc_pdf+set}" = set; then :
14006   enableval=$enable_gtk_doc_pdf;
14007 else
14008   enable_gtk_doc_pdf=no
14009 fi
14010
14011
14012   if test -z "$GTKDOC_MKPDF"; then
14013     enable_gtk_doc_pdf=no
14014   fi
14015
14016   if test -z "$AM_DEFAULT_VERBOSITY"; then
14017     AM_DEFAULT_VERBOSITY=1
14018   fi
14019
14020
14021    if test x$enable_gtk_doc = xyes; then
14022   ENABLE_GTK_DOC_TRUE=
14023   ENABLE_GTK_DOC_FALSE='#'
14024 else
14025   ENABLE_GTK_DOC_TRUE='#'
14026   ENABLE_GTK_DOC_FALSE=
14027 fi
14028
14029    if test x$enable_gtk_doc_html = xyes; then
14030   GTK_DOC_BUILD_HTML_TRUE=
14031   GTK_DOC_BUILD_HTML_FALSE='#'
14032 else
14033   GTK_DOC_BUILD_HTML_TRUE='#'
14034   GTK_DOC_BUILD_HTML_FALSE=
14035 fi
14036
14037    if test x$enable_gtk_doc_pdf = xyes; then
14038   GTK_DOC_BUILD_PDF_TRUE=
14039   GTK_DOC_BUILD_PDF_FALSE='#'
14040 else
14041   GTK_DOC_BUILD_PDF_TRUE='#'
14042   GTK_DOC_BUILD_PDF_FALSE=
14043 fi
14044
14045    if test -n "$LIBTOOL"; then
14046   GTK_DOC_USE_LIBTOOL_TRUE=
14047   GTK_DOC_USE_LIBTOOL_FALSE='#'
14048 else
14049   GTK_DOC_USE_LIBTOOL_TRUE='#'
14050   GTK_DOC_USE_LIBTOOL_FALSE=
14051 fi
14052
14053    if test -n "$GTKDOC_REBASE"; then
14054   GTK_DOC_USE_REBASE_TRUE=
14055   GTK_DOC_USE_REBASE_FALSE='#'
14056 else
14057   GTK_DOC_USE_REBASE_TRUE='#'
14058   GTK_DOC_USE_REBASE_FALSE=
14059 fi
14060
14061
14062
14063
14064 # Checks for header files.
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14066 $as_echo_n "checking for ANSI C header files... " >&6; }
14067 if ${ac_cv_header_stdc+:} false; then :
14068   $as_echo_n "(cached) " >&6
14069 else
14070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h.  */
14072 #include <stdlib.h>
14073 #include <stdarg.h>
14074 #include <string.h>
14075 #include <float.h>
14076
14077 int
14078 main ()
14079 {
14080
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086   ac_cv_header_stdc=yes
14087 else
14088   ac_cv_header_stdc=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091
14092 if test $ac_cv_header_stdc = yes; then
14093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h.  */
14096 #include <string.h>
14097
14098 _ACEOF
14099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14100   $EGREP "memchr" >/dev/null 2>&1; then :
14101
14102 else
14103   ac_cv_header_stdc=no
14104 fi
14105 rm -f conftest*
14106
14107 fi
14108
14109 if test $ac_cv_header_stdc = yes; then
14110   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h.  */
14113 #include <stdlib.h>
14114
14115 _ACEOF
14116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14117   $EGREP "free" >/dev/null 2>&1; then :
14118
14119 else
14120   ac_cv_header_stdc=no
14121 fi
14122 rm -f conftest*
14123
14124 fi
14125
14126 if test $ac_cv_header_stdc = yes; then
14127   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14128   if test "$cross_compiling" = yes; then :
14129   :
14130 else
14131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h.  */
14133 #include <ctype.h>
14134 #include <stdlib.h>
14135 #if ((' ' & 0x0FF) == 0x020)
14136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14138 #else
14139 # define ISLOWER(c) \
14140                    (('a' <= (c) && (c) <= 'i') \
14141                      || ('j' <= (c) && (c) <= 'r') \
14142                      || ('s' <= (c) && (c) <= 'z'))
14143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14144 #endif
14145
14146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14147 int
14148 main ()
14149 {
14150   int i;
14151   for (i = 0; i < 256; i++)
14152     if (XOR (islower (i), ISLOWER (i))
14153         || toupper (i) != TOUPPER (i))
14154       return 2;
14155   return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_run "$LINENO"; then :
14159
14160 else
14161   ac_cv_header_stdc=no
14162 fi
14163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14164   conftest.$ac_objext conftest.beam conftest.$ac_ext
14165 fi
14166
14167 fi
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14170 $as_echo "$ac_cv_header_stdc" >&6; }
14171 if test $ac_cv_header_stdc = yes; then
14172
14173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14174
14175 fi
14176
14177 for ac_header in fcntl.h stdlib.h string.h
14178 do :
14179   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14181 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14182   cat >>confdefs.h <<_ACEOF
14183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14184 _ACEOF
14185
14186 fi
14187
14188 done
14189
14190
14191 # Checks for typedefs, structures, and compiler characteristics.
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14193 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14194 if ${ac_cv_c_const+:} false; then :
14195   $as_echo_n "(cached) " >&6
14196 else
14197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h.  */
14199
14200 int
14201 main ()
14202 {
14203
14204 #ifndef __cplusplus
14205   /* Ultrix mips cc rejects this sort of thing.  */
14206   typedef int charset[2];
14207   const charset cs = { 0, 0 };
14208   /* SunOS 4.1.1 cc rejects this.  */
14209   char const *const *pcpcc;
14210   char **ppc;
14211   /* NEC SVR4.0.2 mips cc rejects this.  */
14212   struct point {int x, y;};
14213   static struct point const zero = {0,0};
14214   /* AIX XL C 1.02.0.0 rejects this.
14215      It does not let you subtract one const X* pointer from another in
14216      an arm of an if-expression whose if-part is not a constant
14217      expression */
14218   const char *g = "string";
14219   pcpcc = &g + (g ? g-g : 0);
14220   /* HPUX 7.0 cc rejects these. */
14221   ++pcpcc;
14222   ppc = (char**) pcpcc;
14223   pcpcc = (char const *const *) ppc;
14224   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14225     char tx;
14226     char *t = &tx;
14227     char const *s = 0 ? (char *) 0 : (char const *) 0;
14228
14229     *t++ = 0;
14230     if (s) return 0;
14231   }
14232   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14233     int x[] = {25, 17};
14234     const int *foo = &x[0];
14235     ++foo;
14236   }
14237   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14238     typedef const int *iptr;
14239     iptr p = 0;
14240     ++p;
14241   }
14242   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14243        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14244     struct s { int j; const int *ap[3]; } bx;
14245     struct s *b = &bx; b->j = 5;
14246   }
14247   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14248     const int foo = 10;
14249     if (!foo) return 0;
14250   }
14251   return !cs[0] && !zero.x;
14252 #endif
14253
14254   ;
14255   return 0;
14256 }
14257 _ACEOF
14258 if ac_fn_c_try_compile "$LINENO"; then :
14259   ac_cv_c_const=yes
14260 else
14261   ac_cv_c_const=no
14262 fi
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14266 $as_echo "$ac_cv_c_const" >&6; }
14267 if test $ac_cv_c_const = no; then
14268
14269 $as_echo "#define const /**/" >>confdefs.h
14270
14271 fi
14272
14273
14274 # Checks for library functions.
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14276 $as_echo_n "checking for working strtod... " >&6; }
14277 if ${ac_cv_func_strtod+:} false; then :
14278   $as_echo_n "(cached) " >&6
14279 else
14280   if test "$cross_compiling" = yes; then :
14281   ac_cv_func_strtod=no
14282 else
14283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h.  */
14285
14286 $ac_includes_default
14287 #ifndef strtod
14288 double strtod ();
14289 #endif
14290 int
14291 main()
14292 {
14293   {
14294     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14295     char *string = " +69";
14296     char *term;
14297     double value;
14298     value = strtod (string, &term);
14299     if (value != 69 || term != (string + 4))
14300       return 1;
14301   }
14302
14303   {
14304     /* Under Solaris 2.4, strtod returns the wrong value for the
14305        terminating character under some conditions.  */
14306     char *string = "NaN";
14307     char *term;
14308     strtod (string, &term);
14309     if (term != string && *(term - 1) == 0)
14310       return 1;
14311   }
14312   return 0;
14313 }
14314
14315 _ACEOF
14316 if ac_fn_c_try_run "$LINENO"; then :
14317   ac_cv_func_strtod=yes
14318 else
14319   ac_cv_func_strtod=no
14320 fi
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322   conftest.$ac_objext conftest.beam conftest.$ac_ext
14323 fi
14324
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14327 $as_echo "$ac_cv_func_strtod" >&6; }
14328 if test $ac_cv_func_strtod = no; then
14329   case " $LIBOBJS " in
14330   *" strtod.$ac_objext "* ) ;;
14331   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14332  ;;
14333 esac
14334
14335 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14336 if test "x$ac_cv_func_pow" = xyes; then :
14337
14338 fi
14339
14340 if test $ac_cv_func_pow = no; then
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14342 $as_echo_n "checking for pow in -lm... " >&6; }
14343 if ${ac_cv_lib_m_pow+:} false; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lm  $LIBS"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h.  */
14350
14351 /* Override any GCC internal prototype to avoid an error.
14352    Use char because int might match the return type of a GCC
14353    builtin and then its argument prototype would still apply.  */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char pow ();
14358 int
14359 main ()
14360 {
14361 return pow ();
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"; then :
14367   ac_cv_lib_m_pow=yes
14368 else
14369   ac_cv_lib_m_pow=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext \
14372     conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14376 $as_echo "$ac_cv_lib_m_pow" >&6; }
14377 if test "x$ac_cv_lib_m_pow" = xyes; then :
14378   POW_LIB=-lm
14379 else
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14381 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14382 fi
14383
14384 fi
14385
14386 fi
14387
14388 for ac_func in memchr strchr strspn strstr strtol strtoull
14389 do :
14390   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14392 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14393   cat >>confdefs.h <<_ACEOF
14394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14395 _ACEOF
14396
14397 fi
14398 done
14399
14400 for ac_func in backtrace backtrace_symbols
14401 do :
14402   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14404 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14405   cat >>confdefs.h <<_ACEOF
14406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14407 _ACEOF
14408
14409 fi
14410 done
14411
14412
14413 # Python
14414
14415
14416
14417
14418
14419
14420         if test -n "$PYTHON"; then
14421       # If the user set $PYTHON, use it and don't search something else.
14422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
14423 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
14424       prog="import sys
14425 # split strings by '.' and convert to numeric.  Append some zeros
14426 # because we need at least 4 digits for the hex conversion.
14427 # map returns an iterator in Python 3.0 and a list in 2.x
14428 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14429 minverhex = 0
14430 # xrange is not present in Python 3.0 and range returns an iterator
14431 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14432 sys.exit(sys.hexversion < minverhex)"
14433   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14434    ($PYTHON -c "$prog") >&5 2>&5
14435    ac_status=$?
14436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437    (exit $ac_status); }; then :
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14439 $as_echo "yes" >&6; }
14440 else
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14443                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14444 fi
14445       am_display_PYTHON=$PYTHON
14446     else
14447       # Otherwise, try each interpreter until we find one that satisfies
14448       # VERSION.
14449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
14450 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
14451 if ${am_cv_pathless_PYTHON+:} false; then :
14452   $as_echo_n "(cached) " >&6
14453 else
14454
14455         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14456           test "$am_cv_pathless_PYTHON" = none && break
14457           prog="import sys
14458 # split strings by '.' and convert to numeric.  Append some zeros
14459 # because we need at least 4 digits for the hex conversion.
14460 # map returns an iterator in Python 3.0 and a list in 2.x
14461 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14462 minverhex = 0
14463 # xrange is not present in Python 3.0 and range returns an iterator
14464 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14465 sys.exit(sys.hexversion < minverhex)"
14466   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14467    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14468    ac_status=$?
14469    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470    (exit $ac_status); }; then :
14471   break
14472 fi
14473         done
14474 fi
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14476 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14477       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14478       if test "$am_cv_pathless_PYTHON" = none; then
14479         PYTHON=:
14480       else
14481         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14482 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 $as_echo_n "checking for $ac_word... " >&6; }
14485 if ${ac_cv_path_PYTHON+:} false; then :
14486   $as_echo_n "(cached) " >&6
14487 else
14488   case $PYTHON in
14489   [\\/]* | ?:[\\/]*)
14490   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14491   ;;
14492   *)
14493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14494 for as_dir in $PATH
14495 do
14496   IFS=$as_save_IFS
14497   test -z "$as_dir" && as_dir=.
14498     for ac_exec_ext in '' $ac_executable_extensions; do
14499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14500     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14502     break 2
14503   fi
14504 done
14505   done
14506 IFS=$as_save_IFS
14507
14508   ;;
14509 esac
14510 fi
14511 PYTHON=$ac_cv_path_PYTHON
14512 if test -n "$PYTHON"; then
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14514 $as_echo "$PYTHON" >&6; }
14515 else
14516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14518 fi
14519
14520
14521       fi
14522       am_display_PYTHON=$am_cv_pathless_PYTHON
14523     fi
14524
14525
14526   if test "$PYTHON" = :; then
14527       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14528   else
14529
14530
14531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14532 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14533 if ${am_cv_python_version+:} false; then :
14534   $as_echo_n "(cached) " >&6
14535 else
14536   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14539 $as_echo "$am_cv_python_version" >&6; }
14540   PYTHON_VERSION=$am_cv_python_version
14541
14542
14543
14544   PYTHON_PREFIX='${prefix}'
14545
14546   PYTHON_EXEC_PREFIX='${exec_prefix}'
14547
14548
14549
14550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14551 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14552 if ${am_cv_python_platform+:} false; then :
14553   $as_echo_n "(cached) " >&6
14554 else
14555   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14558 $as_echo "$am_cv_python_platform" >&6; }
14559   PYTHON_PLATFORM=$am_cv_python_platform
14560
14561
14562   # Just factor out some code duplication.
14563   am_python_setup_sysconfig="\
14564 import sys
14565 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14566 # with python 3.x.  See automake bug#10227.
14567 try:
14568     import sysconfig
14569 except ImportError:
14570     can_use_sysconfig = 0
14571 else:
14572     can_use_sysconfig = 1
14573 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14574 # <https://github.com/pypa/virtualenv/issues/118>
14575 try:
14576     from platform import python_implementation
14577     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14578         can_use_sysconfig = 0
14579 except ImportError:
14580     pass"
14581
14582
14583             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14584 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14585 if ${am_cv_python_pythondir+:} false; then :
14586   $as_echo_n "(cached) " >&6
14587 else
14588   if test "x$prefix" = xNONE
14589      then
14590        am_py_prefix=$ac_default_prefix
14591      else
14592        am_py_prefix=$prefix
14593      fi
14594      am_cv_python_pythondir=`$PYTHON -c "
14595 $am_python_setup_sysconfig
14596 if can_use_sysconfig:
14597     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14598 else:
14599     from distutils import sysconfig
14600     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14601 sys.stdout.write(sitedir)"`
14602      case $am_cv_python_pythondir in
14603      $am_py_prefix*)
14604        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14605        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14606        ;;
14607      *)
14608        case $am_py_prefix in
14609          /usr|/System*) ;;
14610          *)
14611           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14612           ;;
14613        esac
14614        ;;
14615      esac
14616
14617 fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14619 $as_echo "$am_cv_python_pythondir" >&6; }
14620   pythondir=$am_cv_python_pythondir
14621
14622
14623
14624   pkgpythondir=\${pythondir}/$PACKAGE
14625
14626
14627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14628 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14629 if ${am_cv_python_pyexecdir+:} false; then :
14630   $as_echo_n "(cached) " >&6
14631 else
14632   if test "x$exec_prefix" = xNONE
14633      then
14634        am_py_exec_prefix=$am_py_prefix
14635      else
14636        am_py_exec_prefix=$exec_prefix
14637      fi
14638      am_cv_python_pyexecdir=`$PYTHON -c "
14639 $am_python_setup_sysconfig
14640 if can_use_sysconfig:
14641     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14642 else:
14643     from distutils import sysconfig
14644     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14645 sys.stdout.write(sitedir)"`
14646      case $am_cv_python_pyexecdir in
14647      $am_py_exec_prefix*)
14648        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14649        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14650        ;;
14651      *)
14652        case $am_py_exec_prefix in
14653          /usr|/System*) ;;
14654          *)
14655            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14656            ;;
14657        esac
14658        ;;
14659      esac
14660
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14663 $as_echo "$am_cv_python_pyexecdir" >&6; }
14664   pyexecdir=$am_cv_python_pyexecdir
14665
14666
14667
14668   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14669
14670
14671
14672   fi
14673
14674
14675 case "$host" in
14676 *-*-mingw*)
14677         # Change backslashes to forward slashes in pyexecdir to avoid
14678         # quoting issues
14679         pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
14680         ;;
14681 esac
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
14684 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
14685 PYTHON_INCLUDES=`$PYTHON-config --includes`
14686
14687 save_CPPFLAGS="$CPPFLAGS"
14688 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h.  */
14691 #include <Python.h>
14692 _ACEOF
14693 if ac_fn_c_try_cpp "$LINENO"; then :
14694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14695 $as_echo "found" >&6; }
14696
14697 else
14698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14699 $as_echo "not found" >&6; }
14700 as_fn_error $? "Python headers not found" "$LINENO" 5
14701 fi
14702 rm -f conftest.err conftest.i conftest.$ac_ext
14703 CPPFLAGS="$save_CPPFLAGS"
14704
14705 if test "x$os_win32" = "xyes"; then
14706
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
14708 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
14709 if test "x$PYTHON_LIBS" = x; then
14710         PYTHON_LIBS=`$PYTHON-config --ldflags --libs`
14711 fi
14712
14713 save_LIBS="$LIBS"
14714 LIBS="$LIBS $PYTHON_LIBS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h.  */
14717
14718 /* Override any GCC internal prototype to avoid an error.
14719    Use char because int might match the return type of a GCC
14720    builtin and then its argument prototype would still apply.  */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 char Py_Initialize ();
14725 int
14726 main ()
14727 {
14728 return Py_Initialize ();
14729   ;
14730   return 0;
14731 }
14732 _ACEOF
14733 if ac_fn_c_try_link "$LINENO"; then :
14734            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14735 $as_echo "found" >&6; };
14736 else
14737            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14738 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741     conftest$ac_exeext conftest.$ac_ext
14742
14743
14744 fi
14745
14746 # Check whether --enable-doctool was given.
14747 if test "${enable_doctool+set}" = set; then :
14748   enableval=$enable_doctool;
14749 else
14750   enable_doctool=auto
14751 fi
14752
14753 if  test x$enable_doctool != xno; then :
14754
14755
14756 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
14758 $as_echo_n "checking for python module mako... " >&6; }
14759 if eval \${py_cv_mod_$py_mod_var+:} false; then :
14760   $as_echo_n "(cached) " >&6
14761 else
14762
14763 prog="
14764 import sys
14765 try:
14766         import mako
14767 except ImportError:
14768         sys.exit(1)
14769 except:
14770         sys.exit(0)
14771 sys.exit(0)"
14772 if $PYTHON -c "$prog" 1>&5 2>&5
14773   then
14774     eval "py_cv_mod_$py_mod_var=yes"
14775   else
14776     eval "py_cv_mod_$py_mod_var=no"
14777   fi
14778
14779 fi
14780
14781 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
14782 if test "x$py_val" != xno; then
14783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14784 $as_echo "yes" >&6; }
14785   have_python_mako=yes
14786 else
14787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14788 $as_echo "no" >&6; }
14789   have_python_mako=no
14790 fi
14791
14792
14793 fi
14794 if  test x$enable_doctool = xauto && test x$have_python_mako = xyes ; then :
14795    enable_doctool=yes
14796 elif  test x$enable_doctool = xauto && test x$have_python_mako = xno ; then :
14797    enable_doctool=no
14798 elif  test x$enable_doctool = xyes && test x$have_python_mako = xno ; then :
14799    as_fn_error $? "Python mako module not found" "$LINENO" 5
14800 fi
14801  if test x$enable_doctool != xno; then
14802   BUILD_DOCTOOL_TRUE=
14803   BUILD_DOCTOOL_FALSE='#'
14804 else
14805   BUILD_DOCTOOL_TRUE='#'
14806   BUILD_DOCTOOL_FALSE=
14807 fi
14808
14809
14810 # Glib documentation
14811
14812 GLIBSRC=
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
14814 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
14815
14816
14817 # Check whether --with-glib-src was given.
14818 if test "${with_glib_src+set}" = set; then :
14819   withval=$with_glib_src; GLIBSRC=$withval
14820
14821 fi
14822
14823  if test x"$GLIBSRC" != x; then
14824   WITH_GLIBSRC_TRUE=
14825   WITH_GLIBSRC_FALSE='#'
14826 else
14827   WITH_GLIBSRC_TRUE='#'
14828   WITH_GLIBSRC_FALSE=
14829 fi
14830
14831
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
14833 $as_echo "$GLIBSRC" >&6; }
14834
14835 # Check whether --enable-Bsymbolic was given.
14836 if test "${enable_Bsymbolic+set}" = set; then :
14837   enableval=$enable_Bsymbolic;
14838 else
14839   SAVED_LDFLAGS="${LDFLAGS}"
14840                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
14841 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
14842                LDFLAGS=-Wl,-Bsymbolic-functions
14843                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h.  */
14845
14846 int
14847 main ()
14848 {
14849 int main (void) { return 0; }
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 if ac_fn_c_try_link "$LINENO"; then :
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14856 $as_echo "yes" >&6; }
14857                                enable_Bsymbolic=yes
14858 else
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14861                                enable_Bsymbolic=no
14862 fi
14863 rm -f core conftest.err conftest.$ac_objext \
14864     conftest$ac_exeext conftest.$ac_ext
14865                LDFLAGS="${SAVED_LDFLAGS}"
14866 fi
14867
14868
14869 if test "x${enable_Bsymbolic}" = "xyes"; then
14870   EXTRA_LINK_FLAGS=-Wl,-Bsymbolic-functions
14871 fi
14872
14873
14874
14875 ac_config_files="$ac_config_files Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/scanner/annotationparser/Makefile tests/repository/Makefile tests/warn/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc config.h.win32 build/Makefile build/win32/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile"
14876
14877 cat >confcache <<\_ACEOF
14878 # This file is a shell script that caches the results of configure
14879 # tests run on this system so they can be shared between configure
14880 # scripts and configure runs, see configure's option --config-cache.
14881 # It is not useful on other systems.  If it contains results you don't
14882 # want to keep, you may remove or edit it.
14883 #
14884 # config.status only pays attention to the cache file if you give it
14885 # the --recheck option to rerun configure.
14886 #
14887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14889 # following values.
14890
14891 _ACEOF
14892
14893 # The following way of writing the cache mishandles newlines in values,
14894 # but we know of no workaround that is simple, portable, and efficient.
14895 # So, we kill variables containing newlines.
14896 # Ultrix sh set writes to stderr and can't be redirected directly,
14897 # and sets the high bit in the cache file unless we assign to the vars.
14898 (
14899   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14900     eval ac_val=\$$ac_var
14901     case $ac_val in #(
14902     *${as_nl}*)
14903       case $ac_var in #(
14904       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14906       esac
14907       case $ac_var in #(
14908       _ | IFS | as_nl) ;; #(
14909       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14910       *) { eval $ac_var=; unset $ac_var;} ;;
14911       esac ;;
14912     esac
14913   done
14914
14915   (set) 2>&1 |
14916     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14917     *${as_nl}ac_space=\ *)
14918       # `set' does not quote correctly, so add quotes: double-quote
14919       # substitution turns \\\\ into \\, and sed turns \\ into \.
14920       sed -n \
14921         "s/'/'\\\\''/g;
14922           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14923       ;; #(
14924     *)
14925       # `set' quotes correctly as required by POSIX, so do not add quotes.
14926       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14927       ;;
14928     esac |
14929     sort
14930 ) |
14931   sed '
14932      /^ac_cv_env_/b end
14933      t clear
14934      :clear
14935      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14936      t end
14937      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14938      :end' >>confcache
14939 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14940   if test -w "$cache_file"; then
14941     if test "x$cache_file" != "x/dev/null"; then
14942       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14943 $as_echo "$as_me: updating cache $cache_file" >&6;}
14944       if test ! -f "$cache_file" || test -h "$cache_file"; then
14945         cat confcache >"$cache_file"
14946       else
14947         case $cache_file in #(
14948         */* | ?:*)
14949           mv -f confcache "$cache_file"$$ &&
14950           mv -f "$cache_file"$$ "$cache_file" ;; #(
14951         *)
14952           mv -f confcache "$cache_file" ;;
14953         esac
14954       fi
14955     fi
14956   else
14957     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14958 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14959   fi
14960 fi
14961 rm -f confcache
14962
14963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14964 # Let make expand exec_prefix.
14965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14966
14967 DEFS=-DHAVE_CONFIG_H
14968
14969 ac_libobjs=
14970 ac_ltlibobjs=
14971 U=
14972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14973   # 1. Remove the extension, and $U if already installed.
14974   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14975   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14976   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14977   #    will be set to the directory where LIBOBJS objects are built.
14978   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14979   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14980 done
14981 LIBOBJS=$ac_libobjs
14982
14983 LTLIBOBJS=$ac_ltlibobjs
14984
14985
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14987 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14988    if test -n "$am_sleep_pid"; then
14989      # Hide warnings about reused PIDs.
14990      wait $am_sleep_pid 2>/dev/null
14991    fi
14992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14993 $as_echo "done" >&6; }
14994  if test -n "$EXEEXT"; then
14995   am__EXEEXT_TRUE=
14996   am__EXEEXT_FALSE='#'
14997 else
14998   am__EXEEXT_TRUE='#'
14999   am__EXEEXT_FALSE=
15000 fi
15001
15002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15003   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15005 fi
15006 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15007   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15009 fi
15010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15011   as_fn_error $? "conditional \"AMDEP\" was never defined.
15012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15013 fi
15014 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15015   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15017 fi
15018 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
15019   as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15021 fi
15022 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
15023   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15025 fi
15026 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15027   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15029 fi
15030 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
15031   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15033 fi
15034 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
15035   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15037 fi
15038 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
15039   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15041 fi
15042 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15043   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15045 fi
15046 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
15047   as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
15048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15049 fi
15050 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
15051   as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
15052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15053 fi
15054
15055 : "${CONFIG_STATUS=./config.status}"
15056 ac_write_fail=0
15057 ac_clean_files_save=$ac_clean_files
15058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15061 as_write_fail=0
15062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15063 #! $SHELL
15064 # Generated by $as_me.
15065 # Run this file to recreate the current configuration.
15066 # Compiler output produced by configure, useful for debugging
15067 # configure, is in config.log if it exists.
15068
15069 debug=false
15070 ac_cs_recheck=false
15071 ac_cs_silent=false
15072
15073 SHELL=\${CONFIG_SHELL-$SHELL}
15074 export SHELL
15075 _ASEOF
15076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15077 ## -------------------- ##
15078 ## M4sh Initialization. ##
15079 ## -------------------- ##
15080
15081 # Be more Bourne compatible
15082 DUALCASE=1; export DUALCASE # for MKS sh
15083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15084   emulate sh
15085   NULLCMD=:
15086   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15087   # is contrary to our usage.  Disable this feature.
15088   alias -g '${1+"$@"}'='"$@"'
15089   setopt NO_GLOB_SUBST
15090 else
15091   case `(set -o) 2>/dev/null` in #(
15092   *posix*) :
15093     set -o posix ;; #(
15094   *) :
15095      ;;
15096 esac
15097 fi
15098
15099
15100 as_nl='
15101 '
15102 export as_nl
15103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15107 # Prefer a ksh shell builtin over an external printf program on Solaris,
15108 # but without wasting forks for bash or zsh.
15109 if test -z "$BASH_VERSION$ZSH_VERSION" \
15110     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15111   as_echo='print -r --'
15112   as_echo_n='print -rn --'
15113 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15114   as_echo='printf %s\n'
15115   as_echo_n='printf %s'
15116 else
15117   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15118     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15119     as_echo_n='/usr/ucb/echo -n'
15120   else
15121     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15122     as_echo_n_body='eval
15123       arg=$1;
15124       case $arg in #(
15125       *"$as_nl"*)
15126         expr "X$arg" : "X\\(.*\\)$as_nl";
15127         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15128       esac;
15129       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15130     '
15131     export as_echo_n_body
15132     as_echo_n='sh -c $as_echo_n_body as_echo'
15133   fi
15134   export as_echo_body
15135   as_echo='sh -c $as_echo_body as_echo'
15136 fi
15137
15138 # The user is always right.
15139 if test "${PATH_SEPARATOR+set}" != set; then
15140   PATH_SEPARATOR=:
15141   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15142     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15143       PATH_SEPARATOR=';'
15144   }
15145 fi
15146
15147
15148 # IFS
15149 # We need space, tab and new line, in precisely that order.  Quoting is
15150 # there to prevent editors from complaining about space-tab.
15151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15152 # splitting by setting IFS to empty value.)
15153 IFS=" ""        $as_nl"
15154
15155 # Find who we are.  Look in the path if we contain no directory separator.
15156 as_myself=
15157 case $0 in #((
15158   *[\\/]* ) as_myself=$0 ;;
15159   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160 for as_dir in $PATH
15161 do
15162   IFS=$as_save_IFS
15163   test -z "$as_dir" && as_dir=.
15164     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15165   done
15166 IFS=$as_save_IFS
15167
15168      ;;
15169 esac
15170 # We did not find ourselves, most probably we were run as `sh COMMAND'
15171 # in which case we are not to be found in the path.
15172 if test "x$as_myself" = x; then
15173   as_myself=$0
15174 fi
15175 if test ! -f "$as_myself"; then
15176   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15177   exit 1
15178 fi
15179
15180 # Unset variables that we do not need and which cause bugs (e.g. in
15181 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15182 # suppresses any "Segmentation fault" message there.  '((' could
15183 # trigger a bug in pdksh 5.2.14.
15184 for as_var in BASH_ENV ENV MAIL MAILPATH
15185 do eval test x\${$as_var+set} = xset \
15186   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15187 done
15188 PS1='$ '
15189 PS2='> '
15190 PS4='+ '
15191
15192 # NLS nuisances.
15193 LC_ALL=C
15194 export LC_ALL
15195 LANGUAGE=C
15196 export LANGUAGE
15197
15198 # CDPATH.
15199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15200
15201
15202 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15203 # ----------------------------------------
15204 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15205 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15206 # script with STATUS, using 1 if that was 0.
15207 as_fn_error ()
15208 {
15209   as_status=$1; test $as_status -eq 0 && as_status=1
15210   if test "$4"; then
15211     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15212     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15213   fi
15214   $as_echo "$as_me: error: $2" >&2
15215   as_fn_exit $as_status
15216 } # as_fn_error
15217
15218
15219 # as_fn_set_status STATUS
15220 # -----------------------
15221 # Set $? to STATUS, without forking.
15222 as_fn_set_status ()
15223 {
15224   return $1
15225 } # as_fn_set_status
15226
15227 # as_fn_exit STATUS
15228 # -----------------
15229 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15230 as_fn_exit ()
15231 {
15232   set +e
15233   as_fn_set_status $1
15234   exit $1
15235 } # as_fn_exit
15236
15237 # as_fn_unset VAR
15238 # ---------------
15239 # Portably unset VAR.
15240 as_fn_unset ()
15241 {
15242   { eval $1=; unset $1;}
15243 }
15244 as_unset=as_fn_unset
15245 # as_fn_append VAR VALUE
15246 # ----------------------
15247 # Append the text in VALUE to the end of the definition contained in VAR. Take
15248 # advantage of any shell optimizations that allow amortized linear growth over
15249 # repeated appends, instead of the typical quadratic growth present in naive
15250 # implementations.
15251 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15252   eval 'as_fn_append ()
15253   {
15254     eval $1+=\$2
15255   }'
15256 else
15257   as_fn_append ()
15258   {
15259     eval $1=\$$1\$2
15260   }
15261 fi # as_fn_append
15262
15263 # as_fn_arith ARG...
15264 # ------------------
15265 # Perform arithmetic evaluation on the ARGs, and store the result in the
15266 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15267 # must be portable across $(()) and expr.
15268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15269   eval 'as_fn_arith ()
15270   {
15271     as_val=$(( $* ))
15272   }'
15273 else
15274   as_fn_arith ()
15275   {
15276     as_val=`expr "$@" || test $? -eq 1`
15277   }
15278 fi # as_fn_arith
15279
15280
15281 if expr a : '\(a\)' >/dev/null 2>&1 &&
15282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15283   as_expr=expr
15284 else
15285   as_expr=false
15286 fi
15287
15288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15289   as_basename=basename
15290 else
15291   as_basename=false
15292 fi
15293
15294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15295   as_dirname=dirname
15296 else
15297   as_dirname=false
15298 fi
15299
15300 as_me=`$as_basename -- "$0" ||
15301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15302          X"$0" : 'X\(//\)$' \| \
15303          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15304 $as_echo X/"$0" |
15305     sed '/^.*\/\([^/][^/]*\)\/*$/{
15306             s//\1/
15307             q
15308           }
15309           /^X\/\(\/\/\)$/{
15310             s//\1/
15311             q
15312           }
15313           /^X\/\(\/\).*/{
15314             s//\1/
15315             q
15316           }
15317           s/.*/./; q'`
15318
15319 # Avoid depending upon Character Ranges.
15320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15323 as_cr_digits='0123456789'
15324 as_cr_alnum=$as_cr_Letters$as_cr_digits
15325
15326 ECHO_C= ECHO_N= ECHO_T=
15327 case `echo -n x` in #(((((
15328 -n*)
15329   case `echo 'xy\c'` in
15330   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15331   xy)  ECHO_C='\c';;
15332   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15333        ECHO_T=' ';;
15334   esac;;
15335 *)
15336   ECHO_N='-n';;
15337 esac
15338
15339 rm -f conf$$ conf$$.exe conf$$.file
15340 if test -d conf$$.dir; then
15341   rm -f conf$$.dir/conf$$.file
15342 else
15343   rm -f conf$$.dir
15344   mkdir conf$$.dir 2>/dev/null
15345 fi
15346 if (echo >conf$$.file) 2>/dev/null; then
15347   if ln -s conf$$.file conf$$ 2>/dev/null; then
15348     as_ln_s='ln -s'
15349     # ... but there are two gotchas:
15350     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15351     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15352     # In both cases, we have to default to `cp -pR'.
15353     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15354       as_ln_s='cp -pR'
15355   elif ln conf$$.file conf$$ 2>/dev/null; then
15356     as_ln_s=ln
15357   else
15358     as_ln_s='cp -pR'
15359   fi
15360 else
15361   as_ln_s='cp -pR'
15362 fi
15363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15364 rmdir conf$$.dir 2>/dev/null
15365
15366
15367 # as_fn_mkdir_p
15368 # -------------
15369 # Create "$as_dir" as a directory, including parents if necessary.
15370 as_fn_mkdir_p ()
15371 {
15372
15373   case $as_dir in #(
15374   -*) as_dir=./$as_dir;;
15375   esac
15376   test -d "$as_dir" || eval $as_mkdir_p || {
15377     as_dirs=
15378     while :; do
15379       case $as_dir in #(
15380       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15381       *) as_qdir=$as_dir;;
15382       esac
15383       as_dirs="'$as_qdir' $as_dirs"
15384       as_dir=`$as_dirname -- "$as_dir" ||
15385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15386          X"$as_dir" : 'X\(//\)[^/]' \| \
15387          X"$as_dir" : 'X\(//\)$' \| \
15388          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15389 $as_echo X"$as_dir" |
15390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15391             s//\1/
15392             q
15393           }
15394           /^X\(\/\/\)[^/].*/{
15395             s//\1/
15396             q
15397           }
15398           /^X\(\/\/\)$/{
15399             s//\1/
15400             q
15401           }
15402           /^X\(\/\).*/{
15403             s//\1/
15404             q
15405           }
15406           s/.*/./; q'`
15407       test -d "$as_dir" && break
15408     done
15409     test -z "$as_dirs" || eval "mkdir $as_dirs"
15410   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15411
15412
15413 } # as_fn_mkdir_p
15414 if mkdir -p . 2>/dev/null; then
15415   as_mkdir_p='mkdir -p "$as_dir"'
15416 else
15417   test -d ./-p && rmdir ./-p
15418   as_mkdir_p=false
15419 fi
15420
15421
15422 # as_fn_executable_p FILE
15423 # -----------------------
15424 # Test if FILE is an executable regular file.
15425 as_fn_executable_p ()
15426 {
15427   test -f "$1" && test -x "$1"
15428 } # as_fn_executable_p
15429 as_test_x='test -x'
15430 as_executable_p=as_fn_executable_p
15431
15432 # Sed expression to map a string onto a valid CPP name.
15433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15434
15435 # Sed expression to map a string onto a valid variable name.
15436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15437
15438
15439 exec 6>&1
15440 ## ----------------------------------- ##
15441 ## Main body of $CONFIG_STATUS script. ##
15442 ## ----------------------------------- ##
15443 _ASEOF
15444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15445
15446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447 # Save the log message, to keep $0 and so on meaningful, and to
15448 # report actual input values of CONFIG_FILES etc. instead of their
15449 # values after options handling.
15450 ac_log="
15451 This file was extended by gobject-introspection $as_me 1.39.3, which was
15452 generated by GNU Autoconf 2.69.  Invocation command line was
15453
15454   CONFIG_FILES    = $CONFIG_FILES
15455   CONFIG_HEADERS  = $CONFIG_HEADERS
15456   CONFIG_LINKS    = $CONFIG_LINKS
15457   CONFIG_COMMANDS = $CONFIG_COMMANDS
15458   $ $0 $@
15459
15460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15461 "
15462
15463 _ACEOF
15464
15465 case $ac_config_files in *"
15466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15467 esac
15468
15469 case $ac_config_headers in *"
15470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15471 esac
15472
15473
15474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15475 # Files that config.status was made for.
15476 config_files="$ac_config_files"
15477 config_headers="$ac_config_headers"
15478 config_commands="$ac_config_commands"
15479
15480 _ACEOF
15481
15482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15483 ac_cs_usage="\
15484 \`$as_me' instantiates files and other configuration actions
15485 from templates according to the current configuration.  Unless the files
15486 and actions are specified as TAGs, all are instantiated by default.
15487
15488 Usage: $0 [OPTION]... [TAG]...
15489
15490   -h, --help       print this help, then exit
15491   -V, --version    print version number and configuration settings, then exit
15492       --config     print configuration, then exit
15493   -q, --quiet, --silent
15494                    do not print progress messages
15495   -d, --debug      don't remove temporary files
15496       --recheck    update $as_me by reconfiguring in the same conditions
15497       --file=FILE[:TEMPLATE]
15498                    instantiate the configuration file FILE
15499       --header=FILE[:TEMPLATE]
15500                    instantiate the configuration header FILE
15501
15502 Configuration files:
15503 $config_files
15504
15505 Configuration headers:
15506 $config_headers
15507
15508 Configuration commands:
15509 $config_commands
15510
15511 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>."
15512
15513 _ACEOF
15514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15516 ac_cs_version="\\
15517 gobject-introspection config.status 1.39.3
15518 configured by $0, generated by GNU Autoconf 2.69,
15519   with options \\"\$ac_cs_config\\"
15520
15521 Copyright (C) 2012 Free Software Foundation, Inc.
15522 This config.status script is free software; the Free Software Foundation
15523 gives unlimited permission to copy, distribute and modify it."
15524
15525 ac_pwd='$ac_pwd'
15526 srcdir='$srcdir'
15527 INSTALL='$INSTALL'
15528 MKDIR_P='$MKDIR_P'
15529 AWK='$AWK'
15530 test -n "\$AWK" || AWK=awk
15531 _ACEOF
15532
15533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15534 # The default lists apply if the user does not specify any file.
15535 ac_need_defaults=:
15536 while test $# != 0
15537 do
15538   case $1 in
15539   --*=?*)
15540     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15541     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15542     ac_shift=:
15543     ;;
15544   --*=)
15545     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15546     ac_optarg=
15547     ac_shift=:
15548     ;;
15549   *)
15550     ac_option=$1
15551     ac_optarg=$2
15552     ac_shift=shift
15553     ;;
15554   esac
15555
15556   case $ac_option in
15557   # Handling of the options.
15558   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15559     ac_cs_recheck=: ;;
15560   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15561     $as_echo "$ac_cs_version"; exit ;;
15562   --config | --confi | --conf | --con | --co | --c )
15563     $as_echo "$ac_cs_config"; exit ;;
15564   --debug | --debu | --deb | --de | --d | -d )
15565     debug=: ;;
15566   --file | --fil | --fi | --f )
15567     $ac_shift
15568     case $ac_optarg in
15569     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15570     '') as_fn_error $? "missing file argument" ;;
15571     esac
15572     as_fn_append CONFIG_FILES " '$ac_optarg'"
15573     ac_need_defaults=false;;
15574   --header | --heade | --head | --hea )
15575     $ac_shift
15576     case $ac_optarg in
15577     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15578     esac
15579     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15580     ac_need_defaults=false;;
15581   --he | --h)
15582     # Conflict between --help and --header
15583     as_fn_error $? "ambiguous option: \`$1'
15584 Try \`$0 --help' for more information.";;
15585   --help | --hel | -h )
15586     $as_echo "$ac_cs_usage"; exit ;;
15587   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15588   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15589     ac_cs_silent=: ;;
15590
15591   # This is an error.
15592   -*) as_fn_error $? "unrecognized option: \`$1'
15593 Try \`$0 --help' for more information." ;;
15594
15595   *) as_fn_append ac_config_targets " $1"
15596      ac_need_defaults=false ;;
15597
15598   esac
15599   shift
15600 done
15601
15602 ac_configure_extra_args=
15603
15604 if $ac_cs_silent; then
15605   exec 6>/dev/null
15606   ac_configure_extra_args="$ac_configure_extra_args --silent"
15607 fi
15608
15609 _ACEOF
15610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15611 if \$ac_cs_recheck; then
15612   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15613   shift
15614   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15615   CONFIG_SHELL='$SHELL'
15616   export CONFIG_SHELL
15617   exec "\$@"
15618 fi
15619
15620 _ACEOF
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 exec 5>>config.log
15623 {
15624   echo
15625   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15626 ## Running $as_me. ##
15627 _ASBOX
15628   $as_echo "$ac_log"
15629 } >&5
15630
15631 _ACEOF
15632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 #
15634 # INIT-COMMANDS
15635 #
15636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15637
15638
15639 # The HP-UX ksh and POSIX shell print the target directory to stdout
15640 # if CDPATH is set.
15641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15642
15643 sed_quote_subst='$sed_quote_subst'
15644 double_quote_subst='$double_quote_subst'
15645 delay_variable_subst='$delay_variable_subst'
15646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15648 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15654 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15655 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15656 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15657 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15658 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15659 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15660 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15661 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15662 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15663 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15664 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15665 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15666 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15675 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15676 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15682 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15683 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15684 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15685 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15686 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15687 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15688 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15689 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15690 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15691 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15692 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15693 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15694 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15695 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15696 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15697 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15698 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15699 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15700 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15702 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"`'
15703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15705 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15706 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15707 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15708 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15710 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15711 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15712 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15713 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15737 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15738 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15739 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15740 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15741 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15742 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15743 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15744 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15745 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15746 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15747 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15748 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15749 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15750 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15751 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15752 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15753 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15754 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15755 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15756 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15757 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15758 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15759 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15760 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15761 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15762 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15763 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15764 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15765 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15766 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15767 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15768 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15769 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15776
15777 LTCC='$LTCC'
15778 LTCFLAGS='$LTCFLAGS'
15779 compiler='$compiler_DEFAULT'
15780
15781 # A function that is used when there is no print builtin or printf.
15782 func_fallback_echo ()
15783 {
15784   eval 'cat <<_LTECHO_EOF
15785 \$1
15786 _LTECHO_EOF'
15787 }
15788
15789 # Quote evaled strings.
15790 for var in SHELL \
15791 ECHO \
15792 PATH_SEPARATOR \
15793 SED \
15794 GREP \
15795 EGREP \
15796 FGREP \
15797 LD \
15798 NM \
15799 LN_S \
15800 lt_SP2NL \
15801 lt_NL2SP \
15802 reload_flag \
15803 OBJDUMP \
15804 deplibs_check_method \
15805 file_magic_cmd \
15806 file_magic_glob \
15807 want_nocaseglob \
15808 DLLTOOL \
15809 sharedlib_from_linklib_cmd \
15810 AR \
15811 AR_FLAGS \
15812 archiver_list_spec \
15813 STRIP \
15814 RANLIB \
15815 CC \
15816 CFLAGS \
15817 compiler \
15818 lt_cv_sys_global_symbol_pipe \
15819 lt_cv_sys_global_symbol_to_cdecl \
15820 lt_cv_sys_global_symbol_to_c_name_address \
15821 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15822 nm_file_list_spec \
15823 lt_prog_compiler_no_builtin_flag \
15824 lt_prog_compiler_pic \
15825 lt_prog_compiler_wl \
15826 lt_prog_compiler_static \
15827 lt_cv_prog_compiler_c_o \
15828 need_locks \
15829 MANIFEST_TOOL \
15830 DSYMUTIL \
15831 NMEDIT \
15832 LIPO \
15833 OTOOL \
15834 OTOOL64 \
15835 shrext_cmds \
15836 export_dynamic_flag_spec \
15837 whole_archive_flag_spec \
15838 compiler_needs_object \
15839 with_gnu_ld \
15840 allow_undefined_flag \
15841 no_undefined_flag \
15842 hardcode_libdir_flag_spec \
15843 hardcode_libdir_separator \
15844 exclude_expsyms \
15845 include_expsyms \
15846 file_list_spec \
15847 variables_saved_for_relink \
15848 libname_spec \
15849 library_names_spec \
15850 soname_spec \
15851 install_override_mode \
15852 finish_eval \
15853 old_striplib \
15854 striplib; do
15855     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15856     *[\\\\\\\`\\"\\\$]*)
15857       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15858       ;;
15859     *)
15860       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15861       ;;
15862     esac
15863 done
15864
15865 # Double-quote double-evaled strings.
15866 for var in reload_cmds \
15867 old_postinstall_cmds \
15868 old_postuninstall_cmds \
15869 old_archive_cmds \
15870 extract_expsyms_cmds \
15871 old_archive_from_new_cmds \
15872 old_archive_from_expsyms_cmds \
15873 archive_cmds \
15874 archive_expsym_cmds \
15875 module_cmds \
15876 module_expsym_cmds \
15877 export_symbols_cmds \
15878 prelink_cmds \
15879 postlink_cmds \
15880 postinstall_cmds \
15881 postuninstall_cmds \
15882 finish_cmds \
15883 sys_lib_search_path_spec \
15884 sys_lib_dlsearch_path_spec; do
15885     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15886     *[\\\\\\\`\\"\\\$]*)
15887       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15888       ;;
15889     *)
15890       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15891       ;;
15892     esac
15893 done
15894
15895 ac_aux_dir='$ac_aux_dir'
15896 xsi_shell='$xsi_shell'
15897 lt_shell_append='$lt_shell_append'
15898
15899 # See if we are running on zsh, and set the options which allow our
15900 # commands through without removal of \ escapes INIT.
15901 if test -n "\${ZSH_VERSION+set}" ; then
15902    setopt NO_GLOB_SUBST
15903 fi
15904
15905
15906     PACKAGE='$PACKAGE'
15907     VERSION='$VERSION'
15908     TIMESTAMP='$TIMESTAMP'
15909     RM='$RM'
15910     ofile='$ofile'
15911
15912
15913
15914
15915 _ACEOF
15916
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918
15919 # Handling of arguments.
15920 for ac_config_target in $ac_config_targets
15921 do
15922   case $ac_config_target in
15923     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15924     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15925     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15926     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15927     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15928     "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
15929     "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
15930     "tests/scanner/annotationparser/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/annotationparser/Makefile" ;;
15931     "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
15932     "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
15933     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15934     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
15935     "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
15936     "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
15937     "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
15938     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
15939     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
15940     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
15941     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
15942     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
15943
15944   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15945   esac
15946 done
15947
15948
15949 # If the user did not use the arguments to specify the items to instantiate,
15950 # then the envvar interface is used.  Set only those that are not.
15951 # We use the long form for the default assignment because of an extremely
15952 # bizarre bug on SunOS 4.1.3.
15953 if $ac_need_defaults; then
15954   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15955   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15956   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15957 fi
15958
15959 # Have a temporary directory for convenience.  Make it in the build tree
15960 # simply because there is no reason against having it here, and in addition,
15961 # creating and moving files from /tmp can sometimes cause problems.
15962 # Hook for its removal unless debugging.
15963 # Note that there is a small window in which the directory will not be cleaned:
15964 # after its creation but before its name has been assigned to `$tmp'.
15965 $debug ||
15966 {
15967   tmp= ac_tmp=
15968   trap 'exit_status=$?
15969   : "${ac_tmp:=$tmp}"
15970   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15971 ' 0
15972   trap 'as_fn_exit 1' 1 2 13 15
15973 }
15974 # Create a (secure) tmp directory for tmp files.
15975
15976 {
15977   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15978   test -d "$tmp"
15979 }  ||
15980 {
15981   tmp=./conf$$-$RANDOM
15982   (umask 077 && mkdir "$tmp")
15983 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15984 ac_tmp=$tmp
15985
15986 # Set up the scripts for CONFIG_FILES section.
15987 # No need to generate them if there are no CONFIG_FILES.
15988 # This happens for instance with `./config.status config.h'.
15989 if test -n "$CONFIG_FILES"; then
15990
15991
15992 ac_cr=`echo X | tr X '\015'`
15993 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15994 # But we know of no other shell where ac_cr would be empty at this
15995 # point, so we can use a bashism as a fallback.
15996 if test "x$ac_cr" = x; then
15997   eval ac_cr=\$\'\\r\'
15998 fi
15999 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16000 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16001   ac_cs_awk_cr='\\r'
16002 else
16003   ac_cs_awk_cr=$ac_cr
16004 fi
16005
16006 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16007 _ACEOF
16008
16009
16010 {
16011   echo "cat >conf$$subs.awk <<_ACEOF" &&
16012   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16013   echo "_ACEOF"
16014 } >conf$$subs.sh ||
16015   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16016 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16017 ac_delim='%!_!# '
16018 for ac_last_try in false false false false false :; do
16019   . ./conf$$subs.sh ||
16020     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16021
16022   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16023   if test $ac_delim_n = $ac_delim_num; then
16024     break
16025   elif $ac_last_try; then
16026     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16027   else
16028     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16029   fi
16030 done
16031 rm -f conf$$subs.sh
16032
16033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16034 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16035 _ACEOF
16036 sed -n '
16037 h
16038 s/^/S["/; s/!.*/"]=/
16039 p
16040 g
16041 s/^[^!]*!//
16042 :repl
16043 t repl
16044 s/'"$ac_delim"'$//
16045 t delim
16046 :nl
16047 h
16048 s/\(.\{148\}\)..*/\1/
16049 t more1
16050 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16051 p
16052 n
16053 b repl
16054 :more1
16055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16056 p
16057 g
16058 s/.\{148\}//
16059 t nl
16060 :delim
16061 h
16062 s/\(.\{148\}\)..*/\1/
16063 t more2
16064 s/["\\]/\\&/g; s/^/"/; s/$/"/
16065 p
16066 b
16067 :more2
16068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16069 p
16070 g
16071 s/.\{148\}//
16072 t delim
16073 ' <conf$$subs.awk | sed '
16074 /^[^""]/{
16075   N
16076   s/\n//
16077 }
16078 ' >>$CONFIG_STATUS || ac_write_fail=1
16079 rm -f conf$$subs.awk
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 _ACAWK
16082 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16083   for (key in S) S_is_set[key] = 1
16084   FS = "\a"
16085
16086 }
16087 {
16088   line = $ 0
16089   nfields = split(line, field, "@")
16090   substed = 0
16091   len = length(field[1])
16092   for (i = 2; i < nfields; i++) {
16093     key = field[i]
16094     keylen = length(key)
16095     if (S_is_set[key]) {
16096       value = S[key]
16097       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16098       len += length(value) + length(field[++i])
16099       substed = 1
16100     } else
16101       len += 1 + keylen
16102   }
16103
16104   print line
16105 }
16106
16107 _ACAWK
16108 _ACEOF
16109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16111   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16112 else
16113   cat
16114 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16115   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16116 _ACEOF
16117
16118 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16119 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16120 # trailing colons and then remove the whole line if VPATH becomes empty
16121 # (actually we leave an empty line to preserve line numbers).
16122 if test "x$srcdir" = x.; then
16123   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16124 h
16125 s///
16126 s/^/:/
16127 s/[      ]*$/:/
16128 s/:\$(srcdir):/:/g
16129 s/:\${srcdir}:/:/g
16130 s/:@srcdir@:/:/g
16131 s/^:*//
16132 s/:*$//
16133 x
16134 s/\(=[   ]*\).*/\1/
16135 G
16136 s/\n//
16137 s/^[^=]*=[       ]*$//
16138 }'
16139 fi
16140
16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142 fi # test -n "$CONFIG_FILES"
16143
16144 # Set up the scripts for CONFIG_HEADERS section.
16145 # No need to generate them if there are no CONFIG_HEADERS.
16146 # This happens for instance with `./config.status Makefile'.
16147 if test -n "$CONFIG_HEADERS"; then
16148 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16149 BEGIN {
16150 _ACEOF
16151
16152 # Transform confdefs.h into an awk script `defines.awk', embedded as
16153 # here-document in config.status, that substitutes the proper values into
16154 # config.h.in to produce config.h.
16155
16156 # Create a delimiter string that does not exist in confdefs.h, to ease
16157 # handling of long lines.
16158 ac_delim='%!_!# '
16159 for ac_last_try in false false :; do
16160   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16161   if test -z "$ac_tt"; then
16162     break
16163   elif $ac_last_try; then
16164     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16165   else
16166     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16167   fi
16168 done
16169
16170 # For the awk script, D is an array of macro values keyed by name,
16171 # likewise P contains macro parameters if any.  Preserve backslash
16172 # newline sequences.
16173
16174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16175 sed -n '
16176 s/.\{148\}/&'"$ac_delim"'/g
16177 t rset
16178 :rset
16179 s/^[     ]*#[    ]*define[       ][      ]*/ /
16180 t def
16181 d
16182 :def
16183 s/\\$//
16184 t bsnl
16185 s/["\\]/\\&/g
16186 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16187 D["\1"]=" \3"/p
16188 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16189 d
16190 :bsnl
16191 s/["\\]/\\&/g
16192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16193 D["\1"]=" \3\\\\\\n"\\/p
16194 t cont
16195 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16196 t cont
16197 d
16198 :cont
16199 n
16200 s/.\{148\}/&'"$ac_delim"'/g
16201 t clear
16202 :clear
16203 s/\\$//
16204 t bsnlc
16205 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16206 d
16207 :bsnlc
16208 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16209 b cont
16210 ' <confdefs.h | sed '
16211 s/'"$ac_delim"'/"\\\
16212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16213
16214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16215   for (key in D) D_is_set[key] = 1
16216   FS = "\a"
16217 }
16218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16219   line = \$ 0
16220   split(line, arg, " ")
16221   if (arg[1] == "#") {
16222     defundef = arg[2]
16223     mac1 = arg[3]
16224   } else {
16225     defundef = substr(arg[1], 2)
16226     mac1 = arg[2]
16227   }
16228   split(mac1, mac2, "(") #)
16229   macro = mac2[1]
16230   prefix = substr(line, 1, index(line, defundef) - 1)
16231   if (D_is_set[macro]) {
16232     # Preserve the white space surrounding the "#".
16233     print prefix "define", macro P[macro] D[macro]
16234     next
16235   } else {
16236     # Replace #undef with comments.  This is necessary, for example,
16237     # in the case of _POSIX_SOURCE, which is predefined and required
16238     # on some systems where configure will not decide to define it.
16239     if (defundef == "undef") {
16240       print "/*", prefix defundef, macro, "*/"
16241       next
16242     }
16243   }
16244 }
16245 { print }
16246 _ACAWK
16247 _ACEOF
16248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16249   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16250 fi # test -n "$CONFIG_HEADERS"
16251
16252
16253 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16254 shift
16255 for ac_tag
16256 do
16257   case $ac_tag in
16258   :[FHLC]) ac_mode=$ac_tag; continue;;
16259   esac
16260   case $ac_mode$ac_tag in
16261   :[FHL]*:*);;
16262   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16263   :[FH]-) ac_tag=-:-;;
16264   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16265   esac
16266   ac_save_IFS=$IFS
16267   IFS=:
16268   set x $ac_tag
16269   IFS=$ac_save_IFS
16270   shift
16271   ac_file=$1
16272   shift
16273
16274   case $ac_mode in
16275   :L) ac_source=$1;;
16276   :[FH])
16277     ac_file_inputs=
16278     for ac_f
16279     do
16280       case $ac_f in
16281       -) ac_f="$ac_tmp/stdin";;
16282       *) # Look for the file first in the build tree, then in the source tree
16283          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16284          # because $ac_f cannot contain `:'.
16285          test -f "$ac_f" ||
16286            case $ac_f in
16287            [\\/$]*) false;;
16288            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16289            esac ||
16290            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16291       esac
16292       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16293       as_fn_append ac_file_inputs " '$ac_f'"
16294     done
16295
16296     # Let's still pretend it is `configure' which instantiates (i.e., don't
16297     # use $as_me), people would be surprised to read:
16298     #    /* config.h.  Generated by config.status.  */
16299     configure_input='Generated from '`
16300           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16301         `' by configure.'
16302     if test x"$ac_file" != x-; then
16303       configure_input="$ac_file.  $configure_input"
16304       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16305 $as_echo "$as_me: creating $ac_file" >&6;}
16306     fi
16307     # Neutralize special characters interpreted by sed in replacement strings.
16308     case $configure_input in #(
16309     *\&* | *\|* | *\\* )
16310        ac_sed_conf_input=`$as_echo "$configure_input" |
16311        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16312     *) ac_sed_conf_input=$configure_input;;
16313     esac
16314
16315     case $ac_tag in
16316     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16317       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16318     esac
16319     ;;
16320   esac
16321
16322   ac_dir=`$as_dirname -- "$ac_file" ||
16323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16324          X"$ac_file" : 'X\(//\)[^/]' \| \
16325          X"$ac_file" : 'X\(//\)$' \| \
16326          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16327 $as_echo X"$ac_file" |
16328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16329             s//\1/
16330             q
16331           }
16332           /^X\(\/\/\)[^/].*/{
16333             s//\1/
16334             q
16335           }
16336           /^X\(\/\/\)$/{
16337             s//\1/
16338             q
16339           }
16340           /^X\(\/\).*/{
16341             s//\1/
16342             q
16343           }
16344           s/.*/./; q'`
16345   as_dir="$ac_dir"; as_fn_mkdir_p
16346   ac_builddir=.
16347
16348 case "$ac_dir" in
16349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16350 *)
16351   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16352   # A ".." for each directory in $ac_dir_suffix.
16353   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16354   case $ac_top_builddir_sub in
16355   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16356   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16357   esac ;;
16358 esac
16359 ac_abs_top_builddir=$ac_pwd
16360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16361 # for backward compatibility:
16362 ac_top_builddir=$ac_top_build_prefix
16363
16364 case $srcdir in
16365   .)  # We are building in place.
16366     ac_srcdir=.
16367     ac_top_srcdir=$ac_top_builddir_sub
16368     ac_abs_top_srcdir=$ac_pwd ;;
16369   [\\/]* | ?:[\\/]* )  # Absolute name.
16370     ac_srcdir=$srcdir$ac_dir_suffix;
16371     ac_top_srcdir=$srcdir
16372     ac_abs_top_srcdir=$srcdir ;;
16373   *) # Relative name.
16374     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16375     ac_top_srcdir=$ac_top_build_prefix$srcdir
16376     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16377 esac
16378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16379
16380
16381   case $ac_mode in
16382   :F)
16383   #
16384   # CONFIG_FILE
16385   #
16386
16387   case $INSTALL in
16388   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16389   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16390   esac
16391   ac_MKDIR_P=$MKDIR_P
16392   case $MKDIR_P in
16393   [\\/$]* | ?:[\\/]* ) ;;
16394   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16395   esac
16396 _ACEOF
16397
16398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16399 # If the template does not know about datarootdir, expand it.
16400 # FIXME: This hack should be removed a few years after 2.60.
16401 ac_datarootdir_hack=; ac_datarootdir_seen=
16402 ac_sed_dataroot='
16403 /datarootdir/ {
16404   p
16405   q
16406 }
16407 /@datadir@/p
16408 /@docdir@/p
16409 /@infodir@/p
16410 /@localedir@/p
16411 /@mandir@/p'
16412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16413 *datarootdir*) ac_datarootdir_seen=yes;;
16414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16415   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16417 _ACEOF
16418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16419   ac_datarootdir_hack='
16420   s&@datadir@&$datadir&g
16421   s&@docdir@&$docdir&g
16422   s&@infodir@&$infodir&g
16423   s&@localedir@&$localedir&g
16424   s&@mandir@&$mandir&g
16425   s&\\\${datarootdir}&$datarootdir&g' ;;
16426 esac
16427 _ACEOF
16428
16429 # Neutralize VPATH when `$srcdir' = `.'.
16430 # Shell code in configure.ac might set extrasub.
16431 # FIXME: do we really want to maintain this feature?
16432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16433 ac_sed_extra="$ac_vpsub
16434 $extrasub
16435 _ACEOF
16436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16437 :t
16438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16439 s|@configure_input@|$ac_sed_conf_input|;t t
16440 s&@top_builddir@&$ac_top_builddir_sub&;t t
16441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16442 s&@srcdir@&$ac_srcdir&;t t
16443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16444 s&@top_srcdir@&$ac_top_srcdir&;t t
16445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16446 s&@builddir@&$ac_builddir&;t t
16447 s&@abs_builddir@&$ac_abs_builddir&;t t
16448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16449 s&@INSTALL@&$ac_INSTALL&;t t
16450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16451 $ac_datarootdir_hack
16452 "
16453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16454   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16455
16456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16457   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16458   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16459       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16461 which seems to be undefined.  Please make sure it is defined" >&5
16462 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16463 which seems to be undefined.  Please make sure it is defined" >&2;}
16464
16465   rm -f "$ac_tmp/stdin"
16466   case $ac_file in
16467   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16468   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16469   esac \
16470   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16471  ;;
16472   :H)
16473   #
16474   # CONFIG_HEADER
16475   #
16476   if test x"$ac_file" != x-; then
16477     {
16478       $as_echo "/* $configure_input  */" \
16479       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16480     } >"$ac_tmp/config.h" \
16481       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16482     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16483       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16485     else
16486       rm -f "$ac_file"
16487       mv "$ac_tmp/config.h" "$ac_file" \
16488         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16489     fi
16490   else
16491     $as_echo "/* $configure_input  */" \
16492       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16493       || as_fn_error $? "could not create -" "$LINENO" 5
16494   fi
16495 # Compute "$ac_file"'s index in $config_headers.
16496 _am_arg="$ac_file"
16497 _am_stamp_count=1
16498 for _am_header in $config_headers :; do
16499   case $_am_header in
16500     $_am_arg | $_am_arg:* )
16501       break ;;
16502     * )
16503       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16504   esac
16505 done
16506 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16507 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16508          X"$_am_arg" : 'X\(//\)[^/]' \| \
16509          X"$_am_arg" : 'X\(//\)$' \| \
16510          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16511 $as_echo X"$_am_arg" |
16512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16513             s//\1/
16514             q
16515           }
16516           /^X\(\/\/\)[^/].*/{
16517             s//\1/
16518             q
16519           }
16520           /^X\(\/\/\)$/{
16521             s//\1/
16522             q
16523           }
16524           /^X\(\/\).*/{
16525             s//\1/
16526             q
16527           }
16528           s/.*/./; q'`/stamp-h$_am_stamp_count
16529  ;;
16530
16531   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16532 $as_echo "$as_me: executing $ac_file commands" >&6;}
16533  ;;
16534   esac
16535
16536
16537   case $ac_file$ac_mode in
16538     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16539   # Older Autoconf quotes --file arguments for eval, but not when files
16540   # are listed without --file.  Let's play safe and only enable the eval
16541   # if we detect the quoting.
16542   case $CONFIG_FILES in
16543   *\'*) eval set x "$CONFIG_FILES" ;;
16544   *)   set x $CONFIG_FILES ;;
16545   esac
16546   shift
16547   for mf
16548   do
16549     # Strip MF so we end up with the name of the file.
16550     mf=`echo "$mf" | sed -e 's/:.*$//'`
16551     # Check whether this is an Automake generated Makefile or not.
16552     # We used to match only the files named 'Makefile.in', but
16553     # some people rename them; so instead we look at the file content.
16554     # Grep'ing the first line is not enough: some people post-process
16555     # each Makefile.in and add a new line on top of each file to say so.
16556     # Grep'ing the whole file is not good either: AIX grep has a line
16557     # limit of 2048, but all sed's we know have understand at least 4000.
16558     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16559       dirpart=`$as_dirname -- "$mf" ||
16560 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16561          X"$mf" : 'X\(//\)[^/]' \| \
16562          X"$mf" : 'X\(//\)$' \| \
16563          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16564 $as_echo X"$mf" |
16565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16566             s//\1/
16567             q
16568           }
16569           /^X\(\/\/\)[^/].*/{
16570             s//\1/
16571             q
16572           }
16573           /^X\(\/\/\)$/{
16574             s//\1/
16575             q
16576           }
16577           /^X\(\/\).*/{
16578             s//\1/
16579             q
16580           }
16581           s/.*/./; q'`
16582     else
16583       continue
16584     fi
16585     # Extract the definition of DEPDIR, am__include, and am__quote
16586     # from the Makefile without running 'make'.
16587     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16588     test -z "$DEPDIR" && continue
16589     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16590     test -z "$am__include" && continue
16591     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16592     # Find all dependency output files, they are included files with
16593     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16594     # simplest approach to changing $(DEPDIR) to its actual value in the
16595     # expansion.
16596     for file in `sed -n "
16597       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16598          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16599       # Make sure the directory exists.
16600       test -f "$dirpart/$file" && continue
16601       fdir=`$as_dirname -- "$file" ||
16602 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16603          X"$file" : 'X\(//\)[^/]' \| \
16604          X"$file" : 'X\(//\)$' \| \
16605          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16606 $as_echo X"$file" |
16607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16608             s//\1/
16609             q
16610           }
16611           /^X\(\/\/\)[^/].*/{
16612             s//\1/
16613             q
16614           }
16615           /^X\(\/\/\)$/{
16616             s//\1/
16617             q
16618           }
16619           /^X\(\/\).*/{
16620             s//\1/
16621             q
16622           }
16623           s/.*/./; q'`
16624       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16625       # echo "creating $dirpart/$file"
16626       echo '# dummy' > "$dirpart/$file"
16627     done
16628   done
16629 }
16630  ;;
16631     "libtool":C)
16632
16633     # See if we are running on zsh, and set the options which allow our
16634     # commands through without removal of \ escapes.
16635     if test -n "${ZSH_VERSION+set}" ; then
16636       setopt NO_GLOB_SUBST
16637     fi
16638
16639     cfgfile="${ofile}T"
16640     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16641     $RM "$cfgfile"
16642
16643     cat <<_LT_EOF >> "$cfgfile"
16644 #! $SHELL
16645
16646 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16647 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16649 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16650 #
16651 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16652 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16653 #                 Foundation, Inc.
16654 #   Written by Gordon Matzigkeit, 1996
16655 #
16656 #   This file is part of GNU Libtool.
16657 #
16658 # GNU Libtool is free software; you can redistribute it and/or
16659 # modify it under the terms of the GNU General Public License as
16660 # published by the Free Software Foundation; either version 2 of
16661 # the License, or (at your option) any later version.
16662 #
16663 # As a special exception to the GNU General Public License,
16664 # if you distribute this file as part of a program or library that
16665 # is built using GNU Libtool, you may include this file under the
16666 # same distribution terms that you use for the rest of that program.
16667 #
16668 # GNU Libtool is distributed in the hope that it will be useful,
16669 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16670 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16671 # GNU General Public License for more details.
16672 #
16673 # You should have received a copy of the GNU General Public License
16674 # along with GNU Libtool; see the file COPYING.  If not, a copy
16675 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16676 # obtained by writing to the Free Software Foundation, Inc.,
16677 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16678
16679
16680 # The names of the tagged configurations supported by this script.
16681 available_tags=""
16682
16683 # ### BEGIN LIBTOOL CONFIG
16684
16685 # Which release of libtool.m4 was used?
16686 macro_version=$macro_version
16687 macro_revision=$macro_revision
16688
16689 # Whether or not to build shared libraries.
16690 build_libtool_libs=$enable_shared
16691
16692 # Whether or not to build static libraries.
16693 build_old_libs=$enable_static
16694
16695 # What type of objects to build.
16696 pic_mode=$pic_mode
16697
16698 # Whether or not to optimize for fast installation.
16699 fast_install=$enable_fast_install
16700
16701 # Shell to use when invoking shell scripts.
16702 SHELL=$lt_SHELL
16703
16704 # An echo program that protects backslashes.
16705 ECHO=$lt_ECHO
16706
16707 # The PATH separator for the build system.
16708 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16709
16710 # The host system.
16711 host_alias=$host_alias
16712 host=$host
16713 host_os=$host_os
16714
16715 # The build system.
16716 build_alias=$build_alias
16717 build=$build
16718 build_os=$build_os
16719
16720 # A sed program that does not truncate output.
16721 SED=$lt_SED
16722
16723 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16724 Xsed="\$SED -e 1s/^X//"
16725
16726 # A grep program that handles long lines.
16727 GREP=$lt_GREP
16728
16729 # An ERE matcher.
16730 EGREP=$lt_EGREP
16731
16732 # A literal string matcher.
16733 FGREP=$lt_FGREP
16734
16735 # A BSD- or MS-compatible name lister.
16736 NM=$lt_NM
16737
16738 # Whether we need soft or hard links.
16739 LN_S=$lt_LN_S
16740
16741 # What is the maximum length of a command?
16742 max_cmd_len=$max_cmd_len
16743
16744 # Object file suffix (normally "o").
16745 objext=$ac_objext
16746
16747 # Executable file suffix (normally "").
16748 exeext=$exeext
16749
16750 # whether the shell understands "unset".
16751 lt_unset=$lt_unset
16752
16753 # turn spaces into newlines.
16754 SP2NL=$lt_lt_SP2NL
16755
16756 # turn newlines into spaces.
16757 NL2SP=$lt_lt_NL2SP
16758
16759 # convert \$build file names to \$host format.
16760 to_host_file_cmd=$lt_cv_to_host_file_cmd
16761
16762 # convert \$build files to toolchain format.
16763 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16764
16765 # An object symbol dumper.
16766 OBJDUMP=$lt_OBJDUMP
16767
16768 # Method to check whether dependent libraries are shared objects.
16769 deplibs_check_method=$lt_deplibs_check_method
16770
16771 # Command to use when deplibs_check_method = "file_magic".
16772 file_magic_cmd=$lt_file_magic_cmd
16773
16774 # How to find potential files when deplibs_check_method = "file_magic".
16775 file_magic_glob=$lt_file_magic_glob
16776
16777 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16778 want_nocaseglob=$lt_want_nocaseglob
16779
16780 # DLL creation program.
16781 DLLTOOL=$lt_DLLTOOL
16782
16783 # Command to associate shared and link libraries.
16784 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16785
16786 # The archiver.
16787 AR=$lt_AR
16788
16789 # Flags to create an archive.
16790 AR_FLAGS=$lt_AR_FLAGS
16791
16792 # How to feed a file listing to the archiver.
16793 archiver_list_spec=$lt_archiver_list_spec
16794
16795 # A symbol stripping program.
16796 STRIP=$lt_STRIP
16797
16798 # Commands used to install an old-style archive.
16799 RANLIB=$lt_RANLIB
16800 old_postinstall_cmds=$lt_old_postinstall_cmds
16801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16802
16803 # Whether to use a lock for old archive extraction.
16804 lock_old_archive_extraction=$lock_old_archive_extraction
16805
16806 # A C compiler.
16807 LTCC=$lt_CC
16808
16809 # LTCC compiler flags.
16810 LTCFLAGS=$lt_CFLAGS
16811
16812 # Take the output of nm and produce a listing of raw symbols and C names.
16813 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16814
16815 # Transform the output of nm in a proper C declaration.
16816 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16817
16818 # Transform the output of nm in a C name address pair.
16819 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16820
16821 # Transform the output of nm in a C name address pair when lib prefix is needed.
16822 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16823
16824 # Specify filename containing input files for \$NM.
16825 nm_file_list_spec=$lt_nm_file_list_spec
16826
16827 # The root where to search for dependent libraries,and in which our libraries should be installed.
16828 lt_sysroot=$lt_sysroot
16829
16830 # The name of the directory that contains temporary libtool files.
16831 objdir=$objdir
16832
16833 # Used to examine libraries when file_magic_cmd begins with "file".
16834 MAGIC_CMD=$MAGIC_CMD
16835
16836 # Must we lock files when doing compilation?
16837 need_locks=$lt_need_locks
16838
16839 # Manifest tool.
16840 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16841
16842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16843 DSYMUTIL=$lt_DSYMUTIL
16844
16845 # Tool to change global to local symbols on Mac OS X.
16846 NMEDIT=$lt_NMEDIT
16847
16848 # Tool to manipulate fat objects and archives on Mac OS X.
16849 LIPO=$lt_LIPO
16850
16851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16852 OTOOL=$lt_OTOOL
16853
16854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16855 OTOOL64=$lt_OTOOL64
16856
16857 # Old archive suffix (normally "a").
16858 libext=$libext
16859
16860 # Shared library suffix (normally ".so").
16861 shrext_cmds=$lt_shrext_cmds
16862
16863 # The commands to extract the exported symbol list from a shared archive.
16864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16865
16866 # Variables whose values should be saved in libtool wrapper scripts and
16867 # restored at link time.
16868 variables_saved_for_relink=$lt_variables_saved_for_relink
16869
16870 # Do we need the "lib" prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16872
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16875
16876 # Library versioning type.
16877 version_type=$version_type
16878
16879 # Shared library runtime path variable.
16880 runpath_var=$runpath_var
16881
16882 # Shared library path variable.
16883 shlibpath_var=$shlibpath_var
16884
16885 # Is shlibpath searched before the hard-coded library search path?
16886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16887
16888 # Format of library name prefix.
16889 libname_spec=$lt_libname_spec
16890
16891 # List of archive names.  First name is the real one, the rest are links.
16892 # The last name is the one that the linker finds with -lNAME
16893 library_names_spec=$lt_library_names_spec
16894
16895 # The coded name of the library, if different from the real name.
16896 soname_spec=$lt_soname_spec
16897
16898 # Permission mode override for installation of shared libraries.
16899 install_override_mode=$lt_install_override_mode
16900
16901 # Command to use after installation of a shared archive.
16902 postinstall_cmds=$lt_postinstall_cmds
16903
16904 # Command to use after uninstallation of a shared archive.
16905 postuninstall_cmds=$lt_postuninstall_cmds
16906
16907 # Commands used to finish a libtool library installation in a directory.
16908 finish_cmds=$lt_finish_cmds
16909
16910 # As "finish_cmds", except a single script fragment to be evaled but
16911 # not shown.
16912 finish_eval=$lt_finish_eval
16913
16914 # Whether we should hardcode library paths into libraries.
16915 hardcode_into_libs=$hardcode_into_libs
16916
16917 # Compile-time system search path for libraries.
16918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16919
16920 # Run-time system search path for libraries.
16921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16922
16923 # Whether dlopen is supported.
16924 dlopen_support=$enable_dlopen
16925
16926 # Whether dlopen of programs is supported.
16927 dlopen_self=$enable_dlopen_self
16928
16929 # Whether dlopen of statically linked programs is supported.
16930 dlopen_self_static=$enable_dlopen_self_static
16931
16932 # Commands to strip libraries.
16933 old_striplib=$lt_old_striplib
16934 striplib=$lt_striplib
16935
16936
16937 # The linker used to build libraries.
16938 LD=$lt_LD
16939
16940 # How to create reloadable object files.
16941 reload_flag=$lt_reload_flag
16942 reload_cmds=$lt_reload_cmds
16943
16944 # Commands used to build an old-style archive.
16945 old_archive_cmds=$lt_old_archive_cmds
16946
16947 # A language specific compiler.
16948 CC=$lt_compiler
16949
16950 # Is the compiler the GNU compiler?
16951 with_gcc=$GCC
16952
16953 # Compiler flag to turn off builtin functions.
16954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16955
16956 # Additional compiler flags for building library objects.
16957 pic_flag=$lt_lt_prog_compiler_pic
16958
16959 # How to pass a linker flag through the compiler.
16960 wl=$lt_lt_prog_compiler_wl
16961
16962 # Compiler flag to prevent dynamic linking.
16963 link_static_flag=$lt_lt_prog_compiler_static
16964
16965 # Does compiler simultaneously support -c and -o options?
16966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16967
16968 # Whether or not to add -lc for building shared libraries.
16969 build_libtool_need_lc=$archive_cmds_need_lc
16970
16971 # Whether or not to disallow shared libs when runtime libs are static.
16972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16973
16974 # Compiler flag to allow reflexive dlopens.
16975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16976
16977 # Compiler flag to generate shared objects directly from archives.
16978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16979
16980 # Whether the compiler copes with passing no objects directly.
16981 compiler_needs_object=$lt_compiler_needs_object
16982
16983 # Create an old-style archive from a shared archive.
16984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16985
16986 # Create a temporary old-style archive to link instead of a shared archive.
16987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16988
16989 # Commands used to build a shared archive.
16990 archive_cmds=$lt_archive_cmds
16991 archive_expsym_cmds=$lt_archive_expsym_cmds
16992
16993 # Commands used to build a loadable module if different from building
16994 # a shared archive.
16995 module_cmds=$lt_module_cmds
16996 module_expsym_cmds=$lt_module_expsym_cmds
16997
16998 # Whether we are building with GNU ld or not.
16999 with_gnu_ld=$lt_with_gnu_ld
17000
17001 # Flag that allows shared libraries with undefined symbols to be built.
17002 allow_undefined_flag=$lt_allow_undefined_flag
17003
17004 # Flag that enforces no undefined symbols.
17005 no_undefined_flag=$lt_no_undefined_flag
17006
17007 # Flag to hardcode \$libdir into a binary during linking.
17008 # This must work even if \$libdir does not exist
17009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17010
17011 # Whether we need a single "-rpath" flag with a separated argument.
17012 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17013
17014 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17015 # DIR into the resulting binary.
17016 hardcode_direct=$hardcode_direct
17017
17018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17019 # DIR into the resulting binary and the resulting library dependency is
17020 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17021 # library is relocated.
17022 hardcode_direct_absolute=$hardcode_direct_absolute
17023
17024 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17025 # into the resulting binary.
17026 hardcode_minus_L=$hardcode_minus_L
17027
17028 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17029 # into the resulting binary.
17030 hardcode_shlibpath_var=$hardcode_shlibpath_var
17031
17032 # Set to "yes" if building a shared library automatically hardcodes DIR
17033 # into the library and all subsequent libraries and executables linked
17034 # against it.
17035 hardcode_automatic=$hardcode_automatic
17036
17037 # Set to yes if linker adds runtime paths of dependent libraries
17038 # to runtime path list.
17039 inherit_rpath=$inherit_rpath
17040
17041 # Whether libtool must link a program against all its dependency libraries.
17042 link_all_deplibs=$link_all_deplibs
17043
17044 # Set to "yes" if exported symbols are required.
17045 always_export_symbols=$always_export_symbols
17046
17047 # The commands to list exported symbols.
17048 export_symbols_cmds=$lt_export_symbols_cmds
17049
17050 # Symbols that should not be listed in the preloaded symbols.
17051 exclude_expsyms=$lt_exclude_expsyms
17052
17053 # Symbols that must always be exported.
17054 include_expsyms=$lt_include_expsyms
17055
17056 # Commands necessary for linking programs (against libraries) with templates.
17057 prelink_cmds=$lt_prelink_cmds
17058
17059 # Commands necessary for finishing linking programs.
17060 postlink_cmds=$lt_postlink_cmds
17061
17062 # Specify filename containing input files.
17063 file_list_spec=$lt_file_list_spec
17064
17065 # How to hardcode a shared library path into an executable.
17066 hardcode_action=$hardcode_action
17067
17068 # ### END LIBTOOL CONFIG
17069
17070 _LT_EOF
17071
17072   case $host_os in
17073   aix3*)
17074     cat <<\_LT_EOF >> "$cfgfile"
17075 # AIX sometimes has problems with the GCC collect2 program.  For some
17076 # reason, if we set the COLLECT_NAMES environment variable, the problems
17077 # vanish in a puff of smoke.
17078 if test "X${COLLECT_NAMES+set}" != Xset; then
17079   COLLECT_NAMES=
17080   export COLLECT_NAMES
17081 fi
17082 _LT_EOF
17083     ;;
17084   esac
17085
17086
17087 ltmain="$ac_aux_dir/ltmain.sh"
17088
17089
17090   # We use sed instead of cat because bash on DJGPP gets confused if
17091   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17092   # text mode, it properly converts lines to CR/LF.  This bash problem
17093   # is reportedly fixed, but why not run on old versions too?
17094   sed '$q' "$ltmain" >> "$cfgfile" \
17095      || (rm -f "$cfgfile"; exit 1)
17096
17097   if test x"$xsi_shell" = xyes; then
17098   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17099 func_dirname ()\
17100 {\
17101 \    case ${1} in\
17102 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17103 \      *  ) func_dirname_result="${3}" ;;\
17104 \    esac\
17105 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17106   && mv -f "$cfgfile.tmp" "$cfgfile" \
17107     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17108 test 0 -eq $? || _lt_function_replace_fail=:
17109
17110
17111   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17112 func_basename ()\
17113 {\
17114 \    func_basename_result="${1##*/}"\
17115 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17116   && mv -f "$cfgfile.tmp" "$cfgfile" \
17117     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17118 test 0 -eq $? || _lt_function_replace_fail=:
17119
17120
17121   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17122 func_dirname_and_basename ()\
17123 {\
17124 \    case ${1} in\
17125 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17126 \      *  ) func_dirname_result="${3}" ;;\
17127 \    esac\
17128 \    func_basename_result="${1##*/}"\
17129 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17130   && mv -f "$cfgfile.tmp" "$cfgfile" \
17131     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17132 test 0 -eq $? || _lt_function_replace_fail=:
17133
17134
17135   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17136 func_stripname ()\
17137 {\
17138 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17139 \    # positional parameters, so assign one to ordinary parameter first.\
17140 \    func_stripname_result=${3}\
17141 \    func_stripname_result=${func_stripname_result#"${1}"}\
17142 \    func_stripname_result=${func_stripname_result%"${2}"}\
17143 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17144   && mv -f "$cfgfile.tmp" "$cfgfile" \
17145     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17146 test 0 -eq $? || _lt_function_replace_fail=:
17147
17148
17149   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17150 func_split_long_opt ()\
17151 {\
17152 \    func_split_long_opt_name=${1%%=*}\
17153 \    func_split_long_opt_arg=${1#*=}\
17154 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17155   && mv -f "$cfgfile.tmp" "$cfgfile" \
17156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17157 test 0 -eq $? || _lt_function_replace_fail=:
17158
17159
17160   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17161 func_split_short_opt ()\
17162 {\
17163 \    func_split_short_opt_arg=${1#??}\
17164 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17165 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17166   && mv -f "$cfgfile.tmp" "$cfgfile" \
17167     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17168 test 0 -eq $? || _lt_function_replace_fail=:
17169
17170
17171   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17172 func_lo2o ()\
17173 {\
17174 \    case ${1} in\
17175 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17176 \      *)    func_lo2o_result=${1} ;;\
17177 \    esac\
17178 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17179   && mv -f "$cfgfile.tmp" "$cfgfile" \
17180     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17181 test 0 -eq $? || _lt_function_replace_fail=:
17182
17183
17184   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17185 func_xform ()\
17186 {\
17187     func_xform_result=${1%.*}.lo\
17188 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17189   && mv -f "$cfgfile.tmp" "$cfgfile" \
17190     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17191 test 0 -eq $? || _lt_function_replace_fail=:
17192
17193
17194   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17195 func_arith ()\
17196 {\
17197     func_arith_result=$(( $* ))\
17198 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17199   && mv -f "$cfgfile.tmp" "$cfgfile" \
17200     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17201 test 0 -eq $? || _lt_function_replace_fail=:
17202
17203
17204   sed -e '/^func_len ()$/,/^} # func_len /c\
17205 func_len ()\
17206 {\
17207     func_len_result=${#1}\
17208 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17209   && mv -f "$cfgfile.tmp" "$cfgfile" \
17210     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17211 test 0 -eq $? || _lt_function_replace_fail=:
17212
17213 fi
17214
17215 if test x"$lt_shell_append" = xyes; then
17216   sed -e '/^func_append ()$/,/^} # func_append /c\
17217 func_append ()\
17218 {\
17219     eval "${1}+=\\${2}"\
17220 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17221   && mv -f "$cfgfile.tmp" "$cfgfile" \
17222     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17223 test 0 -eq $? || _lt_function_replace_fail=:
17224
17225
17226   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17227 func_append_quoted ()\
17228 {\
17229 \    func_quote_for_eval "${2}"\
17230 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17231 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17232   && mv -f "$cfgfile.tmp" "$cfgfile" \
17233     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17234 test 0 -eq $? || _lt_function_replace_fail=:
17235
17236
17237   # Save a `func_append' function call where possible by direct use of '+='
17238   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17239     && mv -f "$cfgfile.tmp" "$cfgfile" \
17240       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17241   test 0 -eq $? || _lt_function_replace_fail=:
17242 else
17243   # Save a `func_append' function call even when '+=' is not available
17244   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17245     && mv -f "$cfgfile.tmp" "$cfgfile" \
17246       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17247   test 0 -eq $? || _lt_function_replace_fail=:
17248 fi
17249
17250 if test x"$_lt_function_replace_fail" = x":"; then
17251   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17252 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17253 fi
17254
17255
17256    mv -f "$cfgfile" "$ofile" ||
17257     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17258   chmod +x "$ofile"
17259
17260  ;;
17261
17262   esac
17263 done # for ac_tag
17264
17265
17266 as_fn_exit 0
17267 _ACEOF
17268 ac_clean_files=$ac_clean_files_save
17269
17270 test $ac_write_fail = 0 ||
17271   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17272
17273
17274 # configure is writing to config.log, and then calls config.status.
17275 # config.status does its own redirection, appending to config.log.
17276 # Unfortunately, on DOS this fails, as config.log is still kept open
17277 # by configure, so config.status won't be able to write to it; its
17278 # output is simply discarded.  So we exec the FD to /dev/null,
17279 # effectively closing config.log, so it can be properly (re)opened and
17280 # appended to by config.status.  When coming back to configure, we
17281 # need to make the FD available again.
17282 if test "$no_create" != yes; then
17283   ac_cs_success=:
17284   ac_config_status_args=
17285   test "$silent" = yes &&
17286     ac_config_status_args="$ac_config_status_args --quiet"
17287   exec 5>/dev/null
17288   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17289   exec 5>>config.log
17290   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17291   # would make configure fail if this is the last instruction.
17292   $ac_cs_success || as_fn_exit 1
17293 fi
17294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17297 fi
17298