Imported Upstream version 3.21.91
[platform/upstream/python-gobject.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.21.91.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
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=pygobject
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='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.21.91'
595 PACKAGE_STRING='pygobject 3.21.91'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
598
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 GNOME_CODE_COVERAGE_RULES
641 CODE_COVERAGE_RULES
642 CODE_COVERAGE_LDFLAGS
643 CODE_COVERAGE_CFLAGS
644 GENHTML
645 LCOV
646 GCOV
647 CODE_COVERAGE_ENABLED
648 CODE_COVERAGE_ENABLED_FALSE
649 CODE_COVERAGE_ENABLED_TRUE
650 WARN_CFLAGS
651 INTROSPECTION_COMPILER
652 INTROSPECTION_SCANNER
653 WITH_COMMON_FALSE
654 WITH_COMMON_TRUE
655 ENABLE_CAIRO_FALSE
656 ENABLE_CAIRO_TRUE
657 PYCAIRO_LIBS
658 PYCAIRO_CFLAGS
659 CAIRO_LIBS
660 CAIRO_CFLAGS
661 GI_DATADIR
662 GI_LIBS
663 GI_CFLAGS
664 GIO_LIBS
665 GIO_CFLAGS
666 LIBFFI_PC
667 FFI_LIBS
668 FFI_CFLAGS
669 DATADIR
670 PYTHON_BASENAME
671 GLIB_COMPILE_RESOURCES
672 GLIB_MKENUMS
673 GOBJECT_QUERY
674 GLIB_GENMARSHAL
675 GLIB_LIBS
676 GLIB_CFLAGS
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 THREADING_CFLAGS
681 PLATFORM
682 PYTHON_LIB_LOC
683 PYTHON_LIBS
684 PYTHON_INCLUDES
685 PYTHON_SO
686 pkgpyexecdir
687 pyexecdir
688 pkgpythondir
689 pythondir
690 PYTHON_PLATFORM
691 PYTHON_EXEC_PREFIX
692 PYTHON_PREFIX
693 PYTHON_VERSION
694 PYTHON
695 CPP
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 ac_ct_AR
705 AR
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 LIBTOOL
733 OBJDUMP
734 DLLTOOL
735 AS
736 OS_EXT
737 OS_WIN32_FALSE
738 OS_WIN32_TRUE
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 AM_BACKSLASH
771 AM_DEFAULT_VERBOSITY
772 AM_DEFAULT_V
773 AM_V
774 PYGOBJECT_MICRO_VERSION
775 PYGOBJECT_MINOR_VERSION
776 PYGOBJECT_MAJOR_VERSION
777 ACLOCAL_AMFLAGS
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 runstatedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_silent_rules
821 enable_static
822 enable_shared
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 enable_dependency_tracking
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 with_python
831 enable_thread
832 enable_glibtest
833 enable_cairo
834 with_common
835 enable_compile_warnings
836 enable_iso_c
837 with_gcov
838 enable_code_coverage
839 '
840       ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 LT_SYS_LIBRARY_PATH
849 CPP
850 PYTHON
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 FFI_CFLAGS
855 FFI_LIBS
856 GIO_CFLAGS
857 GIO_LIBS
858 GI_CFLAGS
859 GI_LIBS
860 CAIRO_CFLAGS
861 CAIRO_LIBS
862 PYCAIRO_CFLAGS
863 PYCAIRO_LIBS'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919   # If the previous option needs an argument, assign it.
920   if test -n "$ac_prev"; then
921     eval $ac_prev=\$ac_option
922     ac_prev=
923     continue
924   fi
925
926   case $ac_option in
927   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928   *=)   ac_optarg= ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       as_fn_error $? "invalid feature name: $ac_useropt"
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -runstatedir | --runstatedir | --runstatedi | --runstated \
1156   | --runstate | --runstat | --runsta | --runst | --runs \
1157   | --run | --ru | --r)
1158     ac_prev=runstatedir ;;
1159   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161   | --run=* | --ru=* | --r=*)
1162     runstatedir=$ac_optarg ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261     ;;
1262
1263   *=*)
1264     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265     # Reject names that are not valid shell variable names.
1266     case $ac_envvar in #(
1267       '' | [0-9]* | *[!_$as_cr_alnum]* )
1268       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269     esac
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290   case $enable_option_checking in
1291     no) ;;
1292     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294   esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir runstatedir
1302 do
1303   eval ac_val=\$$ac_var
1304   # Remove trailing slashes.
1305   case $ac_val in
1306     */ )
1307       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308       eval $ac_var=\$ac_val;;
1309   esac
1310   # Be sure to have absolute directory names.
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327   if test "x$build_alias" = x; then
1328     cross_compiling=maybe
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures pygobject 3.21.91 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking ...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/pygobject]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 Program names:
1473   --program-prefix=PREFIX            prepend PREFIX to installed program names
1474   --program-suffix=SUFFIX            append SUFFIX to installed program names
1475   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1476
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of pygobject 3.21.91:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-option-checking  ignore unrecognized --enable/--with options
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-silent-rules   less verbose build output (undo: "make V=1")
1494   --disable-silent-rules  verbose build output (undo: "make V=0")
1495   --enable-static[=PKGS]  build static libraries [default=no]
1496   --enable-shared[=PKGS]  build shared libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --enable-dependency-tracking
1500                           do not reject slow dependency extractors
1501   --disable-dependency-tracking
1502                           speeds up one-time build
1503   --disable-libtool-lock  avoid locking (might break parallel builds)
1504   --disable-thread        Disable pygobject threading support
1505   --disable-glibtest      do not try to compile and run a test GLIB program
1506   --enable-cairo          Enable Cairo bindings using introspection
1507                           information
1508   --enable-compile-warnings=[no/minimum/yes/maximum/error]
1509                           Turn on compiler warnings
1510   --enable-iso-c          Try to warn if code is not ISO C
1511   --enable-code-coverage  Whether to enable code coverage support
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1517                           both]
1518   --with-aix-soname=aix|svr4|both
1519                           shared library versioning (aka "SONAME") variant to
1520                           provide on AIX, [default=aix].
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1523                           compiler's sysroot if not specified).
1524   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1525                           program name is given; if not given, searches for a
1526                           few standard names such as "python3" or "python2"
1527   --without-common        For package maintainers: do not install Python
1528                           version independent files
1529   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   LT_SYS_LIBRARY_PATH
1540               User-defined run-time library search path.
1541   CPP         C preprocessor
1542   PYTHON      the Python interpreter
1543   PKG_CONFIG  path to pkg-config utility
1544   PKG_CONFIG_PATH
1545               directories to add to pkg-config's search path
1546   PKG_CONFIG_LIBDIR
1547               path overriding pkg-config's built-in search path
1548   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1549   FFI_LIBS    linker flags for FFI, overriding pkg-config
1550   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1551   GIO_LIBS    linker flags for GIO, overriding pkg-config
1552   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1553   GI_LIBS     linker flags for GI, overriding pkg-config
1554   CAIRO_CFLAGS
1555               C compiler flags for CAIRO, overriding pkg-config
1556   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1557   PYCAIRO_CFLAGS
1558               C compiler flags for PYCAIRO, overriding pkg-config
1559   PYCAIRO_LIBS
1560               linker flags for PYCAIRO, overriding pkg-config
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1566 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572   # If there are subdirs, report their specific --help.
1573   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574     test -d "$ac_dir" ||
1575       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576       continue
1577     ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583   # A ".." for each directory in $ac_dir_suffix.
1584   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585   case $ac_top_builddir_sub in
1586   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588   esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596   .)  # We are building in place.
1597     ac_srcdir=.
1598     ac_top_srcdir=$ac_top_builddir_sub
1599     ac_abs_top_srcdir=$ac_pwd ;;
1600   [\\/]* | ?:[\\/]* )  # Absolute name.
1601     ac_srcdir=$srcdir$ac_dir_suffix;
1602     ac_top_srcdir=$srcdir
1603     ac_abs_top_srcdir=$srcdir ;;
1604   *) # Relative name.
1605     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606     ac_top_srcdir=$ac_top_build_prefix$srcdir
1607     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611     cd "$ac_dir" || { ac_status=$?; continue; }
1612     # Check for guested configure.
1613     if test -f "$ac_srcdir/configure.gnu"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616     elif test -f "$ac_srcdir/configure"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure" --help=recursive
1619     else
1620       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621     fi || ac_status=$?
1622     cd "$ac_pwd" || { ac_status=$?; break; }
1623   done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628   cat <<\_ACEOF
1629 pygobject configure 3.21.91
1630 generated by GNU Autoconf 2.69
1631
1632 Copyright (C) 2012 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636   exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   rm -f conftest.$ac_objext
1650   if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_compile") 2>conftest.err
1658   ac_status=$?
1659   if test -s conftest.err; then
1660     grep -v '^ *+' conftest.err >conftest.er1
1661     cat conftest.er1 >&5
1662     mv -f conftest.er1 conftest.err
1663   fi
1664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665   test $ac_status = 0; } && {
1666          test -z "$ac_c_werror_flag" ||
1667          test ! -s conftest.err
1668        } && test -s conftest.$ac_objext; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674         ac_retval=1
1675 fi
1676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677   as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   rm -f conftest.$ac_objext conftest$ac_exeext
1688   if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_link") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && {
1704          test -z "$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        } && test -s conftest$ac_exeext && {
1707          test "$cross_compiling" = yes ||
1708          test -x conftest$ac_exeext
1709        }; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715         ac_retval=1
1716 fi
1717   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719   # interfere with the next link command; also delete a directory that is
1720   # left behind by Apple's compiler.  We do this before executing the actions.
1721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 else
1739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h.  */
1741 $4
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745   eval "$3=yes"
1746 else
1747   eval "$3=no"
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 fi
1751 eval ac_res=\$$3
1752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756 } # ac_fn_c_check_header_compile
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } > conftest.i && {
1780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788     ac_retval=1
1789 fi
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_try_run LINENO
1796 # ----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798 # that executables *can* be run.
1799 ac_fn_c_try_run ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_link") 2>&5
1810   ac_status=$?
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813   { { case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_try") 2>&5
1820   ac_status=$?
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; }; }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: program exited with status $ac_status" >&5
1826        $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829        ac_retval=$ac_status
1830 fi
1831   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833   as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_run
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855     which can conflict with char $2 (); below.
1856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857     <limits.h> exists even on freestanding compilers.  */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868    Use char because int might match the return type of a GCC
1869    builtin and then its argument prototype would still apply.  */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875     to always fail with ENOSYS.  Some functions are actually named
1876     something starting with __ and the normal name is an alias.  */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890   eval "$3=yes"
1891 else
1892   eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895     conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_func
1903 cat >config.log <<_ACEOF
1904 This file contains any messages produced by compilers while
1905 running configure, to aid debugging if configure makes a mistake.
1906
1907 It was created by pygobject $as_me 3.21.91, which was
1908 generated by GNU Autoconf 2.69.  Invocation command line was
1909
1910   $ $0 $@
1911
1912 _ACEOF
1913 exec 5>>config.log
1914 {
1915 cat <<_ASUNAME
1916 ## --------- ##
1917 ## Platform. ##
1918 ## --------- ##
1919
1920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1928
1929 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1930 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1933 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1934 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1935 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1936
1937 _ASUNAME
1938
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944     $as_echo "PATH: $as_dir"
1945   done
1946 IFS=$as_save_IFS
1947
1948 } >&5
1949
1950 cat >&5 <<_ACEOF
1951
1952
1953 ## ----------- ##
1954 ## Core tests. ##
1955 ## ----------- ##
1956
1957 _ACEOF
1958
1959
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1965 ac_configure_args=
1966 ac_configure_args0=
1967 ac_configure_args1=
1968 ac_must_keep_next=false
1969 for ac_pass in 1 2
1970 do
1971   for ac_arg
1972   do
1973     case $ac_arg in
1974     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976     | -silent | --silent | --silen | --sile | --sil)
1977       continue ;;
1978     *\'*)
1979       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980     esac
1981     case $ac_pass in
1982     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983     2)
1984       as_fn_append ac_configure_args1 " '$ac_arg'"
1985       if test $ac_must_keep_next = true; then
1986         ac_must_keep_next=false # Got value, back to normal.
1987       else
1988         case $ac_arg in
1989           *=* | --config-cache | -C | -disable-* | --disable-* \
1990           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992           | -with-* | --with-* | -without-* | --without-* | --x)
1993             case "$ac_configure_args0 " in
1994               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995             esac
1996             ;;
1997           -* ) ac_must_keep_next=true ;;
1998         esac
1999       fi
2000       as_fn_append ac_configure_args " '$ac_arg'"
2001       ;;
2002     esac
2003   done
2004 done
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2007
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log.  We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2014   # Save into config.log some information that might help in debugging.
2015   {
2016     echo
2017
2018     $as_echo "## ---------------- ##
2019 ## Cache variables. ##
2020 ## ---------------- ##"
2021     echo
2022     # The following way of writing the cache mishandles newlines in values,
2023 (
2024   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025     eval ac_val=\$$ac_var
2026     case $ac_val in #(
2027     *${as_nl}*)
2028       case $ac_var in #(
2029       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031       esac
2032       case $ac_var in #(
2033       _ | IFS | as_nl) ;; #(
2034       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035       *) { eval $ac_var=; unset $ac_var;} ;;
2036       esac ;;
2037     esac
2038   done
2039   (set) 2>&1 |
2040     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041     *${as_nl}ac_space=\ *)
2042       sed -n \
2043         "s/'\''/'\''\\\\'\'''\''/g;
2044           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045       ;; #(
2046     *)
2047       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048       ;;
2049     esac |
2050     sort
2051 )
2052     echo
2053
2054     $as_echo "## ----------------- ##
2055 ## Output variables. ##
2056 ## ----------------- ##"
2057     echo
2058     for ac_var in $ac_subst_vars
2059     do
2060       eval ac_val=\$$ac_var
2061       case $ac_val in
2062       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063       esac
2064       $as_echo "$ac_var='\''$ac_val'\''"
2065     done | sort
2066     echo
2067
2068     if test -n "$ac_subst_files"; then
2069       $as_echo "## ------------------- ##
2070 ## File substitutions. ##
2071 ## ------------------- ##"
2072       echo
2073       for ac_var in $ac_subst_files
2074       do
2075         eval ac_val=\$$ac_var
2076         case $ac_val in
2077         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078         esac
2079         $as_echo "$ac_var='\''$ac_val'\''"
2080       done | sort
2081       echo
2082     fi
2083
2084     if test -s confdefs.h; then
2085       $as_echo "## ----------- ##
2086 ## confdefs.h. ##
2087 ## ----------- ##"
2088       echo
2089       cat confdefs.h
2090       echo
2091     fi
2092     test "$ac_signal" != 0 &&
2093       $as_echo "$as_me: caught signal $ac_signal"
2094     $as_echo "$as_me: exit $exit_status"
2095   } >&5
2096   rm -f core *.core core.conftest.* &&
2097     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098     exit $exit_status
2099 ' 0
2100 for ac_signal in 1 2 13 15; do
2101   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102 done
2103 ac_signal=0
2104
2105 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2106 rm -f -r conftest* confdefs.h
2107
2108 $as_echo "/* confdefs.h */" > confdefs.h
2109
2110 # Predefined preprocessor variables.
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_NAME "$PACKAGE_NAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_STRING "$PACKAGE_STRING"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_URL "$PACKAGE_URL"
2134 _ACEOF
2135
2136
2137 # Let the site file select an alternate cache file if it wants to.
2138 # Prefer an explicitly selected file to automatically selected ones.
2139 ac_site_file1=NONE
2140 ac_site_file2=NONE
2141 if test -n "$CONFIG_SITE"; then
2142   # We do not want a PATH search for config.site.
2143   case $CONFIG_SITE in #((
2144     -*)  ac_site_file1=./$CONFIG_SITE;;
2145     */*) ac_site_file1=$CONFIG_SITE;;
2146     *)   ac_site_file1=./$CONFIG_SITE;;
2147   esac
2148 elif test "x$prefix" != xNONE; then
2149   ac_site_file1=$prefix/share/config.site
2150   ac_site_file2=$prefix/etc/config.site
2151 else
2152   ac_site_file1=$ac_default_prefix/share/config.site
2153   ac_site_file2=$ac_default_prefix/etc/config.site
2154 fi
2155 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2156 do
2157   test "x$ac_site_file" = xNONE && continue
2158   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2160 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2161     sed 's/^/| /' "$ac_site_file" >&5
2162     . "$ac_site_file" \
2163       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 as_fn_error $? "failed to load site script $ac_site_file
2166 See \`config.log' for more details" "$LINENO" 5; }
2167   fi
2168 done
2169
2170 if test -r "$cache_file"; then
2171   # Some versions of bash will fail to source /dev/null (special files
2172   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2173   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175 $as_echo "$as_me: loading cache $cache_file" >&6;}
2176     case $cache_file in
2177       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178       *)                      . "./$cache_file";;
2179     esac
2180   fi
2181 else
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183 $as_echo "$as_me: creating cache $cache_file" >&6;}
2184   >$cache_file
2185 fi
2186
2187 # Check that the precious variables saved in the cache have kept the same
2188 # value.
2189 ac_cache_corrupted=false
2190 for ac_var in $ac_precious_vars; do
2191   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192   eval ac_new_set=\$ac_env_${ac_var}_set
2193   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194   eval ac_new_val=\$ac_env_${ac_var}_value
2195   case $ac_old_set,$ac_new_set in
2196     set,)
2197       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199       ac_cache_corrupted=: ;;
2200     ,set)
2201       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203       ac_cache_corrupted=: ;;
2204     ,);;
2205     *)
2206       if test "x$ac_old_val" != "x$ac_new_val"; then
2207         # differences in whitespace do not lead to failure.
2208         ac_old_val_w=`echo x $ac_old_val`
2209         ac_new_val_w=`echo x $ac_new_val`
2210         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213           ac_cache_corrupted=:
2214         else
2215           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217           eval $ac_var=\$ac_old_val
2218         fi
2219         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2220 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2221         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2222 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2223       fi;;
2224   esac
2225   # Pass precious variables to config.status.
2226   if test "$ac_new_set" = set; then
2227     case $ac_new_val in
2228     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229     *) ac_arg=$ac_var=$ac_new_val ;;
2230     esac
2231     case " $ac_configure_args " in
2232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2233       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234     esac
2235   fi
2236 done
2237 if $ac_cache_corrupted; then
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243 fi
2244 ## -------------------- ##
2245 ## Main body of script. ##
2246 ## -------------------- ##
2247
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255 ACLOCAL_AMFLAGS="-I m4 -I ."
2256
2257
2258
2259
2260
2261 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2262
2263 PYGOBJECT_MAJOR_VERSION=3
2264
2265
2266 $as_echo "#define PYGOBJECT_MINOR_VERSION 21" >>confdefs.h
2267
2268 PYGOBJECT_MINOR_VERSION=21
2269
2270
2271 $as_echo "#define PYGOBJECT_MICRO_VERSION 91" >>confdefs.h
2272
2273 PYGOBJECT_MICRO_VERSION=91
2274
2275
2276 ac_config_headers="$ac_config_headers config.h"
2277
2278 # Check whether --enable-silent-rules was given.
2279 if test "${enable_silent_rules+set}" = set; then :
2280   enableval=$enable_silent_rules;
2281 fi
2282
2283 case $enable_silent_rules in # (((
2284   yes) AM_DEFAULT_VERBOSITY=0;;
2285    no) AM_DEFAULT_VERBOSITY=1;;
2286     *) AM_DEFAULT_VERBOSITY=0;;
2287 esac
2288 am_make=${MAKE-make}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2291 if ${am_cv_make_support_nested_variables+:} false; then :
2292   $as_echo_n "(cached) " >&6
2293 else
2294   if $as_echo 'TRUE=$(BAR$(V))
2295 BAR0=false
2296 BAR1=true
2297 V=1
2298 am__doit:
2299         @$(TRUE)
2300 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2301   am_cv_make_support_nested_variables=yes
2302 else
2303   am_cv_make_support_nested_variables=no
2304 fi
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2308 if test $am_cv_make_support_nested_variables = yes; then
2309     AM_V='$(V)'
2310   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2311 else
2312   AM_V=$AM_DEFAULT_VERBOSITY
2313   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2314 fi
2315 AM_BACKSLASH='\'
2316
2317 # 1.12.6 to get a py-compile supporting newer Python 3 versions.
2318 # See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=8847
2319 am__api_version='1.15'
2320
2321 ac_aux_dir=
2322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2323   if test -f "$ac_dir/install-sh"; then
2324     ac_aux_dir=$ac_dir
2325     ac_install_sh="$ac_aux_dir/install-sh -c"
2326     break
2327   elif test -f "$ac_dir/install.sh"; then
2328     ac_aux_dir=$ac_dir
2329     ac_install_sh="$ac_aux_dir/install.sh -c"
2330     break
2331   elif test -f "$ac_dir/shtool"; then
2332     ac_aux_dir=$ac_dir
2333     ac_install_sh="$ac_aux_dir/shtool install -c"
2334     break
2335   fi
2336 done
2337 if test -z "$ac_aux_dir"; then
2338   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2339 fi
2340
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2348
2349
2350 # Find a good install program.  We prefer a C program (faster),
2351 # so one script is as good as another.  But avoid the broken or
2352 # incompatible versions:
2353 # SysV /etc/install, /usr/sbin/install
2354 # SunOS /usr/etc/install
2355 # IRIX /sbin/install
2356 # AIX /bin/install
2357 # AmigaOS /C/install, which installs bootblocks on floppy discs
2358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2361 # OS/2's system install, which has a completely different semantic
2362 # ./install, which can be erroneously created by make from ./install.sh.
2363 # Reject install programs that cannot install multiple files.
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2365 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2366 if test -z "$INSTALL"; then
2367 if ${ac_cv_path_install+:} false; then :
2368   $as_echo_n "(cached) " >&6
2369 else
2370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375     # Account for people who put trailing slashes in PATH elements.
2376 case $as_dir/ in #((
2377   ./ | .// | /[cC]/* | \
2378   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2379   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2380   /usr/ucb/* ) ;;
2381   *)
2382     # OSF1 and SCO ODT 3.0 have their own names for install.
2383     # Don't use installbsd from OSF since it installs stuff as root
2384     # by default.
2385     for ac_prog in ginstall scoinst install; do
2386       for ac_exec_ext in '' $ac_executable_extensions; do
2387         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2388           if test $ac_prog = install &&
2389             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390             # AIX install.  It has an incompatible calling convention.
2391             :
2392           elif test $ac_prog = install &&
2393             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394             # program-specific install script used by HP pwplus--don't use.
2395             :
2396           else
2397             rm -rf conftest.one conftest.two conftest.dir
2398             echo one > conftest.one
2399             echo two > conftest.two
2400             mkdir conftest.dir
2401             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2402               test -s conftest.one && test -s conftest.two &&
2403               test -s conftest.dir/conftest.one &&
2404               test -s conftest.dir/conftest.two
2405             then
2406               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2407               break 3
2408             fi
2409           fi
2410         fi
2411       done
2412     done
2413     ;;
2414 esac
2415
2416   done
2417 IFS=$as_save_IFS
2418
2419 rm -rf conftest.one conftest.two conftest.dir
2420
2421 fi
2422   if test "${ac_cv_path_install+set}" = set; then
2423     INSTALL=$ac_cv_path_install
2424   else
2425     # As a last resort, use the slow shell script.  Don't cache a
2426     # value for INSTALL within a source directory, because that will
2427     # break other packages using the cache if that directory is
2428     # removed, or if the value is a relative name.
2429     INSTALL=$ac_install_sh
2430   fi
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2433 $as_echo "$INSTALL" >&6; }
2434
2435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2436 # It thinks the first close brace ends the variable substitution.
2437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2438
2439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2440
2441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2442
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2444 $as_echo_n "checking whether build environment is sane... " >&6; }
2445 # Reject unsafe characters in $srcdir or the absolute working directory
2446 # name.  Accept space and tab only in the latter.
2447 am_lf='
2448 '
2449 case `pwd` in
2450   *[\\\"\#\$\&\'\`$am_lf]*)
2451     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2452 esac
2453 case $srcdir in
2454   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2455     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2456 esac
2457
2458 # Do 'set' in a subshell so we don't clobber the current shell's
2459 # arguments.  Must try -L first in case configure is actually a
2460 # symlink; some systems play weird games with the mod time of symlinks
2461 # (eg FreeBSD returns the mod time of the symlink's containing
2462 # directory).
2463 if (
2464    am_has_slept=no
2465    for am_try in 1 2; do
2466      echo "timestamp, slept: $am_has_slept" > conftest.file
2467      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2468      if test "$*" = "X"; then
2469         # -L didn't work.
2470         set X `ls -t "$srcdir/configure" conftest.file`
2471      fi
2472      if test "$*" != "X $srcdir/configure conftest.file" \
2473         && test "$*" != "X conftest.file $srcdir/configure"; then
2474
2475         # If neither matched, then we have a broken ls.  This can happen
2476         # if, for instance, CONFIG_SHELL is bash and it inherits a
2477         # broken ls alias from the environment.  This has actually
2478         # happened.  Such a system could not be considered "sane".
2479         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2480   alias in your environment" "$LINENO" 5
2481      fi
2482      if test "$2" = conftest.file || test $am_try -eq 2; then
2483        break
2484      fi
2485      # Just in case.
2486      sleep 1
2487      am_has_slept=yes
2488    done
2489    test "$2" = conftest.file
2490    )
2491 then
2492    # Ok.
2493    :
2494 else
2495    as_fn_error $? "newly created file is older than distributed files!
2496 Check your system clock" "$LINENO" 5
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2499 $as_echo "yes" >&6; }
2500 # If we didn't sleep, we still need to ensure time stamps of config.status and
2501 # generated files are strictly newer.
2502 am_sleep_pid=
2503 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2504   ( sleep 1 ) &
2505   am_sleep_pid=$!
2506 fi
2507
2508 rm -f conftest.file
2509
2510 test "$program_prefix" != NONE &&
2511   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2512 # Use a double $ so make ignores it.
2513 test "$program_suffix" != NONE &&
2514   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2515 # Double any \ or $.
2516 # By default was `s,x,x', remove it if useless.
2517 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2518 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519
2520 # Expand $ac_aux_dir to an absolute path.
2521 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2522
2523 if test x"${MISSING+set}" != xset; then
2524   case $am_aux_dir in
2525   *\ * | *\     *)
2526     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2527   *)
2528     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2529   esac
2530 fi
2531 # Use eval to expand $SHELL
2532 if eval "$MISSING --is-lightweight"; then
2533   am_missing_run="$MISSING "
2534 else
2535   am_missing_run=
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2537 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2538 fi
2539
2540 if test x"${install_sh+set}" != xset; then
2541   case $am_aux_dir in
2542   *\ * | *\     *)
2543     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2544   *)
2545     install_sh="\${SHELL} $am_aux_dir/install-sh"
2546   esac
2547 fi
2548
2549 # Installed binaries are usually stripped using 'strip' when the user
2550 # run "make install-strip".  However 'strip' might not be the right
2551 # tool to use in cross-compilation environments, therefore Automake
2552 # will honor the 'STRIP' environment variable to overrule this program.
2553 if test "$cross_compiling" != no; then
2554   if test -n "$ac_tool_prefix"; then
2555   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}strip; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_STRIP+:} false; then :
2560   $as_echo_n "(cached) " >&6
2561 else
2562   if test -n "$STRIP"; then
2563   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570     for ac_exec_ext in '' $ac_executable_extensions; do
2571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577   done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 STRIP=$ac_cv_prog_STRIP
2583 if test -n "$STRIP"; then
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2585 $as_echo "$STRIP" >&6; }
2586 else
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2589 fi
2590
2591
2592 fi
2593 if test -z "$ac_cv_prog_STRIP"; then
2594   ac_ct_STRIP=$STRIP
2595   # Extract the first word of "strip", so it can be a program name with args.
2596 set dummy strip; ac_word=$2
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   if test -n "$ac_ct_STRIP"; then
2603   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610     for ac_exec_ext in '' $ac_executable_extensions; do
2611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612     ac_cv_prog_ac_ct_STRIP="strip"
2613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614     break 2
2615   fi
2616 done
2617   done
2618 IFS=$as_save_IFS
2619
2620 fi
2621 fi
2622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2623 if test -n "$ac_ct_STRIP"; then
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2625 $as_echo "$ac_ct_STRIP" >&6; }
2626 else
2627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629 fi
2630
2631   if test "x$ac_ct_STRIP" = x; then
2632     STRIP=":"
2633   else
2634     case $cross_compiling:$ac_tool_warned in
2635 yes:)
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640     STRIP=$ac_ct_STRIP
2641   fi
2642 else
2643   STRIP="$ac_cv_prog_STRIP"
2644 fi
2645
2646 fi
2647 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2648
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2650 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2651 if test -z "$MKDIR_P"; then
2652   if ${ac_cv_path_mkdir+:} false; then :
2653   $as_echo_n "(cached) " >&6
2654 else
2655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2657 do
2658   IFS=$as_save_IFS
2659   test -z "$as_dir" && as_dir=.
2660     for ac_prog in mkdir gmkdir; do
2661          for ac_exec_ext in '' $ac_executable_extensions; do
2662            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2663            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2664              'mkdir (GNU coreutils) '* | \
2665              'mkdir (coreutils) '* | \
2666              'mkdir (fileutils) '4.1*)
2667                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2668                break 3;;
2669            esac
2670          done
2671        done
2672   done
2673 IFS=$as_save_IFS
2674
2675 fi
2676
2677   test -d ./--version && rmdir ./--version
2678   if test "${ac_cv_path_mkdir+set}" = set; then
2679     MKDIR_P="$ac_cv_path_mkdir -p"
2680   else
2681     # As a last resort, use the slow shell script.  Don't cache a
2682     # value for MKDIR_P within a source directory, because that will
2683     # break other packages using the cache if that directory is
2684     # removed, or if the value is a relative name.
2685     MKDIR_P="$ac_install_sh -d"
2686   fi
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2689 $as_echo "$MKDIR_P" >&6; }
2690
2691 for ac_prog in gawk mawk nawk awk
2692 do
2693   # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_AWK+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test -n "$AWK"; then
2701   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_exec_ext in '' $ac_executable_extensions; do
2709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_AWK="$ac_prog"
2711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715   done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 AWK=$ac_cv_prog_AWK
2721 if test -n "$AWK"; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723 $as_echo "$AWK" >&6; }
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730   test -n "$AWK" && break
2731 done
2732
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2735 set x ${MAKE-make}
2736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   cat >conftest.make <<\_ACEOF
2741 SHELL = /bin/sh
2742 all:
2743         @echo '@@@%%%=$(MAKE)=@@@%%%'
2744 _ACEOF
2745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2747   *@@@%%%=?*=@@@%%%*)
2748     eval ac_cv_prog_make_${ac_make}_set=yes;;
2749   *)
2750     eval ac_cv_prog_make_${ac_make}_set=no;;
2751 esac
2752 rm -f conftest.make
2753 fi
2754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2756 $as_echo "yes" >&6; }
2757   SET_MAKE=
2758 else
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761   SET_MAKE="MAKE=${MAKE-make}"
2762 fi
2763
2764 rm -rf .tst 2>/dev/null
2765 mkdir .tst 2>/dev/null
2766 if test -d .tst; then
2767   am__leading_dot=.
2768 else
2769   am__leading_dot=_
2770 fi
2771 rmdir .tst 2>/dev/null
2772
2773 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2774   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2775   # is not polluted with repeated "-I."
2776   am__isrc=' -I$(srcdir)'
2777   # test to see if srcdir already configured
2778   if test -f $srcdir/config.status; then
2779     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2780   fi
2781 fi
2782
2783 # test whether we have cygpath
2784 if test -z "$CYGPATH_W"; then
2785   if (cygpath --version) >/dev/null 2>/dev/null; then
2786     CYGPATH_W='cygpath -w'
2787   else
2788     CYGPATH_W=echo
2789   fi
2790 fi
2791
2792
2793 # Define the identity of the package.
2794  PACKAGE='pygobject'
2795  VERSION='3.21.91'
2796
2797
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE "$PACKAGE"
2800 _ACEOF
2801
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define VERSION "$VERSION"
2805 _ACEOF
2806
2807 # Some tools Automake needs.
2808
2809 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2810
2811
2812 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2813
2814
2815 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2816
2817
2818 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2819
2820
2821 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2822
2823 # For better backward compatibility.  To be removed once Automake 1.9.x
2824 # dies out for good.  For more background, see:
2825 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2826 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2827 mkdir_p='$(MKDIR_P)'
2828
2829 # We need awk for the "check" target (and possibly the TAP driver).  The
2830 # system "awk" is bad on some platforms.
2831 # Always define AMTAR for backward compatibility.  Yes, it's still used
2832 # in the wild :-(  We should find a proper way to deprecate it ...
2833 AMTAR='$${TAR-tar}'
2834
2835
2836 # We'll loop over all known methods to create a tar archive until one works.
2837 _am_tools='gnutar  pax cpio none'
2838
2839 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2840
2841
2842
2843
2844
2845
2846 # POSIX will say in a future version that running "rm -f" with no argument
2847 # is OK; and we want to be able to make that assumption in our Makefile
2848 # recipes.  So use an aggressive probe to check that the usage we want is
2849 # actually supported "in the wild" to an acceptable degree.
2850 # See automake bug#10828.
2851 # To make any issue more visible, cause the running configure to be aborted
2852 # by default if the 'rm' program in use doesn't match our expectations; the
2853 # user can still override this though.
2854 if rm -f && rm -fr && rm -rf; then : OK; else
2855   cat >&2 <<'END'
2856 Oops!
2857
2858 Your 'rm' program seems unable to run without file operands specified
2859 on the command line, even when the '-f' option is present.  This is contrary
2860 to the behaviour of most rm programs out there, and not conforming with
2861 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2862
2863 Please tell bug-automake@gnu.org about your system, including the value
2864 of your $PATH and any error possibly output before this message.  This
2865 can help us improve future automake versions.
2866
2867 END
2868   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2869     echo 'Configuration will proceed anyway, since you have set the' >&2
2870     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2871     echo >&2
2872   else
2873     cat >&2 <<'END'
2874 Aborting the configuration process, to ensure you take notice of the issue.
2875
2876 You can download and install GNU coreutils to get an 'rm' implementation
2877 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2878
2879 If you want to complete the configuration process using your problematic
2880 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2881 to "yes", and re-run configure.
2882
2883 END
2884     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2885   fi
2886 fi
2887
2888
2889 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2890
2891 # Make sure we can run config.sub.
2892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2893   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2896 $as_echo_n "checking build system type... " >&6; }
2897 if ${ac_cv_build+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   ac_build_alias=$build_alias
2901 test "x$ac_build_alias" = x &&
2902   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2903 test "x$ac_build_alias" = x &&
2904   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2906   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2907
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2910 $as_echo "$ac_cv_build" >&6; }
2911 case $ac_cv_build in
2912 *-*-*) ;;
2913 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2914 esac
2915 build=$ac_cv_build
2916 ac_save_IFS=$IFS; IFS='-'
2917 set x $ac_cv_build
2918 shift
2919 build_cpu=$1
2920 build_vendor=$2
2921 shift; shift
2922 # Remember, the first character of IFS is used to create $*,
2923 # except with old shells:
2924 build_os=$*
2925 IFS=$ac_save_IFS
2926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2927
2928
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2930 $as_echo_n "checking host system type... " >&6; }
2931 if ${ac_cv_host+:} false; then :
2932   $as_echo_n "(cached) " >&6
2933 else
2934   if test "x$host_alias" = x; then
2935   ac_cv_host=$ac_cv_build
2936 else
2937   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2938     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2939 fi
2940
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2943 $as_echo "$ac_cv_host" >&6; }
2944 case $ac_cv_host in
2945 *-*-*) ;;
2946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2947 esac
2948 host=$ac_cv_host
2949 ac_save_IFS=$IFS; IFS='-'
2950 set x $ac_cv_host
2951 shift
2952 host_cpu=$1
2953 host_vendor=$2
2954 shift; shift
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2957 host_os=$*
2958 IFS=$ac_save_IFS
2959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2960
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2963 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2964 case "$host" in
2965   *-*-mingw*|*-*-cygwin*)
2966     os_win32=yes
2967     link_python_libs=yes
2968     OS_EXT=dll
2969     ;;
2970   *-*-darwin*)
2971     os_win32=no
2972     link_python_libs=yes
2973     OS_EXT=dylib
2974     ;;
2975   *)
2976     os_win32=no
2977     link_python_libs=no
2978     OS_EXT=so
2979     ;;
2980 esac
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2982 $as_echo "$link_python_libs" >&6; }
2983  if test "$os_win32" = "yes"; then
2984   OS_WIN32_TRUE=
2985   OS_WIN32_FALSE='#'
2986 else
2987   OS_WIN32_TRUE='#'
2988   OS_WIN32_FALSE=
2989 fi
2990
2991
2992
2993
2994 cat >>confdefs.h <<_ACEOF
2995 #define OS_EXT "$OS_EXT"
2996 _ACEOF
2997
2998
2999
3000 case `pwd` in
3001   *\ * | *\     *)
3002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3003 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3004 esac
3005
3006
3007
3008 macro_version='2.4.6'
3009 macro_revision='2.4.6'
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023 ltmain=$ac_aux_dir/ltmain.sh
3024
3025 # Backslashify metacharacters that are still active within
3026 # double-quoted strings.
3027 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3028
3029 # Same as above, but do not quote variable references.
3030 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3031
3032 # Sed substitution to delay expansion of an escaped shell variable in a
3033 # double_quote_subst'ed string.
3034 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3035
3036 # Sed substitution to delay expansion of an escaped single quote.
3037 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3038
3039 # Sed substitution to avoid accidental globbing in evaled expressions
3040 no_glob_subst='s/\*/\\\*/g'
3041
3042 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3043 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3047 $as_echo_n "checking how to print strings... " >&6; }
3048 # Test print first, because it will be a builtin if present.
3049 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3050    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3051   ECHO='print -r --'
3052 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3053   ECHO='printf %s\n'
3054 else
3055   # Use this function as a fallback that always works.
3056   func_fallback_echo ()
3057   {
3058     eval 'cat <<_LTECHO_EOF
3059 $1
3060 _LTECHO_EOF'
3061   }
3062   ECHO='func_fallback_echo'
3063 fi
3064
3065 # func_echo_all arg...
3066 # Invoke $ECHO with all args, space-separated.
3067 func_echo_all ()
3068 {
3069     $ECHO ""
3070 }
3071
3072 case $ECHO in
3073   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3074 $as_echo "printf" >&6; } ;;
3075   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3076 $as_echo "print -r" >&6; } ;;
3077   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3078 $as_echo "cat" >&6; } ;;
3079 esac
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094 DEPDIR="${am__leading_dot}deps"
3095
3096 ac_config_commands="$ac_config_commands depfiles"
3097
3098
3099 am_make=${MAKE-make}
3100 cat > confinc << 'END'
3101 am__doit:
3102         @echo this is the am__doit target
3103 .PHONY: am__doit
3104 END
3105 # If we don't find an include directive, just comment out the code.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3107 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3108 am__include="#"
3109 am__quote=
3110 _am_result=none
3111 # First try GNU make style include.
3112 echo "include confinc" > confmf
3113 # Ignore all kinds of additional output from 'make'.
3114 case `$am_make -s -f confmf 2> /dev/null` in #(
3115 *the\ am__doit\ target*)
3116   am__include=include
3117   am__quote=
3118   _am_result=GNU
3119   ;;
3120 esac
3121 # Now try BSD make style include.
3122 if test "$am__include" = "#"; then
3123    echo '.include "confinc"' > confmf
3124    case `$am_make -s -f confmf 2> /dev/null` in #(
3125    *the\ am__doit\ target*)
3126      am__include=.include
3127      am__quote="\""
3128      _am_result=BSD
3129      ;;
3130    esac
3131 fi
3132
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3135 $as_echo "$_am_result" >&6; }
3136 rm -f confinc confmf
3137
3138 # Check whether --enable-dependency-tracking was given.
3139 if test "${enable_dependency_tracking+set}" = set; then :
3140   enableval=$enable_dependency_tracking;
3141 fi
3142
3143 if test "x$enable_dependency_tracking" != xno; then
3144   am_depcomp="$ac_aux_dir/depcomp"
3145   AMDEPBACKSLASH='\'
3146   am__nodep='_no'
3147 fi
3148  if test "x$enable_dependency_tracking" != xno; then
3149   AMDEP_TRUE=
3150   AMDEP_FALSE='#'
3151 else
3152   AMDEP_TRUE='#'
3153   AMDEP_FALSE=
3154 fi
3155
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 if test -n "$ac_tool_prefix"; then
3163   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$CC"; then
3171   ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 if test -z "$ac_cv_prog_CC"; then
3202   ac_ct_CC=$CC
3203   # Extract the first word of "gcc", so it can be a program name with args.
3204 set dummy gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$ac_ct_CC"; then
3211   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218     for ac_exec_ext in '' $ac_executable_extensions; do
3219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220     ac_cv_prog_ac_ct_CC="gcc"
3221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225   done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239   if test "x$ac_ct_CC" = x; then
3240     CC=""
3241   else
3242     case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248     CC=$ac_ct_CC
3249   fi
3250 else
3251   CC="$ac_cv_prog_CC"
3252 fi
3253
3254 if test -z "$CC"; then
3255           if test -n "$ac_tool_prefix"; then
3256     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CC"; then
3264   ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_prog_CC="${ac_tool_prefix}cc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293   fi
3294 fi
3295 if test -z "$CC"; then
3296   # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$CC"; then
3304   ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306   ac_prog_rejected=no
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312     for ac_exec_ext in '' $ac_executable_extensions; do
3313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315        ac_prog_rejected=yes
3316        continue
3317      fi
3318     ac_cv_prog_CC="cc"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326 if test $ac_prog_rejected = yes; then
3327   # We found a bogon in the path, so make sure we never use it.
3328   set dummy $ac_cv_prog_CC
3329   shift
3330   if test $# != 0; then
3331     # We chose a different compiler from the bogus one.
3332     # However, it has the same basename, so the bogon will be chosen
3333     # first if we set CC to just the basename; use the full file name.
3334     shift
3335     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3336   fi
3337 fi
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$CC"; then
3352   if test -n "$ac_tool_prefix"; then
3353   for ac_prog in cl.exe
3354   do
3355     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if test -n "$CC"; then
3363   ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     for ac_exec_ext in '' $ac_executable_extensions; do
3371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377   done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392     test -n "$CC" && break
3393   done
3394 fi
3395 if test -z "$CC"; then
3396   ac_ct_CC=$CC
3397   for ac_prog in cl.exe
3398 do
3399   # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$ac_ct_CC"; then
3407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414     for ac_exec_ext in '' $ac_executable_extensions; do
3415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_prog_ac_ct_CC="$ac_prog"
3417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421   done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3430 else
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435
3436   test -n "$ac_ct_CC" && break
3437 done
3438
3439   if test "x$ac_ct_CC" = x; then
3440     CC=""
3441   else
3442     case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448     CC=$ac_ct_CC
3449   fi
3450 fi
3451
3452 fi
3453
3454
3455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details" "$LINENO" 5; }
3459
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 set X $ac_compile
3463 ac_compiler=$2
3464 for ac_option in --version -v -V -qversion; do
3465   { { ac_try="$ac_compiler $ac_option >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3473   ac_status=$?
3474   if test -s conftest.err; then
3475     sed '10a\
3476 ... rest of stderr output deleted ...
3477          10q' conftest.err >conftest.er1
3478     cat conftest.er1 >&5
3479   fi
3480   rm -f conftest.er1 conftest.err
3481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482   test $ac_status = 0; }
3483 done
3484
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3502 $as_echo_n "checking whether the C compiler works... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3510 do
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514   esac
3515 done
3516 rm -f $ac_rmfiles
3517
3518 if { { ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_link_default") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }; then :
3529   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3535 do
3536   test -f "$ac_file" || continue
3537   case $ac_file in
3538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539         ;;
3540     [ab].out )
3541         # We found the default executable, but exeext='' is most
3542         # certainly right.
3543         break;;
3544     *.* )
3545         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546         then :; else
3547            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548         fi
3549         # We set ac_cv_exeext here because the later test for it is not
3550         # safe: cross compilers may not add the suffix if given an `-o'
3551         # argument, so we may need to know it at that point already.
3552         # Even if this section looks crufty: it has the advantage of
3553         # actually working.
3554         break;;
3555     * )
3556         break;;
3557   esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561 else
3562   ac_file=''
3563 fi
3564 if test -z "$ac_file"; then :
3565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error 77 "C compiler cannot create executables
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 else
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 $as_echo "yes" >&6; }
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3579 $as_echo_n "checking for C compiler default output file name... " >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3581 $as_echo "$ac_file" >&6; }
3582 ac_exeext=$ac_cv_exeext
3583
3584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585 ac_clean_files=$ac_clean_files_save
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3587 $as_echo_n "checking for suffix of executables... " >&6; }
3588 if { { ac_try="$ac_link"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595   (eval "$ac_link") 2>&5
3596   ac_status=$?
3597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598   test $ac_status = 0; }; then :
3599   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3600 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3601 # work properly (i.e., refer to `conftest.exe'), while it won't with
3602 # `rm'.
3603 for ac_file in conftest.exe conftest conftest.*; do
3604   test -f "$ac_file" || continue
3605   case $ac_file in
3606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608           break;;
3609     * ) break;;
3610   esac
3611 done
3612 else
3613   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3616 See \`config.log' for more details" "$LINENO" 5; }
3617 fi
3618 rm -f conftest conftest$ac_cv_exeext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3620 $as_echo "$ac_cv_exeext" >&6; }
3621
3622 rm -f conftest.$ac_ext
3623 EXEEXT=$ac_cv_exeext
3624 ac_exeext=$EXEEXT
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627 #include <stdio.h>
3628 int
3629 main ()
3630 {
3631 FILE *f = fopen ("conftest.out", "w");
3632  return ferror (f) || fclose (f) != 0;
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 ac_clean_files="$ac_clean_files conftest.out"
3639 # Check that the compiler produces executables we can run.  If not, either
3640 # the compiler is broken, or we cross compile.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3642 $as_echo_n "checking whether we are cross compiling... " >&6; }
3643 if test "$cross_compiling" != yes; then
3644   { { ac_try="$ac_link"
3645 case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651   (eval "$ac_link") 2>&5
3652   ac_status=$?
3653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654   test $ac_status = 0; }
3655   if { ac_try='./conftest$ac_cv_exeext'
3656   { { case "(($ac_try" in
3657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658   *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662   (eval "$ac_try") 2>&5
3663   ac_status=$?
3664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665   test $ac_status = 0; }; }; then
3666     cross_compiling=no
3667   else
3668     if test "$cross_compiling" = maybe; then
3669         cross_compiling=yes
3670     else
3671         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot run C compiled programs.
3674 If you meant to cross compile, use \`--host'.
3675 See \`config.log' for more details" "$LINENO" 5; }
3676     fi
3677   fi
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3680 $as_echo "$cross_compiling" >&6; }
3681
3682 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3683 ac_clean_files=$ac_clean_files_save
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3685 $as_echo_n "checking for suffix of object files... " >&6; }
3686 if ${ac_cv_objext+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.o conftest.obj
3701 if { { ac_try="$ac_compile"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 $as_echo "$ac_try_echo"; } >&5
3708   (eval "$ac_compile") 2>&5
3709   ac_status=$?
3710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711   test $ac_status = 0; }; then :
3712   for ac_file in conftest.o conftest.obj conftest.*; do
3713   test -f "$ac_file" || continue;
3714   case $ac_file in
3715     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3716     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3717        break;;
3718   esac
3719 done
3720 else
3721   $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of object files: cannot compile
3727 See \`config.log' for more details" "$LINENO" 5; }
3728 fi
3729 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3732 $as_echo "$ac_cv_objext" >&6; }
3733 OBJEXT=$ac_cv_objext
3734 ac_objext=$OBJEXT
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3736 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3737 if ${ac_cv_c_compiler_gnu+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h.  */
3742
3743 int
3744 main ()
3745 {
3746 #ifndef __GNUC__
3747        choke me
3748 #endif
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_compiler_gnu=yes
3756 else
3757   ac_compiler_gnu=no
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3761
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3764 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3765 if test $ac_compiler_gnu = yes; then
3766   GCC=yes
3767 else
3768   GCC=
3769 fi
3770 ac_test_CFLAGS=${CFLAGS+set}
3771 ac_save_CFLAGS=$CFLAGS
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3773 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3774 if ${ac_cv_prog_cc_g+:} false; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   ac_save_c_werror_flag=$ac_c_werror_flag
3778    ac_c_werror_flag=yes
3779    ac_cv_prog_cc_g=no
3780    CFLAGS="-g"
3781    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793   ac_cv_prog_cc_g=yes
3794 else
3795   CFLAGS=""
3796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798
3799 int
3800 main ()
3801 {
3802
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808
3809 else
3810   ac_c_werror_flag=$ac_save_c_werror_flag
3811          CFLAGS="-g"
3812          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824   ac_cv_prog_cc_g=yes
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831    ac_c_werror_flag=$ac_save_c_werror_flag
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3834 $as_echo "$ac_cv_prog_cc_g" >&6; }
3835 if test "$ac_test_CFLAGS" = set; then
3836   CFLAGS=$ac_save_CFLAGS
3837 elif test $ac_cv_prog_cc_g = yes; then
3838   if test "$GCC" = yes; then
3839     CFLAGS="-g -O2"
3840   else
3841     CFLAGS="-g"
3842   fi
3843 else
3844   if test "$GCC" = yes; then
3845     CFLAGS="-O2"
3846   else
3847     CFLAGS=
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3851 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852 if ${ac_cv_prog_cc_c89+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   ac_cv_prog_cc_c89=no
3856 ac_save_CC=$CC
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859 #include <stdarg.h>
3860 #include <stdio.h>
3861 struct stat;
3862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3863 struct buf { int x; };
3864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865 static char *e (p, i)
3866      char **p;
3867      int i;
3868 {
3869   return p[i];
3870 }
3871 static char *f (char * (*g) (char **, int), char **p, ...)
3872 {
3873   char *s;
3874   va_list v;
3875   va_start (v,p);
3876   s = g (p, va_arg (v,int));
3877   va_end (v);
3878   return s;
3879 }
3880
3881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3882    function prototypes and stuff, but not '\xHH' hex character constants.
3883    These don't provoke an error unfortunately, instead are silently treated
3884    as 'x'.  The following induces an error, until -std is added to get
3885    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3886    array size at least.  It's necessary to write '\x00'==0 to get something
3887    that's true only with -std.  */
3888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889
3890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891    inside strings and character constants.  */
3892 #define FOO(x) 'x'
3893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894
3895 int test (int i, double x);
3896 struct s1 {int (*f) (int a);};
3897 struct s2 {int (*f) (double a);};
3898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899 int argc;
3900 char **argv;
3901 int
3902 main ()
3903 {
3904 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911 do
3912   CC="$ac_save_CC $ac_arg"
3913   if ac_fn_c_try_compile "$LINENO"; then :
3914   ac_cv_prog_cc_c89=$ac_arg
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext
3917   test "x$ac_cv_prog_cc_c89" != "xno" && break
3918 done
3919 rm -f conftest.$ac_ext
3920 CC=$ac_save_CC
3921
3922 fi
3923 # AC_CACHE_VAL
3924 case "x$ac_cv_prog_cc_c89" in
3925   x)
3926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3928   xno)
3929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3931   *)
3932     CC="$CC $ac_cv_prog_cc_c89"
3933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3935 esac
3936 if test "x$ac_cv_prog_cc_c89" != xno; then :
3937
3938 fi
3939
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3952 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3953 if ${am_cv_prog_cc_c_o+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967   # Make sure it works both with $CC and with simple cc.
3968   # Following AC_PROG_CC_C_O, we do the test twice because some
3969   # compilers refuse to overwrite an existing .o file with -o,
3970   # though they will create one.
3971   am_cv_prog_cc_c_o=yes
3972   for am_i in 1 2; do
3973     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3974    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3975    ac_status=$?
3976    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977    (exit $ac_status); } \
3978          && test -f conftest2.$ac_objext; then
3979       : OK
3980     else
3981       am_cv_prog_cc_c_o=no
3982       break
3983     fi
3984   done
3985   rm -f core conftest*
3986   unset am_i
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3989 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3990 if test "$am_cv_prog_cc_c_o" != yes; then
3991    # Losing compiler, so override with the script.
3992    # FIXME: It is wrong to rewrite CC.
3993    # But if we don't then we get into trouble of one sort or another.
3994    # A longer-term fix would be to have automake use am__CC in this case,
3995    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3996    CC="$am_aux_dir/compile $CC"
3997 fi
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004
4005 depcc="$CC"   am_compiler_list=
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4008 $as_echo_n "checking dependency style of $depcc... " >&6; }
4009 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013   # We make a subdir and do the tests there.  Otherwise we can end up
4014   # making bogus files that we don't know about and never remove.  For
4015   # instance it was reported that on HP-UX the gcc test will end up
4016   # making a dummy file named 'D' -- because '-MD' means "put the output
4017   # in D".
4018   rm -rf conftest.dir
4019   mkdir conftest.dir
4020   # Copy depcomp to subdir because otherwise we won't find it if we're
4021   # using a relative directory.
4022   cp "$am_depcomp" conftest.dir
4023   cd conftest.dir
4024   # We will build objects and dependencies in a subdirectory because
4025   # it helps to detect inapplicable dependency modes.  For instance
4026   # both Tru64's cc and ICC support -MD to output dependencies as a
4027   # side effect of compilation, but ICC will put the dependencies in
4028   # the current directory while Tru64 will put them in the object
4029   # directory.
4030   mkdir sub
4031
4032   am_cv_CC_dependencies_compiler_type=none
4033   if test "$am_compiler_list" = ""; then
4034      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4035   fi
4036   am__universal=false
4037   case " $depcc " in #(
4038      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4039      esac
4040
4041   for depmode in $am_compiler_list; do
4042     # Setup a source with many dependencies, because some compilers
4043     # like to wrap large dependency lists on column 80 (with \), and
4044     # we should not choose a depcomp mode which is confused by this.
4045     #
4046     # We need to recreate these files for each test, as the compiler may
4047     # overwrite some of them when testing with obscure command lines.
4048     # This happens at least with the AIX C compiler.
4049     : > sub/conftest.c
4050     for i in 1 2 3 4 5 6; do
4051       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4053       # Solaris 10 /bin/sh.
4054       echo '/* dummy */' > sub/conftst$i.h
4055     done
4056     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4057
4058     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4059     # mode.  It turns out that the SunPro C++ compiler does not properly
4060     # handle '-M -o', and we need to detect this.  Also, some Intel
4061     # versions had trouble with output in subdirs.
4062     am__obj=sub/conftest.${OBJEXT-o}
4063     am__minus_obj="-o $am__obj"
4064     case $depmode in
4065     gcc)
4066       # This depmode causes a compiler race in universal mode.
4067       test "$am__universal" = false || continue
4068       ;;
4069     nosideeffect)
4070       # After this tag, mechanisms are not by side-effect, so they'll
4071       # only be used when explicitly requested.
4072       if test "x$enable_dependency_tracking" = xyes; then
4073         continue
4074       else
4075         break
4076       fi
4077       ;;
4078     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4079       # This compiler won't grok '-c -o', but also, the minuso test has
4080       # not run yet.  These depmodes are late enough in the game, and
4081       # so weak that their functioning should not be impacted.
4082       am__obj=conftest.${OBJEXT-o}
4083       am__minus_obj=
4084       ;;
4085     none) break ;;
4086     esac
4087     if depmode=$depmode \
4088        source=sub/conftest.c object=$am__obj \
4089        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091          >/dev/null 2>conftest.err &&
4092        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096       # icc doesn't choke on unknown options, it will just issue warnings
4097       # or remarks (even with -Werror).  So we grep stderr for any message
4098       # that says an option was ignored or not supported.
4099       # When given -MP, icc 7.0 and 7.1 complain thusly:
4100       #   icc: Command line warning: ignoring option '-M'; no argument required
4101       # The diagnosis changed in icc 8.0:
4102       #   icc: Command line remark: option '-MP' not supported
4103       if (grep 'ignoring option' conftest.err ||
4104           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105         am_cv_CC_dependencies_compiler_type=$depmode
4106         break
4107       fi
4108     fi
4109   done
4110
4111   cd ..
4112   rm -rf conftest.dir
4113 else
4114   am_cv_CC_dependencies_compiler_type=none
4115 fi
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4121
4122  if
4123   test "x$enable_dependency_tracking" != xno \
4124   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4125   am__fastdepCC_TRUE=
4126   am__fastdepCC_FALSE='#'
4127 else
4128   am__fastdepCC_TRUE='#'
4129   am__fastdepCC_FALSE=
4130 fi
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4134 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4135 if ${ac_cv_path_SED+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4139      for ac_i in 1 2 3 4 5 6 7; do
4140        ac_script="$ac_script$as_nl$ac_script"
4141      done
4142      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4143      { ac_script=; unset ac_script;}
4144      if test -z "$SED"; then
4145   ac_path_SED_found=false
4146   # Loop through the user's path and test for each of PROGNAME-LIST
4147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_prog in sed gsed; do
4153     for ac_exec_ext in '' $ac_executable_extensions; do
4154       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4155       as_fn_executable_p "$ac_path_SED" || continue
4156 # Check for GNU ac_path_SED and select it if it is found.
4157   # Check for GNU $ac_path_SED
4158 case `"$ac_path_SED" --version 2>&1` in
4159 *GNU*)
4160   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4161 *)
4162   ac_count=0
4163   $as_echo_n 0123456789 >"conftest.in"
4164   while :
4165   do
4166     cat "conftest.in" "conftest.in" >"conftest.tmp"
4167     mv "conftest.tmp" "conftest.in"
4168     cp "conftest.in" "conftest.nl"
4169     $as_echo '' >> "conftest.nl"
4170     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172     as_fn_arith $ac_count + 1 && ac_count=$as_val
4173     if test $ac_count -gt ${ac_path_SED_max-0}; then
4174       # Best one so far, save it but keep looking for a better one
4175       ac_cv_path_SED="$ac_path_SED"
4176       ac_path_SED_max=$ac_count
4177     fi
4178     # 10*(2^10) chars as input seems more than enough
4179     test $ac_count -gt 10 && break
4180   done
4181   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182 esac
4183
4184       $ac_path_SED_found && break 3
4185     done
4186   done
4187   done
4188 IFS=$as_save_IFS
4189   if test -z "$ac_cv_path_SED"; then
4190     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4191   fi
4192 else
4193   ac_cv_path_SED=$SED
4194 fi
4195
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4198 $as_echo "$ac_cv_path_SED" >&6; }
4199  SED="$ac_cv_path_SED"
4200   rm -f conftest.sed
4201
4202 test -z "$SED" && SED=sed
4203 Xsed="$SED -e 1s/^X//"
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4216 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4217 if ${ac_cv_path_GREP+:} false; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   if test -z "$GREP"; then
4221   ac_path_GREP_found=false
4222   # Loop through the user's path and test for each of PROGNAME-LIST
4223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228     for ac_prog in grep ggrep; do
4229     for ac_exec_ext in '' $ac_executable_extensions; do
4230       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4231       as_fn_executable_p "$ac_path_GREP" || continue
4232 # Check for GNU ac_path_GREP and select it if it is found.
4233   # Check for GNU $ac_path_GREP
4234 case `"$ac_path_GREP" --version 2>&1` in
4235 *GNU*)
4236   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4237 *)
4238   ac_count=0
4239   $as_echo_n 0123456789 >"conftest.in"
4240   while :
4241   do
4242     cat "conftest.in" "conftest.in" >"conftest.tmp"
4243     mv "conftest.tmp" "conftest.in"
4244     cp "conftest.in" "conftest.nl"
4245     $as_echo 'GREP' >> "conftest.nl"
4246     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248     as_fn_arith $ac_count + 1 && ac_count=$as_val
4249     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4250       # Best one so far, save it but keep looking for a better one
4251       ac_cv_path_GREP="$ac_path_GREP"
4252       ac_path_GREP_max=$ac_count
4253     fi
4254     # 10*(2^10) chars as input seems more than enough
4255     test $ac_count -gt 10 && break
4256   done
4257   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258 esac
4259
4260       $ac_path_GREP_found && break 3
4261     done
4262   done
4263   done
4264 IFS=$as_save_IFS
4265   if test -z "$ac_cv_path_GREP"; then
4266     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267   fi
4268 else
4269   ac_cv_path_GREP=$GREP
4270 fi
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4274 $as_echo "$ac_cv_path_GREP" >&6; }
4275  GREP="$ac_cv_path_GREP"
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4279 $as_echo_n "checking for egrep... " >&6; }
4280 if ${ac_cv_path_EGREP+:} false; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4284    then ac_cv_path_EGREP="$GREP -E"
4285    else
4286      if test -z "$EGREP"; then
4287   ac_path_EGREP_found=false
4288   # Loop through the user's path and test for each of PROGNAME-LIST
4289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 do
4292   IFS=$as_save_IFS
4293   test -z "$as_dir" && as_dir=.
4294     for ac_prog in egrep; do
4295     for ac_exec_ext in '' $ac_executable_extensions; do
4296       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4297       as_fn_executable_p "$ac_path_EGREP" || continue
4298 # Check for GNU ac_path_EGREP and select it if it is found.
4299   # Check for GNU $ac_path_EGREP
4300 case `"$ac_path_EGREP" --version 2>&1` in
4301 *GNU*)
4302   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4303 *)
4304   ac_count=0
4305   $as_echo_n 0123456789 >"conftest.in"
4306   while :
4307   do
4308     cat "conftest.in" "conftest.in" >"conftest.tmp"
4309     mv "conftest.tmp" "conftest.in"
4310     cp "conftest.in" "conftest.nl"
4311     $as_echo 'EGREP' >> "conftest.nl"
4312     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314     as_fn_arith $ac_count + 1 && ac_count=$as_val
4315     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4316       # Best one so far, save it but keep looking for a better one
4317       ac_cv_path_EGREP="$ac_path_EGREP"
4318       ac_path_EGREP_max=$ac_count
4319     fi
4320     # 10*(2^10) chars as input seems more than enough
4321     test $ac_count -gt 10 && break
4322   done
4323   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 esac
4325
4326       $ac_path_EGREP_found && break 3
4327     done
4328   done
4329   done
4330 IFS=$as_save_IFS
4331   if test -z "$ac_cv_path_EGREP"; then
4332     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4333   fi
4334 else
4335   ac_cv_path_EGREP=$EGREP
4336 fi
4337
4338    fi
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4341 $as_echo "$ac_cv_path_EGREP" >&6; }
4342  EGREP="$ac_cv_path_EGREP"
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4346 $as_echo_n "checking for fgrep... " >&6; }
4347 if ${ac_cv_path_FGREP+:} false; then :
4348   $as_echo_n "(cached) " >&6
4349 else
4350   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4351    then ac_cv_path_FGREP="$GREP -F"
4352    else
4353      if test -z "$FGREP"; then
4354   ac_path_FGREP_found=false
4355   # Loop through the user's path and test for each of PROGNAME-LIST
4356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 do
4359   IFS=$as_save_IFS
4360   test -z "$as_dir" && as_dir=.
4361     for ac_prog in fgrep; do
4362     for ac_exec_ext in '' $ac_executable_extensions; do
4363       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4364       as_fn_executable_p "$ac_path_FGREP" || continue
4365 # Check for GNU ac_path_FGREP and select it if it is found.
4366   # Check for GNU $ac_path_FGREP
4367 case `"$ac_path_FGREP" --version 2>&1` in
4368 *GNU*)
4369   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4370 *)
4371   ac_count=0
4372   $as_echo_n 0123456789 >"conftest.in"
4373   while :
4374   do
4375     cat "conftest.in" "conftest.in" >"conftest.tmp"
4376     mv "conftest.tmp" "conftest.in"
4377     cp "conftest.in" "conftest.nl"
4378     $as_echo 'FGREP' >> "conftest.nl"
4379     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381     as_fn_arith $ac_count + 1 && ac_count=$as_val
4382     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4383       # Best one so far, save it but keep looking for a better one
4384       ac_cv_path_FGREP="$ac_path_FGREP"
4385       ac_path_FGREP_max=$ac_count
4386     fi
4387     # 10*(2^10) chars as input seems more than enough
4388     test $ac_count -gt 10 && break
4389   done
4390   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 esac
4392
4393       $ac_path_FGREP_found && break 3
4394     done
4395   done
4396   done
4397 IFS=$as_save_IFS
4398   if test -z "$ac_cv_path_FGREP"; then
4399     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400   fi
4401 else
4402   ac_cv_path_FGREP=$FGREP
4403 fi
4404
4405    fi
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4408 $as_echo "$ac_cv_path_FGREP" >&6; }
4409  FGREP="$ac_cv_path_FGREP"
4410
4411
4412 test -z "$GREP" && GREP=grep
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432 # Check whether --with-gnu-ld was given.
4433 if test "${with_gnu_ld+set}" = set; then :
4434   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4435 else
4436   with_gnu_ld=no
4437 fi
4438
4439 ac_prog=ld
4440 if test yes = "$GCC"; then
4441   # Check if gcc -print-prog-name=ld gives a path.
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4443 $as_echo_n "checking for ld used by $CC... " >&6; }
4444   case $host in
4445   *-*-mingw*)
4446     # gcc leaves a trailing carriage return, which upsets mingw
4447     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4448   *)
4449     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4450   esac
4451   case $ac_prog in
4452     # Accept absolute paths.
4453     [\\/]* | ?:[\\/]*)
4454       re_direlt='/[^/][^/]*/\.\./'
4455       # Canonicalize the pathname of ld
4456       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4457       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4458         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4459       done
4460       test -z "$LD" && LD=$ac_prog
4461       ;;
4462   "")
4463     # If it fails, then pretend we aren't using GCC.
4464     ac_prog=ld
4465     ;;
4466   *)
4467     # If it is relative, then search for the first ld in PATH.
4468     with_gnu_ld=unknown
4469     ;;
4470   esac
4471 elif test yes = "$with_gnu_ld"; then
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4473 $as_echo_n "checking for GNU ld... " >&6; }
4474 else
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4476 $as_echo_n "checking for non-GNU ld... " >&6; }
4477 fi
4478 if ${lt_cv_path_LD+:} false; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   if test -z "$LD"; then
4482   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4483   for ac_dir in $PATH; do
4484     IFS=$lt_save_ifs
4485     test -z "$ac_dir" && ac_dir=.
4486     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4487       lt_cv_path_LD=$ac_dir/$ac_prog
4488       # Check to see if the program is GNU ld.  I'd rather use --version,
4489       # but apparently some variants of GNU ld only accept -v.
4490       # Break only if it was the GNU/non-GNU ld that we prefer.
4491       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4492       *GNU* | *'with BFD'*)
4493         test no != "$with_gnu_ld" && break
4494         ;;
4495       *)
4496         test yes != "$with_gnu_ld" && break
4497         ;;
4498       esac
4499     fi
4500   done
4501   IFS=$lt_save_ifs
4502 else
4503   lt_cv_path_LD=$LD # Let the user override the test with a path.
4504 fi
4505 fi
4506
4507 LD=$lt_cv_path_LD
4508 if test -n "$LD"; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4510 $as_echo "$LD" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4517 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4518 if ${lt_cv_prog_gnu_ld+:} false; then :
4519   $as_echo_n "(cached) " >&6
4520 else
4521   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4522 case `$LD -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524   lt_cv_prog_gnu_ld=yes
4525   ;;
4526 *)
4527   lt_cv_prog_gnu_ld=no
4528   ;;
4529 esac
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4532 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4533 with_gnu_ld=$lt_cv_prog_gnu_ld
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4544 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4545 if ${lt_cv_path_NM+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -n "$NM"; then
4549   # Let the user override the test.
4550   lt_cv_path_NM=$NM
4551 else
4552   lt_nm_to_check=${ac_tool_prefix}nm
4553   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4554     lt_nm_to_check="$lt_nm_to_check nm"
4555   fi
4556   for lt_tmp_nm in $lt_nm_to_check; do
4557     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4558     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4559       IFS=$lt_save_ifs
4560       test -z "$ac_dir" && ac_dir=.
4561       tmp_nm=$ac_dir/$lt_tmp_nm
4562       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4563         # Check to see if the nm accepts a BSD-compat flag.
4564         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4565         #   nm: unknown option "B" ignored
4566         # Tru64's nm complains that /dev/null is an invalid object file
4567         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4568         case $build_os in
4569         mingw*) lt_bad_file=conftest.nm/nofile ;;
4570         *) lt_bad_file=/dev/null ;;
4571         esac
4572         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4573         *$lt_bad_file* | *'Invalid file or object type'*)
4574           lt_cv_path_NM="$tmp_nm -B"
4575           break 2
4576           ;;
4577         *)
4578           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579           */dev/null*)
4580             lt_cv_path_NM="$tmp_nm -p"
4581             break 2
4582             ;;
4583           *)
4584             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585             continue # so that we can try to find one that supports BSD flags
4586             ;;
4587           esac
4588           ;;
4589         esac
4590       fi
4591     done
4592     IFS=$lt_save_ifs
4593   done
4594   : ${lt_cv_path_NM=no}
4595 fi
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4598 $as_echo "$lt_cv_path_NM" >&6; }
4599 if test no != "$lt_cv_path_NM"; then
4600   NM=$lt_cv_path_NM
4601 else
4602   # Didn't find any BSD compatible name lister, look for dumpbin.
4603   if test -n "$DUMPBIN"; then :
4604     # Let the user override the test.
4605   else
4606     if test -n "$ac_tool_prefix"; then
4607   for ac_prog in dumpbin "link -dump"
4608   do
4609     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_DUMPBIN+:} false; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$DUMPBIN"; then
4617   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 DUMPBIN=$ac_cv_prog_DUMPBIN
4637 if test -n "$DUMPBIN"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4639 $as_echo "$DUMPBIN" >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645
4646     test -n "$DUMPBIN" && break
4647   done
4648 fi
4649 if test -z "$DUMPBIN"; then
4650   ac_ct_DUMPBIN=$DUMPBIN
4651   for ac_prog in dumpbin "link -dump"
4652 do
4653   # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   if test -n "$ac_ct_DUMPBIN"; then
4661   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4681 if test -n "$ac_ct_DUMPBIN"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4683 $as_echo "$ac_ct_DUMPBIN" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690   test -n "$ac_ct_DUMPBIN" && break
4691 done
4692
4693   if test "x$ac_ct_DUMPBIN" = x; then
4694     DUMPBIN=":"
4695   else
4696     case $cross_compiling:$ac_tool_warned in
4697 yes:)
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700 ac_tool_warned=yes ;;
4701 esac
4702     DUMPBIN=$ac_ct_DUMPBIN
4703   fi
4704 fi
4705
4706     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4707     *COFF*)
4708       DUMPBIN="$DUMPBIN -symbols -headers"
4709       ;;
4710     *)
4711       DUMPBIN=:
4712       ;;
4713     esac
4714   fi
4715
4716   if test : != "$DUMPBIN"; then
4717     NM=$DUMPBIN
4718   fi
4719 fi
4720 test -z "$NM" && NM=nm
4721
4722
4723
4724
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4728 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4729 if ${lt_cv_nm_interface+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   lt_cv_nm_interface="BSD nm"
4733   echo "int some_variable = 0;" > conftest.$ac_ext
4734   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4735   (eval "$ac_compile" 2>conftest.err)
4736   cat conftest.err >&5
4737   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4738   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4739   cat conftest.err >&5
4740   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4741   cat conftest.out >&5
4742   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4743     lt_cv_nm_interface="MS dumpbin"
4744   fi
4745   rm -f conftest*
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4748 $as_echo "$lt_cv_nm_interface" >&6; }
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4751 $as_echo_n "checking whether ln -s works... " >&6; }
4752 LN_S=$as_ln_s
4753 if test "$LN_S" = "ln -s"; then
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755 $as_echo "yes" >&6; }
4756 else
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4758 $as_echo "no, using $LN_S" >&6; }
4759 fi
4760
4761 # find the maximum length of command line arguments
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4763 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4764 if ${lt_cv_sys_max_cmd_len+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767     i=0
4768   teststring=ABCD
4769
4770   case $build_os in
4771   msdosdjgpp*)
4772     # On DJGPP, this test can blow up pretty badly due to problems in libc
4773     # (any single argument exceeding 2000 bytes causes a buffer overrun
4774     # during glob expansion).  Even if it were fixed, the result of this
4775     # check would be larger than it should be.
4776     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4777     ;;
4778
4779   gnu*)
4780     # Under GNU Hurd, this test is not required because there is
4781     # no limit to the length of command line arguments.
4782     # Libtool will interpret -1 as no limit whatsoever
4783     lt_cv_sys_max_cmd_len=-1;
4784     ;;
4785
4786   cygwin* | mingw* | cegcc*)
4787     # On Win9x/ME, this test blows up -- it succeeds, but takes
4788     # about 5 minutes as the teststring grows exponentially.
4789     # Worse, since 9x/ME are not pre-emptively multitasking,
4790     # you end up with a "frozen" computer, even though with patience
4791     # the test eventually succeeds (with a max line length of 256k).
4792     # Instead, let's just punt: use the minimum linelength reported by
4793     # all of the supported platforms: 8192 (on NT/2K/XP).
4794     lt_cv_sys_max_cmd_len=8192;
4795     ;;
4796
4797   mint*)
4798     # On MiNT this can take a long time and run out of memory.
4799     lt_cv_sys_max_cmd_len=8192;
4800     ;;
4801
4802   amigaos*)
4803     # On AmigaOS with pdksh, this test takes hours, literally.
4804     # So we just punt and use a minimum line length of 8192.
4805     lt_cv_sys_max_cmd_len=8192;
4806     ;;
4807
4808   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4809     # This has been around since 386BSD, at least.  Likely further.
4810     if test -x /sbin/sysctl; then
4811       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4812     elif test -x /usr/sbin/sysctl; then
4813       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4814     else
4815       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4816     fi
4817     # And add a safety zone
4818     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4819     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4820     ;;
4821
4822   interix*)
4823     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4824     lt_cv_sys_max_cmd_len=196608
4825     ;;
4826
4827   os2*)
4828     # The test takes a long time on OS/2.
4829     lt_cv_sys_max_cmd_len=8192
4830     ;;
4831
4832   osf*)
4833     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4834     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4835     # nice to cause kernel panics so lets avoid the loop below.
4836     # First set a reasonable default.
4837     lt_cv_sys_max_cmd_len=16384
4838     #
4839     if test -x /sbin/sysconfig; then
4840       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4841         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4842       esac
4843     fi
4844     ;;
4845   sco3.2v5*)
4846     lt_cv_sys_max_cmd_len=102400
4847     ;;
4848   sysv5* | sco5v6* | sysv4.2uw2*)
4849     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4850     if test -n "$kargmax"; then
4851       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4852     else
4853       lt_cv_sys_max_cmd_len=32768
4854     fi
4855     ;;
4856   *)
4857     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4858     if test -n "$lt_cv_sys_max_cmd_len" && \
4859        test undefined != "$lt_cv_sys_max_cmd_len"; then
4860       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4861       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4862     else
4863       # Make teststring a little bigger before we do anything with it.
4864       # a 1K string should be a reasonable start.
4865       for i in 1 2 3 4 5 6 7 8; do
4866         teststring=$teststring$teststring
4867       done
4868       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4869       # If test is not a shell built-in, we'll probably end up computing a
4870       # maximum length that is only half of the actual maximum length, but
4871       # we can't tell.
4872       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4873                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4874               test 17 != "$i" # 1/2 MB should be enough
4875       do
4876         i=`expr $i + 1`
4877         teststring=$teststring$teststring
4878       done
4879       # Only check the string length outside the loop.
4880       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4881       teststring=
4882       # Add a significant safety factor because C++ compilers can tack on
4883       # massive amounts of additional arguments before passing them to the
4884       # linker.  It appears as though 1/2 is a usable value.
4885       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4886     fi
4887     ;;
4888   esac
4889
4890 fi
4891
4892 if test -n "$lt_cv_sys_max_cmd_len"; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4894 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4897 $as_echo "none" >&6; }
4898 fi
4899 max_cmd_len=$lt_cv_sys_max_cmd_len
4900
4901
4902
4903
4904
4905
4906 : ${CP="cp -f"}
4907 : ${MV="mv -f"}
4908 : ${RM="rm -f"}
4909
4910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4911   lt_unset=unset
4912 else
4913   lt_unset=false
4914 fi
4915
4916
4917
4918
4919
4920 # test EBCDIC or ASCII
4921 case `echo X|tr X '\101'` in
4922  A) # ASCII based system
4923     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4924   lt_SP2NL='tr \040 \012'
4925   lt_NL2SP='tr \015\012 \040\040'
4926   ;;
4927  *) # EBCDIC based system
4928   lt_SP2NL='tr \100 \n'
4929   lt_NL2SP='tr \r\n \100\100'
4930   ;;
4931 esac
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4942 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4943 if ${lt_cv_to_host_file_cmd+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   case $host in
4947   *-*-mingw* )
4948     case $build in
4949       *-*-mingw* ) # actually msys
4950         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4951         ;;
4952       *-*-cygwin* )
4953         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4954         ;;
4955       * ) # otherwise, assume *nix
4956         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4957         ;;
4958     esac
4959     ;;
4960   *-*-cygwin* )
4961     case $build in
4962       *-*-mingw* ) # actually msys
4963         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4964         ;;
4965       *-*-cygwin* )
4966         lt_cv_to_host_file_cmd=func_convert_file_noop
4967         ;;
4968       * ) # otherwise, assume *nix
4969         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4970         ;;
4971     esac
4972     ;;
4973   * ) # unhandled hosts (and "normal" native builds)
4974     lt_cv_to_host_file_cmd=func_convert_file_noop
4975     ;;
4976 esac
4977
4978 fi
4979
4980 to_host_file_cmd=$lt_cv_to_host_file_cmd
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4982 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4983
4984
4985
4986
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4989 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4990 if ${lt_cv_to_tool_file_cmd+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   #assume ordinary cross tools, or native build.
4994 lt_cv_to_tool_file_cmd=func_convert_file_noop
4995 case $host in
4996   *-*-mingw* )
4997     case $build in
4998       *-*-mingw* ) # actually msys
4999         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5000         ;;
5001     esac
5002     ;;
5003 esac
5004
5005 fi
5006
5007 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5009 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5016 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5017 if ${lt_cv_ld_reload_flag+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   lt_cv_ld_reload_flag='-r'
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5023 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5024 reload_flag=$lt_cv_ld_reload_flag
5025 case $reload_flag in
5026 "" | " "*) ;;
5027 *) reload_flag=" $reload_flag" ;;
5028 esac
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030 case $host_os in
5031   cygwin* | mingw* | pw32* | cegcc*)
5032     if test yes != "$GCC"; then
5033       reload_cmds=false
5034     fi
5035     ;;
5036   darwin*)
5037     if test yes = "$GCC"; then
5038       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5039     else
5040       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5041     fi
5042     ;;
5043 esac
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 if test -n "$ac_tool_prefix"; then
5054   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_OBJDUMP+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$OBJDUMP"; then
5062   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 OBJDUMP=$ac_cv_prog_OBJDUMP
5082 if test -n "$OBJDUMP"; then
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5084 $as_echo "$OBJDUMP" >&6; }
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 fi
5092 if test -z "$ac_cv_prog_OBJDUMP"; then
5093   ac_ct_OBJDUMP=$OBJDUMP
5094   # Extract the first word of "objdump", so it can be a program name with args.
5095 set dummy objdump; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   if test -n "$ac_ct_OBJDUMP"; then
5102   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5122 if test -n "$ac_ct_OBJDUMP"; then
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5124 $as_echo "$ac_ct_OBJDUMP" >&6; }
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130   if test "x$ac_ct_OBJDUMP" = x; then
5131     OBJDUMP="false"
5132   else
5133     case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139     OBJDUMP=$ac_ct_OBJDUMP
5140   fi
5141 else
5142   OBJDUMP="$ac_cv_prog_OBJDUMP"
5143 fi
5144
5145 test -z "$OBJDUMP" && OBJDUMP=objdump
5146
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5153 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5154 if ${lt_cv_deplibs_check_method+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   lt_cv_file_magic_cmd='$MAGIC_CMD'
5158 lt_cv_file_magic_test_file=
5159 lt_cv_deplibs_check_method='unknown'
5160 # Need to set the preceding variable on all platforms that support
5161 # interlibrary dependencies.
5162 # 'none' -- dependencies not supported.
5163 # 'unknown' -- same as none, but documents that we really don't know.
5164 # 'pass_all' -- all dependencies passed with no checks.
5165 # 'test_compile' -- check by making test program.
5166 # 'file_magic [[regex]]' -- check by looking for files in library path
5167 # that responds to the $file_magic_cmd with a given extended regex.
5168 # If you have 'file' or equivalent on your system and you're not sure
5169 # whether 'pass_all' will *always* work, you probably want this one.
5170
5171 case $host_os in
5172 aix[4-9]*)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 beos*)
5177   lt_cv_deplibs_check_method=pass_all
5178   ;;
5179
5180 bsdi[45]*)
5181   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5182   lt_cv_file_magic_cmd='/usr/bin/file -L'
5183   lt_cv_file_magic_test_file=/shlib/libc.so
5184   ;;
5185
5186 cygwin*)
5187   # func_win32_libid is a shell function defined in ltmain.sh
5188   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189   lt_cv_file_magic_cmd='func_win32_libid'
5190   ;;
5191
5192 mingw* | pw32*)
5193   # Base MSYS/MinGW do not provide the 'file' command needed by
5194   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5195   # unless we find 'file', for example because we are cross-compiling.
5196   if ( file / ) >/dev/null 2>&1; then
5197     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5198     lt_cv_file_magic_cmd='func_win32_libid'
5199   else
5200     # Keep this pattern in sync with the one in func_win32_libid.
5201     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5202     lt_cv_file_magic_cmd='$OBJDUMP -f'
5203   fi
5204   ;;
5205
5206 cegcc*)
5207   # use the weaker test based on 'objdump'. See mingw*.
5208   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209   lt_cv_file_magic_cmd='$OBJDUMP -f'
5210   ;;
5211
5212 darwin* | rhapsody*)
5213   lt_cv_deplibs_check_method=pass_all
5214   ;;
5215
5216 freebsd* | dragonfly*)
5217   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218     case $host_cpu in
5219     i*86 )
5220       # Not sure whether the presence of OpenBSD here was a mistake.
5221       # Let's accept both of them until this is cleared up.
5222       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223       lt_cv_file_magic_cmd=/usr/bin/file
5224       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225       ;;
5226     esac
5227   else
5228     lt_cv_deplibs_check_method=pass_all
5229   fi
5230   ;;
5231
5232 haiku*)
5233   lt_cv_deplibs_check_method=pass_all
5234   ;;
5235
5236 hpux10.20* | hpux11*)
5237   lt_cv_file_magic_cmd=/usr/bin/file
5238   case $host_cpu in
5239   ia64*)
5240     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5241     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242     ;;
5243   hppa*64*)
5244     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]'
5245     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5246     ;;
5247   *)
5248     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5249     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5250     ;;
5251   esac
5252   ;;
5253
5254 interix[3-9]*)
5255   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5256   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5257   ;;
5258
5259 irix5* | irix6* | nonstopux*)
5260   case $LD in
5261   *-32|*"-32 ") libmagic=32-bit;;
5262   *-n32|*"-n32 ") libmagic=N32;;
5263   *-64|*"-64 ") libmagic=64-bit;;
5264   *) libmagic=never-match;;
5265   esac
5266   lt_cv_deplibs_check_method=pass_all
5267   ;;
5268
5269 # This must be glibc/ELF.
5270 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5271   lt_cv_deplibs_check_method=pass_all
5272   ;;
5273
5274 netbsd* | netbsdelf*-gnu)
5275   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5277   else
5278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5279   fi
5280   ;;
5281
5282 newos6*)
5283   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5284   lt_cv_file_magic_cmd=/usr/bin/file
5285   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5286   ;;
5287
5288 *nto* | *qnx*)
5289   lt_cv_deplibs_check_method=pass_all
5290   ;;
5291
5292 openbsd* | bitrig*)
5293   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5294     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5295   else
5296     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5297   fi
5298   ;;
5299
5300 osf3* | osf4* | osf5*)
5301   lt_cv_deplibs_check_method=pass_all
5302   ;;
5303
5304 rdos*)
5305   lt_cv_deplibs_check_method=pass_all
5306   ;;
5307
5308 solaris*)
5309   lt_cv_deplibs_check_method=pass_all
5310   ;;
5311
5312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313   lt_cv_deplibs_check_method=pass_all
5314   ;;
5315
5316 sysv4 | sysv4.3*)
5317   case $host_vendor in
5318   motorola)
5319     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]'
5320     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5321     ;;
5322   ncr)
5323     lt_cv_deplibs_check_method=pass_all
5324     ;;
5325   sequent)
5326     lt_cv_file_magic_cmd='/bin/file'
5327     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5328     ;;
5329   sni)
5330     lt_cv_file_magic_cmd='/bin/file'
5331     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5332     lt_cv_file_magic_test_file=/lib/libc.so
5333     ;;
5334   siemens)
5335     lt_cv_deplibs_check_method=pass_all
5336     ;;
5337   pc)
5338     lt_cv_deplibs_check_method=pass_all
5339     ;;
5340   esac
5341   ;;
5342
5343 tpf*)
5344   lt_cv_deplibs_check_method=pass_all
5345   ;;
5346 os2*)
5347   lt_cv_deplibs_check_method=pass_all
5348   ;;
5349 esac
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5354
5355 file_magic_glob=
5356 want_nocaseglob=no
5357 if test "$build" = "$host"; then
5358   case $host_os in
5359   mingw* | pw32*)
5360     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5361       want_nocaseglob=yes
5362     else
5363       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5364     fi
5365     ;;
5366   esac
5367 fi
5368
5369 file_magic_cmd=$lt_cv_file_magic_cmd
5370 deplibs_check_method=$lt_cv_deplibs_check_method
5371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 if test -n "$ac_tool_prefix"; then
5395   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_prog_DLLTOOL+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   if test -n "$DLLTOOL"; then
5403   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410     for ac_exec_ext in '' $ac_executable_extensions; do
5411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417   done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 DLLTOOL=$ac_cv_prog_DLLTOOL
5423 if test -n "$DLLTOOL"; then
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5425 $as_echo "$DLLTOOL" >&6; }
5426 else
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431
5432 fi
5433 if test -z "$ac_cv_prog_DLLTOOL"; then
5434   ac_ct_DLLTOOL=$DLLTOOL
5435   # Extract the first word of "dlltool", so it can be a program name with args.
5436 set dummy dlltool; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   if test -n "$ac_ct_DLLTOOL"; then
5443   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5463 if test -n "$ac_ct_DLLTOOL"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5465 $as_echo "$ac_ct_DLLTOOL" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471   if test "x$ac_ct_DLLTOOL" = x; then
5472     DLLTOOL="false"
5473   else
5474     case $cross_compiling:$ac_tool_warned in
5475 yes:)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5479 esac
5480     DLLTOOL=$ac_ct_DLLTOOL
5481   fi
5482 else
5483   DLLTOOL="$ac_cv_prog_DLLTOOL"
5484 fi
5485
5486 test -z "$DLLTOOL" && DLLTOOL=dlltool
5487
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5495 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5496 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   lt_cv_sharedlib_from_linklib_cmd='unknown'
5500
5501 case $host_os in
5502 cygwin* | mingw* | pw32* | cegcc*)
5503   # two different shell functions defined in ltmain.sh;
5504   # decide which one to use based on capabilities of $DLLTOOL
5505   case `$DLLTOOL --help 2>&1` in
5506   *--identify-strict*)
5507     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5508     ;;
5509   *)
5510     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5511     ;;
5512   esac
5513   ;;
5514 *)
5515   # fallback: assume linklib IS sharedlib
5516   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5517   ;;
5518 esac
5519
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5522 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5523 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5524 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5525
5526
5527
5528
5529
5530
5531
5532
5533 if test -n "$ac_tool_prefix"; then
5534   for ac_prog in ar
5535   do
5536     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_AR+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   if test -n "$AR"; then
5544   ac_cv_prog_AR="$AR" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551     for ac_exec_ext in '' $ac_executable_extensions; do
5552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558   done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 AR=$ac_cv_prog_AR
5564 if test -n "$AR"; then
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5566 $as_echo "$AR" >&6; }
5567 else
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573     test -n "$AR" && break
5574   done
5575 fi
5576 if test -z "$AR"; then
5577   ac_ct_AR=$AR
5578   for ac_prog in ar
5579 do
5580   # Extract the first word of "$ac_prog", so it can be a program name with args.
5581 set dummy $ac_prog; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   if test -n "$ac_ct_AR"; then
5588   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595     for ac_exec_ext in '' $ac_executable_extensions; do
5596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_prog_ac_ct_AR="$ac_prog"
5598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602   done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5608 if test -n "$ac_ct_AR"; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5610 $as_echo "$ac_ct_AR" >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617   test -n "$ac_ct_AR" && break
5618 done
5619
5620   if test "x$ac_ct_AR" = x; then
5621     AR="false"
5622   else
5623     case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629     AR=$ac_ct_AR
5630   fi
5631 fi
5632
5633 : ${AR=ar}
5634 : ${AR_FLAGS=cru}
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5647 $as_echo_n "checking for archiver @FILE support... " >&6; }
5648 if ${lt_cv_ar_at_file+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   lt_cv_ar_at_file=no
5652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654
5655 int
5656 main ()
5657 {
5658
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664   echo conftest.$ac_objext > conftest.lst
5665       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5666       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5667   (eval $lt_ar_try) 2>&5
5668   ac_status=$?
5669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670   test $ac_status = 0; }
5671       if test 0 -eq "$ac_status"; then
5672         # Ensure the archiver fails upon bogus file names.
5673         rm -f conftest.$ac_objext libconftest.a
5674         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5675   (eval $lt_ar_try) 2>&5
5676   ac_status=$?
5677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678   test $ac_status = 0; }
5679         if test 0 -ne "$ac_status"; then
5680           lt_cv_ar_at_file=@
5681         fi
5682       fi
5683       rm -f conftest.* libconftest.a
5684
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5690 $as_echo "$lt_cv_ar_at_file" >&6; }
5691
5692 if test no = "$lt_cv_ar_at_file"; then
5693   archiver_list_spec=
5694 else
5695   archiver_list_spec=$lt_cv_ar_at_file
5696 fi
5697
5698
5699
5700
5701
5702
5703
5704 if test -n "$ac_tool_prefix"; then
5705   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}strip; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_STRIP+:} false; then :
5710   $as_echo_n "(cached) " >&6
5711 else
5712   if test -n "$STRIP"; then
5713   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718   IFS=$as_save_IFS
5719   test -z "$as_dir" && as_dir=.
5720     for ac_exec_ext in '' $ac_executable_extensions; do
5721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724     break 2
5725   fi
5726 done
5727   done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 STRIP=$ac_cv_prog_STRIP
5733 if test -n "$STRIP"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5735 $as_echo "$STRIP" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$ac_cv_prog_STRIP"; then
5744   ac_ct_STRIP=$STRIP
5745   # Extract the first word of "strip", so it can be a program name with args.
5746 set dummy strip; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752   if test -n "$ac_ct_STRIP"; then
5753   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758   IFS=$as_save_IFS
5759   test -z "$as_dir" && as_dir=.
5760     for ac_exec_ext in '' $ac_executable_extensions; do
5761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_ac_ct_STRIP="strip"
5763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765   fi
5766 done
5767   done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5773 if test -n "$ac_ct_STRIP"; then
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5775 $as_echo "$ac_ct_STRIP" >&6; }
5776 else
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781   if test "x$ac_ct_STRIP" = x; then
5782     STRIP=":"
5783   else
5784     case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790     STRIP=$ac_ct_STRIP
5791   fi
5792 else
5793   STRIP="$ac_cv_prog_STRIP"
5794 fi
5795
5796 test -z "$STRIP" && STRIP=:
5797
5798
5799
5800
5801
5802
5803 if test -n "$ac_tool_prefix"; then
5804   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_RANLIB+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if test -n "$RANLIB"; then
5812   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826   done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 RANLIB=$ac_cv_prog_RANLIB
5832 if test -n "$RANLIB"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5834 $as_echo "$RANLIB" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841 fi
5842 if test -z "$ac_cv_prog_RANLIB"; then
5843   ac_ct_RANLIB=$RANLIB
5844   # Extract the first word of "ranlib", so it can be a program name with args.
5845 set dummy ranlib; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   if test -n "$ac_ct_RANLIB"; then
5852   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859     for ac_exec_ext in '' $ac_executable_extensions; do
5860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_ac_ct_RANLIB="ranlib"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866   done
5867 IFS=$as_save_IFS
5868
5869 fi
5870 fi
5871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5872 if test -n "$ac_ct_RANLIB"; then
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5874 $as_echo "$ac_ct_RANLIB" >&6; }
5875 else
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 fi
5879
5880   if test "x$ac_ct_RANLIB" = x; then
5881     RANLIB=":"
5882   else
5883     case $cross_compiling:$ac_tool_warned in
5884 yes:)
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5888 esac
5889     RANLIB=$ac_ct_RANLIB
5890   fi
5891 else
5892   RANLIB="$ac_cv_prog_RANLIB"
5893 fi
5894
5895 test -z "$RANLIB" && RANLIB=:
5896
5897
5898
5899
5900
5901
5902 # Determine commands to create old-style static archives.
5903 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5904 old_postinstall_cmds='chmod 644 $oldlib'
5905 old_postuninstall_cmds=
5906
5907 if test -n "$RANLIB"; then
5908   case $host_os in
5909   bitrig* | openbsd*)
5910     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5911     ;;
5912   *)
5913     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5914     ;;
5915   esac
5916   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5917 fi
5918
5919 case $host_os in
5920   darwin*)
5921     lock_old_archive_extraction=yes ;;
5922   *)
5923     lock_old_archive_extraction=no ;;
5924 esac
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 # If no C compiler was specified, use CC.
5965 LTCC=${LTCC-"$CC"}
5966
5967 # If no C compiler flags were specified, use CFLAGS.
5968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5969
5970 # Allow CC to be a program name with arguments.
5971 compiler=$CC
5972
5973
5974 # Check for command to grab the raw symbol name followed by C symbol from nm.
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5976 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5977 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980
5981 # These are sane defaults that work on at least a few old systems.
5982 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5983
5984 # Character class describing NM global symbol codes.
5985 symcode='[BCDEGRST]'
5986
5987 # Regexp to match symbols that can be accessed directly from C.
5988 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5989
5990 # Define system-specific variables.
5991 case $host_os in
5992 aix*)
5993   symcode='[BCDT]'
5994   ;;
5995 cygwin* | mingw* | pw32* | cegcc*)
5996   symcode='[ABCDGISTW]'
5997   ;;
5998 hpux*)
5999   if test ia64 = "$host_cpu"; then
6000     symcode='[ABCDEGRST]'
6001   fi
6002   ;;
6003 irix* | nonstopux*)
6004   symcode='[BCDEGRST]'
6005   ;;
6006 osf*)
6007   symcode='[BCDEGQRST]'
6008   ;;
6009 solaris*)
6010   symcode='[BDRT]'
6011   ;;
6012 sco3.2v5*)
6013   symcode='[DT]'
6014   ;;
6015 sysv4.2uw2*)
6016   symcode='[DT]'
6017   ;;
6018 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6019   symcode='[ABDT]'
6020   ;;
6021 sysv4)
6022   symcode='[DFNSTU]'
6023   ;;
6024 esac
6025
6026 # If we're using GNU nm, then use its standard symbol codes.
6027 case `$NM -V 2>&1` in
6028 *GNU* | *'with BFD'*)
6029   symcode='[ABCDGIRSTW]' ;;
6030 esac
6031
6032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6033   # Gets list of data symbols to import.
6034   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6035   # Adjust the below global symbol transforms to fixup imported variables.
6036   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6037   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6038   lt_c_name_lib_hook="\
6039   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6040   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6041 else
6042   # Disable hooks by default.
6043   lt_cv_sys_global_symbol_to_import=
6044   lt_cdecl_hook=
6045   lt_c_name_hook=
6046   lt_c_name_lib_hook=
6047 fi
6048
6049 # Transform an extracted symbol line into a proper C declaration.
6050 # Some systems (esp. on ia64) link data and code symbols differently,
6051 # so use this general approach.
6052 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6053 $lt_cdecl_hook\
6054 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6055 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6056
6057 # Transform an extracted symbol line into symbol name and symbol address
6058 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6059 $lt_c_name_hook\
6060 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6061 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6062
6063 # Transform an extracted symbol line into symbol name with lib prefix and
6064 # symbol address.
6065 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6066 $lt_c_name_lib_hook\
6067 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6068 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6069 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6070
6071 # Handle CRLF in mingw tool chain
6072 opt_cr=
6073 case $build_os in
6074 mingw*)
6075   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6076   ;;
6077 esac
6078
6079 # Try without a prefix underscore, then with it.
6080 for ac_symprfx in "" "_"; do
6081
6082   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6083   symxfrm="\\1 $ac_symprfx\\2 \\2"
6084
6085   # Write the raw and C identifiers.
6086   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6087     # Fake it for dumpbin and say T for any non-static function,
6088     # D for any global variable and I for any imported variable.
6089     # Also find C++ and __fastcall symbols from MSVC++,
6090     # which start with @ or ?.
6091     lt_cv_sys_global_symbol_pipe="$AWK '"\
6092 "     {last_section=section; section=\$ 3};"\
6093 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6094 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6095 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6096 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6097 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6098 "     \$ 0!~/External *\|/{next};"\
6099 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6100 "     {if(hide[section]) next};"\
6101 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6102 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6103 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6104 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6105 "     ' prfx=^$ac_symprfx"
6106   else
6107     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6108   fi
6109   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6110
6111   # Check to see that the pipe works correctly.
6112   pipe_works=no
6113
6114   rm -f conftest*
6115   cat > conftest.$ac_ext <<_LT_EOF
6116 #ifdef __cplusplus
6117 extern "C" {
6118 #endif
6119 char nm_test_var;
6120 void nm_test_func(void);
6121 void nm_test_func(void){}
6122 #ifdef __cplusplus
6123 }
6124 #endif
6125 int main(){nm_test_var='a';nm_test_func();return(0);}
6126 _LT_EOF
6127
6128   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6129   (eval $ac_compile) 2>&5
6130   ac_status=$?
6131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132   test $ac_status = 0; }; then
6133     # Now try to grab the symbols.
6134     nlist=conftest.nm
6135     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6136   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6137   ac_status=$?
6138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139   test $ac_status = 0; } && test -s "$nlist"; then
6140       # Try sorting and uniquifying the output.
6141       if sort "$nlist" | uniq > "$nlist"T; then
6142         mv -f "$nlist"T "$nlist"
6143       else
6144         rm -f "$nlist"T
6145       fi
6146
6147       # Make sure that we snagged all the symbols we need.
6148       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6149         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6150           cat <<_LT_EOF > conftest.$ac_ext
6151 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6152 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6153 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6154    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6155 # define LT_DLSYM_CONST
6156 #elif defined __osf__
6157 /* This system does not cope well with relocations in const data.  */
6158 # define LT_DLSYM_CONST
6159 #else
6160 # define LT_DLSYM_CONST const
6161 #endif
6162
6163 #ifdef __cplusplus
6164 extern "C" {
6165 #endif
6166
6167 _LT_EOF
6168           # Now generate the symbol file.
6169           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6170
6171           cat <<_LT_EOF >> conftest.$ac_ext
6172
6173 /* The mapping between symbol names and symbols.  */
6174 LT_DLSYM_CONST struct {
6175   const char *name;
6176   void       *address;
6177 }
6178 lt__PROGRAM__LTX_preloaded_symbols[] =
6179 {
6180   { "@PROGRAM@", (void *) 0 },
6181 _LT_EOF
6182           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6183           cat <<\_LT_EOF >> conftest.$ac_ext
6184   {0, (void *) 0}
6185 };
6186
6187 /* This works around a problem in FreeBSD linker */
6188 #ifdef FREEBSD_WORKAROUND
6189 static const void *lt_preloaded_setup() {
6190   return lt__PROGRAM__LTX_preloaded_symbols;
6191 }
6192 #endif
6193
6194 #ifdef __cplusplus
6195 }
6196 #endif
6197 _LT_EOF
6198           # Now try linking the two files.
6199           mv conftest.$ac_objext conftstm.$ac_objext
6200           lt_globsym_save_LIBS=$LIBS
6201           lt_globsym_save_CFLAGS=$CFLAGS
6202           LIBS=conftstm.$ac_objext
6203           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6204           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6205   (eval $ac_link) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6209             pipe_works=yes
6210           fi
6211           LIBS=$lt_globsym_save_LIBS
6212           CFLAGS=$lt_globsym_save_CFLAGS
6213         else
6214           echo "cannot find nm_test_func in $nlist" >&5
6215         fi
6216       else
6217         echo "cannot find nm_test_var in $nlist" >&5
6218       fi
6219     else
6220       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6221     fi
6222   else
6223     echo "$progname: failed program was:" >&5
6224     cat conftest.$ac_ext >&5
6225   fi
6226   rm -rf conftest* conftst*
6227
6228   # Do not use the global_symbol_pipe unless it works.
6229   if test yes = "$pipe_works"; then
6230     break
6231   else
6232     lt_cv_sys_global_symbol_pipe=
6233   fi
6234 done
6235
6236 fi
6237
6238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6239   lt_cv_sys_global_symbol_to_cdecl=
6240 fi
6241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6243 $as_echo "failed" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6246 $as_echo "ok" >&6; }
6247 fi
6248
6249 # Response file support.
6250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6251   nm_file_list_spec='@'
6252 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6253   nm_file_list_spec='@'
6254 fi
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6293 $as_echo_n "checking for sysroot... " >&6; }
6294
6295 # Check whether --with-sysroot was given.
6296 if test "${with_sysroot+set}" = set; then :
6297   withval=$with_sysroot;
6298 else
6299   with_sysroot=no
6300 fi
6301
6302
6303 lt_sysroot=
6304 case $with_sysroot in #(
6305  yes)
6306    if test yes = "$GCC"; then
6307      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6308    fi
6309    ;; #(
6310  /*)
6311    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6312    ;; #(
6313  no|'')
6314    ;; #(
6315  *)
6316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6317 $as_echo "$with_sysroot" >&6; }
6318    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6319    ;;
6320 esac
6321
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6323 $as_echo "${lt_sysroot:-no}" >&6; }
6324
6325
6326
6327
6328
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6330 $as_echo_n "checking for a working dd... " >&6; }
6331 if ${ac_cv_path_lt_DD+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   printf 0123456789abcdef0123456789abcdef >conftest.i
6335 cat conftest.i conftest.i >conftest2.i
6336 : ${lt_DD:=$DD}
6337 if test -z "$lt_DD"; then
6338   ac_path_lt_DD_found=false
6339   # Loop through the user's path and test for each of PROGNAME-LIST
6340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_prog in dd; do
6346     for ac_exec_ext in '' $ac_executable_extensions; do
6347       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6348       as_fn_executable_p "$ac_path_lt_DD" || continue
6349 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6350   cmp -s conftest.i conftest.out \
6351   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6352 fi
6353       $ac_path_lt_DD_found && break 3
6354     done
6355   done
6356   done
6357 IFS=$as_save_IFS
6358   if test -z "$ac_cv_path_lt_DD"; then
6359     :
6360   fi
6361 else
6362   ac_cv_path_lt_DD=$lt_DD
6363 fi
6364
6365 rm -f conftest.i conftest2.i conftest.out
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6368 $as_echo "$ac_cv_path_lt_DD" >&6; }
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6372 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6373 if ${lt_cv_truncate_bin+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   printf 0123456789abcdef0123456789abcdef >conftest.i
6377 cat conftest.i conftest.i >conftest2.i
6378 lt_cv_truncate_bin=
6379 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6380   cmp -s conftest.i conftest.out \
6381   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6382 fi
6383 rm -f conftest.i conftest2.i conftest.out
6384 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6387 $as_echo "$lt_cv_truncate_bin" >&6; }
6388
6389
6390
6391
6392
6393
6394
6395 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6396 func_cc_basename ()
6397 {
6398     for cc_temp in $*""; do
6399       case $cc_temp in
6400         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6401         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6402         \-*) ;;
6403         *) break;;
6404       esac
6405     done
6406     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6407 }
6408
6409 # Check whether --enable-libtool-lock was given.
6410 if test "${enable_libtool_lock+set}" = set; then :
6411   enableval=$enable_libtool_lock;
6412 fi
6413
6414 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6415
6416 # Some flags need to be propagated to the compiler or linker for good
6417 # libtool support.
6418 case $host in
6419 ia64-*-hpux*)
6420   # Find out what ABI is being produced by ac_compile, and set mode
6421   # options accordingly.
6422   echo 'int i;' > conftest.$ac_ext
6423   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6424   (eval $ac_compile) 2>&5
6425   ac_status=$?
6426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427   test $ac_status = 0; }; then
6428     case `/usr/bin/file conftest.$ac_objext` in
6429       *ELF-32*)
6430         HPUX_IA64_MODE=32
6431         ;;
6432       *ELF-64*)
6433         HPUX_IA64_MODE=64
6434         ;;
6435     esac
6436   fi
6437   rm -rf conftest*
6438   ;;
6439 *-*-irix6*)
6440   # Find out what ABI is being produced by ac_compile, and set linker
6441   # options accordingly.
6442   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6443   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444   (eval $ac_compile) 2>&5
6445   ac_status=$?
6446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447   test $ac_status = 0; }; then
6448     if test yes = "$lt_cv_prog_gnu_ld"; then
6449       case `/usr/bin/file conftest.$ac_objext` in
6450         *32-bit*)
6451           LD="${LD-ld} -melf32bsmip"
6452           ;;
6453         *N32*)
6454           LD="${LD-ld} -melf32bmipn32"
6455           ;;
6456         *64-bit*)
6457           LD="${LD-ld} -melf64bmip"
6458         ;;
6459       esac
6460     else
6461       case `/usr/bin/file conftest.$ac_objext` in
6462         *32-bit*)
6463           LD="${LD-ld} -32"
6464           ;;
6465         *N32*)
6466           LD="${LD-ld} -n32"
6467           ;;
6468         *64-bit*)
6469           LD="${LD-ld} -64"
6470           ;;
6471       esac
6472     fi
6473   fi
6474   rm -rf conftest*
6475   ;;
6476
6477 mips64*-*linux*)
6478   # Find out what ABI is being produced by ac_compile, and set linker
6479   # options accordingly.
6480   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482   (eval $ac_compile) 2>&5
6483   ac_status=$?
6484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485   test $ac_status = 0; }; then
6486     emul=elf
6487     case `/usr/bin/file conftest.$ac_objext` in
6488       *32-bit*)
6489         emul="${emul}32"
6490         ;;
6491       *64-bit*)
6492         emul="${emul}64"
6493         ;;
6494     esac
6495     case `/usr/bin/file conftest.$ac_objext` in
6496       *MSB*)
6497         emul="${emul}btsmip"
6498         ;;
6499       *LSB*)
6500         emul="${emul}ltsmip"
6501         ;;
6502     esac
6503     case `/usr/bin/file conftest.$ac_objext` in
6504       *N32*)
6505         emul="${emul}n32"
6506         ;;
6507     esac
6508     LD="${LD-ld} -m $emul"
6509   fi
6510   rm -rf conftest*
6511   ;;
6512
6513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6515   # Find out what ABI is being produced by ac_compile, and set linker
6516   # options accordingly.  Note that the listed cases only cover the
6517   # situations where additional linker options are needed (such as when
6518   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6519   # vice versa); the common cases where no linker options are needed do
6520   # not appear in the list.
6521   echo 'int i;' > conftest.$ac_ext
6522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523   (eval $ac_compile) 2>&5
6524   ac_status=$?
6525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526   test $ac_status = 0; }; then
6527     case `/usr/bin/file conftest.o` in
6528       *32-bit*)
6529         case $host in
6530           x86_64-*kfreebsd*-gnu)
6531             LD="${LD-ld} -m elf_i386_fbsd"
6532             ;;
6533           x86_64-*linux*)
6534             case `/usr/bin/file conftest.o` in
6535               *x86-64*)
6536                 LD="${LD-ld} -m elf32_x86_64"
6537                 ;;
6538               *)
6539                 LD="${LD-ld} -m elf_i386"
6540                 ;;
6541             esac
6542             ;;
6543           powerpc64le-*linux*)
6544             LD="${LD-ld} -m elf32lppclinux"
6545             ;;
6546           powerpc64-*linux*)
6547             LD="${LD-ld} -m elf32ppclinux"
6548             ;;
6549           s390x-*linux*)
6550             LD="${LD-ld} -m elf_s390"
6551             ;;
6552           sparc64-*linux*)
6553             LD="${LD-ld} -m elf32_sparc"
6554             ;;
6555         esac
6556         ;;
6557       *64-bit*)
6558         case $host in
6559           x86_64-*kfreebsd*-gnu)
6560             LD="${LD-ld} -m elf_x86_64_fbsd"
6561             ;;
6562           x86_64-*linux*)
6563             LD="${LD-ld} -m elf_x86_64"
6564             ;;
6565           powerpcle-*linux*)
6566             LD="${LD-ld} -m elf64lppc"
6567             ;;
6568           powerpc-*linux*)
6569             LD="${LD-ld} -m elf64ppc"
6570             ;;
6571           s390*-*linux*|s390*-*tpf*)
6572             LD="${LD-ld} -m elf64_s390"
6573             ;;
6574           sparc*-*linux*)
6575             LD="${LD-ld} -m elf64_sparc"
6576             ;;
6577         esac
6578         ;;
6579     esac
6580   fi
6581   rm -rf conftest*
6582   ;;
6583
6584 *-*-sco3.2v5*)
6585   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6586   SAVE_CFLAGS=$CFLAGS
6587   CFLAGS="$CFLAGS -belf"
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6590 if ${lt_cv_cc_needs_belf+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   ac_ext=c
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h.  */
6601
6602 int
6603 main ()
6604 {
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611   lt_cv_cc_needs_belf=yes
6612 else
6613   lt_cv_cc_needs_belf=no
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext \
6616     conftest$ac_exeext conftest.$ac_ext
6617      ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626   if test yes != "$lt_cv_cc_needs_belf"; then
6627     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628     CFLAGS=$SAVE_CFLAGS
6629   fi
6630   ;;
6631 *-*solaris*)
6632   # Find out what ABI is being produced by ac_compile, and set linker
6633   # options accordingly.
6634   echo 'int i;' > conftest.$ac_ext
6635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636   (eval $ac_compile) 2>&5
6637   ac_status=$?
6638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639   test $ac_status = 0; }; then
6640     case `/usr/bin/file conftest.o` in
6641     *64-bit*)
6642       case $lt_cv_prog_gnu_ld in
6643       yes*)
6644         case $host in
6645         i?86-*-solaris*|x86_64-*-solaris*)
6646           LD="${LD-ld} -m elf_x86_64"
6647           ;;
6648         sparc*-*-solaris*)
6649           LD="${LD-ld} -m elf64_sparc"
6650           ;;
6651         esac
6652         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6653         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6654           LD=${LD-ld}_sol2
6655         fi
6656         ;;
6657       *)
6658         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6659           LD="${LD-ld} -64"
6660         fi
6661         ;;
6662       esac
6663       ;;
6664     esac
6665   fi
6666   rm -rf conftest*
6667   ;;
6668 esac
6669
6670 need_locks=$enable_libtool_lock
6671
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}mt; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$MANIFEST_TOOL"; then
6681   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6701 if test -n "$MANIFEST_TOOL"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6703 $as_echo "$MANIFEST_TOOL" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709
6710 fi
6711 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6712   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6713   # Extract the first word of "mt", so it can be a program name with args.
6714 set dummy mt; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   if test -n "$ac_ct_MANIFEST_TOOL"; then
6721   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728     for ac_exec_ext in '' $ac_executable_extensions; do
6729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735   done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6741 if test -n "$ac_ct_MANIFEST_TOOL"; then
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6743 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6744 else
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6747 fi
6748
6749   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6750     MANIFEST_TOOL=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6757 esac
6758     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6759   fi
6760 else
6761   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6762 fi
6763
6764 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6766 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6767 if ${lt_cv_path_mainfest_tool+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   lt_cv_path_mainfest_tool=no
6771   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6772   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6773   cat conftest.err >&5
6774   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6775     lt_cv_path_mainfest_tool=yes
6776   fi
6777   rm -f conftest*
6778 fi
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6780 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6781 if test yes != "$lt_cv_path_mainfest_tool"; then
6782   MANIFEST_TOOL=:
6783 fi
6784
6785
6786
6787
6788
6789
6790   case $host_os in
6791     rhapsody* | darwin*)
6792     if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$DSYMUTIL"; then
6801   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6821 if test -n "$DSYMUTIL"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6823 $as_echo "$DSYMUTIL" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_DSYMUTIL"; then
6832   ac_ct_DSYMUTIL=$DSYMUTIL
6833   # Extract the first word of "dsymutil", so it can be a program name with args.
6834 set dummy dsymutil; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_DSYMUTIL"; then
6841   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6861 if test -n "$ac_ct_DSYMUTIL"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6863 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_DSYMUTIL" = x; then
6870     DSYMUTIL=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     DSYMUTIL=$ac_ct_DSYMUTIL
6879   fi
6880 else
6881   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6882 fi
6883
6884     if test -n "$ac_tool_prefix"; then
6885   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_NMEDIT+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   if test -n "$NMEDIT"; then
6893   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900     for ac_exec_ext in '' $ac_executable_extensions; do
6901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907   done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 NMEDIT=$ac_cv_prog_NMEDIT
6913 if test -n "$NMEDIT"; then
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6915 $as_echo "$NMEDIT" >&6; }
6916 else
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921
6922 fi
6923 if test -z "$ac_cv_prog_NMEDIT"; then
6924   ac_ct_NMEDIT=$NMEDIT
6925   # Extract the first word of "nmedit", so it can be a program name with args.
6926 set dummy nmedit; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   if test -n "$ac_ct_NMEDIT"; then
6933   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6953 if test -n "$ac_ct_NMEDIT"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6955 $as_echo "$ac_ct_NMEDIT" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961   if test "x$ac_ct_NMEDIT" = x; then
6962     NMEDIT=":"
6963   else
6964     case $cross_compiling:$ac_tool_warned in
6965 yes:)
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     NMEDIT=$ac_ct_NMEDIT
6971   fi
6972 else
6973   NMEDIT="$ac_cv_prog_NMEDIT"
6974 fi
6975
6976     if test -n "$ac_tool_prefix"; then
6977   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_LIPO+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$LIPO"; then
6985   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 LIPO=$ac_cv_prog_LIPO
7005 if test -n "$LIPO"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7007 $as_echo "$LIPO" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_LIPO"; then
7016   ac_ct_LIPO=$LIPO
7017   # Extract the first word of "lipo", so it can be a program name with args.
7018 set dummy lipo; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$ac_ct_LIPO"; then
7025   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_ac_ct_LIPO="lipo"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7045 if test -n "$ac_ct_LIPO"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7047 $as_echo "$ac_ct_LIPO" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053   if test "x$ac_ct_LIPO" = x; then
7054     LIPO=":"
7055   else
7056     case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062     LIPO=$ac_ct_LIPO
7063   fi
7064 else
7065   LIPO="$ac_cv_prog_LIPO"
7066 fi
7067
7068     if test -n "$ac_tool_prefix"; then
7069   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}otool; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_OTOOL+:} false; then :
7074   $as_echo_n "(cached) " >&6
7075 else
7076   if test -n "$OTOOL"; then
7077   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084     for ac_exec_ext in '' $ac_executable_extensions; do
7085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091   done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 OTOOL=$ac_cv_prog_OTOOL
7097 if test -n "$OTOOL"; then
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7099 $as_echo "$OTOOL" >&6; }
7100 else
7101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_OTOOL"; then
7108   ac_ct_OTOOL=$OTOOL
7109   # Extract the first word of "otool", so it can be a program name with args.
7110 set dummy otool; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7114   $as_echo_n "(cached) " >&6
7115 else
7116   if test -n "$ac_ct_OTOOL"; then
7117   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122   IFS=$as_save_IFS
7123   test -z "$as_dir" && as_dir=.
7124     for ac_exec_ext in '' $ac_executable_extensions; do
7125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126     ac_cv_prog_ac_ct_OTOOL="otool"
7127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129   fi
7130 done
7131   done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7137 if test -n "$ac_ct_OTOOL"; then
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7139 $as_echo "$ac_ct_OTOOL" >&6; }
7140 else
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145   if test "x$ac_ct_OTOOL" = x; then
7146     OTOOL=":"
7147   else
7148     case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154     OTOOL=$ac_ct_OTOOL
7155   fi
7156 else
7157   OTOOL="$ac_cv_prog_OTOOL"
7158 fi
7159
7160     if test -n "$ac_tool_prefix"; then
7161   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_OTOOL64+:} false; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   if test -n "$OTOOL64"; then
7169   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 OTOOL64=$ac_cv_prog_OTOOL64
7189 if test -n "$OTOOL64"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7191 $as_echo "$OTOOL64" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_OTOOL64"; then
7200   ac_ct_OTOOL64=$OTOOL64
7201   # Extract the first word of "otool64", so it can be a program name with args.
7202 set dummy otool64; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$ac_ct_OTOOL64"; then
7209   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218     ac_cv_prog_ac_ct_OTOOL64="otool64"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7229 if test -n "$ac_ct_OTOOL64"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7231 $as_echo "$ac_ct_OTOOL64" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237   if test "x$ac_ct_OTOOL64" = x; then
7238     OTOOL64=":"
7239   else
7240     case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     OTOOL64=$ac_ct_OTOOL64
7247   fi
7248 else
7249   OTOOL64="$ac_cv_prog_OTOOL64"
7250 fi
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7279 $as_echo_n "checking for -single_module linker flag... " >&6; }
7280 if ${lt_cv_apple_cc_single_mod+:} false; then :
7281   $as_echo_n "(cached) " >&6
7282 else
7283   lt_cv_apple_cc_single_mod=no
7284       if test -z "$LT_MULTI_MODULE"; then
7285         # By default we will add the -single_module flag. You can override
7286         # by either setting the environment variable LT_MULTI_MODULE
7287         # non-empty at configure time, or by adding -multi_module to the
7288         # link flags.
7289         rm -rf libconftest.dylib*
7290         echo "int foo(void){return 1;}" > conftest.c
7291         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c" >&5
7293         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7294           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7295         _lt_result=$?
7296         # If there is a non-empty error log, and "single_module"
7297         # appears in it, assume the flag caused a linker warning
7298         if test -s conftest.err && $GREP single_module conftest.err; then
7299           cat conftest.err >&5
7300         # Otherwise, if the output was created with a 0 exit code from
7301         # the compiler, it worked.
7302         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7303           lt_cv_apple_cc_single_mod=yes
7304         else
7305           cat conftest.err >&5
7306         fi
7307         rm -rf libconftest.dylib*
7308         rm -f conftest.*
7309       fi
7310 fi
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7312 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7313
7314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7315 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7316 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   lt_cv_ld_exported_symbols_list=no
7320       save_LDFLAGS=$LDFLAGS
7321       echo "_main" > conftest.sym
7322       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7323       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h.  */
7325
7326 int
7327 main ()
7328 {
7329
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_c_try_link "$LINENO"; then :
7335   lt_cv_ld_exported_symbols_list=yes
7336 else
7337   lt_cv_ld_exported_symbols_list=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext \
7340     conftest$ac_exeext conftest.$ac_ext
7341         LDFLAGS=$save_LDFLAGS
7342
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7346
7347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7348 $as_echo_n "checking for -force_load linker flag... " >&6; }
7349 if ${lt_cv_ld_force_load+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   lt_cv_ld_force_load=no
7353       cat > conftest.c << _LT_EOF
7354 int forced_loaded() { return 2;}
7355 _LT_EOF
7356       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7357       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7358       echo "$AR cru libconftest.a conftest.o" >&5
7359       $AR cru libconftest.a conftest.o 2>&5
7360       echo "$RANLIB libconftest.a" >&5
7361       $RANLIB libconftest.a 2>&5
7362       cat > conftest.c << _LT_EOF
7363 int main() { return 0;}
7364 _LT_EOF
7365       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7366       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7367       _lt_result=$?
7368       if test -s conftest.err && $GREP force_load conftest.err; then
7369         cat conftest.err >&5
7370       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7371         lt_cv_ld_force_load=yes
7372       else
7373         cat conftest.err >&5
7374       fi
7375         rm -f conftest.err libconftest.a conftest conftest.c
7376         rm -rf conftest.dSYM
7377
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7380 $as_echo "$lt_cv_ld_force_load" >&6; }
7381     case $host_os in
7382     rhapsody* | darwin1.[012])
7383       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7384     darwin1.*)
7385       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7386     darwin*) # darwin 5.x on
7387       # if running on 10.5 or later, the deployment target defaults
7388       # to the OS version, if on x86, and 10.4, the deployment
7389       # target defaults to 10.4. Don't you love it?
7390       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7391         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7392           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7393         10.[012][,.]*)
7394           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7395         10.*)
7396           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7397       esac
7398     ;;
7399   esac
7400     if test yes = "$lt_cv_apple_cc_single_mod"; then
7401       _lt_dar_single_mod='$single_module'
7402     fi
7403     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7404       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7405     else
7406       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7407     fi
7408     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7409       _lt_dsymutil='~$DSYMUTIL $lib || :'
7410     else
7411       _lt_dsymutil=
7412     fi
7413     ;;
7414   esac
7415
7416 # func_munge_path_list VARIABLE PATH
7417 # -----------------------------------
7418 # VARIABLE is name of variable containing _space_ separated list of
7419 # directories to be munged by the contents of PATH, which is string
7420 # having a format:
7421 # "DIR[:DIR]:"
7422 #       string "DIR[ DIR]" will be prepended to VARIABLE
7423 # ":DIR[:DIR]"
7424 #       string "DIR[ DIR]" will be appended to VARIABLE
7425 # "DIRP[:DIRP]::[DIRA:]DIRA"
7426 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7427 #       "DIRA[ DIRA]" will be appended to VARIABLE
7428 # "DIR[:DIR]"
7429 #       VARIABLE will be replaced by "DIR[ DIR]"
7430 func_munge_path_list ()
7431 {
7432     case x$2 in
7433     x)
7434         ;;
7435     *:)
7436         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7437         ;;
7438     x:*)
7439         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7440         ;;
7441     *::*)
7442         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7443         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7444         ;;
7445     *)
7446         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7447         ;;
7448     esac
7449 }
7450
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7458 # On Suns, sometimes $CPP names a directory.
7459 if test -n "$CPP" && test -d "$CPP"; then
7460   CPP=
7461 fi
7462 if test -z "$CPP"; then
7463   if ${ac_cv_prog_CPP+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466       # Double quotes because CPP needs to be expanded
7467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7468     do
7469       ac_preproc_ok=false
7470 for ac_c_preproc_warn_flag in '' yes
7471 do
7472   # Use a header file that comes with gcc, so configuring glibc
7473   # with a fresh cross-compiler works.
7474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475   # <limits.h> exists even on freestanding compilers.
7476   # On the NeXT, cc -E runs the code through the compiler's parser,
7477   # not just through cpp. "Syntax error" is here to catch this case.
7478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480 #ifdef __STDC__
7481 # include <limits.h>
7482 #else
7483 # include <assert.h>
7484 #endif
7485                      Syntax error
7486 _ACEOF
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7488
7489 else
7490   # Broken: fails on valid input.
7491 continue
7492 fi
7493 rm -f conftest.err conftest.i conftest.$ac_ext
7494
7495   # OK, works on sane cases.  Now check whether nonexistent headers
7496   # can be detected and how.
7497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499 #include <ac_nonexistent.h>
7500 _ACEOF
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502   # Broken: success on invalid input.
7503 continue
7504 else
7505   # Passes both tests.
7506 ac_preproc_ok=:
7507 break
7508 fi
7509 rm -f conftest.err conftest.i conftest.$ac_ext
7510
7511 done
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.i conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7515   break
7516 fi
7517
7518     done
7519     ac_cv_prog_CPP=$CPP
7520
7521 fi
7522   CPP=$ac_cv_prog_CPP
7523 else
7524   ac_cv_prog_CPP=$CPP
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7527 $as_echo "$CPP" >&6; }
7528 ac_preproc_ok=false
7529 for ac_c_preproc_warn_flag in '' yes
7530 do
7531   # Use a header file that comes with gcc, so configuring glibc
7532   # with a fresh cross-compiler works.
7533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534   # <limits.h> exists even on freestanding compilers.
7535   # On the NeXT, cc -E runs the code through the compiler's parser,
7536   # not just through cpp. "Syntax error" is here to catch this case.
7537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h.  */
7539 #ifdef __STDC__
7540 # include <limits.h>
7541 #else
7542 # include <assert.h>
7543 #endif
7544                      Syntax error
7545 _ACEOF
7546 if ac_fn_c_try_cpp "$LINENO"; then :
7547
7548 else
7549   # Broken: fails on valid input.
7550 continue
7551 fi
7552 rm -f conftest.err conftest.i conftest.$ac_ext
7553
7554   # OK, works on sane cases.  Now check whether nonexistent headers
7555   # can be detected and how.
7556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558 #include <ac_nonexistent.h>
7559 _ACEOF
7560 if ac_fn_c_try_cpp "$LINENO"; then :
7561   # Broken: success on invalid input.
7562 continue
7563 else
7564   # Passes both tests.
7565 ac_preproc_ok=:
7566 break
7567 fi
7568 rm -f conftest.err conftest.i conftest.$ac_ext
7569
7570 done
7571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7572 rm -f conftest.i conftest.err conftest.$ac_ext
7573 if $ac_preproc_ok; then :
7574
7575 else
7576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7579 See \`config.log' for more details" "$LINENO" 5; }
7580 fi
7581
7582 ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7590 $as_echo_n "checking for ANSI C header files... " >&6; }
7591 if ${ac_cv_header_stdc+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596 #include <stdlib.h>
7597 #include <stdarg.h>
7598 #include <string.h>
7599 #include <float.h>
7600
7601 int
7602 main ()
7603 {
7604
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610   ac_cv_header_stdc=yes
7611 else
7612   ac_cv_header_stdc=no
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615
7616 if test $ac_cv_header_stdc = yes; then
7617   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h.  */
7620 #include <string.h>
7621
7622 _ACEOF
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624   $EGREP "memchr" >/dev/null 2>&1; then :
7625
7626 else
7627   ac_cv_header_stdc=no
7628 fi
7629 rm -f conftest*
7630
7631 fi
7632
7633 if test $ac_cv_header_stdc = yes; then
7634   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637 #include <stdlib.h>
7638
7639 _ACEOF
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641   $EGREP "free" >/dev/null 2>&1; then :
7642
7643 else
7644   ac_cv_header_stdc=no
7645 fi
7646 rm -f conftest*
7647
7648 fi
7649
7650 if test $ac_cv_header_stdc = yes; then
7651   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7652   if test "$cross_compiling" = yes; then :
7653   :
7654 else
7655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657 #include <ctype.h>
7658 #include <stdlib.h>
7659 #if ((' ' & 0x0FF) == 0x020)
7660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7662 #else
7663 # define ISLOWER(c) \
7664                    (('a' <= (c) && (c) <= 'i') \
7665                      || ('j' <= (c) && (c) <= 'r') \
7666                      || ('s' <= (c) && (c) <= 'z'))
7667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #endif
7669
7670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7671 int
7672 main ()
7673 {
7674   int i;
7675   for (i = 0; i < 256; i++)
7676     if (XOR (islower (i), ISLOWER (i))
7677         || toupper (i) != TOUPPER (i))
7678       return 2;
7679   return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_run "$LINENO"; then :
7683
7684 else
7685   ac_cv_header_stdc=no
7686 fi
7687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7688   conftest.$ac_objext conftest.beam conftest.$ac_ext
7689 fi
7690
7691 fi
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7694 $as_echo "$ac_cv_header_stdc" >&6; }
7695 if test $ac_cv_header_stdc = yes; then
7696
7697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7698
7699 fi
7700
7701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7703                   inttypes.h stdint.h unistd.h
7704 do :
7705   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7707 "
7708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7709   cat >>confdefs.h <<_ACEOF
7710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7711 _ACEOF
7712
7713 fi
7714
7715 done
7716
7717
7718 for ac_header in dlfcn.h
7719 do :
7720   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7721 "
7722 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7723   cat >>confdefs.h <<_ACEOF
7724 #define HAVE_DLFCN_H 1
7725 _ACEOF
7726
7727 fi
7728
7729 done
7730
7731
7732
7733
7734
7735 # Set options
7736 enable_dlopen=yes
7737 enable_win32_dll=yes
7738
7739 case $host in
7740 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7741   if test -n "$ac_tool_prefix"; then
7742   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7743 set dummy ${ac_tool_prefix}as; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_AS+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   if test -n "$AS"; then
7750   ac_cv_prog_AS="$AS" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757     for ac_exec_ext in '' $ac_executable_extensions; do
7758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759     ac_cv_prog_AS="${ac_tool_prefix}as"
7760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764   done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 AS=$ac_cv_prog_AS
7770 if test -n "$AS"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7772 $as_echo "$AS" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778
7779 fi
7780 if test -z "$ac_cv_prog_AS"; then
7781   ac_ct_AS=$AS
7782   # Extract the first word of "as", so it can be a program name with args.
7783 set dummy as; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7787   $as_echo_n "(cached) " >&6
7788 else
7789   if test -n "$ac_ct_AS"; then
7790   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795   IFS=$as_save_IFS
7796   test -z "$as_dir" && as_dir=.
7797     for ac_exec_ext in '' $ac_executable_extensions; do
7798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799     ac_cv_prog_ac_ct_AS="as"
7800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801     break 2
7802   fi
7803 done
7804   done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7810 if test -n "$ac_ct_AS"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7812 $as_echo "$ac_ct_AS" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818   if test "x$ac_ct_AS" = x; then
7819     AS="false"
7820   else
7821     case $cross_compiling:$ac_tool_warned in
7822 yes:)
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned=yes ;;
7826 esac
7827     AS=$ac_ct_AS
7828   fi
7829 else
7830   AS="$ac_cv_prog_AS"
7831 fi
7832
7833   if test -n "$ac_tool_prefix"; then
7834   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_DLLTOOL+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   if test -n "$DLLTOOL"; then
7842   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849     for ac_exec_ext in '' $ac_executable_extensions; do
7850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856   done
7857 IFS=$as_save_IFS
7858
7859 fi
7860 fi
7861 DLLTOOL=$ac_cv_prog_DLLTOOL
7862 if test -n "$DLLTOOL"; then
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7864 $as_echo "$DLLTOOL" >&6; }
7865 else
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 fi
7869
7870
7871 fi
7872 if test -z "$ac_cv_prog_DLLTOOL"; then
7873   ac_ct_DLLTOOL=$DLLTOOL
7874   # Extract the first word of "dlltool", so it can be a program name with args.
7875 set dummy dlltool; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   if test -n "$ac_ct_DLLTOOL"; then
7882   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887   IFS=$as_save_IFS
7888   test -z "$as_dir" && as_dir=.
7889     for ac_exec_ext in '' $ac_executable_extensions; do
7890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893     break 2
7894   fi
7895 done
7896   done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7902 if test -n "$ac_ct_DLLTOOL"; then
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7904 $as_echo "$ac_ct_DLLTOOL" >&6; }
7905 else
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910   if test "x$ac_ct_DLLTOOL" = x; then
7911     DLLTOOL="false"
7912   else
7913     case $cross_compiling:$ac_tool_warned in
7914 yes:)
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned=yes ;;
7918 esac
7919     DLLTOOL=$ac_ct_DLLTOOL
7920   fi
7921 else
7922   DLLTOOL="$ac_cv_prog_DLLTOOL"
7923 fi
7924
7925   if test -n "$ac_tool_prefix"; then
7926   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_OBJDUMP+:} false; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   if test -n "$OBJDUMP"; then
7934   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939   IFS=$as_save_IFS
7940   test -z "$as_dir" && as_dir=.
7941     for ac_exec_ext in '' $ac_executable_extensions; do
7942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945     break 2
7946   fi
7947 done
7948   done
7949 IFS=$as_save_IFS
7950
7951 fi
7952 fi
7953 OBJDUMP=$ac_cv_prog_OBJDUMP
7954 if test -n "$OBJDUMP"; then
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7956 $as_echo "$OBJDUMP" >&6; }
7957 else
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963 fi
7964 if test -z "$ac_cv_prog_OBJDUMP"; then
7965   ac_ct_OBJDUMP=$OBJDUMP
7966   # Extract the first word of "objdump", so it can be a program name with args.
7967 set dummy objdump; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   if test -n "$ac_ct_OBJDUMP"; then
7974   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979   IFS=$as_save_IFS
7980   test -z "$as_dir" && as_dir=.
7981     for ac_exec_ext in '' $ac_executable_extensions; do
7982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985     break 2
7986   fi
7987 done
7988   done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7994 if test -n "$ac_ct_OBJDUMP"; then
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7996 $as_echo "$ac_ct_OBJDUMP" >&6; }
7997 else
7998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002   if test "x$ac_ct_OBJDUMP" = x; then
8003     OBJDUMP="false"
8004   else
8005     case $cross_compiling:$ac_tool_warned in
8006 yes:)
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8010 esac
8011     OBJDUMP=$ac_ct_OBJDUMP
8012   fi
8013 else
8014   OBJDUMP="$ac_cv_prog_OBJDUMP"
8015 fi
8016
8017   ;;
8018 esac
8019
8020 test -z "$AS" && AS=as
8021
8022
8023
8024
8025
8026 test -z "$DLLTOOL" && DLLTOOL=dlltool
8027
8028
8029
8030
8031
8032 test -z "$OBJDUMP" && OBJDUMP=objdump
8033
8034
8035
8036
8037 # Check whether --enable-static was given.
8038 if test "${enable_static+set}" = set; then :
8039   enableval=$enable_static; p=${PACKAGE-default}
8040     case $enableval in
8041     yes) enable_static=yes ;;
8042     no) enable_static=no ;;
8043     *)
8044      enable_static=no
8045       # Look at the argument we got.  We use all the common list separators.
8046       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8047       for pkg in $enableval; do
8048         IFS=$lt_save_ifs
8049         if test "X$pkg" = "X$p"; then
8050           enable_static=yes
8051         fi
8052       done
8053       IFS=$lt_save_ifs
8054       ;;
8055     esac
8056 else
8057   enable_static=no
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071             # Check whether --enable-shared was given.
8072 if test "${enable_shared+set}" = set; then :
8073   enableval=$enable_shared; p=${PACKAGE-default}
8074     case $enableval in
8075     yes) enable_shared=yes ;;
8076     no) enable_shared=no ;;
8077     *)
8078       enable_shared=no
8079       # Look at the argument we got.  We use all the common list separators.
8080       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8081       for pkg in $enableval; do
8082         IFS=$lt_save_ifs
8083         if test "X$pkg" = "X$p"; then
8084           enable_shared=yes
8085         fi
8086       done
8087       IFS=$lt_save_ifs
8088       ;;
8089     esac
8090 else
8091   enable_shared=yes
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104 # Check whether --with-pic was given.
8105 if test "${with_pic+set}" = set; then :
8106   withval=$with_pic; lt_p=${PACKAGE-default}
8107     case $withval in
8108     yes|no) pic_mode=$withval ;;
8109     *)
8110       pic_mode=default
8111       # Look at the argument we got.  We use all the common list separators.
8112       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8113       for lt_pkg in $withval; do
8114         IFS=$lt_save_ifs
8115         if test "X$lt_pkg" = "X$lt_p"; then
8116           pic_mode=yes
8117         fi
8118       done
8119       IFS=$lt_save_ifs
8120       ;;
8121     esac
8122 else
8123   pic_mode=default
8124 fi
8125
8126
8127
8128
8129
8130
8131
8132
8133   # Check whether --enable-fast-install was given.
8134 if test "${enable_fast_install+set}" = set; then :
8135   enableval=$enable_fast_install; p=${PACKAGE-default}
8136     case $enableval in
8137     yes) enable_fast_install=yes ;;
8138     no) enable_fast_install=no ;;
8139     *)
8140       enable_fast_install=no
8141       # Look at the argument we got.  We use all the common list separators.
8142       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8143       for pkg in $enableval; do
8144         IFS=$lt_save_ifs
8145         if test "X$pkg" = "X$p"; then
8146           enable_fast_install=yes
8147         fi
8148       done
8149       IFS=$lt_save_ifs
8150       ;;
8151     esac
8152 else
8153   enable_fast_install=yes
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163   shared_archive_member_spec=
8164 case $host,$enable_shared in
8165 power*-*-aix[5-9]*,yes)
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8167 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8168
8169 # Check whether --with-aix-soname was given.
8170 if test "${with_aix_soname+set}" = set; then :
8171   withval=$with_aix_soname; case $withval in
8172     aix|svr4|both)
8173       ;;
8174     *)
8175       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8176       ;;
8177     esac
8178     lt_cv_with_aix_soname=$with_aix_soname
8179 else
8180   if ${lt_cv_with_aix_soname+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   lt_cv_with_aix_soname=aix
8184 fi
8185
8186     with_aix_soname=$lt_cv_with_aix_soname
8187 fi
8188
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8190 $as_echo "$with_aix_soname" >&6; }
8191   if test aix != "$with_aix_soname"; then
8192     # For the AIX way of multilib, we name the shared archive member
8193     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8194     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8195     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8196     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8197     if test 64 = "${OBJECT_MODE-32}"; then
8198       shared_archive_member_spec=shr_64
8199     else
8200       shared_archive_member_spec=shr
8201     fi
8202   fi
8203   ;;
8204 *)
8205   with_aix_soname=aix
8206   ;;
8207 esac
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218 # This can be used to rebuild libtool when needed
8219 LIBTOOL_DEPS=$ltmain
8220
8221 # Always use our own libtool.
8222 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 test -z "$LN_S" && LN_S="ln -s"
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 if test -n "${ZSH_VERSION+set}"; then
8269    setopt NO_GLOB_SUBST
8270 fi
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8273 $as_echo_n "checking for objdir... " >&6; }
8274 if ${lt_cv_objdir+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   rm -f .libs 2>/dev/null
8278 mkdir .libs 2>/dev/null
8279 if test -d .libs; then
8280   lt_cv_objdir=.libs
8281 else
8282   # MS-DOS does not allow filenames that begin with a dot.
8283   lt_cv_objdir=_libs
8284 fi
8285 rmdir .libs 2>/dev/null
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8288 $as_echo "$lt_cv_objdir" >&6; }
8289 objdir=$lt_cv_objdir
8290
8291
8292
8293
8294
8295 cat >>confdefs.h <<_ACEOF
8296 #define LT_OBJDIR "$lt_cv_objdir/"
8297 _ACEOF
8298
8299
8300
8301
8302 case $host_os in
8303 aix3*)
8304   # AIX sometimes has problems with the GCC collect2 program.  For some
8305   # reason, if we set the COLLECT_NAMES environment variable, the problems
8306   # vanish in a puff of smoke.
8307   if test set != "${COLLECT_NAMES+set}"; then
8308     COLLECT_NAMES=
8309     export COLLECT_NAMES
8310   fi
8311   ;;
8312 esac
8313
8314 # Global variables:
8315 ofile=libtool
8316 can_build_shared=yes
8317
8318 # All known linkers require a '.a' archive for static linking (except MSVC,
8319 # which needs '.lib').
8320 libext=a
8321
8322 with_gnu_ld=$lt_cv_prog_gnu_ld
8323
8324 old_CC=$CC
8325 old_CFLAGS=$CFLAGS
8326
8327 # Set sane defaults for various variables
8328 test -z "$CC" && CC=cc
8329 test -z "$LTCC" && LTCC=$CC
8330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8331 test -z "$LD" && LD=ld
8332 test -z "$ac_objext" && ac_objext=o
8333
8334 func_cc_basename $compiler
8335 cc_basename=$func_cc_basename_result
8336
8337
8338 # Only perform the check for file, if the check method requires it
8339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8340 case $deplibs_check_method in
8341 file_magic*)
8342   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8344 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8345 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   case $MAGIC_CMD in
8349 [\\/*] |  ?:[\\/]*)
8350   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8351   ;;
8352 *)
8353   lt_save_MAGIC_CMD=$MAGIC_CMD
8354   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8355   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8356   for ac_dir in $ac_dummy; do
8357     IFS=$lt_save_ifs
8358     test -z "$ac_dir" && ac_dir=.
8359     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8360       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8361       if test -n "$file_magic_test_file"; then
8362         case $deplibs_check_method in
8363         "file_magic "*)
8364           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8365           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8366           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8367             $EGREP "$file_magic_regex" > /dev/null; then
8368             :
8369           else
8370             cat <<_LT_EOF 1>&2
8371
8372 *** Warning: the command libtool uses to detect shared libraries,
8373 *** $file_magic_cmd, produces output that libtool cannot recognize.
8374 *** The result is that libtool may fail to recognize shared libraries
8375 *** as such.  This will affect the creation of libtool libraries that
8376 *** depend on shared libraries, but programs linked with such libtool
8377 *** libraries will work regardless of this problem.  Nevertheless, you
8378 *** may want to report the problem to your system manager and/or to
8379 *** bug-libtool@gnu.org
8380
8381 _LT_EOF
8382           fi ;;
8383         esac
8384       fi
8385       break
8386     fi
8387   done
8388   IFS=$lt_save_ifs
8389   MAGIC_CMD=$lt_save_MAGIC_CMD
8390   ;;
8391 esac
8392 fi
8393
8394 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8395 if test -n "$MAGIC_CMD"; then
8396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8397 $as_echo "$MAGIC_CMD" >&6; }
8398 else
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8401 fi
8402
8403
8404
8405
8406
8407 if test -z "$lt_cv_path_MAGIC_CMD"; then
8408   if test -n "$ac_tool_prefix"; then
8409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8410 $as_echo_n "checking for file... " >&6; }
8411 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   case $MAGIC_CMD in
8415 [\\/*] |  ?:[\\/]*)
8416   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8417   ;;
8418 *)
8419   lt_save_MAGIC_CMD=$MAGIC_CMD
8420   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8421   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422   for ac_dir in $ac_dummy; do
8423     IFS=$lt_save_ifs
8424     test -z "$ac_dir" && ac_dir=.
8425     if test -f "$ac_dir/file"; then
8426       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8427       if test -n "$file_magic_test_file"; then
8428         case $deplibs_check_method in
8429         "file_magic "*)
8430           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8431           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8432           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433             $EGREP "$file_magic_regex" > /dev/null; then
8434             :
8435           else
8436             cat <<_LT_EOF 1>&2
8437
8438 *** Warning: the command libtool uses to detect shared libraries,
8439 *** $file_magic_cmd, produces output that libtool cannot recognize.
8440 *** The result is that libtool may fail to recognize shared libraries
8441 *** as such.  This will affect the creation of libtool libraries that
8442 *** depend on shared libraries, but programs linked with such libtool
8443 *** libraries will work regardless of this problem.  Nevertheless, you
8444 *** may want to report the problem to your system manager and/or to
8445 *** bug-libtool@gnu.org
8446
8447 _LT_EOF
8448           fi ;;
8449         esac
8450       fi
8451       break
8452     fi
8453   done
8454   IFS=$lt_save_ifs
8455   MAGIC_CMD=$lt_save_MAGIC_CMD
8456   ;;
8457 esac
8458 fi
8459
8460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8461 if test -n "$MAGIC_CMD"; then
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8463 $as_echo "$MAGIC_CMD" >&6; }
8464 else
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8467 fi
8468
8469
8470   else
8471     MAGIC_CMD=:
8472   fi
8473 fi
8474
8475   fi
8476   ;;
8477 esac
8478
8479 # Use C for the default configuration in the libtool script
8480
8481 lt_save_CC=$CC
8482 ac_ext=c
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488
8489 # Source file extension for C test sources.
8490 ac_ext=c
8491
8492 # Object file extension for compiled C test sources.
8493 objext=o
8494 objext=$objext
8495
8496 # Code to be used in simple compile tests
8497 lt_simple_compile_test_code="int some_variable = 0;"
8498
8499 # Code to be used in simple link tests
8500 lt_simple_link_test_code='int main(){return(0);}'
8501
8502
8503
8504
8505
8506
8507
8508 # If no C compiler was specified, use CC.
8509 LTCC=${LTCC-"$CC"}
8510
8511 # If no C compiler flags were specified, use CFLAGS.
8512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8513
8514 # Allow CC to be a program name with arguments.
8515 compiler=$CC
8516
8517 # Save the default compiler, since it gets overwritten when the other
8518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8519 compiler_DEFAULT=$CC
8520
8521 # save warnings/boilerplate of simple test code
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_compiler_boilerplate=`cat conftest.err`
8526 $RM conftest*
8527
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_linker_boilerplate=`cat conftest.err`
8532 $RM -r conftest*
8533
8534
8535 ## CAVEAT EMPTOR:
8536 ## There is no encapsulation within the following macros, do not change
8537 ## the running order or otherwise move them around unless you know exactly
8538 ## what you are doing...
8539 if test -n "$compiler"; then
8540
8541 lt_prog_compiler_no_builtin_flag=
8542
8543 if test yes = "$GCC"; then
8544   case $cc_basename in
8545   nvcc*)
8546     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8547   *)
8548     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8549   esac
8550
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8553 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   lt_cv_prog_compiler_rtti_exceptions=no
8557    ac_outfile=conftest.$ac_objext
8558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8560    # Insert the option either (1) after the last *FLAGS variable, or
8561    # (2) before a word containing "conftest.", or (3) at the end.
8562    # Note that $ac_compile itself does not contain backslashes and begins
8563    # with a dollar sign (not a hyphen), so the echo should work correctly.
8564    # The option is referenced via a variable to avoid confusing sed.
8565    lt_compile=`echo "$ac_compile" | $SED \
8566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568    -e 's:$: $lt_compiler_flag:'`
8569    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570    (eval "$lt_compile" 2>conftest.err)
8571    ac_status=$?
8572    cat conftest.err >&5
8573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574    if (exit $ac_status) && test -s "$ac_outfile"; then
8575      # The compiler can only warn and ignore the option if not recognized
8576      # So say no if there are warnings other than the usual output.
8577      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8578      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8579      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8580        lt_cv_prog_compiler_rtti_exceptions=yes
8581      fi
8582    fi
8583    $RM conftest*
8584
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8588
8589 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8590     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8591 else
8592     :
8593 fi
8594
8595 fi
8596
8597
8598
8599
8600
8601
8602   lt_prog_compiler_wl=
8603 lt_prog_compiler_pic=
8604 lt_prog_compiler_static=
8605
8606
8607   if test yes = "$GCC"; then
8608     lt_prog_compiler_wl='-Wl,'
8609     lt_prog_compiler_static='-static'
8610
8611     case $host_os in
8612       aix*)
8613       # All AIX code is PIC.
8614       if test ia64 = "$host_cpu"; then
8615         # AIX 5 now supports IA64 processor
8616         lt_prog_compiler_static='-Bstatic'
8617       fi
8618       lt_prog_compiler_pic='-fPIC'
8619       ;;
8620
8621     amigaos*)
8622       case $host_cpu in
8623       powerpc)
8624             # see comment about AmigaOS4 .so support
8625             lt_prog_compiler_pic='-fPIC'
8626         ;;
8627       m68k)
8628             # FIXME: we need at least 68020 code to build shared libraries, but
8629             # adding the '-m68020' flag to GCC prevents building anything better,
8630             # like '-m68040'.
8631             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8632         ;;
8633       esac
8634       ;;
8635
8636     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8637       # PIC is the default for these OSes.
8638       ;;
8639
8640     mingw* | cygwin* | pw32* | os2* | cegcc*)
8641       # This hack is so that the source file can tell whether it is being
8642       # built for inclusion in a dll (and should export symbols for example).
8643       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8644       # (--disable-auto-import) libraries
8645       lt_prog_compiler_pic='-DDLL_EXPORT'
8646       case $host_os in
8647       os2*)
8648         lt_prog_compiler_static='$wl-static'
8649         ;;
8650       esac
8651       ;;
8652
8653     darwin* | rhapsody*)
8654       # PIC is the default on this platform
8655       # Common symbols not allowed in MH_DYLIB files
8656       lt_prog_compiler_pic='-fno-common'
8657       ;;
8658
8659     haiku*)
8660       # PIC is the default for Haiku.
8661       # The "-static" flag exists, but is broken.
8662       lt_prog_compiler_static=
8663       ;;
8664
8665     hpux*)
8666       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8668       # sets the default TLS model and affects inlining.
8669       case $host_cpu in
8670       hppa*64*)
8671         # +Z the default
8672         ;;
8673       *)
8674         lt_prog_compiler_pic='-fPIC'
8675         ;;
8676       esac
8677       ;;
8678
8679     interix[3-9]*)
8680       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681       # Instead, we relocate shared libraries at runtime.
8682       ;;
8683
8684     msdosdjgpp*)
8685       # Just because we use GCC doesn't mean we suddenly get shared libraries
8686       # on systems that don't support them.
8687       lt_prog_compiler_can_build_shared=no
8688       enable_shared=no
8689       ;;
8690
8691     *nto* | *qnx*)
8692       # QNX uses GNU C++, but need to define -shared option too, otherwise
8693       # it will coredump.
8694       lt_prog_compiler_pic='-fPIC -shared'
8695       ;;
8696
8697     sysv4*MP*)
8698       if test -d /usr/nec; then
8699         lt_prog_compiler_pic=-Kconform_pic
8700       fi
8701       ;;
8702
8703     *)
8704       lt_prog_compiler_pic='-fPIC'
8705       ;;
8706     esac
8707
8708     case $cc_basename in
8709     nvcc*) # Cuda Compiler Driver 2.2
8710       lt_prog_compiler_wl='-Xlinker '
8711       if test -n "$lt_prog_compiler_pic"; then
8712         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8713       fi
8714       ;;
8715     esac
8716   else
8717     # PORTME Check for flag to pass linker flags through the system compiler.
8718     case $host_os in
8719     aix*)
8720       lt_prog_compiler_wl='-Wl,'
8721       if test ia64 = "$host_cpu"; then
8722         # AIX 5 now supports IA64 processor
8723         lt_prog_compiler_static='-Bstatic'
8724       else
8725         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8726       fi
8727       ;;
8728
8729     darwin* | rhapsody*)
8730       # PIC is the default on this platform
8731       # Common symbols not allowed in MH_DYLIB files
8732       lt_prog_compiler_pic='-fno-common'
8733       case $cc_basename in
8734       nagfor*)
8735         # NAG Fortran compiler
8736         lt_prog_compiler_wl='-Wl,-Wl,,'
8737         lt_prog_compiler_pic='-PIC'
8738         lt_prog_compiler_static='-Bstatic'
8739         ;;
8740       esac
8741       ;;
8742
8743     mingw* | cygwin* | pw32* | os2* | cegcc*)
8744       # This hack is so that the source file can tell whether it is being
8745       # built for inclusion in a dll (and should export symbols for example).
8746       lt_prog_compiler_pic='-DDLL_EXPORT'
8747       case $host_os in
8748       os2*)
8749         lt_prog_compiler_static='$wl-static'
8750         ;;
8751       esac
8752       ;;
8753
8754     hpux9* | hpux10* | hpux11*)
8755       lt_prog_compiler_wl='-Wl,'
8756       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8757       # not for PA HP-UX.
8758       case $host_cpu in
8759       hppa*64*|ia64*)
8760         # +Z the default
8761         ;;
8762       *)
8763         lt_prog_compiler_pic='+Z'
8764         ;;
8765       esac
8766       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8767       lt_prog_compiler_static='$wl-a ${wl}archive'
8768       ;;
8769
8770     irix5* | irix6* | nonstopux*)
8771       lt_prog_compiler_wl='-Wl,'
8772       # PIC (with -KPIC) is the default.
8773       lt_prog_compiler_static='-non_shared'
8774       ;;
8775
8776     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8777       case $cc_basename in
8778       # old Intel for x86_64, which still supported -KPIC.
8779       ecc*)
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-KPIC'
8782         lt_prog_compiler_static='-static'
8783         ;;
8784       # icc used to be incompatible with GCC.
8785       # ICC 10 doesn't accept -KPIC any more.
8786       icc* | ifort*)
8787         lt_prog_compiler_wl='-Wl,'
8788         lt_prog_compiler_pic='-fPIC'
8789         lt_prog_compiler_static='-static'
8790         ;;
8791       # Lahey Fortran 8.1.
8792       lf95*)
8793         lt_prog_compiler_wl='-Wl,'
8794         lt_prog_compiler_pic='--shared'
8795         lt_prog_compiler_static='--static'
8796         ;;
8797       nagfor*)
8798         # NAG Fortran compiler
8799         lt_prog_compiler_wl='-Wl,-Wl,,'
8800         lt_prog_compiler_pic='-PIC'
8801         lt_prog_compiler_static='-Bstatic'
8802         ;;
8803       tcc*)
8804         # Fabrice Bellard et al's Tiny C Compiler
8805         lt_prog_compiler_wl='-Wl,'
8806         lt_prog_compiler_pic='-fPIC'
8807         lt_prog_compiler_static='-static'
8808         ;;
8809       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8810         # Portland Group compilers (*not* the Pentium gcc compiler,
8811         # which looks to be a dead project)
8812         lt_prog_compiler_wl='-Wl,'
8813         lt_prog_compiler_pic='-fpic'
8814         lt_prog_compiler_static='-Bstatic'
8815         ;;
8816       ccc*)
8817         lt_prog_compiler_wl='-Wl,'
8818         # All Alpha code is PIC.
8819         lt_prog_compiler_static='-non_shared'
8820         ;;
8821       xl* | bgxl* | bgf* | mpixl*)
8822         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8823         lt_prog_compiler_wl='-Wl,'
8824         lt_prog_compiler_pic='-qpic'
8825         lt_prog_compiler_static='-qstaticlink'
8826         ;;
8827       *)
8828         case `$CC -V 2>&1 | sed 5q` in
8829         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8830           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8831           lt_prog_compiler_pic='-KPIC'
8832           lt_prog_compiler_static='-Bstatic'
8833           lt_prog_compiler_wl=''
8834           ;;
8835         *Sun\ F* | *Sun*Fortran*)
8836           lt_prog_compiler_pic='-KPIC'
8837           lt_prog_compiler_static='-Bstatic'
8838           lt_prog_compiler_wl='-Qoption ld '
8839           ;;
8840         *Sun\ C*)
8841           # Sun C 5.9
8842           lt_prog_compiler_pic='-KPIC'
8843           lt_prog_compiler_static='-Bstatic'
8844           lt_prog_compiler_wl='-Wl,'
8845           ;;
8846         *Intel*\ [CF]*Compiler*)
8847           lt_prog_compiler_wl='-Wl,'
8848           lt_prog_compiler_pic='-fPIC'
8849           lt_prog_compiler_static='-static'
8850           ;;
8851         *Portland\ Group*)
8852           lt_prog_compiler_wl='-Wl,'
8853           lt_prog_compiler_pic='-fpic'
8854           lt_prog_compiler_static='-Bstatic'
8855           ;;
8856         esac
8857         ;;
8858       esac
8859       ;;
8860
8861     newsos6)
8862       lt_prog_compiler_pic='-KPIC'
8863       lt_prog_compiler_static='-Bstatic'
8864       ;;
8865
8866     *nto* | *qnx*)
8867       # QNX uses GNU C++, but need to define -shared option too, otherwise
8868       # it will coredump.
8869       lt_prog_compiler_pic='-fPIC -shared'
8870       ;;
8871
8872     osf3* | osf4* | osf5*)
8873       lt_prog_compiler_wl='-Wl,'
8874       # All OSF/1 code is PIC.
8875       lt_prog_compiler_static='-non_shared'
8876       ;;
8877
8878     rdos*)
8879       lt_prog_compiler_static='-non_shared'
8880       ;;
8881
8882     solaris*)
8883       lt_prog_compiler_pic='-KPIC'
8884       lt_prog_compiler_static='-Bstatic'
8885       case $cc_basename in
8886       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8887         lt_prog_compiler_wl='-Qoption ld ';;
8888       *)
8889         lt_prog_compiler_wl='-Wl,';;
8890       esac
8891       ;;
8892
8893     sunos4*)
8894       lt_prog_compiler_wl='-Qoption ld '
8895       lt_prog_compiler_pic='-PIC'
8896       lt_prog_compiler_static='-Bstatic'
8897       ;;
8898
8899     sysv4 | sysv4.2uw2* | sysv4.3*)
8900       lt_prog_compiler_wl='-Wl,'
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       ;;
8904
8905     sysv4*MP*)
8906       if test -d /usr/nec; then
8907         lt_prog_compiler_pic='-Kconform_pic'
8908         lt_prog_compiler_static='-Bstatic'
8909       fi
8910       ;;
8911
8912     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8913       lt_prog_compiler_wl='-Wl,'
8914       lt_prog_compiler_pic='-KPIC'
8915       lt_prog_compiler_static='-Bstatic'
8916       ;;
8917
8918     unicos*)
8919       lt_prog_compiler_wl='-Wl,'
8920       lt_prog_compiler_can_build_shared=no
8921       ;;
8922
8923     uts4*)
8924       lt_prog_compiler_pic='-pic'
8925       lt_prog_compiler_static='-Bstatic'
8926       ;;
8927
8928     *)
8929       lt_prog_compiler_can_build_shared=no
8930       ;;
8931     esac
8932   fi
8933
8934 case $host_os in
8935   # For platforms that do not support PIC, -DPIC is meaningless:
8936   *djgpp*)
8937     lt_prog_compiler_pic=
8938     ;;
8939   *)
8940     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8941     ;;
8942 esac
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8945 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8946 if ${lt_cv_prog_compiler_pic+:} false; then :
8947   $as_echo_n "(cached) " >&6
8948 else
8949   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8953 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8954
8955 #
8956 # Check to make sure the PIC flag actually works.
8957 #
8958 if test -n "$lt_prog_compiler_pic"; then
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8960 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8961 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   lt_cv_prog_compiler_pic_works=no
8965    ac_outfile=conftest.$ac_objext
8966    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8968    # Insert the option either (1) after the last *FLAGS variable, or
8969    # (2) before a word containing "conftest.", or (3) at the end.
8970    # Note that $ac_compile itself does not contain backslashes and begins
8971    # with a dollar sign (not a hyphen), so the echo should work correctly.
8972    # The option is referenced via a variable to avoid confusing sed.
8973    lt_compile=`echo "$ac_compile" | $SED \
8974    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976    -e 's:$: $lt_compiler_flag:'`
8977    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978    (eval "$lt_compile" 2>conftest.err)
8979    ac_status=$?
8980    cat conftest.err >&5
8981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982    if (exit $ac_status) && test -s "$ac_outfile"; then
8983      # The compiler can only warn and ignore the option if not recognized
8984      # So say no if there are warnings other than the usual output.
8985      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8986      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988        lt_cv_prog_compiler_pic_works=yes
8989      fi
8990    fi
8991    $RM conftest*
8992
8993 fi
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8995 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8996
8997 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8998     case $lt_prog_compiler_pic in
8999      "" | " "*) ;;
9000      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9001      esac
9002 else
9003     lt_prog_compiler_pic=
9004      lt_prog_compiler_can_build_shared=no
9005 fi
9006
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 #
9020 # Check to make sure the static flag actually works.
9021 #
9022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9025 if ${lt_cv_prog_compiler_static_works+:} false; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   lt_cv_prog_compiler_static_works=no
9029    save_LDFLAGS=$LDFLAGS
9030    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9031    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9032    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9033      # The linker can only warn and ignore the option if not recognized
9034      # So say no if there are warnings
9035      if test -s conftest.err; then
9036        # Append any errors to the config.log.
9037        cat conftest.err 1>&5
9038        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9039        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040        if diff conftest.exp conftest.er2 >/dev/null; then
9041          lt_cv_prog_compiler_static_works=yes
9042        fi
9043      else
9044        lt_cv_prog_compiler_static_works=yes
9045      fi
9046    fi
9047    $RM -r conftest*
9048    LDFLAGS=$save_LDFLAGS
9049
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9052 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9053
9054 if test yes = "$lt_cv_prog_compiler_static_works"; then
9055     :
9056 else
9057     lt_prog_compiler_static=
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9068 if ${lt_cv_prog_compiler_c_o+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   lt_cv_prog_compiler_c_o=no
9072    $RM -r conftest 2>/dev/null
9073    mkdir conftest
9074    cd conftest
9075    mkdir out
9076    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9077
9078    lt_compiler_flag="-o out/conftest2.$ac_objext"
9079    # Insert the option either (1) after the last *FLAGS variable, or
9080    # (2) before a word containing "conftest.", or (3) at the end.
9081    # Note that $ac_compile itself does not contain backslashes and begins
9082    # with a dollar sign (not a hyphen), so the echo should work correctly.
9083    lt_compile=`echo "$ac_compile" | $SED \
9084    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086    -e 's:$: $lt_compiler_flag:'`
9087    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9088    (eval "$lt_compile" 2>out/conftest.err)
9089    ac_status=$?
9090    cat out/conftest.err >&5
9091    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9093    then
9094      # The compiler can only warn and ignore the option if not recognized
9095      # So say no if there are warnings
9096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9097      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9098      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9099        lt_cv_prog_compiler_c_o=yes
9100      fi
9101    fi
9102    chmod u+w . 2>&5
9103    $RM conftest*
9104    # SGI C++ compiler will create directory out/ii_files/ for
9105    # template instantiation
9106    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9107    $RM out/* && rmdir out
9108    cd ..
9109    $RM -r conftest
9110    $RM conftest*
9111
9112 fi
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9115
9116
9117
9118
9119
9120
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9123 if ${lt_cv_prog_compiler_c_o+:} false; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   lt_cv_prog_compiler_c_o=no
9127    $RM -r conftest 2>/dev/null
9128    mkdir conftest
9129    cd conftest
9130    mkdir out
9131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132
9133    lt_compiler_flag="-o out/conftest2.$ac_objext"
9134    # Insert the option either (1) after the last *FLAGS variable, or
9135    # (2) before a word containing "conftest.", or (3) at the end.
9136    # Note that $ac_compile itself does not contain backslashes and begins
9137    # with a dollar sign (not a hyphen), so the echo should work correctly.
9138    lt_compile=`echo "$ac_compile" | $SED \
9139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9141    -e 's:$: $lt_compiler_flag:'`
9142    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9143    (eval "$lt_compile" 2>out/conftest.err)
9144    ac_status=$?
9145    cat out/conftest.err >&5
9146    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9148    then
9149      # The compiler can only warn and ignore the option if not recognized
9150      # So say no if there are warnings
9151      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9152      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9153      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9154        lt_cv_prog_compiler_c_o=yes
9155      fi
9156    fi
9157    chmod u+w . 2>&5
9158    $RM conftest*
9159    # SGI C++ compiler will create directory out/ii_files/ for
9160    # template instantiation
9161    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9162    $RM out/* && rmdir out
9163    cd ..
9164    $RM -r conftest
9165    $RM conftest*
9166
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9170
9171
9172
9173
9174 hard_links=nottested
9175 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9176   # do not overwrite the value of need_locks provided by the user
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9178 $as_echo_n "checking if we can lock with hard links... " >&6; }
9179   hard_links=yes
9180   $RM conftest*
9181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9182   touch conftest.a
9183   ln conftest.a conftest.b 2>&5 || hard_links=no
9184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9186 $as_echo "$hard_links" >&6; }
9187   if test no = "$hard_links"; then
9188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9189 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9190     need_locks=warn
9191   fi
9192 else
9193   need_locks=no
9194 fi
9195
9196
9197
9198
9199
9200
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9202 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9203
9204   runpath_var=
9205   allow_undefined_flag=
9206   always_export_symbols=no
9207   archive_cmds=
9208   archive_expsym_cmds=
9209   compiler_needs_object=no
9210   enable_shared_with_static_runtimes=no
9211   export_dynamic_flag_spec=
9212   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9213   hardcode_automatic=no
9214   hardcode_direct=no
9215   hardcode_direct_absolute=no
9216   hardcode_libdir_flag_spec=
9217   hardcode_libdir_separator=
9218   hardcode_minus_L=no
9219   hardcode_shlibpath_var=unsupported
9220   inherit_rpath=no
9221   link_all_deplibs=unknown
9222   module_cmds=
9223   module_expsym_cmds=
9224   old_archive_from_new_cmds=
9225   old_archive_from_expsyms_cmds=
9226   thread_safe_flag_spec=
9227   whole_archive_flag_spec=
9228   # include_expsyms should be a list of space-separated symbols to be *always*
9229   # included in the symbol list
9230   include_expsyms=
9231   # exclude_expsyms can be an extended regexp of symbols to exclude
9232   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9233   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9234   # as well as any symbol that contains 'd'.
9235   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9236   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9237   # platforms (ab)use it in PIC code, but their linkers get confused if
9238   # the symbol is explicitly referenced.  Since portable code cannot
9239   # rely on this symbol name, it's probably fine to never include it in
9240   # preloaded symbol tables.
9241   # Exclude shared library initialization/finalization symbols.
9242   extract_expsyms_cmds=
9243
9244   case $host_os in
9245   cygwin* | mingw* | pw32* | cegcc*)
9246     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247     # When not using gcc, we currently assume that we are using
9248     # Microsoft Visual C++.
9249     if test yes != "$GCC"; then
9250       with_gnu_ld=no
9251     fi
9252     ;;
9253   interix*)
9254     # we just hope/assume this is gcc and not c89 (= MSVC++)
9255     with_gnu_ld=yes
9256     ;;
9257   openbsd* | bitrig*)
9258     with_gnu_ld=no
9259     ;;
9260   linux* | k*bsd*-gnu | gnu*)
9261     link_all_deplibs=no
9262     ;;
9263   esac
9264
9265   ld_shlibs=yes
9266
9267   # On some targets, GNU ld is compatible enough with the native linker
9268   # that we're better off using the native interface for both.
9269   lt_use_gnu_ld_interface=no
9270   if test yes = "$with_gnu_ld"; then
9271     case $host_os in
9272       aix*)
9273         # The AIX port of GNU ld has always aspired to compatibility
9274         # with the native linker.  However, as the warning in the GNU ld
9275         # block says, versions before 2.19.5* couldn't really create working
9276         # shared libraries, regardless of the interface used.
9277         case `$LD -v 2>&1` in
9278           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9279           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9280           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9281           *)
9282             lt_use_gnu_ld_interface=yes
9283             ;;
9284         esac
9285         ;;
9286       *)
9287         lt_use_gnu_ld_interface=yes
9288         ;;
9289     esac
9290   fi
9291
9292   if test yes = "$lt_use_gnu_ld_interface"; then
9293     # If archive_cmds runs LD, not CC, wlarc should be empty
9294     wlarc='$wl'
9295
9296     # Set some defaults for GNU ld with shared library support. These
9297     # are reset later if shared libraries are not supported. Putting them
9298     # here allows them to be overridden if necessary.
9299     runpath_var=LD_RUN_PATH
9300     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9301     export_dynamic_flag_spec='$wl--export-dynamic'
9302     # ancient GNU ld didn't support --whole-archive et. al.
9303     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9304       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9305     else
9306       whole_archive_flag_spec=
9307     fi
9308     supports_anon_versioning=no
9309     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9310       *GNU\ gold*) supports_anon_versioning=yes ;;
9311       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9312       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9313       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9314       *\ 2.11.*) ;; # other 2.11 versions
9315       *) supports_anon_versioning=yes ;;
9316     esac
9317
9318     # See if GNU ld supports shared libraries.
9319     case $host_os in
9320     aix[3-9]*)
9321       # On AIX/PPC, the GNU linker is very broken
9322       if test ia64 != "$host_cpu"; then
9323         ld_shlibs=no
9324         cat <<_LT_EOF 1>&2
9325
9326 *** Warning: the GNU linker, at least up to release 2.19, is reported
9327 *** to be unable to reliably create shared libraries on AIX.
9328 *** Therefore, libtool is disabling shared libraries support.  If you
9329 *** really care for shared libraries, you may want to install binutils
9330 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9331 *** You will then need to restart the configuration process.
9332
9333 _LT_EOF
9334       fi
9335       ;;
9336
9337     amigaos*)
9338       case $host_cpu in
9339       powerpc)
9340             # see comment about AmigaOS4 .so support
9341             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9342             archive_expsym_cmds=''
9343         ;;
9344       m68k)
9345             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)'
9346             hardcode_libdir_flag_spec='-L$libdir'
9347             hardcode_minus_L=yes
9348         ;;
9349       esac
9350       ;;
9351
9352     beos*)
9353       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354         allow_undefined_flag=unsupported
9355         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9356         # support --undefined.  This deserves some investigation.  FIXME
9357         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9358       else
9359         ld_shlibs=no
9360       fi
9361       ;;
9362
9363     cygwin* | mingw* | pw32* | cegcc*)
9364       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9365       # as there is no search path for DLLs.
9366       hardcode_libdir_flag_spec='-L$libdir'
9367       export_dynamic_flag_spec='$wl--export-all-symbols'
9368       allow_undefined_flag=unsupported
9369       always_export_symbols=no
9370       enable_shared_with_static_runtimes=yes
9371       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'
9372       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9373
9374       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376         # If the export-symbols file already is a .def file, use it as
9377         # is; otherwise, prepend EXPORTS...
9378         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9379           cp $export_symbols $output_objdir/$soname.def;
9380         else
9381           echo EXPORTS > $output_objdir/$soname.def;
9382           cat $export_symbols >> $output_objdir/$soname.def;
9383         fi~
9384         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385       else
9386         ld_shlibs=no
9387       fi
9388       ;;
9389
9390     haiku*)
9391       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392       link_all_deplibs=yes
9393       ;;
9394
9395     os2*)
9396       hardcode_libdir_flag_spec='-L$libdir'
9397       hardcode_minus_L=yes
9398       allow_undefined_flag=unsupported
9399       shrext_cmds=.dll
9400       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9401         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9402         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9403         $ECHO EXPORTS >> $output_objdir/$libname.def~
9404         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9405         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9406         emximp -o $lib $output_objdir/$libname.def'
9407       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9408         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9409         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9410         $ECHO EXPORTS >> $output_objdir/$libname.def~
9411         prefix_cmds="$SED"~
9412         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9413           prefix_cmds="$prefix_cmds -e 1d";
9414         fi~
9415         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9416         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9417         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9418         emximp -o $lib $output_objdir/$libname.def'
9419       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9420       enable_shared_with_static_runtimes=yes
9421       ;;
9422
9423     interix[3-9]*)
9424       hardcode_direct=no
9425       hardcode_shlibpath_var=no
9426       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9427       export_dynamic_flag_spec='$wl-E'
9428       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9429       # Instead, shared libraries are loaded at an image base (0x10000000 by
9430       # default) and relocated if they conflict, which is a slow very memory
9431       # consuming and fragmenting process.  To avoid this, we pick a random,
9432       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9433       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9434       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9435       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'
9436       ;;
9437
9438     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9439       tmp_diet=no
9440       if test linux-dietlibc = "$host_os"; then
9441         case $cc_basename in
9442           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9443         esac
9444       fi
9445       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9446          && test no = "$tmp_diet"
9447       then
9448         tmp_addflag=' $pic_flag'
9449         tmp_sharedflag='-shared'
9450         case $cc_basename,$host_cpu in
9451         pgcc*)                          # Portland Group C compiler
9452           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'
9453           tmp_addflag=' $pic_flag'
9454           ;;
9455         pgf77* | pgf90* | pgf95* | pgfortran*)
9456                                         # Portland Group f77 and f90 compilers
9457           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'
9458           tmp_addflag=' $pic_flag -Mnomain' ;;
9459         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9460           tmp_addflag=' -i_dynamic' ;;
9461         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9462           tmp_addflag=' -i_dynamic -nofor_main' ;;
9463         ifc* | ifort*)                  # Intel Fortran compiler
9464           tmp_addflag=' -nofor_main' ;;
9465         lf95*)                          # Lahey Fortran 8.1
9466           whole_archive_flag_spec=
9467           tmp_sharedflag='--shared' ;;
9468         nagfor*)                        # NAGFOR 5.3
9469           tmp_sharedflag='-Wl,-shared' ;;
9470         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9471           tmp_sharedflag='-qmkshrobj'
9472           tmp_addflag= ;;
9473         nvcc*)  # Cuda Compiler Driver 2.2
9474           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'
9475           compiler_needs_object=yes
9476           ;;
9477         esac
9478         case `$CC -V 2>&1 | sed 5q` in
9479         *Sun\ C*)                       # Sun C 5.9
9480           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'
9481           compiler_needs_object=yes
9482           tmp_sharedflag='-G' ;;
9483         *Sun\ F*)                       # Sun Fortran 8.3
9484           tmp_sharedflag='-G' ;;
9485         esac
9486         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9487
9488         if test yes = "$supports_anon_versioning"; then
9489           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491             echo "local: *; };" >> $output_objdir/$libname.ver~
9492             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9493         fi
9494
9495         case $cc_basename in
9496         tcc*)
9497           export_dynamic_flag_spec='-rdynamic'
9498           ;;
9499         xlf* | bgf* | bgxlf* | mpixlf*)
9500           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9501           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9502           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9503           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9504           if test yes = "$supports_anon_versioning"; then
9505             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9506               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9507               echo "local: *; };" >> $output_objdir/$libname.ver~
9508               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9509           fi
9510           ;;
9511         esac
9512       else
9513         ld_shlibs=no
9514       fi
9515       ;;
9516
9517     netbsd* | netbsdelf*-gnu)
9518       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9519         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9520         wlarc=
9521       else
9522         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9523         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9524       fi
9525       ;;
9526
9527     solaris*)
9528       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9529         ld_shlibs=no
9530         cat <<_LT_EOF 1>&2
9531
9532 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9533 *** create shared libraries on Solaris systems.  Therefore, libtool
9534 *** is disabling shared libraries support.  We urge you to upgrade GNU
9535 *** binutils to release 2.9.1 or newer.  Another option is to modify
9536 *** your PATH or compiler configuration so that the native linker is
9537 *** used, and then restart.
9538
9539 _LT_EOF
9540       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9541         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9542         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9543       else
9544         ld_shlibs=no
9545       fi
9546       ;;
9547
9548     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9549       case `$LD -v 2>&1` in
9550         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9551         ld_shlibs=no
9552         cat <<_LT_EOF 1>&2
9553
9554 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9555 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9556 *** is disabling shared libraries support.  We urge you to upgrade GNU
9557 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9558 *** your PATH or compiler configuration so that the native linker is
9559 *** used, and then restart.
9560
9561 _LT_EOF
9562         ;;
9563         *)
9564           # For security reasons, it is highly recommended that you always
9565           # use absolute paths for naming shared libraries, and exclude the
9566           # DT_RUNPATH tag from executables and libraries.  But doing so
9567           # requires that you compile everything twice, which is a pain.
9568           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9570             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9571             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9572           else
9573             ld_shlibs=no
9574           fi
9575         ;;
9576       esac
9577       ;;
9578
9579     sunos4*)
9580       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581       wlarc=
9582       hardcode_direct=yes
9583       hardcode_shlibpath_var=no
9584       ;;
9585
9586     *)
9587       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9588         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590       else
9591         ld_shlibs=no
9592       fi
9593       ;;
9594     esac
9595
9596     if test no = "$ld_shlibs"; then
9597       runpath_var=
9598       hardcode_libdir_flag_spec=
9599       export_dynamic_flag_spec=
9600       whole_archive_flag_spec=
9601     fi
9602   else
9603     # PORTME fill in a description of your system's linker (not GNU ld)
9604     case $host_os in
9605     aix3*)
9606       allow_undefined_flag=unsupported
9607       always_export_symbols=yes
9608       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'
9609       # Note: this linker hardcodes the directories in LIBPATH if there
9610       # are no directories specified by -L.
9611       hardcode_minus_L=yes
9612       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9613         # Neither direct hardcoding nor static linking is supported with a
9614         # broken collect2.
9615         hardcode_direct=unsupported
9616       fi
9617       ;;
9618
9619     aix[4-9]*)
9620       if test ia64 = "$host_cpu"; then
9621         # On IA64, the linker does run time linking by default, so we don't
9622         # have to do anything special.
9623         aix_use_runtimelinking=no
9624         exp_sym_flag='-Bexport'
9625         no_entry_flag=
9626       else
9627         # If we're using GNU nm, then we don't want the "-C" option.
9628         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9629         # Without the "-l" option, or with the "-B" option, AIX nm treats
9630         # weak defined symbols like other global defined symbols, whereas
9631         # GNU nm marks them as "W".
9632         # While the 'weak' keyword is ignored in the Export File, we need
9633         # it in the Import File for the 'aix-soname' feature, so we have
9634         # to replace the "-B" option with "-P" for AIX nm.
9635         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9636           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9637         else
9638           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9639         fi
9640         aix_use_runtimelinking=no
9641
9642         # Test if we are trying to use run time linking or normal
9643         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644         # have runtime linking enabled, and use it for executables.
9645         # For shared libraries, we enable/disable runtime linking
9646         # depending on the kind of the shared library created -
9647         # when "with_aix_soname,aix_use_runtimelinking" is:
9648         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9649         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9650         #            lib.a           static archive
9651         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9652         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9653         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9654         #            lib.a(lib.so.V) shared, rtl:no
9655         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9656         #            lib.a           static archive
9657         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9658           for ld_flag in $LDFLAGS; do
9659           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9660             aix_use_runtimelinking=yes
9661             break
9662           fi
9663           done
9664           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9665             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9666             # so we don't have lib.a shared libs to link our executables.
9667             # We have to force runtime linking in this case.
9668             aix_use_runtimelinking=yes
9669             LDFLAGS="$LDFLAGS -Wl,-brtl"
9670           fi
9671           ;;
9672         esac
9673
9674         exp_sym_flag='-bexport'
9675         no_entry_flag='-bnoentry'
9676       fi
9677
9678       # When large executables or shared objects are built, AIX ld can
9679       # have problems creating the table of contents.  If linking a library
9680       # or program results in "error TOC overflow" add -mminimal-toc to
9681       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9682       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9683
9684       archive_cmds=''
9685       hardcode_direct=yes
9686       hardcode_direct_absolute=yes
9687       hardcode_libdir_separator=':'
9688       link_all_deplibs=yes
9689       file_list_spec='$wl-f,'
9690       case $with_aix_soname,$aix_use_runtimelinking in
9691       aix,*) ;; # traditional, no import file
9692       svr4,* | *,yes) # use import file
9693         # The Import File defines what to hardcode.
9694         hardcode_direct=no
9695         hardcode_direct_absolute=no
9696         ;;
9697       esac
9698
9699       if test yes = "$GCC"; then
9700         case $host_os in aix4.[012]|aix4.[012].*)
9701         # We only want to do this on AIX 4.2 and lower, the check
9702         # below for broken collect2 doesn't work under 4.3+
9703           collect2name=`$CC -print-prog-name=collect2`
9704           if test -f "$collect2name" &&
9705            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9706           then
9707           # We have reworked collect2
9708           :
9709           else
9710           # We have old collect2
9711           hardcode_direct=unsupported
9712           # It fails to find uninstalled libraries when the uninstalled
9713           # path is not listed in the libpath.  Setting hardcode_minus_L
9714           # to unsupported forces relinking
9715           hardcode_minus_L=yes
9716           hardcode_libdir_flag_spec='-L$libdir'
9717           hardcode_libdir_separator=
9718           fi
9719           ;;
9720         esac
9721         shared_flag='-shared'
9722         if test yes = "$aix_use_runtimelinking"; then
9723           shared_flag="$shared_flag "'$wl-G'
9724         fi
9725         # Need to ensure runtime linking is disabled for the traditional
9726         # shared library, or the linker may eventually find shared libraries
9727         # /with/ Import File - we do not want to mix them.
9728         shared_flag_aix='-shared'
9729         shared_flag_svr4='-shared $wl-G'
9730       else
9731         # not using gcc
9732         if test ia64 = "$host_cpu"; then
9733         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9734         # chokes on -Wl,-G. The following line is correct:
9735           shared_flag='-G'
9736         else
9737           if test yes = "$aix_use_runtimelinking"; then
9738             shared_flag='$wl-G'
9739           else
9740             shared_flag='$wl-bM:SRE'
9741           fi
9742           shared_flag_aix='$wl-bM:SRE'
9743           shared_flag_svr4='$wl-G'
9744         fi
9745       fi
9746
9747       export_dynamic_flag_spec='$wl-bexpall'
9748       # It seems that -bexpall does not export symbols beginning with
9749       # underscore (_), so it is better to generate a list of symbols to export.
9750       always_export_symbols=yes
9751       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9752         # Warning - without using the other runtime loading flags (-brtl),
9753         # -berok will link without error, but may produce a broken library.
9754         allow_undefined_flag='-berok'
9755         # Determine the default libpath from the value encoded in an
9756         # empty executable.
9757         if test set = "${lt_cv_aix_libpath+set}"; then
9758   aix_libpath=$lt_cv_aix_libpath
9759 else
9760   if ${lt_cv_aix_libpath_+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765
9766 int
9767 main ()
9768 {
9769
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775
9776   lt_aix_libpath_sed='
9777       /Import File Strings/,/^$/ {
9778           /^0/ {
9779               s/^0  *\([^ ]*\) *$/\1/
9780               p
9781           }
9782       }'
9783   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9784   # Check for a 64-bit object if we didn't find anything.
9785   if test -z "$lt_cv_aix_libpath_"; then
9786     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787   fi
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791   if test -z "$lt_cv_aix_libpath_"; then
9792     lt_cv_aix_libpath_=/usr/lib:/lib
9793   fi
9794
9795 fi
9796
9797   aix_libpath=$lt_cv_aix_libpath_
9798 fi
9799
9800         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9801         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9802       else
9803         if test ia64 = "$host_cpu"; then
9804           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9805           allow_undefined_flag="-z nodefs"
9806           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"
9807         else
9808          # Determine the default libpath from the value encoded in an
9809          # empty executable.
9810          if test set = "${lt_cv_aix_libpath+set}"; then
9811   aix_libpath=$lt_cv_aix_libpath
9812 else
9813   if ${lt_cv_aix_libpath_+:} false; then :
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h.  */
9818
9819 int
9820 main ()
9821 {
9822
9823   ;
9824   return 0;
9825 }
9826 _ACEOF
9827 if ac_fn_c_try_link "$LINENO"; then :
9828
9829   lt_aix_libpath_sed='
9830       /Import File Strings/,/^$/ {
9831           /^0/ {
9832               s/^0  *\([^ ]*\) *$/\1/
9833               p
9834           }
9835       }'
9836   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837   # Check for a 64-bit object if we didn't find anything.
9838   if test -z "$lt_cv_aix_libpath_"; then
9839     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9840   fi
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext \
9843     conftest$ac_exeext conftest.$ac_ext
9844   if test -z "$lt_cv_aix_libpath_"; then
9845     lt_cv_aix_libpath_=/usr/lib:/lib
9846   fi
9847
9848 fi
9849
9850   aix_libpath=$lt_cv_aix_libpath_
9851 fi
9852
9853          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9854           # Warning - without using the other run time loading flags,
9855           # -berok will link without error, but may produce a broken library.
9856           no_undefined_flag=' $wl-bernotok'
9857           allow_undefined_flag=' $wl-berok'
9858           if test yes = "$with_gnu_ld"; then
9859             # We only use this code for GNU lds that support --whole-archive.
9860             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9861           else
9862             # Exported symbols can be pulled into shared objects from archives
9863             whole_archive_flag_spec='$convenience'
9864           fi
9865           archive_cmds_need_lc=yes
9866           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9867           # -brtl affects multiple linker settings, -berok does not and is overridden later
9868           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9869           if test svr4 != "$with_aix_soname"; then
9870             # This is similar to how AIX traditionally builds its shared libraries.
9871             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9872           fi
9873           if test aix != "$with_aix_soname"; then
9874             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9875           else
9876             # used by -dlpreopen to get the symbols
9877             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9878           fi
9879           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9880         fi
9881       fi
9882       ;;
9883
9884     amigaos*)
9885       case $host_cpu in
9886       powerpc)
9887             # see comment about AmigaOS4 .so support
9888             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889             archive_expsym_cmds=''
9890         ;;
9891       m68k)
9892             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)'
9893             hardcode_libdir_flag_spec='-L$libdir'
9894             hardcode_minus_L=yes
9895         ;;
9896       esac
9897       ;;
9898
9899     bsdi[45]*)
9900       export_dynamic_flag_spec=-rdynamic
9901       ;;
9902
9903     cygwin* | mingw* | pw32* | cegcc*)
9904       # When not using gcc, we currently assume that we are using
9905       # Microsoft Visual C++.
9906       # hardcode_libdir_flag_spec is actually meaningless, as there is
9907       # no search path for DLLs.
9908       case $cc_basename in
9909       cl*)
9910         # Native MSVC
9911         hardcode_libdir_flag_spec=' '
9912         allow_undefined_flag=unsupported
9913         always_export_symbols=yes
9914         file_list_spec='@'
9915         # Tell ltmain to make .lib files, not .a files.
9916         libext=lib
9917         # Tell ltmain to make .dll files, not .so files.
9918         shrext_cmds=.dll
9919         # FIXME: Setting linknames here is a bad hack.
9920         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9921         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9922             cp "$export_symbols" "$output_objdir/$soname.def";
9923             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9924           else
9925             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9926           fi~
9927           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9928           linknames='
9929         # The linker will not automatically build a static lib if we build a DLL.
9930         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9931         enable_shared_with_static_runtimes=yes
9932         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9933         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9934         # Don't use ranlib
9935         old_postinstall_cmds='chmod 644 $oldlib'
9936         postlink_cmds='lt_outputfile="@OUTPUT@"~
9937           lt_tool_outputfile="@TOOL_OUTPUT@"~
9938           case $lt_outputfile in
9939             *.exe|*.EXE) ;;
9940             *)
9941               lt_outputfile=$lt_outputfile.exe
9942               lt_tool_outputfile=$lt_tool_outputfile.exe
9943               ;;
9944           esac~
9945           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9946             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9947             $RM "$lt_outputfile.manifest";
9948           fi'
9949         ;;
9950       *)
9951         # Assume MSVC wrapper
9952         hardcode_libdir_flag_spec=' '
9953         allow_undefined_flag=unsupported
9954         # Tell ltmain to make .lib files, not .a files.
9955         libext=lib
9956         # Tell ltmain to make .dll files, not .so files.
9957         shrext_cmds=.dll
9958         # FIXME: Setting linknames here is a bad hack.
9959         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9960         # The linker will automatically build a .lib file if we build a DLL.
9961         old_archive_from_new_cmds='true'
9962         # FIXME: Should let the user specify the lib program.
9963         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9964         enable_shared_with_static_runtimes=yes
9965         ;;
9966       esac
9967       ;;
9968
9969     darwin* | rhapsody*)
9970
9971
9972   archive_cmds_need_lc=no
9973   hardcode_direct=no
9974   hardcode_automatic=yes
9975   hardcode_shlibpath_var=unsupported
9976   if test yes = "$lt_cv_ld_force_load"; then
9977     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\"`'
9978
9979   else
9980     whole_archive_flag_spec=''
9981   fi
9982   link_all_deplibs=yes
9983   allow_undefined_flag=$_lt_dar_allow_undefined
9984   case $cc_basename in
9985      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9986      *) _lt_dar_can_shared=$GCC ;;
9987   esac
9988   if test yes = "$_lt_dar_can_shared"; then
9989     output_verbose_link_cmd=func_echo_all
9990     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9991     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9992     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"
9993     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"
9994
9995   else
9996   ld_shlibs=no
9997   fi
9998
9999       ;;
10000
10001     dgux*)
10002       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003       hardcode_libdir_flag_spec='-L$libdir'
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10008     # support.  Future versions do this automatically, but an explicit c++rt0.o
10009     # does not break anything, and helps significantly (at the cost of a little
10010     # extra space).
10011     freebsd2.2*)
10012       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10013       hardcode_libdir_flag_spec='-R$libdir'
10014       hardcode_direct=yes
10015       hardcode_shlibpath_var=no
10016       ;;
10017
10018     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10019     freebsd2.*)
10020       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_direct=yes
10022       hardcode_minus_L=yes
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10027     freebsd* | dragonfly*)
10028       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10029       hardcode_libdir_flag_spec='-R$libdir'
10030       hardcode_direct=yes
10031       hardcode_shlibpath_var=no
10032       ;;
10033
10034     hpux9*)
10035       if test yes = "$GCC"; then
10036         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10037       else
10038         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10039       fi
10040       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10041       hardcode_libdir_separator=:
10042       hardcode_direct=yes
10043
10044       # hardcode_minus_L: Not really in the search PATH,
10045       # but as the default location of the library.
10046       hardcode_minus_L=yes
10047       export_dynamic_flag_spec='$wl-E'
10048       ;;
10049
10050     hpux10*)
10051       if test yes,no = "$GCC,$with_gnu_ld"; then
10052         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10053       else
10054         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10055       fi
10056       if test no = "$with_gnu_ld"; then
10057         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10058         hardcode_libdir_separator=:
10059         hardcode_direct=yes
10060         hardcode_direct_absolute=yes
10061         export_dynamic_flag_spec='$wl-E'
10062         # hardcode_minus_L: Not really in the search PATH,
10063         # but as the default location of the library.
10064         hardcode_minus_L=yes
10065       fi
10066       ;;
10067
10068     hpux11*)
10069       if test yes,no = "$GCC,$with_gnu_ld"; then
10070         case $host_cpu in
10071         hppa*64*)
10072           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10073           ;;
10074         ia64*)
10075           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10076           ;;
10077         *)
10078           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10079           ;;
10080         esac
10081       else
10082         case $host_cpu in
10083         hppa*64*)
10084           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10085           ;;
10086         ia64*)
10087           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088           ;;
10089         *)
10090
10091           # Older versions of the 11.00 compiler do not understand -b yet
10092           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10093           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10094 $as_echo_n "checking if $CC understands -b... " >&6; }
10095 if ${lt_cv_prog_compiler__b+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   lt_cv_prog_compiler__b=no
10099    save_LDFLAGS=$LDFLAGS
10100    LDFLAGS="$LDFLAGS -b"
10101    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103      # The linker can only warn and ignore the option if not recognized
10104      # So say no if there are warnings
10105      if test -s conftest.err; then
10106        # Append any errors to the config.log.
10107        cat conftest.err 1>&5
10108        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110        if diff conftest.exp conftest.er2 >/dev/null; then
10111          lt_cv_prog_compiler__b=yes
10112        fi
10113      else
10114        lt_cv_prog_compiler__b=yes
10115      fi
10116    fi
10117    $RM -r conftest*
10118    LDFLAGS=$save_LDFLAGS
10119
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10122 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10123
10124 if test yes = "$lt_cv_prog_compiler__b"; then
10125     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10126 else
10127     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10128 fi
10129
10130           ;;
10131         esac
10132       fi
10133       if test no = "$with_gnu_ld"; then
10134         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10135         hardcode_libdir_separator=:
10136
10137         case $host_cpu in
10138         hppa*64*|ia64*)
10139           hardcode_direct=no
10140           hardcode_shlibpath_var=no
10141           ;;
10142         *)
10143           hardcode_direct=yes
10144           hardcode_direct_absolute=yes
10145           export_dynamic_flag_spec='$wl-E'
10146
10147           # hardcode_minus_L: Not really in the search PATH,
10148           # but as the default location of the library.
10149           hardcode_minus_L=yes
10150           ;;
10151         esac
10152       fi
10153       ;;
10154
10155     irix5* | irix6* | nonstopux*)
10156       if test yes = "$GCC"; then
10157         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'
10158         # Try to use the -exported_symbol ld option, if it does not
10159         # work, assume that -exports_file does not work either and
10160         # implicitly export all symbols.
10161         # This should be the same for all languages, so no per-tag cache variable.
10162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10163 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10164 if ${lt_cv_irix_exported_symbol+:} false; then :
10165   $as_echo_n "(cached) " >&6
10166 else
10167   save_LDFLAGS=$LDFLAGS
10168            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10169            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h.  */
10171 int foo (void) { return 0; }
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174   lt_cv_irix_exported_symbol=yes
10175 else
10176   lt_cv_irix_exported_symbol=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext \
10179     conftest$ac_exeext conftest.$ac_ext
10180            LDFLAGS=$save_LDFLAGS
10181 fi
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10183 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10184         if test yes = "$lt_cv_irix_exported_symbol"; then
10185           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'
10186         fi
10187         link_all_deplibs=no
10188       else
10189         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'
10190         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'
10191       fi
10192       archive_cmds_need_lc='no'
10193       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194       hardcode_libdir_separator=:
10195       inherit_rpath=yes
10196       link_all_deplibs=yes
10197       ;;
10198
10199     linux*)
10200       case $cc_basename in
10201       tcc*)
10202         # Fabrice Bellard et al's Tiny C Compiler
10203         ld_shlibs=yes
10204         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10205         ;;
10206       esac
10207       ;;
10208
10209     netbsd* | netbsdelf*-gnu)
10210       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10211         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10212       else
10213         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10214       fi
10215       hardcode_libdir_flag_spec='-R$libdir'
10216       hardcode_direct=yes
10217       hardcode_shlibpath_var=no
10218       ;;
10219
10220     newsos6)
10221       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222       hardcode_direct=yes
10223       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10224       hardcode_libdir_separator=:
10225       hardcode_shlibpath_var=no
10226       ;;
10227
10228     *nto* | *qnx*)
10229       ;;
10230
10231     openbsd* | bitrig*)
10232       if test -f /usr/libexec/ld.so; then
10233         hardcode_direct=yes
10234         hardcode_shlibpath_var=no
10235         hardcode_direct_absolute=yes
10236         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10237           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10238           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10239           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10240           export_dynamic_flag_spec='$wl-E'
10241         else
10242           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10244         fi
10245       else
10246         ld_shlibs=no
10247       fi
10248       ;;
10249
10250     os2*)
10251       hardcode_libdir_flag_spec='-L$libdir'
10252       hardcode_minus_L=yes
10253       allow_undefined_flag=unsupported
10254       shrext_cmds=.dll
10255       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10256         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10257         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10258         $ECHO EXPORTS >> $output_objdir/$libname.def~
10259         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10260         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10261         emximp -o $lib $output_objdir/$libname.def'
10262       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10263         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10264         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10265         $ECHO EXPORTS >> $output_objdir/$libname.def~
10266         prefix_cmds="$SED"~
10267         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10268           prefix_cmds="$prefix_cmds -e 1d";
10269         fi~
10270         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10271         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10272         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10273         emximp -o $lib $output_objdir/$libname.def'
10274       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10275       enable_shared_with_static_runtimes=yes
10276       ;;
10277
10278     osf3*)
10279       if test yes = "$GCC"; then
10280         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10281         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'
10282       else
10283         allow_undefined_flag=' -expect_unresolved \*'
10284         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'
10285       fi
10286       archive_cmds_need_lc='no'
10287       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10288       hardcode_libdir_separator=:
10289       ;;
10290
10291     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10292       if test yes = "$GCC"; then
10293         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10294         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'
10295         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10296       else
10297         allow_undefined_flag=' -expect_unresolved \*'
10298         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'
10299         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~
10300           $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'
10301
10302         # Both c and cxx compiler support -rpath directly
10303         hardcode_libdir_flag_spec='-rpath $libdir'
10304       fi
10305       archive_cmds_need_lc='no'
10306       hardcode_libdir_separator=:
10307       ;;
10308
10309     solaris*)
10310       no_undefined_flag=' -z defs'
10311       if test yes = "$GCC"; then
10312         wlarc='$wl'
10313         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10314         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10315           $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'
10316       else
10317         case `$CC -V 2>&1` in
10318         *"Compilers 5.0"*)
10319           wlarc=''
10320           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10322             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10323           ;;
10324         *)
10325           wlarc='$wl'
10326           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10327           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10329           ;;
10330         esac
10331       fi
10332       hardcode_libdir_flag_spec='-R$libdir'
10333       hardcode_shlibpath_var=no
10334       case $host_os in
10335       solaris2.[0-5] | solaris2.[0-5].*) ;;
10336       *)
10337         # The compiler driver will combine and reorder linker options,
10338         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10339         # but is careful enough not to reorder.
10340         # Supported since Solaris 2.6 (maybe 2.5.1?)
10341         if test yes = "$GCC"; then
10342           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10343         else
10344           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10345         fi
10346         ;;
10347       esac
10348       link_all_deplibs=yes
10349       ;;
10350
10351     sunos4*)
10352       if test sequent = "$host_vendor"; then
10353         # Use $CC to link under sequent, because it throws in some extra .o
10354         # files that make .init and .fini sections work.
10355         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10356       else
10357         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10358       fi
10359       hardcode_libdir_flag_spec='-L$libdir'
10360       hardcode_direct=yes
10361       hardcode_minus_L=yes
10362       hardcode_shlibpath_var=no
10363       ;;
10364
10365     sysv4)
10366       case $host_vendor in
10367         sni)
10368           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369           hardcode_direct=yes # is this really true???
10370         ;;
10371         siemens)
10372           ## LD is ld it makes a PLAMLIB
10373           ## CC just makes a GrossModule.
10374           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10375           reload_cmds='$CC -r -o $output$reload_objs'
10376           hardcode_direct=no
10377         ;;
10378         motorola)
10379           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10381         ;;
10382       esac
10383       runpath_var='LD_RUN_PATH'
10384       hardcode_shlibpath_var=no
10385       ;;
10386
10387     sysv4.3*)
10388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389       hardcode_shlibpath_var=no
10390       export_dynamic_flag_spec='-Bexport'
10391       ;;
10392
10393     sysv4*MP*)
10394       if test -d /usr/nec; then
10395         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396         hardcode_shlibpath_var=no
10397         runpath_var=LD_RUN_PATH
10398         hardcode_runpath_var=yes
10399         ld_shlibs=yes
10400       fi
10401       ;;
10402
10403     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10404       no_undefined_flag='$wl-z,text'
10405       archive_cmds_need_lc=no
10406       hardcode_shlibpath_var=no
10407       runpath_var='LD_RUN_PATH'
10408
10409       if test yes = "$GCC"; then
10410         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412       else
10413         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415       fi
10416       ;;
10417
10418     sysv5* | sco3.2v5* | sco5v6*)
10419       # Note: We CANNOT use -z defs as we might desire, because we do not
10420       # link with -lc, and that would cause any symbols used from libc to
10421       # always be unresolved, which means just about no library would
10422       # ever link correctly.  If we're not using GNU ld we use -z text
10423       # though, which does catch some bad symbols but isn't as heavy-handed
10424       # as -z defs.
10425       no_undefined_flag='$wl-z,text'
10426       allow_undefined_flag='$wl-z,nodefs'
10427       archive_cmds_need_lc=no
10428       hardcode_shlibpath_var=no
10429       hardcode_libdir_flag_spec='$wl-R,$libdir'
10430       hardcode_libdir_separator=':'
10431       link_all_deplibs=yes
10432       export_dynamic_flag_spec='$wl-Bexport'
10433       runpath_var='LD_RUN_PATH'
10434
10435       if test yes = "$GCC"; then
10436         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10438       else
10439         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10441       fi
10442       ;;
10443
10444     uts4*)
10445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446       hardcode_libdir_flag_spec='-L$libdir'
10447       hardcode_shlibpath_var=no
10448       ;;
10449
10450     *)
10451       ld_shlibs=no
10452       ;;
10453     esac
10454
10455     if test sni = "$host_vendor"; then
10456       case $host in
10457       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10458         export_dynamic_flag_spec='$wl-Blargedynsym'
10459         ;;
10460       esac
10461     fi
10462   fi
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10465 $as_echo "$ld_shlibs" >&6; }
10466 test no = "$ld_shlibs" && can_build_shared=no
10467
10468 with_gnu_ld=$with_gnu_ld
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484 #
10485 # Do we need to explicitly link libc?
10486 #
10487 case "x$archive_cmds_need_lc" in
10488 x|xyes)
10489   # Assume -lc should be added
10490   archive_cmds_need_lc=yes
10491
10492   if test yes,yes = "$GCC,$enable_shared"; then
10493     case $archive_cmds in
10494     *'~'*)
10495       # FIXME: we may have to deal with multi-command sequences.
10496       ;;
10497     '$CC '*)
10498       # Test whether the compiler implicitly links with -lc since on some
10499       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10500       # to ld, don't add -lc before -lgcc.
10501       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10503 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   $RM conftest*
10507         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10508
10509         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10510   (eval $ac_compile) 2>&5
10511   ac_status=$?
10512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; } 2>conftest.err; then
10514           soname=conftest
10515           lib=conftest
10516           libobjs=conftest.$ac_objext
10517           deplibs=
10518           wl=$lt_prog_compiler_wl
10519           pic_flag=$lt_prog_compiler_pic
10520           compiler_flags=-v
10521           linker_flags=-v
10522           verstring=
10523           output_objdir=.
10524           libname=conftest
10525           lt_save_allow_undefined_flag=$allow_undefined_flag
10526           allow_undefined_flag=
10527           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10528   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10529   ac_status=$?
10530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531   test $ac_status = 0; }
10532           then
10533             lt_cv_archive_cmds_need_lc=no
10534           else
10535             lt_cv_archive_cmds_need_lc=yes
10536           fi
10537           allow_undefined_flag=$lt_save_allow_undefined_flag
10538         else
10539           cat conftest.err 1>&5
10540         fi
10541         $RM conftest*
10542
10543 fi
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10546       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10547       ;;
10548     esac
10549   fi
10550   ;;
10551 esac
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10706
10707 if test yes = "$GCC"; then
10708   case $host_os in
10709     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10710     *) lt_awk_arg='/^libraries:/' ;;
10711   esac
10712   case $host_os in
10713     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10714     *) lt_sed_strip_eq='s|=/|/|g' ;;
10715   esac
10716   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10717   case $lt_search_path_spec in
10718   *\;*)
10719     # if the path contains ";" then we assume it to be the separator
10720     # otherwise default to the standard path separator (i.e. ":") - it is
10721     # assumed that no part of a normal pathname contains ";" but that should
10722     # okay in the real world where ";" in dirpaths is itself problematic.
10723     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10724     ;;
10725   *)
10726     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10727     ;;
10728   esac
10729   # Ok, now we have the path, separated by spaces, we can step through it
10730   # and add multilib dir if necessary...
10731   lt_tmp_lt_search_path_spec=
10732   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10733   # ...but if some path component already ends with the multilib dir we assume
10734   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10735   case "$lt_multi_os_dir; $lt_search_path_spec " in
10736   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10737     lt_multi_os_dir=
10738     ;;
10739   esac
10740   for lt_sys_path in $lt_search_path_spec; do
10741     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10742       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10743     elif test -n "$lt_multi_os_dir"; then
10744       test -d "$lt_sys_path" && \
10745         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10746     fi
10747   done
10748   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10749 BEGIN {RS = " "; FS = "/|\n";} {
10750   lt_foo = "";
10751   lt_count = 0;
10752   for (lt_i = NF; lt_i > 0; lt_i--) {
10753     if ($lt_i != "" && $lt_i != ".") {
10754       if ($lt_i == "..") {
10755         lt_count++;
10756       } else {
10757         if (lt_count == 0) {
10758           lt_foo = "/" $lt_i lt_foo;
10759         } else {
10760           lt_count--;
10761         }
10762       }
10763     }
10764   }
10765   if (lt_foo != "") { lt_freq[lt_foo]++; }
10766   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10767 }'`
10768   # AWK program above erroneously prepends '/' to C:/dos/paths
10769   # for these hosts.
10770   case $host_os in
10771     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10772       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10773   esac
10774   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10775 else
10776   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10777 fi
10778 library_names_spec=
10779 libname_spec='lib$name'
10780 soname_spec=
10781 shrext_cmds=.so
10782 postinstall_cmds=
10783 postuninstall_cmds=
10784 finish_cmds=
10785 finish_eval=
10786 shlibpath_var=
10787 shlibpath_overrides_runpath=unknown
10788 version_type=none
10789 dynamic_linker="$host_os ld.so"
10790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10791 need_lib_prefix=unknown
10792 hardcode_into_libs=no
10793
10794 # when you set need_version to no, make sure it does not cause -set_version
10795 # flags to be left without arguments
10796 need_version=unknown
10797
10798
10799
10800 case $host_os in
10801 aix3*)
10802   version_type=linux # correct to gnu/linux during the next big refactor
10803   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10804   shlibpath_var=LIBPATH
10805
10806   # AIX 3 has no versioning support, so we append a major version to the name.
10807   soname_spec='$libname$release$shared_ext$major'
10808   ;;
10809
10810 aix[4-9]*)
10811   version_type=linux # correct to gnu/linux during the next big refactor
10812   need_lib_prefix=no
10813   need_version=no
10814   hardcode_into_libs=yes
10815   if test ia64 = "$host_cpu"; then
10816     # AIX 5 supports IA64
10817     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10818     shlibpath_var=LD_LIBRARY_PATH
10819   else
10820     # With GCC up to 2.95.x, collect2 would create an import file
10821     # for dependence libraries.  The import file would start with
10822     # the line '#! .'.  This would cause the generated library to
10823     # depend on '.', always an invalid library.  This was fixed in
10824     # development snapshots of GCC prior to 3.0.
10825     case $host_os in
10826       aix4 | aix4.[01] | aix4.[01].*)
10827       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10828            echo ' yes '
10829            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10830         :
10831       else
10832         can_build_shared=no
10833       fi
10834       ;;
10835     esac
10836     # Using Import Files as archive members, it is possible to support
10837     # filename-based versioning of shared library archives on AIX. While
10838     # this would work for both with and without runtime linking, it will
10839     # prevent static linking of such archives. So we do filename-based
10840     # shared library versioning with .so extension only, which is used
10841     # when both runtime linking and shared linking is enabled.
10842     # Unfortunately, runtime linking may impact performance, so we do
10843     # not want this to be the default eventually. Also, we use the
10844     # versioned .so libs for executables only if there is the -brtl
10845     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10846     # To allow for filename-based versioning support, we need to create
10847     # libNAME.so.V as an archive file, containing:
10848     # *) an Import File, referring to the versioned filename of the
10849     #    archive as well as the shared archive member, telling the
10850     #    bitwidth (32 or 64) of that shared object, and providing the
10851     #    list of exported symbols of that shared object, eventually
10852     #    decorated with the 'weak' keyword
10853     # *) the shared object with the F_LOADONLY flag set, to really avoid
10854     #    it being seen by the linker.
10855     # At run time we better use the real file rather than another symlink,
10856     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10857
10858     case $with_aix_soname,$aix_use_runtimelinking in
10859     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10860     # soname into executable. Probably we can add versioning support to
10861     # collect2, so additional links can be useful in future.
10862     aix,yes) # traditional libtool
10863       dynamic_linker='AIX unversionable lib.so'
10864       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10865       # instead of lib<name>.a to let people know that these are not
10866       # typical AIX shared libraries.
10867       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868       ;;
10869     aix,no) # traditional AIX only
10870       dynamic_linker='AIX lib.a(lib.so.V)'
10871       # We preserve .a as extension for shared libraries through AIX4.2
10872       # and later when we are not doing run time linking.
10873       library_names_spec='$libname$release.a $libname.a'
10874       soname_spec='$libname$release$shared_ext$major'
10875       ;;
10876     svr4,*) # full svr4 only
10877       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10878       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10879       # We do not specify a path in Import Files, so LIBPATH fires.
10880       shlibpath_overrides_runpath=yes
10881       ;;
10882     *,yes) # both, prefer svr4
10883       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10884       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10885       # unpreferred sharedlib libNAME.a needs extra handling
10886       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10887       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10888       # We do not specify a path in Import Files, so LIBPATH fires.
10889       shlibpath_overrides_runpath=yes
10890       ;;
10891     *,no) # both, prefer aix
10892       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10893       library_names_spec='$libname$release.a $libname.a'
10894       soname_spec='$libname$release$shared_ext$major'
10895       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10896       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10897       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10898       ;;
10899     esac
10900     shlibpath_var=LIBPATH
10901   fi
10902   ;;
10903
10904 amigaos*)
10905   case $host_cpu in
10906   powerpc)
10907     # Since July 2007 AmigaOS4 officially supports .so libraries.
10908     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10909     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910     ;;
10911   m68k)
10912     library_names_spec='$libname.ixlibrary $libname.a'
10913     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10915     ;;
10916   esac
10917   ;;
10918
10919 beos*)
10920   library_names_spec='$libname$shared_ext'
10921   dynamic_linker="$host_os ld.so"
10922   shlibpath_var=LIBRARY_PATH
10923   ;;
10924
10925 bsdi[45]*)
10926   version_type=linux # correct to gnu/linux during the next big refactor
10927   need_version=no
10928   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929   soname_spec='$libname$release$shared_ext$major'
10930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10934   # the default ld.so.conf also contains /usr/contrib/lib and
10935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10936   # libtool to hard-code these into programs
10937   ;;
10938
10939 cygwin* | mingw* | pw32* | cegcc*)
10940   version_type=windows
10941   shrext_cmds=.dll
10942   need_version=no
10943   need_lib_prefix=no
10944
10945   case $GCC,$cc_basename in
10946   yes,*)
10947     # gcc
10948     library_names_spec='$libname.dll.a'
10949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950     postinstall_cmds='base_file=`basename \$file`~
10951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10952       dldir=$destdir/`dirname \$dlpath`~
10953       test -d \$dldir || mkdir -p \$dldir~
10954       $install_prog $dir/$dlname \$dldir/$dlname~
10955       chmod a+x \$dldir/$dlname~
10956       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10957         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10958       fi'
10959     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10960       dlpath=$dir/\$dldll~
10961        $RM \$dlpath'
10962     shlibpath_overrides_runpath=yes
10963
10964     case $host_os in
10965     cygwin*)
10966       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10967       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10968
10969       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10970       ;;
10971     mingw* | cegcc*)
10972       # MinGW DLLs use traditional 'lib' prefix
10973       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10974       ;;
10975     pw32*)
10976       # pw32 DLLs use 'pw' prefix rather than 'lib'
10977       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10978       ;;
10979     esac
10980     dynamic_linker='Win32 ld.exe'
10981     ;;
10982
10983   *,cl*)
10984     # Native MSVC
10985     libname_spec='$name'
10986     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987     library_names_spec='$libname.dll.lib'
10988
10989     case $build_os in
10990     mingw*)
10991       sys_lib_search_path_spec=
10992       lt_save_ifs=$IFS
10993       IFS=';'
10994       for lt_path in $LIB
10995       do
10996         IFS=$lt_save_ifs
10997         # Let DOS variable expansion print the short 8.3 style file name.
10998         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10999         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11000       done
11001       IFS=$lt_save_ifs
11002       # Convert to MSYS style.
11003       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11004       ;;
11005     cygwin*)
11006       # Convert to unix form, then to dos form, then back to unix form
11007       # but this time dos style (no spaces!) so that the unix form looks
11008       # like /cygdrive/c/PROGRA~1:/cygdr...
11009       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11010       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11011       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11012       ;;
11013     *)
11014       sys_lib_search_path_spec=$LIB
11015       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11016         # It is most probably a Windows format PATH.
11017         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11018       else
11019         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11020       fi
11021       # FIXME: find the short name or the path components, as spaces are
11022       # common. (e.g. "Program Files" -> "PROGRA~1")
11023       ;;
11024     esac
11025
11026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027     postinstall_cmds='base_file=`basename \$file`~
11028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11029       dldir=$destdir/`dirname \$dlpath`~
11030       test -d \$dldir || mkdir -p \$dldir~
11031       $install_prog $dir/$dlname \$dldir/$dlname'
11032     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033       dlpath=$dir/\$dldll~
11034        $RM \$dlpath'
11035     shlibpath_overrides_runpath=yes
11036     dynamic_linker='Win32 link.exe'
11037     ;;
11038
11039   *)
11040     # Assume MSVC wrapper
11041     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11042     dynamic_linker='Win32 ld.exe'
11043     ;;
11044   esac
11045   # FIXME: first we should search . and the directory the executable is in
11046   shlibpath_var=PATH
11047   ;;
11048
11049 darwin* | rhapsody*)
11050   dynamic_linker="$host_os dyld"
11051   version_type=darwin
11052   need_lib_prefix=no
11053   need_version=no
11054   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11055   soname_spec='$libname$release$major$shared_ext'
11056   shlibpath_overrides_runpath=yes
11057   shlibpath_var=DYLD_LIBRARY_PATH
11058   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11059
11060   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11061   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11062   ;;
11063
11064 dgux*)
11065   version_type=linux # correct to gnu/linux during the next big refactor
11066   need_lib_prefix=no
11067   need_version=no
11068   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069   soname_spec='$libname$release$shared_ext$major'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   ;;
11072
11073 freebsd* | dragonfly*)
11074   # DragonFly does not have aout.  When/if they implement a new
11075   # versioning mechanism, adjust this.
11076   if test -x /usr/bin/objformat; then
11077     objformat=`/usr/bin/objformat`
11078   else
11079     case $host_os in
11080     freebsd[23].*) objformat=aout ;;
11081     *) objformat=elf ;;
11082     esac
11083   fi
11084   version_type=freebsd-$objformat
11085   case $version_type in
11086     freebsd-elf*)
11087       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088       soname_spec='$libname$release$shared_ext$major'
11089       need_version=no
11090       need_lib_prefix=no
11091       ;;
11092     freebsd-*)
11093       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11094       need_version=yes
11095       ;;
11096   esac
11097   shlibpath_var=LD_LIBRARY_PATH
11098   case $host_os in
11099   freebsd2.*)
11100     shlibpath_overrides_runpath=yes
11101     ;;
11102   freebsd3.[01]* | freebsdelf3.[01]*)
11103     shlibpath_overrides_runpath=yes
11104     hardcode_into_libs=yes
11105     ;;
11106   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11107   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11108     shlibpath_overrides_runpath=no
11109     hardcode_into_libs=yes
11110     ;;
11111   *) # from 4.6 on, and DragonFly
11112     shlibpath_overrides_runpath=yes
11113     hardcode_into_libs=yes
11114     ;;
11115   esac
11116   ;;
11117
11118 haiku*)
11119   version_type=linux # correct to gnu/linux during the next big refactor
11120   need_lib_prefix=no
11121   need_version=no
11122   dynamic_linker="$host_os runtime_loader"
11123   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124   soname_spec='$libname$release$shared_ext$major'
11125   shlibpath_var=LIBRARY_PATH
11126   shlibpath_overrides_runpath=no
11127   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11128   hardcode_into_libs=yes
11129   ;;
11130
11131 hpux9* | hpux10* | hpux11*)
11132   # Give a soname corresponding to the major version so that dld.sl refuses to
11133   # link against other versions.
11134   version_type=sunos
11135   need_lib_prefix=no
11136   need_version=no
11137   case $host_cpu in
11138   ia64*)
11139     shrext_cmds='.so'
11140     hardcode_into_libs=yes
11141     dynamic_linker="$host_os dld.so"
11142     shlibpath_var=LD_LIBRARY_PATH
11143     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11144     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145     soname_spec='$libname$release$shared_ext$major'
11146     if test 32 = "$HPUX_IA64_MODE"; then
11147       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11148       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11149     else
11150       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11151       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11152     fi
11153     ;;
11154   hppa*64*)
11155     shrext_cmds='.sl'
11156     hardcode_into_libs=yes
11157     dynamic_linker="$host_os dld.sl"
11158     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11159     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11160     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161     soname_spec='$libname$release$shared_ext$major'
11162     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11164     ;;
11165   *)
11166     shrext_cmds='.sl'
11167     dynamic_linker="$host_os dld.sl"
11168     shlibpath_var=SHLIB_PATH
11169     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11170     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171     soname_spec='$libname$release$shared_ext$major'
11172     ;;
11173   esac
11174   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11175   postinstall_cmds='chmod 555 $lib'
11176   # or fails outright, so override atomically:
11177   install_override_mode=555
11178   ;;
11179
11180 interix[3-9]*)
11181   version_type=linux # correct to gnu/linux during the next big refactor
11182   need_lib_prefix=no
11183   need_version=no
11184   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185   soname_spec='$libname$release$shared_ext$major'
11186   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11187   shlibpath_var=LD_LIBRARY_PATH
11188   shlibpath_overrides_runpath=no
11189   hardcode_into_libs=yes
11190   ;;
11191
11192 irix5* | irix6* | nonstopux*)
11193   case $host_os in
11194     nonstopux*) version_type=nonstopux ;;
11195     *)
11196         if test yes = "$lt_cv_prog_gnu_ld"; then
11197                 version_type=linux # correct to gnu/linux during the next big refactor
11198         else
11199                 version_type=irix
11200         fi ;;
11201   esac
11202   need_lib_prefix=no
11203   need_version=no
11204   soname_spec='$libname$release$shared_ext$major'
11205   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11206   case $host_os in
11207   irix5* | nonstopux*)
11208     libsuff= shlibsuff=
11209     ;;
11210   *)
11211     case $LD in # libtool.m4 will add one of these switches to LD
11212     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11213       libsuff= shlibsuff= libmagic=32-bit;;
11214     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11215       libsuff=32 shlibsuff=N32 libmagic=N32;;
11216     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11217       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11218     *) libsuff= shlibsuff= libmagic=never-match;;
11219     esac
11220     ;;
11221   esac
11222   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11223   shlibpath_overrides_runpath=no
11224   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11225   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11226   hardcode_into_libs=yes
11227   ;;
11228
11229 # No shared lib support for Linux oldld, aout, or coff.
11230 linux*oldld* | linux*aout* | linux*coff*)
11231   dynamic_linker=no
11232   ;;
11233
11234 linux*android*)
11235   version_type=none # Android doesn't support versioned libraries.
11236   need_lib_prefix=no
11237   need_version=no
11238   library_names_spec='$libname$release$shared_ext'
11239   soname_spec='$libname$release$shared_ext'
11240   finish_cmds=
11241   shlibpath_var=LD_LIBRARY_PATH
11242   shlibpath_overrides_runpath=yes
11243
11244   # This implies no fast_install, which is unacceptable.
11245   # Some rework will be needed to allow for fast_install
11246   # before this can be enabled.
11247   hardcode_into_libs=yes
11248
11249   dynamic_linker='Android linker'
11250   # Don't embed -rpath directories since the linker doesn't support them.
11251   hardcode_libdir_flag_spec='-L$libdir'
11252   ;;
11253
11254 # This must be glibc/ELF.
11255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11256   version_type=linux # correct to gnu/linux during the next big refactor
11257   need_lib_prefix=no
11258   need_version=no
11259   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260   soname_spec='$libname$release$shared_ext$major'
11261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11262   shlibpath_var=LD_LIBRARY_PATH
11263   shlibpath_overrides_runpath=no
11264
11265   # Some binutils ld are patched to set DT_RUNPATH
11266   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   lt_cv_shlibpath_overrides_runpath=no
11270     save_LDFLAGS=$LDFLAGS
11271     save_libdir=$libdir
11272     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11273          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h.  */
11276
11277 int
11278 main ()
11279 {
11280
11281   ;
11282   return 0;
11283 }
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11287   lt_cv_shlibpath_overrides_runpath=yes
11288 fi
11289 fi
11290 rm -f core conftest.err conftest.$ac_objext \
11291     conftest$ac_exeext conftest.$ac_ext
11292     LDFLAGS=$save_LDFLAGS
11293     libdir=$save_libdir
11294
11295 fi
11296
11297   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11298
11299   # This implies no fast_install, which is unacceptable.
11300   # Some rework will be needed to allow for fast_install
11301   # before this can be enabled.
11302   hardcode_into_libs=yes
11303
11304   # Ideally, we could use ldconfig to report *all* directores which are
11305   # searched for libraries, however this is still not possible.  Aside from not
11306   # being certain /sbin/ldconfig is available, command
11307   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11308   # even though it is searched at run-time.  Try to do the best guess by
11309   # appending ld.so.conf contents (and includes) to the search path.
11310   if test -f /etc/ld.so.conf; then
11311     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11312     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11313   fi
11314
11315   # We used to test for /lib/ld.so.1 and disable shared libraries on
11316   # powerpc, because MkLinux only supported shared libraries with the
11317   # GNU dynamic linker.  Since this was broken with cross compilers,
11318   # most powerpc-linux boxes support dynamic linking these days and
11319   # people can always --disable-shared, the test was removed, and we
11320   # assume the GNU/Linux dynamic linker is in use.
11321   dynamic_linker='GNU/Linux ld.so'
11322   ;;
11323
11324 netbsdelf*-gnu)
11325   version_type=linux
11326   need_lib_prefix=no
11327   need_version=no
11328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11329   soname_spec='${libname}${release}${shared_ext}$major'
11330   shlibpath_var=LD_LIBRARY_PATH
11331   shlibpath_overrides_runpath=no
11332   hardcode_into_libs=yes
11333   dynamic_linker='NetBSD ld.elf_so'
11334   ;;
11335
11336 netbsd*)
11337   version_type=sunos
11338   need_lib_prefix=no
11339   need_version=no
11340   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11342     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343     dynamic_linker='NetBSD (a.out) ld.so'
11344   else
11345     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11346     soname_spec='$libname$release$shared_ext$major'
11347     dynamic_linker='NetBSD ld.elf_so'
11348   fi
11349   shlibpath_var=LD_LIBRARY_PATH
11350   shlibpath_overrides_runpath=yes
11351   hardcode_into_libs=yes
11352   ;;
11353
11354 newsos6)
11355   version_type=linux # correct to gnu/linux during the next big refactor
11356   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   shlibpath_overrides_runpath=yes
11359   ;;
11360
11361 *nto* | *qnx*)
11362   version_type=qnx
11363   need_lib_prefix=no
11364   need_version=no
11365   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366   soname_spec='$libname$release$shared_ext$major'
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=no
11369   hardcode_into_libs=yes
11370   dynamic_linker='ldqnx.so'
11371   ;;
11372
11373 openbsd* | bitrig*)
11374   version_type=sunos
11375   sys_lib_dlsearch_path_spec=/usr/lib
11376   need_lib_prefix=no
11377   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11378     need_version=no
11379   else
11380     need_version=yes
11381   fi
11382   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11383   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384   shlibpath_var=LD_LIBRARY_PATH
11385   shlibpath_overrides_runpath=yes
11386   ;;
11387
11388 os2*)
11389   libname_spec='$name'
11390   version_type=windows
11391   shrext_cmds=.dll
11392   need_version=no
11393   need_lib_prefix=no
11394   # OS/2 can only load a DLL with a base name of 8 characters or less.
11395   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11396     v=$($ECHO $release$versuffix | tr -d .-);
11397     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11398     $ECHO $n$v`$shared_ext'
11399   library_names_spec='${libname}_dll.$libext'
11400   dynamic_linker='OS/2 ld.exe'
11401   shlibpath_var=BEGINLIBPATH
11402   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11404   postinstall_cmds='base_file=`basename \$file`~
11405     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11406     dldir=$destdir/`dirname \$dlpath`~
11407     test -d \$dldir || mkdir -p \$dldir~
11408     $install_prog $dir/$dlname \$dldir/$dlname~
11409     chmod a+x \$dldir/$dlname~
11410     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11411       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11412     fi'
11413   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11414     dlpath=$dir/\$dldll~
11415     $RM \$dlpath'
11416   ;;
11417
11418 osf3* | osf4* | osf5*)
11419   version_type=osf
11420   need_lib_prefix=no
11421   need_version=no
11422   soname_spec='$libname$release$shared_ext$major'
11423   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11427   ;;
11428
11429 rdos*)
11430   dynamic_linker=no
11431   ;;
11432
11433 solaris*)
11434   version_type=linux # correct to gnu/linux during the next big refactor
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438   soname_spec='$libname$release$shared_ext$major'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=yes
11441   hardcode_into_libs=yes
11442   # ldd complains unless libraries are executable
11443   postinstall_cmds='chmod +x $lib'
11444   ;;
11445
11446 sunos4*)
11447   version_type=sunos
11448   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   if test yes = "$with_gnu_ld"; then
11453     need_lib_prefix=no
11454   fi
11455   need_version=yes
11456   ;;
11457
11458 sysv4 | sysv4.3*)
11459   version_type=linux # correct to gnu/linux during the next big refactor
11460   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461   soname_spec='$libname$release$shared_ext$major'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   case $host_vendor in
11464     sni)
11465       shlibpath_overrides_runpath=no
11466       need_lib_prefix=no
11467       runpath_var=LD_RUN_PATH
11468       ;;
11469     siemens)
11470       need_lib_prefix=no
11471       ;;
11472     motorola)
11473       need_lib_prefix=no
11474       need_version=no
11475       shlibpath_overrides_runpath=no
11476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11477       ;;
11478   esac
11479   ;;
11480
11481 sysv4*MP*)
11482   if test -d /usr/nec; then
11483     version_type=linux # correct to gnu/linux during the next big refactor
11484     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11485     soname_spec='$libname$shared_ext.$major'
11486     shlibpath_var=LD_LIBRARY_PATH
11487   fi
11488   ;;
11489
11490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491   version_type=sco
11492   need_lib_prefix=no
11493   need_version=no
11494   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11495   soname_spec='$libname$release$shared_ext$major'
11496   shlibpath_var=LD_LIBRARY_PATH
11497   shlibpath_overrides_runpath=yes
11498   hardcode_into_libs=yes
11499   if test yes = "$with_gnu_ld"; then
11500     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11501   else
11502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11503     case $host_os in
11504       sco3.2v5*)
11505         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11506         ;;
11507     esac
11508   fi
11509   sys_lib_dlsearch_path_spec='/usr/lib'
11510   ;;
11511
11512 tpf*)
11513   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=no
11520   hardcode_into_libs=yes
11521   ;;
11522
11523 uts4*)
11524   version_type=linux # correct to gnu/linux during the next big refactor
11525   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526   soname_spec='$libname$release$shared_ext$major'
11527   shlibpath_var=LD_LIBRARY_PATH
11528   ;;
11529
11530 *)
11531   dynamic_linker=no
11532   ;;
11533 esac
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535 $as_echo "$dynamic_linker" >&6; }
11536 test no = "$dynamic_linker" && can_build_shared=no
11537
11538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 if test yes = "$GCC"; then
11540   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11541 fi
11542
11543 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11544   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11545 fi
11546
11547 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11548   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11549 fi
11550
11551 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11552 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11553
11554 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11555 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11556
11557 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11558 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11658 hardcode_action=
11659 if test -n "$hardcode_libdir_flag_spec" ||
11660    test -n "$runpath_var" ||
11661    test yes = "$hardcode_automatic"; then
11662
11663   # We can hardcode non-existent directories.
11664   if test no != "$hardcode_direct" &&
11665      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11666      # have to relink, otherwise we might link with an installed library
11667      # when we should be linking with a yet-to-be-installed one
11668      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11669      test no != "$hardcode_minus_L"; then
11670     # Linking always hardcodes the temporary library directory.
11671     hardcode_action=relink
11672   else
11673     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11674     hardcode_action=immediate
11675   fi
11676 else
11677   # We cannot hardcode anything, or else we can only hardcode existing
11678   # directories.
11679   hardcode_action=unsupported
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11682 $as_echo "$hardcode_action" >&6; }
11683
11684 if test relink = "$hardcode_action" ||
11685    test yes = "$inherit_rpath"; then
11686   # Fast installation is not supported
11687   enable_fast_install=no
11688 elif test yes = "$shlibpath_overrides_runpath" ||
11689      test no = "$enable_shared"; then
11690   # Fast installation is not necessary
11691   enable_fast_install=needless
11692 fi
11693
11694
11695
11696
11697
11698
11699   if test yes != "$enable_dlopen"; then
11700   enable_dlopen=unknown
11701   enable_dlopen_self=unknown
11702   enable_dlopen_self_static=unknown
11703 else
11704   lt_cv_dlopen=no
11705   lt_cv_dlopen_libs=
11706
11707   case $host_os in
11708   beos*)
11709     lt_cv_dlopen=load_add_on
11710     lt_cv_dlopen_libs=
11711     lt_cv_dlopen_self=yes
11712     ;;
11713
11714   mingw* | pw32* | cegcc*)
11715     lt_cv_dlopen=LoadLibrary
11716     lt_cv_dlopen_libs=
11717     ;;
11718
11719   cygwin*)
11720     lt_cv_dlopen=dlopen
11721     lt_cv_dlopen_libs=
11722     ;;
11723
11724   darwin*)
11725     # if libdl is installed we need to link against it
11726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11728 if ${ac_cv_lib_dl_dlopen+:} false; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-ldl  $LIBS"
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h.  */
11735
11736 /* Override any GCC internal prototype to avoid an error.
11737    Use char because int might match the return type of a GCC
11738    builtin and then its argument prototype would still apply.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char dlopen ();
11743 int
11744 main ()
11745 {
11746 return dlopen ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then :
11752   ac_cv_lib_dl_dlopen=yes
11753 else
11754   ac_cv_lib_dl_dlopen=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext \
11757     conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11763   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11764 else
11765
11766     lt_cv_dlopen=dyld
11767     lt_cv_dlopen_libs=
11768     lt_cv_dlopen_self=yes
11769
11770 fi
11771
11772     ;;
11773
11774   tpf*)
11775     # Don't try to run any link tests for TPF.  We know it's impossible
11776     # because TPF is a cross-compiler, and we know how we open DSOs.
11777     lt_cv_dlopen=dlopen
11778     lt_cv_dlopen_libs=
11779     lt_cv_dlopen_self=no
11780     ;;
11781
11782   *)
11783     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11784 if test "x$ac_cv_func_shl_load" = xyes; then :
11785   lt_cv_dlopen=shl_load
11786 else
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11788 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11789 if ${ac_cv_lib_dld_shl_load+:} false; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-ldld  $LIBS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h.  */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798    Use char because int might match the return type of a GCC
11799    builtin and then its argument prototype would still apply.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char shl_load ();
11804 int
11805 main ()
11806 {
11807 return shl_load ();
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813   ac_cv_lib_dld_shl_load=yes
11814 else
11815   ac_cv_lib_dld_shl_load=no
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818     conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11822 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11823 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11824   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11825 else
11826   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11827 if test "x$ac_cv_func_dlopen" = xyes; then :
11828   lt_cv_dlopen=dlopen
11829 else
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11832 if ${ac_cv_lib_dl_dlopen+:} false; then :
11833   $as_echo_n "(cached) " >&6
11834 else
11835   ac_check_lib_save_LIBS=$LIBS
11836 LIBS="-ldl  $LIBS"
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839
11840 /* Override any GCC internal prototype to avoid an error.
11841    Use char because int might match the return type of a GCC
11842    builtin and then its argument prototype would still apply.  */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char dlopen ();
11847 int
11848 main ()
11849 {
11850 return dlopen ();
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_link "$LINENO"; then :
11856   ac_cv_lib_dl_dlopen=yes
11857 else
11858   ac_cv_lib_dl_dlopen=no
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861     conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11863 fi
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11867   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11868 else
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11871 if ${ac_cv_lib_svld_dlopen+:} false; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lsvld  $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h.  */
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880    Use char because int might match the return type of a GCC
11881    builtin and then its argument prototype would still apply.  */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char dlopen ();
11886 int
11887 main ()
11888 {
11889 return dlopen ();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"; then :
11895   ac_cv_lib_svld_dlopen=yes
11896 else
11897   ac_cv_lib_svld_dlopen=no
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext \
11900     conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11904 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11905 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11906   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11907 else
11908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11909 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11910 if ${ac_cv_lib_dld_dld_link+:} false; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-ldld  $LIBS"
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h.  */
11917
11918 /* Override any GCC internal prototype to avoid an error.
11919    Use char because int might match the return type of a GCC
11920    builtin and then its argument prototype would still apply.  */
11921 #ifdef __cplusplus
11922 extern "C"
11923 #endif
11924 char dld_link ();
11925 int
11926 main ()
11927 {
11928 return dld_link ();
11929   ;
11930   return 0;
11931 }
11932 _ACEOF
11933 if ac_fn_c_try_link "$LINENO"; then :
11934   ac_cv_lib_dld_dld_link=yes
11935 else
11936   ac_cv_lib_dld_dld_link=no
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939     conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11943 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11944 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11945   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11946 fi
11947
11948
11949 fi
11950
11951
11952 fi
11953
11954
11955 fi
11956
11957
11958 fi
11959
11960
11961 fi
11962
11963     ;;
11964   esac
11965
11966   if test no = "$lt_cv_dlopen"; then
11967     enable_dlopen=no
11968   else
11969     enable_dlopen=yes
11970   fi
11971
11972   case $lt_cv_dlopen in
11973   dlopen)
11974     save_CPPFLAGS=$CPPFLAGS
11975     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11976
11977     save_LDFLAGS=$LDFLAGS
11978     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11979
11980     save_LIBS=$LIBS
11981     LIBS="$lt_cv_dlopen_libs $LIBS"
11982
11983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11984 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11985 if ${lt_cv_dlopen_self+:} false; then :
11986   $as_echo_n "(cached) " >&6
11987 else
11988           if test yes = "$cross_compiling"; then :
11989   lt_cv_dlopen_self=cross
11990 else
11991   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992   lt_status=$lt_dlunknown
11993   cat > conftest.$ac_ext <<_LT_EOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
11996
11997 #if HAVE_DLFCN_H
11998 #include <dlfcn.h>
11999 #endif
12000
12001 #include <stdio.h>
12002
12003 #ifdef RTLD_GLOBAL
12004 #  define LT_DLGLOBAL           RTLD_GLOBAL
12005 #else
12006 #  ifdef DL_GLOBAL
12007 #    define LT_DLGLOBAL         DL_GLOBAL
12008 #  else
12009 #    define LT_DLGLOBAL         0
12010 #  endif
12011 #endif
12012
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014    find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12016 #  ifdef RTLD_LAZY
12017 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12018 #  else
12019 #    ifdef DL_LAZY
12020 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12021 #    else
12022 #      ifdef RTLD_NOW
12023 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12024 #      else
12025 #        ifdef DL_NOW
12026 #          define LT_DLLAZY_OR_NOW      DL_NOW
12027 #        else
12028 #          define LT_DLLAZY_OR_NOW      0
12029 #        endif
12030 #      endif
12031 #    endif
12032 #  endif
12033 #endif
12034
12035 /* When -fvisibility=hidden is used, assume the code has been annotated
12036    correspondingly for the symbols needed.  */
12037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12038 int fnord () __attribute__((visibility("default")));
12039 #endif
12040
12041 int fnord () { return 42; }
12042 int main ()
12043 {
12044   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12045   int status = $lt_dlunknown;
12046
12047   if (self)
12048     {
12049       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12050       else
12051         {
12052           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12053           else puts (dlerror ());
12054         }
12055       /* dlclose (self); */
12056     }
12057   else
12058     puts (dlerror ());
12059
12060   return status;
12061 }
12062 _LT_EOF
12063   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12064   (eval $ac_link) 2>&5
12065   ac_status=$?
12066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12068     (./conftest; exit; ) >&5 2>/dev/null
12069     lt_status=$?
12070     case x$lt_status in
12071       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12072       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12073       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12074     esac
12075   else :
12076     # compilation failed
12077     lt_cv_dlopen_self=no
12078   fi
12079 fi
12080 rm -fr conftest*
12081
12082
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12085 $as_echo "$lt_cv_dlopen_self" >&6; }
12086
12087     if test yes = "$lt_cv_dlopen_self"; then
12088       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12090 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12091 if ${lt_cv_dlopen_self_static+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094           if test yes = "$cross_compiling"; then :
12095   lt_cv_dlopen_self_static=cross
12096 else
12097   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098   lt_status=$lt_dlunknown
12099   cat > conftest.$ac_ext <<_LT_EOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102
12103 #if HAVE_DLFCN_H
12104 #include <dlfcn.h>
12105 #endif
12106
12107 #include <stdio.h>
12108
12109 #ifdef RTLD_GLOBAL
12110 #  define LT_DLGLOBAL           RTLD_GLOBAL
12111 #else
12112 #  ifdef DL_GLOBAL
12113 #    define LT_DLGLOBAL         DL_GLOBAL
12114 #  else
12115 #    define LT_DLGLOBAL         0
12116 #  endif
12117 #endif
12118
12119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120    find out it does not work in some platform. */
12121 #ifndef LT_DLLAZY_OR_NOW
12122 #  ifdef RTLD_LAZY
12123 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12124 #  else
12125 #    ifdef DL_LAZY
12126 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12127 #    else
12128 #      ifdef RTLD_NOW
12129 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12130 #      else
12131 #        ifdef DL_NOW
12132 #          define LT_DLLAZY_OR_NOW      DL_NOW
12133 #        else
12134 #          define LT_DLLAZY_OR_NOW      0
12135 #        endif
12136 #      endif
12137 #    endif
12138 #  endif
12139 #endif
12140
12141 /* When -fvisibility=hidden is used, assume the code has been annotated
12142    correspondingly for the symbols needed.  */
12143 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144 int fnord () __attribute__((visibility("default")));
12145 #endif
12146
12147 int fnord () { return 42; }
12148 int main ()
12149 {
12150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151   int status = $lt_dlunknown;
12152
12153   if (self)
12154     {
12155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12156       else
12157         {
12158           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12159           else puts (dlerror ());
12160         }
12161       /* dlclose (self); */
12162     }
12163   else
12164     puts (dlerror ());
12165
12166   return status;
12167 }
12168 _LT_EOF
12169   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170   (eval $ac_link) 2>&5
12171   ac_status=$?
12172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12174     (./conftest; exit; ) >&5 2>/dev/null
12175     lt_status=$?
12176     case x$lt_status in
12177       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12178       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12179       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12180     esac
12181   else :
12182     # compilation failed
12183     lt_cv_dlopen_self_static=no
12184   fi
12185 fi
12186 rm -fr conftest*
12187
12188
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12191 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12192     fi
12193
12194     CPPFLAGS=$save_CPPFLAGS
12195     LDFLAGS=$save_LDFLAGS
12196     LIBS=$save_LIBS
12197     ;;
12198   esac
12199
12200   case $lt_cv_dlopen_self in
12201   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12202   *) enable_dlopen_self=unknown ;;
12203   esac
12204
12205   case $lt_cv_dlopen_self_static in
12206   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12207   *) enable_dlopen_self_static=unknown ;;
12208   esac
12209 fi
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 striplib=
12228 old_striplib=
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12230 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12231 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12232   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12233   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; }
12236 else
12237 # FIXME - insert some real tests, host_os isn't really good enough
12238   case $host_os in
12239   darwin*)
12240     if test -n "$STRIP"; then
12241       striplib="$STRIP -x"
12242       old_striplib="$STRIP -S"
12243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; }
12245     else
12246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248     fi
12249     ;;
12250   *)
12251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253     ;;
12254   esac
12255 fi
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268   # Report what library types will actually be built
12269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12270 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12272 $as_echo "$can_build_shared" >&6; }
12273
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12275 $as_echo_n "checking whether to build shared libraries... " >&6; }
12276   test no = "$can_build_shared" && enable_shared=no
12277
12278   # On AIX, shared libraries and static libraries use the same namespace, and
12279   # are all built from PIC.
12280   case $host_os in
12281   aix3*)
12282     test yes = "$enable_shared" && enable_static=no
12283     if test -n "$RANLIB"; then
12284       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12285       postinstall_cmds='$RANLIB $lib'
12286     fi
12287     ;;
12288
12289   aix[4-9]*)
12290     if test ia64 != "$host_cpu"; then
12291       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12292       yes,aix,yes) ;;                   # shared object as lib.so file only
12293       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12294       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12295       esac
12296     fi
12297     ;;
12298   esac
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12300 $as_echo "$enable_shared" >&6; }
12301
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12303 $as_echo_n "checking whether to build static libraries... " >&6; }
12304   # Make sure either enable_shared or enable_static is yes.
12305   test yes = "$enable_shared" || enable_static=yes
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12307 $as_echo "$enable_static" >&6; }
12308
12309
12310
12311
12312 fi
12313 ac_ext=c
12314 ac_cpp='$CPP $CPPFLAGS'
12315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318
12319 CC=$lt_save_CC
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335         ac_config_commands="$ac_config_commands libtool"
12336
12337
12338
12339
12340 # Only expand once:
12341
12342
12343
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12345 $as_echo_n "checking for library containing strerror... " >&6; }
12346 if ${ac_cv_search_strerror+:} false; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   ac_func_search_save_LIBS=$LIBS
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12352
12353 /* Override any GCC internal prototype to avoid an error.
12354    Use char because int might match the return type of a GCC
12355    builtin and then its argument prototype would still apply.  */
12356 #ifdef __cplusplus
12357 extern "C"
12358 #endif
12359 char strerror ();
12360 int
12361 main ()
12362 {
12363 return strerror ();
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 for ac_lib in '' cposix; do
12369   if test -z "$ac_lib"; then
12370     ac_res="none required"
12371   else
12372     ac_res=-l$ac_lib
12373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12374   fi
12375   if ac_fn_c_try_link "$LINENO"; then :
12376   ac_cv_search_strerror=$ac_res
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379     conftest$ac_exeext
12380   if ${ac_cv_search_strerror+:} false; then :
12381   break
12382 fi
12383 done
12384 if ${ac_cv_search_strerror+:} false; then :
12385
12386 else
12387   ac_cv_search_strerror=no
12388 fi
12389 rm conftest.$ac_ext
12390 LIBS=$ac_func_search_save_LIBS
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12393 $as_echo "$ac_cv_search_strerror" >&6; }
12394 ac_res=$ac_cv_search_strerror
12395 if test "$ac_res" != no; then :
12396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12397
12398 fi
12399
12400 ac_ext=c
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405 if test -n "$ac_tool_prefix"; then
12406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_CC+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   if test -n "$CC"; then
12414   ac_cv_prog_CC="$CC" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12418 do
12419   IFS=$as_save_IFS
12420   test -z "$as_dir" && as_dir=.
12421     for ac_exec_ext in '' $ac_executable_extensions; do
12422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425     break 2
12426   fi
12427 done
12428   done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 CC=$ac_cv_prog_CC
12434 if test -n "$CC"; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 $as_echo "$CC" >&6; }
12437 else
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441
12442
12443 fi
12444 if test -z "$ac_cv_prog_CC"; then
12445   ac_ct_CC=$CC
12446   # Extract the first word of "gcc", so it can be a program name with args.
12447 set dummy gcc; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453   if test -n "$ac_ct_CC"; then
12454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459   IFS=$as_save_IFS
12460   test -z "$as_dir" && as_dir=.
12461     for ac_exec_ext in '' $ac_executable_extensions; do
12462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463     ac_cv_prog_ac_ct_CC="gcc"
12464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465     break 2
12466   fi
12467 done
12468   done
12469 IFS=$as_save_IFS
12470
12471 fi
12472 fi
12473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12474 if test -n "$ac_ct_CC"; then
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12476 $as_echo "$ac_ct_CC" >&6; }
12477 else
12478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 fi
12481
12482   if test "x$ac_ct_CC" = x; then
12483     CC=""
12484   else
12485     case $cross_compiling:$ac_tool_warned in
12486 yes:)
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489 ac_tool_warned=yes ;;
12490 esac
12491     CC=$ac_ct_CC
12492   fi
12493 else
12494   CC="$ac_cv_prog_CC"
12495 fi
12496
12497 if test -z "$CC"; then
12498           if test -n "$ac_tool_prefix"; then
12499     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12500 set dummy ${ac_tool_prefix}cc; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_prog_CC+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   if test -n "$CC"; then
12507   ac_cv_prog_CC="$CC" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512   IFS=$as_save_IFS
12513   test -z "$as_dir" && as_dir=.
12514     for ac_exec_ext in '' $ac_executable_extensions; do
12515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516     ac_cv_prog_CC="${ac_tool_prefix}cc"
12517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518     break 2
12519   fi
12520 done
12521   done
12522 IFS=$as_save_IFS
12523
12524 fi
12525 fi
12526 CC=$ac_cv_prog_CC
12527 if test -n "$CC"; then
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12529 $as_echo "$CC" >&6; }
12530 else
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12533 fi
12534
12535
12536   fi
12537 fi
12538 if test -z "$CC"; then
12539   # Extract the first word of "cc", so it can be a program name with args.
12540 set dummy cc; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_CC+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   if test -n "$CC"; then
12547   ac_cv_prog_CC="$CC" # Let the user override the test.
12548 else
12549   ac_prog_rejected=no
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12552 do
12553   IFS=$as_save_IFS
12554   test -z "$as_dir" && as_dir=.
12555     for ac_exec_ext in '' $ac_executable_extensions; do
12556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12558        ac_prog_rejected=yes
12559        continue
12560      fi
12561     ac_cv_prog_CC="cc"
12562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563     break 2
12564   fi
12565 done
12566   done
12567 IFS=$as_save_IFS
12568
12569 if test $ac_prog_rejected = yes; then
12570   # We found a bogon in the path, so make sure we never use it.
12571   set dummy $ac_cv_prog_CC
12572   shift
12573   if test $# != 0; then
12574     # We chose a different compiler from the bogus one.
12575     # However, it has the same basename, so the bogon will be chosen
12576     # first if we set CC to just the basename; use the full file name.
12577     shift
12578     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12579   fi
12580 fi
12581 fi
12582 fi
12583 CC=$ac_cv_prog_CC
12584 if test -n "$CC"; then
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12586 $as_echo "$CC" >&6; }
12587 else
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12590 fi
12591
12592
12593 fi
12594 if test -z "$CC"; then
12595   if test -n "$ac_tool_prefix"; then
12596   for ac_prog in cl.exe
12597   do
12598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_prog_CC+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   if test -n "$CC"; then
12606   ac_cv_prog_CC="$CC" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611   IFS=$as_save_IFS
12612   test -z "$as_dir" && as_dir=.
12613     for ac_exec_ext in '' $ac_executable_extensions; do
12614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617     break 2
12618   fi
12619 done
12620   done
12621 IFS=$as_save_IFS
12622
12623 fi
12624 fi
12625 CC=$ac_cv_prog_CC
12626 if test -n "$CC"; then
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12628 $as_echo "$CC" >&6; }
12629 else
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12632 fi
12633
12634
12635     test -n "$CC" && break
12636   done
12637 fi
12638 if test -z "$CC"; then
12639   ac_ct_CC=$CC
12640   for ac_prog in cl.exe
12641 do
12642   # Extract the first word of "$ac_prog", so it can be a program name with args.
12643 set dummy $ac_prog; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12647   $as_echo_n "(cached) " >&6
12648 else
12649   if test -n "$ac_ct_CC"; then
12650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12654 do
12655   IFS=$as_save_IFS
12656   test -z "$as_dir" && as_dir=.
12657     for ac_exec_ext in '' $ac_executable_extensions; do
12658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659     ac_cv_prog_ac_ct_CC="$ac_prog"
12660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661     break 2
12662   fi
12663 done
12664   done
12665 IFS=$as_save_IFS
12666
12667 fi
12668 fi
12669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12670 if test -n "$ac_ct_CC"; then
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12672 $as_echo "$ac_ct_CC" >&6; }
12673 else
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12676 fi
12677
12678
12679   test -n "$ac_ct_CC" && break
12680 done
12681
12682   if test "x$ac_ct_CC" = x; then
12683     CC=""
12684   else
12685     case $cross_compiling:$ac_tool_warned in
12686 yes:)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689 ac_tool_warned=yes ;;
12690 esac
12691     CC=$ac_ct_CC
12692   fi
12693 fi
12694
12695 fi
12696
12697
12698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 as_fn_error $? "no acceptable C compiler found in \$PATH
12701 See \`config.log' for more details" "$LINENO" 5; }
12702
12703 # Provide some information about the compiler.
12704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12705 set X $ac_compile
12706 ac_compiler=$2
12707 for ac_option in --version -v -V -qversion; do
12708   { { ac_try="$ac_compiler $ac_option >&5"
12709 case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12714 $as_echo "$ac_try_echo"; } >&5
12715   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12716   ac_status=$?
12717   if test -s conftest.err; then
12718     sed '10a\
12719 ... rest of stderr output deleted ...
12720          10q' conftest.err >conftest.er1
12721     cat conftest.er1 >&5
12722   fi
12723   rm -f conftest.er1 conftest.err
12724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725   test $ac_status = 0; }
12726 done
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12730 if ${ac_cv_c_compiler_gnu+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735
12736 int
12737 main ()
12738 {
12739 #ifndef __GNUC__
12740        choke me
12741 #endif
12742
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748   ac_compiler_gnu=yes
12749 else
12750   ac_compiler_gnu=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12754
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12758 if test $ac_compiler_gnu = yes; then
12759   GCC=yes
12760 else
12761   GCC=
12762 fi
12763 ac_test_CFLAGS=${CFLAGS+set}
12764 ac_save_CFLAGS=$CFLAGS
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12767 if ${ac_cv_prog_cc_g+:} false; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   ac_save_c_werror_flag=$ac_c_werror_flag
12771    ac_c_werror_flag=yes
12772    ac_cv_prog_cc_g=no
12773    CFLAGS="-g"
12774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h.  */
12776
12777 int
12778 main ()
12779 {
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786   ac_cv_prog_cc_g=yes
12787 else
12788   CFLAGS=""
12789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h.  */
12791
12792 int
12793 main ()
12794 {
12795
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801
12802 else
12803   ac_c_werror_flag=$ac_save_c_werror_flag
12804          CFLAGS="-g"
12805          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h.  */
12807
12808 int
12809 main ()
12810 {
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817   ac_cv_prog_cc_g=yes
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824    ac_c_werror_flag=$ac_save_c_werror_flag
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12827 $as_echo "$ac_cv_prog_cc_g" >&6; }
12828 if test "$ac_test_CFLAGS" = set; then
12829   CFLAGS=$ac_save_CFLAGS
12830 elif test $ac_cv_prog_cc_g = yes; then
12831   if test "$GCC" = yes; then
12832     CFLAGS="-g -O2"
12833   else
12834     CFLAGS="-g"
12835   fi
12836 else
12837   if test "$GCC" = yes; then
12838     CFLAGS="-O2"
12839   else
12840     CFLAGS=
12841   fi
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12845 if ${ac_cv_prog_cc_c89+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_cv_prog_cc_c89=no
12849 ac_save_CC=$CC
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852 #include <stdarg.h>
12853 #include <stdio.h>
12854 struct stat;
12855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12856 struct buf { int x; };
12857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12858 static char *e (p, i)
12859      char **p;
12860      int i;
12861 {
12862   return p[i];
12863 }
12864 static char *f (char * (*g) (char **, int), char **p, ...)
12865 {
12866   char *s;
12867   va_list v;
12868   va_start (v,p);
12869   s = g (p, va_arg (v,int));
12870   va_end (v);
12871   return s;
12872 }
12873
12874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12875    function prototypes and stuff, but not '\xHH' hex character constants.
12876    These don't provoke an error unfortunately, instead are silently treated
12877    as 'x'.  The following induces an error, until -std is added to get
12878    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12879    array size at least.  It's necessary to write '\x00'==0 to get something
12880    that's true only with -std.  */
12881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12882
12883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12884    inside strings and character constants.  */
12885 #define FOO(x) 'x'
12886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12887
12888 int test (int i, double x);
12889 struct s1 {int (*f) (int a);};
12890 struct s2 {int (*f) (double a);};
12891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12892 int argc;
12893 char **argv;
12894 int
12895 main ()
12896 {
12897 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12898   ;
12899   return 0;
12900 }
12901 _ACEOF
12902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12903         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12904 do
12905   CC="$ac_save_CC $ac_arg"
12906   if ac_fn_c_try_compile "$LINENO"; then :
12907   ac_cv_prog_cc_c89=$ac_arg
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext
12910   test "x$ac_cv_prog_cc_c89" != "xno" && break
12911 done
12912 rm -f conftest.$ac_ext
12913 CC=$ac_save_CC
12914
12915 fi
12916 # AC_CACHE_VAL
12917 case "x$ac_cv_prog_cc_c89" in
12918   x)
12919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12920 $as_echo "none needed" >&6; } ;;
12921   xno)
12922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12923 $as_echo "unsupported" >&6; } ;;
12924   *)
12925     CC="$CC $ac_cv_prog_cc_c89"
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12928 esac
12929 if test "x$ac_cv_prog_cc_c89" != xno; then :
12930
12931 fi
12932
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939 ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12945 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12946 if ${am_cv_prog_cc_c_o+:} false; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h.  */
12951
12952 int
12953 main ()
12954 {
12955
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960   # Make sure it works both with $CC and with simple cc.
12961   # Following AC_PROG_CC_C_O, we do the test twice because some
12962   # compilers refuse to overwrite an existing .o file with -o,
12963   # though they will create one.
12964   am_cv_prog_cc_c_o=yes
12965   for am_i in 1 2; do
12966     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12967    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12968    ac_status=$?
12969    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970    (exit $ac_status); } \
12971          && test -f conftest2.$ac_objext; then
12972       : OK
12973     else
12974       am_cv_prog_cc_c_o=no
12975       break
12976     fi
12977   done
12978   rm -f core conftest*
12979   unset am_i
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12982 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12983 if test "$am_cv_prog_cc_c_o" != yes; then
12984    # Losing compiler, so override with the script.
12985    # FIXME: It is wrong to rewrite CC.
12986    # But if we don't then we get into trouble of one sort or another.
12987    # A longer-term fix would be to have automake use am__CC in this case,
12988    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12989    CC="$am_aux_dir/compile $CC"
12990 fi
12991 ac_ext=c
12992 ac_cpp='$CPP $CPPFLAGS'
12993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996
12997
12998 depcc="$CC"   am_compiler_list=
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13001 $as_echo_n "checking dependency style of $depcc... " >&6; }
13002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13003   $as_echo_n "(cached) " >&6
13004 else
13005   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13006   # We make a subdir and do the tests there.  Otherwise we can end up
13007   # making bogus files that we don't know about and never remove.  For
13008   # instance it was reported that on HP-UX the gcc test will end up
13009   # making a dummy file named 'D' -- because '-MD' means "put the output
13010   # in D".
13011   rm -rf conftest.dir
13012   mkdir conftest.dir
13013   # Copy depcomp to subdir because otherwise we won't find it if we're
13014   # using a relative directory.
13015   cp "$am_depcomp" conftest.dir
13016   cd conftest.dir
13017   # We will build objects and dependencies in a subdirectory because
13018   # it helps to detect inapplicable dependency modes.  For instance
13019   # both Tru64's cc and ICC support -MD to output dependencies as a
13020   # side effect of compilation, but ICC will put the dependencies in
13021   # the current directory while Tru64 will put them in the object
13022   # directory.
13023   mkdir sub
13024
13025   am_cv_CC_dependencies_compiler_type=none
13026   if test "$am_compiler_list" = ""; then
13027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13028   fi
13029   am__universal=false
13030   case " $depcc " in #(
13031      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13032      esac
13033
13034   for depmode in $am_compiler_list; do
13035     # Setup a source with many dependencies, because some compilers
13036     # like to wrap large dependency lists on column 80 (with \), and
13037     # we should not choose a depcomp mode which is confused by this.
13038     #
13039     # We need to recreate these files for each test, as the compiler may
13040     # overwrite some of them when testing with obscure command lines.
13041     # This happens at least with the AIX C compiler.
13042     : > sub/conftest.c
13043     for i in 1 2 3 4 5 6; do
13044       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13045       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13046       # Solaris 10 /bin/sh.
13047       echo '/* dummy */' > sub/conftst$i.h
13048     done
13049     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13050
13051     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13052     # mode.  It turns out that the SunPro C++ compiler does not properly
13053     # handle '-M -o', and we need to detect this.  Also, some Intel
13054     # versions had trouble with output in subdirs.
13055     am__obj=sub/conftest.${OBJEXT-o}
13056     am__minus_obj="-o $am__obj"
13057     case $depmode in
13058     gcc)
13059       # This depmode causes a compiler race in universal mode.
13060       test "$am__universal" = false || continue
13061       ;;
13062     nosideeffect)
13063       # After this tag, mechanisms are not by side-effect, so they'll
13064       # only be used when explicitly requested.
13065       if test "x$enable_dependency_tracking" = xyes; then
13066         continue
13067       else
13068         break
13069       fi
13070       ;;
13071     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13072       # This compiler won't grok '-c -o', but also, the minuso test has
13073       # not run yet.  These depmodes are late enough in the game, and
13074       # so weak that their functioning should not be impacted.
13075       am__obj=conftest.${OBJEXT-o}
13076       am__minus_obj=
13077       ;;
13078     none) break ;;
13079     esac
13080     if depmode=$depmode \
13081        source=sub/conftest.c object=$am__obj \
13082        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13083        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13084          >/dev/null 2>conftest.err &&
13085        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13086        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13087        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13088        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13089       # icc doesn't choke on unknown options, it will just issue warnings
13090       # or remarks (even with -Werror).  So we grep stderr for any message
13091       # that says an option was ignored or not supported.
13092       # When given -MP, icc 7.0 and 7.1 complain thusly:
13093       #   icc: Command line warning: ignoring option '-M'; no argument required
13094       # The diagnosis changed in icc 8.0:
13095       #   icc: Command line remark: option '-MP' not supported
13096       if (grep 'ignoring option' conftest.err ||
13097           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13098         am_cv_CC_dependencies_compiler_type=$depmode
13099         break
13100       fi
13101     fi
13102   done
13103
13104   cd ..
13105   rm -rf conftest.dir
13106 else
13107   am_cv_CC_dependencies_compiler_type=none
13108 fi
13109
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13114
13115  if
13116   test "x$enable_dependency_tracking" != xno \
13117   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13118   am__fastdepCC_TRUE=
13119   am__fastdepCC_FALSE='#'
13120 else
13121   am__fastdepCC_TRUE='#'
13122   am__fastdepCC_FALSE=
13123 fi
13124
13125
13126
13127
13128 # option to specify python interpreter to use; this just sets $PYTHON, so that
13129 # we will fallback to reading $PYTHON if --with-python is not given, and
13130 # python.m4 will get the expected input
13131
13132 # Check whether --with-python was given.
13133 if test "${with_python+set}" = set; then :
13134   withval=$with_python; PYTHON="$withval"
13135 fi
13136
13137 if test x"$PYTHON" = xyes; then
13138         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
13139 fi
13140 if test -n "$PYTHON" && ! which "$PYTHON"; then
13141         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
13142 fi
13143
13144 # check that we have the minimum version of python necessary to build
13145
13146
13147
13148
13149         if test -n "$PYTHON"; then
13150       # If the user set $PYTHON, use it and don't search something else.
13151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
13152 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
13153       prog="import sys
13154 # split strings by '.' and convert to numeric.  Append some zeros
13155 # because we need at least 4 digits for the hex conversion.
13156 # map returns an iterator in Python 3.0 and a list in 2.x
13157 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13158 minverhex = 0
13159 # xrange is not present in Python 3.0 and range returns an iterator
13160 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13161 sys.exit(sys.hexversion < minverhex)"
13162   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13163    ($PYTHON -c "$prog") >&5 2>&5
13164    ac_status=$?
13165    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166    (exit $ac_status); }; then :
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13168 $as_echo "yes" >&6; }
13169 else
13170   as_fn_error $? "too old" "$LINENO" 5
13171 fi
13172       am_display_PYTHON=$PYTHON
13173     else
13174       # Otherwise, try each interpreter until we find one that satisfies
13175       # VERSION.
13176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
13177 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
13178 if ${am_cv_pathless_PYTHON+:} false; then :
13179   $as_echo_n "(cached) " >&6
13180 else
13181
13182         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
13183           test "$am_cv_pathless_PYTHON" = none && break
13184           prog="import sys
13185 # split strings by '.' and convert to numeric.  Append some zeros
13186 # because we need at least 4 digits for the hex conversion.
13187 # map returns an iterator in Python 3.0 and a list in 2.x
13188 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13189 minverhex = 0
13190 # xrange is not present in Python 3.0 and range returns an iterator
13191 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13192 sys.exit(sys.hexversion < minverhex)"
13193   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13194    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13195    ac_status=$?
13196    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197    (exit $ac_status); }; then :
13198   break
13199 fi
13200         done
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13203 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13204       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13205       if test "$am_cv_pathless_PYTHON" = none; then
13206         PYTHON=:
13207       else
13208         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13209 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_path_PYTHON+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   case $PYTHON in
13216   [\\/]* | ?:[\\/]*)
13217   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13218   ;;
13219   *)
13220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232   done
13233 IFS=$as_save_IFS
13234
13235   ;;
13236 esac
13237 fi
13238 PYTHON=$ac_cv_path_PYTHON
13239 if test -n "$PYTHON"; then
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13241 $as_echo "$PYTHON" >&6; }
13242 else
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246
13247
13248       fi
13249       am_display_PYTHON=$am_cv_pathless_PYTHON
13250     fi
13251
13252
13253   if test "$PYTHON" = :; then
13254       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13255   else
13256
13257
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13259 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13260 if ${am_cv_python_version+:} false; then :
13261   $as_echo_n "(cached) " >&6
13262 else
13263   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13264 fi
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13266 $as_echo "$am_cv_python_version" >&6; }
13267   PYTHON_VERSION=$am_cv_python_version
13268
13269
13270
13271   PYTHON_PREFIX='${prefix}'
13272
13273   PYTHON_EXEC_PREFIX='${exec_prefix}'
13274
13275
13276
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13278 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13279 if ${am_cv_python_platform+:} false; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13285 $as_echo "$am_cv_python_platform" >&6; }
13286   PYTHON_PLATFORM=$am_cv_python_platform
13287
13288
13289
13290
13291                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13292 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13293 if ${am_cv_python_pythondir+:} false; then :
13294   $as_echo_n "(cached) " >&6
13295 else
13296   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
13297      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13300 $as_echo "$am_cv_python_pythondir" >&6; }
13301   pythondir=$am_cv_python_pythondir
13302
13303
13304
13305   pkgpythondir=\${pythondir}/$PACKAGE
13306
13307
13308             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13309 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13310 if ${am_cv_python_pyexecdir+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
13314      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13317 $as_echo "$am_cv_python_pyexecdir" >&6; }
13318   pyexecdir=$am_cv_python_pyexecdir
13319
13320
13321
13322   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13323
13324
13325
13326   fi
13327
13328
13329
13330 # check if we are building for python 3
13331 prog="import sys
13332 # split strings by '.' and convert to numeric.  Append some zeros
13333 # because we need at least 4 digits for the hex conversion.
13334 # map returns an iterator in Python 3.0 and a list in 2.x
13335 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
13336 minverhex = 0
13337 # xrange is not present in Python 3.0 and range returns an iterator
13338 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13339 sys.exit(sys.hexversion < minverhex)"
13340   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13341    ($PYTHON -c "$prog") >&5 2>&5
13342    ac_status=$?
13343    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344    (exit $ac_status); }; then :
13345   build_py3k=true
13346 else
13347   build_py3k=false
13348 fi
13349
13350 # if building for python 3 make sure we have the minimum version supported
13351 if test $build_py3k = true ; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
13353 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
13354   prog="import sys
13355 # split strings by '.' and convert to numeric.  Append some zeros
13356 # because we need at least 4 digits for the hex conversion.
13357 # map returns an iterator in Python 3.0 and a list in 2.x
13358 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
13359 minverhex = 0
13360 # xrange is not present in Python 3.0 and range returns an iterator
13361 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13362 sys.exit(sys.hexversion < minverhex)"
13363   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13364    ($PYTHON -c "$prog") >&5 2>&5
13365    ac_status=$?
13366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367    (exit $ac_status); }; then :
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13370 else
13371   as_fn_error $? "too old" "$LINENO" 5
13372 fi
13373 fi
13374
13375 # - 'SO' for PyPy, CPython 2.7-3.2
13376 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
13377 # - fallback to '.so'
13378 PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
13379
13380
13381
13382
13383
13384
13385
13386
13387         # Find any Python interpreter.
13388     if test -z "$PYTHON"; then
13389       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
13390 do
13391   # Extract the first word of "$ac_prog", so it can be a program name with args.
13392 set dummy $ac_prog; ac_word=$2
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394 $as_echo_n "checking for $ac_word... " >&6; }
13395 if ${ac_cv_path_PYTHON+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   case $PYTHON in
13399   [\\/]* | ?:[\\/]*)
13400   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13401   ;;
13402   *)
13403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13405 do
13406   IFS=$as_save_IFS
13407   test -z "$as_dir" && as_dir=.
13408     for ac_exec_ext in '' $ac_executable_extensions; do
13409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412     break 2
13413   fi
13414 done
13415   done
13416 IFS=$as_save_IFS
13417
13418   ;;
13419 esac
13420 fi
13421 PYTHON=$ac_cv_path_PYTHON
13422 if test -n "$PYTHON"; then
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13424 $as_echo "$PYTHON" >&6; }
13425 else
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431   test -n "$PYTHON" && break
13432 done
13433 test -n "$PYTHON" || PYTHON=":"
13434
13435     fi
13436     am_display_PYTHON=python
13437
13438
13439   if test "$PYTHON" = :; then
13440       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13441   else
13442
13443
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13445 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13446 if ${am_cv_python_version+:} false; then :
13447   $as_echo_n "(cached) " >&6
13448 else
13449   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13452 $as_echo "$am_cv_python_version" >&6; }
13453   PYTHON_VERSION=$am_cv_python_version
13454
13455
13456
13457   PYTHON_PREFIX='${prefix}'
13458
13459   PYTHON_EXEC_PREFIX='${exec_prefix}'
13460
13461
13462
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13464 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13465 if ${am_cv_python_platform+:} false; then :
13466   $as_echo_n "(cached) " >&6
13467 else
13468   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13469 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13471 $as_echo "$am_cv_python_platform" >&6; }
13472   PYTHON_PLATFORM=$am_cv_python_platform
13473
13474
13475   # Just factor out some code duplication.
13476   am_python_setup_sysconfig="\
13477 import sys
13478 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13479 # with python 3.x.  See automake bug#10227.
13480 try:
13481     import sysconfig
13482 except ImportError:
13483     can_use_sysconfig = 0
13484 else:
13485     can_use_sysconfig = 1
13486 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13487 # <https://github.com/pypa/virtualenv/issues/118>
13488 try:
13489     from platform import python_implementation
13490     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13491         can_use_sysconfig = 0
13492 except ImportError:
13493     pass"
13494
13495
13496             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13497 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13498 if ${am_cv_python_pythondir+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   if test "x$prefix" = xNONE
13502      then
13503        am_py_prefix=$ac_default_prefix
13504      else
13505        am_py_prefix=$prefix
13506      fi
13507      am_cv_python_pythondir=`$PYTHON -c "
13508 $am_python_setup_sysconfig
13509 if can_use_sysconfig:
13510     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13511 else:
13512     from distutils import sysconfig
13513     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13514 sys.stdout.write(sitedir)"`
13515      case $am_cv_python_pythondir in
13516      $am_py_prefix*)
13517        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13518        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13519        ;;
13520      *)
13521        case $am_py_prefix in
13522          /usr|/System*) ;;
13523          *)
13524           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13525           ;;
13526        esac
13527        ;;
13528      esac
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13532 $as_echo "$am_cv_python_pythondir" >&6; }
13533   pythondir=$am_cv_python_pythondir
13534
13535
13536
13537   pkgpythondir=\${pythondir}/$PACKAGE
13538
13539
13540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13541 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13542 if ${am_cv_python_pyexecdir+:} false; then :
13543   $as_echo_n "(cached) " >&6
13544 else
13545   if test "x$exec_prefix" = xNONE
13546      then
13547        am_py_exec_prefix=$am_py_prefix
13548      else
13549        am_py_exec_prefix=$exec_prefix
13550      fi
13551      am_cv_python_pyexecdir=`$PYTHON -c "
13552 $am_python_setup_sysconfig
13553 if can_use_sysconfig:
13554     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13555 else:
13556     from distutils import sysconfig
13557     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13558 sys.stdout.write(sitedir)"`
13559      case $am_cv_python_pyexecdir in
13560      $am_py_exec_prefix*)
13561        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13562        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13563        ;;
13564      *)
13565        case $am_py_exec_prefix in
13566          /usr|/System*) ;;
13567          *)
13568            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13569            ;;
13570        esac
13571        ;;
13572      esac
13573
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13576 $as_echo "$am_cv_python_pyexecdir" >&6; }
13577   pyexecdir=$am_cv_python_pyexecdir
13578
13579
13580
13581   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13582
13583
13584
13585   fi
13586
13587
13588
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13590 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13591 if test "x$PYTHON_INCLUDES" = x; then
13592   PYTHON_CONFIG=`which $PYTHON`-config
13593   if test -x "$PYTHON_CONFIG"; then
13594     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13595   else
13596     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13597     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13598   fi
13599 fi
13600
13601 save_CPPFLAGS="$CPPFLAGS"
13602 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605 #include <Python.h>
13606 _ACEOF
13607 if ac_fn_c_try_cpp "$LINENO"; then :
13608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13609 $as_echo "found" >&6; }
13610
13611 else
13612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13613 $as_echo "not found" >&6; }
13614 as_fn_error $? "Python headers not found" "$LINENO" 5
13615 fi
13616 rm -f conftest.err conftest.i conftest.$ac_ext
13617 CPPFLAGS="$save_CPPFLAGS"
13618
13619 if test "x$link_python_libs" = "xyes"; then
13620
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13622 $as_echo_n "checking for libraries required to embed python... " >&6; }
13623 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13624 if test "x$PYTHON_LIBS" = x; then
13625   PYTHON_CONFIG=`which $PYTHON`-config
13626   if test -x "$PYTHON_CONFIG"; then
13627     PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13628   else
13629     PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13630   fi
13631 fi
13632 if test "x$PYTHON_LIB_LOC" = x; then
13633         PYTHON_LIB_LOC="${py_prefix}/lib"
13634 fi
13635
13636
13637 save_LIBS="$LIBS"
13638 LIBS="$LIBS $PYTHON_LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h.  */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643    Use char because int might match the return type of a GCC
13644    builtin and then its argument prototype would still apply.  */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char Py_Initialize ();
13649 int
13650 main ()
13651 {
13652 return Py_Initialize ();
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13659 $as_echo "yes" >&6; };
13660 else
13661            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows and Darwin require Python modules to be explicitly linked to libpython." "$LINENO" 5
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext \
13665     conftest$ac_exeext conftest.$ac_ext
13666
13667
13668 fi
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13671 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13672 old_CPPFLAGS=$CPPFLAGS
13673 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h.  */
13676 #include <Python.h>
13677 int
13678 main ()
13679 {
13680 PySignal_SetWakeupFd(0);
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_compile "$LINENO"; then :
13686   setwakeupfd_ok=yes
13687 else
13688   setwakeupfd_ok=no
13689 fi
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13692 $as_echo "$setwakeupfd_ok" >&6; }
13693 if test "x$setwakeupfd_ok" != xno; then
13694
13695 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13696
13697 fi
13698 CPPFLAGS=$old_CPPFLAGS
13699
13700 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13701
13702
13703 # Check whether --enable-thread was given.
13704 if test "${enable_thread+set}" = set; then :
13705   enableval=$enable_thread;
13706 else
13707   enable_thread=yes
13708 fi
13709
13710
13711
13712 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13714 $as_echo_n "checking for python module thread... " >&6; }
13715 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718
13719 prog="
13720 import sys
13721 try:
13722         import thread
13723 except ImportError:
13724         sys.exit(1)
13725 except:
13726         sys.exit(0)
13727 sys.exit(0)"
13728 if $PYTHON -c "$prog" 1>&5 2>&5
13729   then
13730     eval "py_cv_mod_$py_mod_var=yes"
13731   else
13732     eval "py_cv_mod_$py_mod_var=no"
13733   fi
13734
13735 fi
13736
13737 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13738 if test "x$py_val" != xno; then
13739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13741   else
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744   enable_thread=check_for_py3_module
13745 fi
13746
13747 if test "x$enable_thread" = xcheck_for_py3_module; then
13748
13749 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13751 $as_echo_n "checking for python module _thread... " >&6; }
13752 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755
13756 prog="
13757 import sys
13758 try:
13759         import _thread
13760 except ImportError:
13761         sys.exit(1)
13762 except:
13763         sys.exit(0)
13764 sys.exit(0)"
13765 if $PYTHON -c "$prog" 1>&5 2>&5
13766   then
13767     eval "py_cv_mod_$py_mod_var=yes"
13768   else
13769     eval "py_cv_mod_$py_mod_var=no"
13770   fi
13771
13772 fi
13773
13774 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13775 if test "x$py_val" != xno; then
13776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13777 $as_echo "yes" >&6; }
13778   enable_thread=yes
13779 else
13780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782   enable_thread=no
13783 fi
13784
13785 fi
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13788 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13789 if test "x$enable_thread" != xno; then
13790   extra_mods=gthread
13791   THREADING_CFLAGS=
13792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13793 $as_echo "yes" >&6; }
13794 else
13795   extra_mods=
13796   THREADING_CFLAGS="-DDISABLE_THREADING"
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 fi
13800
13801 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13802
13803 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13804
13805 # Check whether --enable-glibtest was given.
13806 if test "${enable_glibtest+set}" = set; then :
13807   enableval=$enable_glibtest;
13808 else
13809   enable_glibtest=yes
13810 fi
13811
13812
13813   pkg_config_args=glib-2.0
13814   for module in . gobject $extra_mods
13815   do
13816       case "$module" in
13817          gmodule)
13818              pkg_config_args="$pkg_config_args gmodule-2.0"
13819          ;;
13820          gmodule-no-export)
13821              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13822          ;;
13823          gobject)
13824              pkg_config_args="$pkg_config_args gobject-2.0"
13825          ;;
13826          gthread)
13827              pkg_config_args="$pkg_config_args gthread-2.0"
13828          ;;
13829          gio*)
13830              pkg_config_args="$pkg_config_args $module-2.0"
13831          ;;
13832       esac
13833   done
13834
13835
13836
13837
13838
13839
13840
13841
13842 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13843         if test -n "$ac_tool_prefix"; then
13844   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13845 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   case $PKG_CONFIG in
13852   [\\/]* | ?:[\\/]*)
13853   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13854   ;;
13855   *)
13856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13858 do
13859   IFS=$as_save_IFS
13860   test -z "$as_dir" && as_dir=.
13861     for ac_exec_ext in '' $ac_executable_extensions; do
13862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865     break 2
13866   fi
13867 done
13868   done
13869 IFS=$as_save_IFS
13870
13871   ;;
13872 esac
13873 fi
13874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13875 if test -n "$PKG_CONFIG"; then
13876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13877 $as_echo "$PKG_CONFIG" >&6; }
13878 else
13879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13881 fi
13882
13883
13884 fi
13885 if test -z "$ac_cv_path_PKG_CONFIG"; then
13886   ac_pt_PKG_CONFIG=$PKG_CONFIG
13887   # Extract the first word of "pkg-config", so it can be a program name with args.
13888 set dummy pkg-config; ac_word=$2
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 $as_echo_n "checking for $ac_word... " >&6; }
13891 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13892   $as_echo_n "(cached) " >&6
13893 else
13894   case $ac_pt_PKG_CONFIG in
13895   [\\/]* | ?:[\\/]*)
13896   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13897   ;;
13898   *)
13899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13901 do
13902   IFS=$as_save_IFS
13903   test -z "$as_dir" && as_dir=.
13904     for ac_exec_ext in '' $ac_executable_extensions; do
13905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13906     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13908     break 2
13909   fi
13910 done
13911   done
13912 IFS=$as_save_IFS
13913
13914   ;;
13915 esac
13916 fi
13917 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13918 if test -n "$ac_pt_PKG_CONFIG"; then
13919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13920 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13921 else
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925
13926   if test "x$ac_pt_PKG_CONFIG" = x; then
13927     PKG_CONFIG=""
13928   else
13929     case $cross_compiling:$ac_tool_warned in
13930 yes:)
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13933 ac_tool_warned=yes ;;
13934 esac
13935     PKG_CONFIG=$ac_pt_PKG_CONFIG
13936   fi
13937 else
13938   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13939 fi
13940
13941 fi
13942 if test -n "$PKG_CONFIG"; then
13943         _pkg_min_version=0.16
13944         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13945 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13946         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13947                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948 $as_echo "yes" >&6; }
13949         else
13950                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13952                 PKG_CONFIG=""
13953         fi
13954 fi
13955
13956   no_glib=""
13957
13958   if test "x$PKG_CONFIG" = x ; then
13959     no_glib=yes
13960     PKG_CONFIG=no
13961   fi
13962
13963   min_glib_version=2.38.0
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13965 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13966
13967   if test x$PKG_CONFIG != xno ; then
13968     ## don't try to run the test against uninstalled libtool libs
13969     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13970           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13971           enable_glibtest=no
13972     fi
13973
13974     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13975           :
13976     else
13977           no_glib=yes
13978     fi
13979   fi
13980
13981   if test x"$no_glib" = x ; then
13982     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13983     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13984     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13985     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13986
13987     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13988     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13989     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13990            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13991     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13992            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13993     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13994            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13995     if test "x$enable_glibtest" = "xyes" ; then
13996       ac_save_CFLAGS="$CFLAGS"
13997       ac_save_LIBS="$LIBS"
13998       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13999       LIBS="$GLIB_LIBS $LIBS"
14000       rm -f conf.glibtest
14001       if test "$cross_compiling" = yes; then :
14002   echo $ac_n "cross compiling; assumed OK... $ac_c"
14003 else
14004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h.  */
14006
14007 #include <glib.h>
14008 #include <stdio.h>
14009 #include <stdlib.h>
14010
14011 int
14012 main ()
14013 {
14014   unsigned int major, minor, micro;
14015
14016   fclose (fopen ("conf.glibtest", "w"));
14017
14018   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
14019      printf("%s, bad version string\n", "$min_glib_version");
14020      exit(1);
14021    }
14022
14023   if ((glib_major_version != $glib_config_major_version) ||
14024       (glib_minor_version != $glib_config_minor_version) ||
14025       (glib_micro_version != $glib_config_micro_version))
14026     {
14027       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
14028              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
14029              glib_major_version, glib_minor_version, glib_micro_version);
14030       printf ("*** was found! If pkg-config was correct, then it is best\n");
14031       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
14032       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14033       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14034       printf("*** required on your system.\n");
14035       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14036       printf("*** to point to the correct configuration files\n");
14037     }
14038   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
14039            (glib_minor_version != GLIB_MINOR_VERSION) ||
14040            (glib_micro_version != GLIB_MICRO_VERSION))
14041     {
14042       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
14043              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
14044       printf("*** library (version %d.%d.%d)\n",
14045              glib_major_version, glib_minor_version, glib_micro_version);
14046     }
14047   else
14048     {
14049       if ((glib_major_version > major) ||
14050         ((glib_major_version == major) && (glib_minor_version > minor)) ||
14051         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
14052       {
14053         return 0;
14054        }
14055      else
14056       {
14057         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
14058                glib_major_version, glib_minor_version, glib_micro_version);
14059         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
14060                major, minor, micro);
14061         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
14062         printf("***\n");
14063         printf("*** If you have already installed a sufficiently new version, this error\n");
14064         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14065         printf("*** being found. The easiest way to fix this is to remove the old version\n");
14066         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
14067         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14068         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14069         printf("*** so that the correct libraries are found at run-time))\n");
14070       }
14071     }
14072   return 1;
14073 }
14074
14075 _ACEOF
14076 if ac_fn_c_try_run "$LINENO"; then :
14077
14078 else
14079   no_glib=yes
14080 fi
14081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14082   conftest.$ac_objext conftest.beam conftest.$ac_ext
14083 fi
14084
14085        CFLAGS="$ac_save_CFLAGS"
14086        LIBS="$ac_save_LIBS"
14087      fi
14088   fi
14089   if test "x$no_glib" = x ; then
14090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
14091 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
14092      :
14093   else
14094      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14096      if test "$PKG_CONFIG" = "no" ; then
14097        echo "*** A new enough version of pkg-config was not found."
14098        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
14099      else
14100        if test -f conf.glibtest ; then
14101         :
14102        else
14103           echo "*** Could not run GLIB test program, checking why..."
14104           ac_save_CFLAGS="$CFLAGS"
14105           ac_save_LIBS="$LIBS"
14106           CFLAGS="$CFLAGS $GLIB_CFLAGS"
14107           LIBS="$LIBS $GLIB_LIBS"
14108           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h.  */
14110
14111 #include <glib.h>
14112 #include <stdio.h>
14113
14114 int
14115 main ()
14116 {
14117  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14118   ;
14119   return 0;
14120 }
14121 _ACEOF
14122 if ac_fn_c_try_link "$LINENO"; then :
14123    echo "*** The test program compiled, but did not run. This usually means"
14124           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14125           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14126           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14127           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14128           echo "*** is required on your system"
14129           echo "***"
14130           echo "*** If you have an old version installed, it is best to remove it, although"
14131           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14132 else
14133    echo "*** The test program failed to compile or link. See the file config.log for the"
14134           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext \
14137     conftest$ac_exeext conftest.$ac_ext
14138           CFLAGS="$ac_save_CFLAGS"
14139           LIBS="$ac_save_LIBS"
14140        fi
14141      fi
14142      GLIB_CFLAGS=""
14143      GLIB_LIBS=""
14144      GLIB_GENMARSHAL=""
14145      GOBJECT_QUERY=""
14146      GLIB_MKENUMS=""
14147      GLIB_COMPILE_RESOURCES=""
14148      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
14149   fi
14150
14151
14152
14153
14154
14155
14156   rm -f conf.glibtest
14157
14158 if test -n "$export_dynamic"; then
14159   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
14160 fi
14161 PYTHON_BASENAME=`basename $PYTHON`
14162
14163
14164
14165   EXP_VAR=DATADIR
14166   FROM_VAR=$datadir
14167
14168     prefix_save=$prefix
14169   exec_prefix_save=$exec_prefix
14170
14171     if test "x$prefix" = "xNONE"; then
14172     prefix=$ac_default_prefix
14173   fi
14174     if test "x$exec_prefix" = "xNONE"; then
14175     exec_prefix=$prefix
14176   fi
14177
14178   full_var="$FROM_VAR"
14179     while true; do
14180     new_full_var="`eval echo $full_var`"
14181     if test "x$new_full_var"="x$full_var"; then break; fi
14182     full_var=$new_full_var
14183   done
14184
14185     full_var=$new_full_var
14186   DATADIR="$full_var"
14187
14188
14189     prefix=$prefix_save
14190   exec_prefix=$exec_prefix_save
14191
14192
14193
14194 pkg_failed=no
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
14196 $as_echo_n "checking for FFI... " >&6; }
14197
14198 if test -n "$FFI_CFLAGS"; then
14199     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
14200  elif test -n "$PKG_CONFIG"; then
14201     if test -n "$PKG_CONFIG" && \
14202     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14203   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14204   ac_status=$?
14205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206   test $ac_status = 0; }; then
14207   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
14208                       test "x$?" != "x0" && pkg_failed=yes
14209 else
14210   pkg_failed=yes
14211 fi
14212  else
14213     pkg_failed=untried
14214 fi
14215 if test -n "$FFI_LIBS"; then
14216     pkg_cv_FFI_LIBS="$FFI_LIBS"
14217  elif test -n "$PKG_CONFIG"; then
14218     if test -n "$PKG_CONFIG" && \
14219     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14220   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14221   ac_status=$?
14222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223   test $ac_status = 0; }; then
14224   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
14225                       test "x$?" != "x0" && pkg_failed=yes
14226 else
14227   pkg_failed=yes
14228 fi
14229  else
14230     pkg_failed=untried
14231 fi
14232
14233
14234
14235 if test $pkg_failed = yes; then
14236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238
14239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14240         _pkg_short_errors_supported=yes
14241 else
14242         _pkg_short_errors_supported=no
14243 fi
14244         if test $_pkg_short_errors_supported = yes; then
14245                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14246         else
14247                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14248         fi
14249         # Put the nasty error message in config.log where it belongs
14250         echo "$FFI_PKG_ERRORS" >&5
14251
14252         as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
14253
14254 $FFI_PKG_ERRORS
14255
14256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14257 installed software in a non-standard prefix.
14258
14259 Alternatively, you may set the environment variables FFI_CFLAGS
14260 and FFI_LIBS to avoid the need to call pkg-config.
14261 See the pkg-config man page for more details." "$LINENO" 5
14262 elif test $pkg_failed = untried; then
14263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14267 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14268 is in your PATH or set the PKG_CONFIG environment variable to the full
14269 path to pkg-config.
14270
14271 Alternatively, you may set the environment variables FFI_CFLAGS
14272 and FFI_LIBS to avoid the need to call pkg-config.
14273 See the pkg-config man page for more details.
14274
14275 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14276 See \`config.log' for more details" "$LINENO" 5; }
14277 else
14278         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
14279         FFI_LIBS=$pkg_cv_FFI_LIBS
14280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14281 $as_echo "yes" >&6; }
14282
14283 fi
14284 LIBFFI_PC=libffi
14285
14286
14287
14288
14289
14290
14291 pkg_failed=no
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
14293 $as_echo_n "checking for GIO... " >&6; }
14294
14295 if test -n "$GIO_CFLAGS"; then
14296     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
14297  elif test -n "$PKG_CONFIG"; then
14298     if test -n "$PKG_CONFIG" && \
14299     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14300   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14301   ac_status=$?
14302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14303   test $ac_status = 0; }; then
14304   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
14305                       test "x$?" != "x0" && pkg_failed=yes
14306 else
14307   pkg_failed=yes
14308 fi
14309  else
14310     pkg_failed=untried
14311 fi
14312 if test -n "$GIO_LIBS"; then
14313     pkg_cv_GIO_LIBS="$GIO_LIBS"
14314  elif test -n "$PKG_CONFIG"; then
14315     if test -n "$PKG_CONFIG" && \
14316     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14317   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14318   ac_status=$?
14319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320   test $ac_status = 0; }; then
14321   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
14322                       test "x$?" != "x0" && pkg_failed=yes
14323 else
14324   pkg_failed=yes
14325 fi
14326  else
14327     pkg_failed=untried
14328 fi
14329
14330
14331
14332 if test $pkg_failed = yes; then
14333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14335
14336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14337         _pkg_short_errors_supported=yes
14338 else
14339         _pkg_short_errors_supported=no
14340 fi
14341         if test $_pkg_short_errors_supported = yes; then
14342                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14343         else
14344                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14345         fi
14346         # Put the nasty error message in config.log where it belongs
14347         echo "$GIO_PKG_ERRORS" >&5
14348
14349         as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
14350
14351 $GIO_PKG_ERRORS
14352
14353 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14354 installed software in a non-standard prefix.
14355
14356 Alternatively, you may set the environment variables GIO_CFLAGS
14357 and GIO_LIBS to avoid the need to call pkg-config.
14358 See the pkg-config man page for more details." "$LINENO" 5
14359 elif test $pkg_failed = untried; then
14360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361 $as_echo "no" >&6; }
14362         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14364 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14365 is in your PATH or set the PKG_CONFIG environment variable to the full
14366 path to pkg-config.
14367
14368 Alternatively, you may set the environment variables GIO_CFLAGS
14369 and GIO_LIBS to avoid the need to call pkg-config.
14370 See the pkg-config man page for more details.
14371
14372 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14373 See \`config.log' for more details" "$LINENO" 5; }
14374 else
14375         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
14376         GIO_LIBS=$pkg_cv_GIO_LIBS
14377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14379
14380 fi
14381
14382 # Check whether --enable-cairo was given.
14383 if test "${enable_cairo+set}" = set; then :
14384   enableval=$enable_cairo; enable_cairo=$enableval
14385 else
14386   enable_cairo=yes
14387 fi
14388
14389
14390
14391 pkg_failed=no
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
14393 $as_echo_n "checking for GI... " >&6; }
14394
14395 if test -n "$GI_CFLAGS"; then
14396     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
14397  elif test -n "$PKG_CONFIG"; then
14398     if test -n "$PKG_CONFIG" && \
14399     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14400     gobject-introspection-1.0 >= 1.46.0
14401 \""; } >&5
14402   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14403     gobject-introspection-1.0 >= 1.46.0
14404 ") 2>&5
14405   ac_status=$?
14406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407   test $ac_status = 0; }; then
14408   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
14409     gobject-introspection-1.0 >= 1.46.0
14410 " 2>/dev/null`
14411                       test "x$?" != "x0" && pkg_failed=yes
14412 else
14413   pkg_failed=yes
14414 fi
14415  else
14416     pkg_failed=untried
14417 fi
14418 if test -n "$GI_LIBS"; then
14419     pkg_cv_GI_LIBS="$GI_LIBS"
14420  elif test -n "$PKG_CONFIG"; then
14421     if test -n "$PKG_CONFIG" && \
14422     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14423     gobject-introspection-1.0 >= 1.46.0
14424 \""; } >&5
14425   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14426     gobject-introspection-1.0 >= 1.46.0
14427 ") 2>&5
14428   ac_status=$?
14429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430   test $ac_status = 0; }; then
14431   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
14432     gobject-introspection-1.0 >= 1.46.0
14433 " 2>/dev/null`
14434                       test "x$?" != "x0" && pkg_failed=yes
14435 else
14436   pkg_failed=yes
14437 fi
14438  else
14439     pkg_failed=untried
14440 fi
14441
14442
14443
14444 if test $pkg_failed = yes; then
14445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14447
14448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14449         _pkg_short_errors_supported=yes
14450 else
14451         _pkg_short_errors_supported=no
14452 fi
14453         if test $_pkg_short_errors_supported = yes; then
14454                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14455     gobject-introspection-1.0 >= 1.46.0
14456 " 2>&1`
14457         else
14458                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14459     gobject-introspection-1.0 >= 1.46.0
14460 " 2>&1`
14461         fi
14462         # Put the nasty error message in config.log where it belongs
14463         echo "$GI_PKG_ERRORS" >&5
14464
14465         as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
14466     gobject-introspection-1.0 >= 1.46.0
14467 ) were not met:
14468
14469 $GI_PKG_ERRORS
14470
14471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14472 installed software in a non-standard prefix.
14473
14474 Alternatively, you may set the environment variables GI_CFLAGS
14475 and GI_LIBS to avoid the need to call pkg-config.
14476 See the pkg-config man page for more details." "$LINENO" 5
14477 elif test $pkg_failed = untried; then
14478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14482 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14483 is in your PATH or set the PKG_CONFIG environment variable to the full
14484 path to pkg-config.
14485
14486 Alternatively, you may set the environment variables GI_CFLAGS
14487 and GI_LIBS to avoid the need to call pkg-config.
14488 See the pkg-config man page for more details.
14489
14490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14491 See \`config.log' for more details" "$LINENO" 5; }
14492 else
14493         GI_CFLAGS=$pkg_cv_GI_CFLAGS
14494         GI_LIBS=$pkg_cv_GI_LIBS
14495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14497
14498 fi
14499
14500 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
14501
14502
14503 if test "$enable_cairo" != no; then
14504
14505 pkg_failed=no
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
14507 $as_echo_n "checking for CAIRO... " >&6; }
14508
14509 if test -n "$CAIRO_CFLAGS"; then
14510     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14511  elif test -n "$PKG_CONFIG"; then
14512     if test -n "$PKG_CONFIG" && \
14513     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14514   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14515   ac_status=$?
14516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14517   test $ac_status = 0; }; then
14518   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14519                       test "x$?" != "x0" && pkg_failed=yes
14520 else
14521   pkg_failed=yes
14522 fi
14523  else
14524     pkg_failed=untried
14525 fi
14526 if test -n "$CAIRO_LIBS"; then
14527     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14528  elif test -n "$PKG_CONFIG"; then
14529     if test -n "$PKG_CONFIG" && \
14530     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14531   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14532   ac_status=$?
14533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534   test $ac_status = 0; }; then
14535   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14536                       test "x$?" != "x0" && pkg_failed=yes
14537 else
14538   pkg_failed=yes
14539 fi
14540  else
14541     pkg_failed=untried
14542 fi
14543
14544
14545
14546 if test $pkg_failed = yes; then
14547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14548 $as_echo "no" >&6; }
14549
14550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14551         _pkg_short_errors_supported=yes
14552 else
14553         _pkg_short_errors_supported=no
14554 fi
14555         if test $_pkg_short_errors_supported = yes; then
14556                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14557         else
14558                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14559         fi
14560         # Put the nasty error message in config.log where it belongs
14561         echo "$CAIRO_PKG_ERRORS" >&5
14562
14563         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14564
14565 $CAIRO_PKG_ERRORS
14566
14567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14568 installed software in a non-standard prefix.
14569
14570 Alternatively, you may set the environment variables CAIRO_CFLAGS
14571 and CAIRO_LIBS to avoid the need to call pkg-config.
14572 See the pkg-config man page for more details." "$LINENO" 5
14573 elif test $pkg_failed = untried; then
14574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14576         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14578 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14579 is in your PATH or set the PKG_CONFIG environment variable to the full
14580 path to pkg-config.
14581
14582 Alternatively, you may set the environment variables CAIRO_CFLAGS
14583 and CAIRO_LIBS to avoid the need to call pkg-config.
14584 See the pkg-config man page for more details.
14585
14586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14587 See \`config.log' for more details" "$LINENO" 5; }
14588 else
14589         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14590         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14593
14594 fi
14595
14596     if test $build_py3k = true; then
14597
14598 pkg_failed=no
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14600 $as_echo_n "checking for PYCAIRO... " >&6; }
14601
14602 if test -n "$PYCAIRO_CFLAGS"; then
14603     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14604  elif test -n "$PKG_CONFIG"; then
14605     if test -n "$PKG_CONFIG" && \
14606     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14607         \""; } >&5
14608   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14609         ") 2>&5
14610   ac_status=$?
14611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612   test $ac_status = 0; }; then
14613   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14614         " 2>/dev/null`
14615                       test "x$?" != "x0" && pkg_failed=yes
14616 else
14617   pkg_failed=yes
14618 fi
14619  else
14620     pkg_failed=untried
14621 fi
14622 if test -n "$PYCAIRO_LIBS"; then
14623     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14624  elif test -n "$PKG_CONFIG"; then
14625     if test -n "$PKG_CONFIG" && \
14626     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14627         \""; } >&5
14628   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14629         ") 2>&5
14630   ac_status=$?
14631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14632   test $ac_status = 0; }; then
14633   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14634         " 2>/dev/null`
14635                       test "x$?" != "x0" && pkg_failed=yes
14636 else
14637   pkg_failed=yes
14638 fi
14639  else
14640     pkg_failed=untried
14641 fi
14642
14643
14644
14645 if test $pkg_failed = yes; then
14646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14648
14649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14650         _pkg_short_errors_supported=yes
14651 else
14652         _pkg_short_errors_supported=no
14653 fi
14654         if test $_pkg_short_errors_supported = yes; then
14655                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14656         " 2>&1`
14657         else
14658                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14659         " 2>&1`
14660         fi
14661         # Put the nasty error message in config.log where it belongs
14662         echo "$PYCAIRO_PKG_ERRORS" >&5
14663
14664         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14665         ) were not met:
14666
14667 $PYCAIRO_PKG_ERRORS
14668
14669 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14670 installed software in a non-standard prefix.
14671
14672 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14673 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14674 See the pkg-config man page for more details." "$LINENO" 5
14675 elif test $pkg_failed = untried; then
14676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 $as_echo "no" >&6; }
14678         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14680 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14681 is in your PATH or set the PKG_CONFIG environment variable to the full
14682 path to pkg-config.
14683
14684 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14685 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14686 See the pkg-config man page for more details.
14687
14688 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14689 See \`config.log' for more details" "$LINENO" 5; }
14690 else
14691         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14692         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14695
14696 fi
14697     else
14698
14699 pkg_failed=no
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14701 $as_echo_n "checking for PYCAIRO... " >&6; }
14702
14703 if test -n "$PYCAIRO_CFLAGS"; then
14704     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14705  elif test -n "$PKG_CONFIG"; then
14706     if test -n "$PKG_CONFIG" && \
14707     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14708         \""; } >&5
14709   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14710         ") 2>&5
14711   ac_status=$?
14712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713   test $ac_status = 0; }; then
14714   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14715         " 2>/dev/null`
14716                       test "x$?" != "x0" && pkg_failed=yes
14717 else
14718   pkg_failed=yes
14719 fi
14720  else
14721     pkg_failed=untried
14722 fi
14723 if test -n "$PYCAIRO_LIBS"; then
14724     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14725  elif test -n "$PKG_CONFIG"; then
14726     if test -n "$PKG_CONFIG" && \
14727     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14728         \""; } >&5
14729   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14730         ") 2>&5
14731   ac_status=$?
14732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733   test $ac_status = 0; }; then
14734   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14735         " 2>/dev/null`
14736                       test "x$?" != "x0" && pkg_failed=yes
14737 else
14738   pkg_failed=yes
14739 fi
14740  else
14741     pkg_failed=untried
14742 fi
14743
14744
14745
14746 if test $pkg_failed = yes; then
14747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749
14750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14751         _pkg_short_errors_supported=yes
14752 else
14753         _pkg_short_errors_supported=no
14754 fi
14755         if test $_pkg_short_errors_supported = yes; then
14756                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14757         " 2>&1`
14758         else
14759                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14760         " 2>&1`
14761         fi
14762         # Put the nasty error message in config.log where it belongs
14763         echo "$PYCAIRO_PKG_ERRORS" >&5
14764
14765         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14766         ) were not met:
14767
14768 $PYCAIRO_PKG_ERRORS
14769
14770 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14771 installed software in a non-standard prefix.
14772
14773 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14774 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14775 See the pkg-config man page for more details." "$LINENO" 5
14776 elif test $pkg_failed = untried; then
14777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778 $as_echo "no" >&6; }
14779         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14781 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14782 is in your PATH or set the PKG_CONFIG environment variable to the full
14783 path to pkg-config.
14784
14785 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14786 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14787 See the pkg-config man page for more details.
14788
14789 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14790 See \`config.log' for more details" "$LINENO" 5; }
14791 else
14792         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14793         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14795 $as_echo "yes" >&6; }
14796
14797 fi
14798     fi
14799 fi
14800  if test "$enable_cairo" = "yes"; then
14801   ENABLE_CAIRO_TRUE=
14802   ENABLE_CAIRO_FALSE='#'
14803 else
14804   ENABLE_CAIRO_TRUE='#'
14805   ENABLE_CAIRO_FALSE=
14806 fi
14807
14808
14809
14810 # Check whether --with-common was given.
14811 if test "${with_common+set}" = set; then :
14812   withval=$with_common; with_common=$enableval
14813 else
14814   with_common=yes
14815 fi
14816
14817  if test "$with_common" = "yes"; then
14818   WITH_COMMON_TRUE=
14819   WITH_COMMON_FALSE='#'
14820 else
14821   WITH_COMMON_TRUE='#'
14822   WITH_COMMON_FALSE=
14823 fi
14824
14825
14826 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14827 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14828
14829
14830
14831
14832 # compiler warnings, errors, required cflags, and code coverage support
14833
14834
14835     # Check whether --enable-compile-warnings was given.
14836 if test "${enable_compile_warnings+set}" = set; then :
14837   enableval=$enable_compile_warnings;
14838 else
14839   enable_compile_warnings="maximum"
14840 fi
14841
14842
14843     if test "x$GCC" != xyes; then
14844         enable_compile_warnings=no
14845     fi
14846
14847     warning_flags=
14848     realsave_CFLAGS="$CFLAGS"
14849
14850             base_warn_flags=" \
14851         -Wall \
14852         -Wstrict-prototypes \
14853         -Wnested-externs \
14854     "
14855
14856                     base_error_flags=" \
14857         -Werror=missing-prototypes \
14858         -Werror=implicit-function-declaration \
14859         -Werror=pointer-arith \
14860         -Werror=init-self \
14861         -Werror=format-security \
14862         -Werror=format=2 \
14863         -Werror=missing-include-dirs \
14864         -Werror=return-type \
14865     "
14866
14867                 additional_flags=""
14868
14869     case "$enable_compile_warnings" in
14870     no)
14871         warning_flags="-w"
14872         ;;
14873     minimum)
14874         warning_flags="-Wall"
14875         ;;
14876     yes|maximum|error)
14877         warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14878         ;;
14879     *)
14880         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14881         ;;
14882     esac
14883
14884     if test "$enable_compile_warnings" = "error" ; then
14885         warning_flags="$warning_flags -Werror"
14886     fi
14887
14888         for option in $warning_flags; do
14889         save_CFLAGS="$CFLAGS"
14890         CFLAGS="$CFLAGS $option"
14891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14892 $as_echo_n "checking whether gcc understands $option... " >&6; }
14893         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h.  */
14895
14896 int
14897 main ()
14898 {
14899
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 if ac_fn_c_try_compile "$LINENO"; then :
14905   has_option=yes
14906 else
14907   has_option=no
14908 fi
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910         CFLAGS="$save_CFLAGS"
14911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14912 $as_echo "$has_option" >&6; }
14913         if test $has_option = yes; then
14914             tested_warning_flags="$tested_warning_flags $option"
14915         fi
14916         unset has_option
14917         unset save_CFLAGS
14918     done
14919     unset option
14920     CFLAGS="$realsave_CFLAGS"
14921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14922 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14924 $as_echo "$tested_warning_flags" >&6; }
14925
14926     # Check whether --enable-iso-c was given.
14927 if test "${enable_iso_c+set}" = set; then :
14928   enableval=$enable_iso_c;
14929 else
14930   enable_iso_c=no
14931 fi
14932
14933
14934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14935 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14936     complCFLAGS=
14937     if test "x$enable_iso_c" != "xno"; then
14938         if test "x$GCC" = "xyes"; then
14939         case " $CFLAGS " in
14940             *\ \        -ansi\ \        *) ;;
14941             *) complCFLAGS="$complCFLAGS -ansi" ;;
14942         esac
14943         case " $CFLAGS " in
14944             *\ \        -pedantic\ \    *) ;;
14945             *) complCFLAGS="$complCFLAGS -pedantic" ;;
14946         esac
14947         fi
14948     fi
14949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14950 $as_echo "$complCFLAGS" >&6; }
14951
14952     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14953
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14956 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14958 $as_echo "yes" >&6; }
14959
14960
14961
14962
14963         # allow to override gcov location
14964
14965 # Check whether --with-gcov was given.
14966 if test "${with_gcov+set}" = set; then :
14967   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14968 else
14969   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
14970 fi
14971
14972
14973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14974 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14975         # Check whether --enable-code-coverage was given.
14976 if test "${enable_code_coverage+set}" = set; then :
14977   enableval=$enable_code_coverage;
14978 else
14979   enable_code_coverage=no
14980 fi
14981
14982
14983          if test x$enable_code_coverage = xyes; then
14984   CODE_COVERAGE_ENABLED_TRUE=
14985   CODE_COVERAGE_ENABLED_FALSE='#'
14986 else
14987   CODE_COVERAGE_ENABLED_TRUE='#'
14988   CODE_COVERAGE_ENABLED_FALSE=
14989 fi
14990
14991         CODE_COVERAGE_ENABLED=$enable_code_coverage
14992
14993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14994 $as_echo "$enable_code_coverage" >&6; }
14995
14996         if  test "$enable_code_coverage" = "yes" ; then :
14997
14998                 # check for gcov
14999                 if test -n "$ac_tool_prefix"; then
15000   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
15001 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15003 $as_echo_n "checking for $ac_word... " >&6; }
15004 if ${ac_cv_prog_GCOV+:} false; then :
15005   $as_echo_n "(cached) " >&6
15006 else
15007   if test -n "$GCOV"; then
15008   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
15009 else
15010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15011 for as_dir in $PATH
15012 do
15013   IFS=$as_save_IFS
15014   test -z "$as_dir" && as_dir=.
15015     for ac_exec_ext in '' $ac_executable_extensions; do
15016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15017     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
15018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15019     break 2
15020   fi
15021 done
15022   done
15023 IFS=$as_save_IFS
15024
15025 fi
15026 fi
15027 GCOV=$ac_cv_prog_GCOV
15028 if test -n "$GCOV"; then
15029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
15030 $as_echo "$GCOV" >&6; }
15031 else
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15034 fi
15035
15036
15037 fi
15038 if test -z "$ac_cv_prog_GCOV"; then
15039   ac_ct_GCOV=$GCOV
15040   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
15041 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15043 $as_echo_n "checking for $ac_word... " >&6; }
15044 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
15045   $as_echo_n "(cached) " >&6
15046 else
15047   if test -n "$ac_ct_GCOV"; then
15048   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
15049 else
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15052 do
15053   IFS=$as_save_IFS
15054   test -z "$as_dir" && as_dir=.
15055     for ac_exec_ext in '' $ac_executable_extensions; do
15056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
15058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059     break 2
15060   fi
15061 done
15062   done
15063 IFS=$as_save_IFS
15064
15065 fi
15066 fi
15067 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
15068 if test -n "$ac_ct_GCOV"; then
15069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
15070 $as_echo "$ac_ct_GCOV" >&6; }
15071 else
15072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15074 fi
15075
15076   if test "x$ac_ct_GCOV" = x; then
15077     GCOV=":"
15078   else
15079     case $cross_compiling:$ac_tool_warned in
15080 yes:)
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15083 ac_tool_warned=yes ;;
15084 esac
15085     GCOV=$ac_ct_GCOV
15086   fi
15087 else
15088   GCOV="$ac_cv_prog_GCOV"
15089 fi
15090
15091                 if test "X$GCOV" = "X:"; then :
15092   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
15093 fi
15094
15095
15096                                 if  test "$GCC" = "no" ; then :
15097
15098                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
15099
15100 fi
15101
15102                 # List of supported lcov versions.
15103                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
15104
15105                 # Extract the first word of "lcov", so it can be a program name with args.
15106 set dummy lcov; ac_word=$2
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15108 $as_echo_n "checking for $ac_word... " >&6; }
15109 if ${ac_cv_prog_LCOV+:} false; then :
15110   $as_echo_n "(cached) " >&6
15111 else
15112   if test -n "$LCOV"; then
15113   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
15114 else
15115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116 for as_dir in $PATH
15117 do
15118   IFS=$as_save_IFS
15119   test -z "$as_dir" && as_dir=.
15120     for ac_exec_ext in '' $ac_executable_extensions; do
15121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15122     ac_cv_prog_LCOV="lcov"
15123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15124     break 2
15125   fi
15126 done
15127   done
15128 IFS=$as_save_IFS
15129
15130 fi
15131 fi
15132 LCOV=$ac_cv_prog_LCOV
15133 if test -n "$LCOV"; then
15134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15135 $as_echo "$LCOV" >&6; }
15136 else
15137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15138 $as_echo "no" >&6; }
15139 fi
15140
15141
15142                 # Extract the first word of "genhtml", so it can be a program name with args.
15143 set dummy genhtml; ac_word=$2
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15145 $as_echo_n "checking for $ac_word... " >&6; }
15146 if ${ac_cv_prog_GENHTML+:} false; then :
15147   $as_echo_n "(cached) " >&6
15148 else
15149   if test -n "$GENHTML"; then
15150   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
15151 else
15152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153 for as_dir in $PATH
15154 do
15155   IFS=$as_save_IFS
15156   test -z "$as_dir" && as_dir=.
15157     for ac_exec_ext in '' $ac_executable_extensions; do
15158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15159     ac_cv_prog_GENHTML="genhtml"
15160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15161     break 2
15162   fi
15163 done
15164   done
15165 IFS=$as_save_IFS
15166
15167 fi
15168 fi
15169 GENHTML=$ac_cv_prog_GENHTML
15170 if test -n "$GENHTML"; then
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15172 $as_echo "$GENHTML" >&6; }
15173 else
15174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175 $as_echo "no" >&6; }
15176 fi
15177
15178
15179
15180                 if  test "$LCOV" ; then :
15181
15182                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
15183 $as_echo_n "checking for lcov version... " >&6; }
15184 if ${ax_cv_lcov_version+:} false; then :
15185   $as_echo_n "(cached) " >&6
15186 else
15187
15188                                 ax_cv_lcov_version=invalid
15189                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
15190                                 for lcov_check_version in $lcov_version_list; do
15191                                         if test "$lcov_version" = "$lcov_check_version"; then
15192                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
15193                                         fi
15194                                 done
15195
15196 fi
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
15198 $as_echo "$ax_cv_lcov_version" >&6; }
15199
15200 else
15201
15202                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
15203                         as_fn_error $? "$lcov_msg" "$LINENO" 5
15204
15205 fi
15206
15207                 case $ax_cv_lcov_version in
15208                         ""|invalid)
15209                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
15210                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
15211                                 LCOV="exit 0;"
15212                         ;;
15213                 esac
15214
15215                 if  test -z "$GENHTML" ; then :
15216
15217                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
15218
15219 fi
15220
15221                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15222                 CODE_COVERAGE_LDFLAGS="-lgcov"
15223
15224
15225
15226
15227 fi
15228
15229 CODE_COVERAGE_RULES='
15230 # Code coverage
15231 #
15232 # Optional:
15233 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
15234 #    (Default: $(top_builddir))
15235 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
15236 #    by lcov for code coverage. (Default:
15237 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
15238 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
15239 #    reports to be created. (Default:
15240 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
15241 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
15242 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
15243 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15244 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
15245 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15246 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
15247 #    instance. (Default: empty)
15248 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
15249 #
15250 # The generated report will be titled using the $(PACKAGE_NAME) and
15251 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
15252 # use the git-version-gen script, available online.
15253
15254 # Optional variables
15255 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
15256 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
15257 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
15258 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
15259 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15260 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15261 CODE_COVERAGE_GENHTML_OPTIONS ?=
15262 CODE_COVERAGE_IGNORE_PATTERN ?=
15263
15264 code_coverage_quiet = $(code_coverage_quiet_$(V))
15265 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
15266 code_coverage_quiet_0 = --quiet
15267
15268 # Use recursive makes in order to ignore errors during check
15269 check-code-coverage:
15270 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15271         -$(MAKE) $(AM_MAKEFLAGS) -k check
15272         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
15273 else
15274         @echo "Need to reconfigure with --enable-code-coverage"
15275 endif
15276
15277 # Capture code coverage data
15278 code-coverage-capture: code-coverage-capture-hook
15279 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15280         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
15281         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
15282         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
15283         LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
15284         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
15285 else
15286         @echo "Need to reconfigure with --enable-code-coverage"
15287 endif
15288
15289 # Hook rule executed before code-coverage-capture, overridable by the user
15290 code-coverage-capture-hook:
15291
15292 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15293 clean: code-coverage-clean
15294 code-coverage-clean:
15295         -$(LCOV) --directory $(top_builddir) -z
15296         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15297         -find . -name "*.gcda" -o -name "*.gcov" -delete
15298 endif
15299
15300 GITIGNOREFILES ?=
15301 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15302
15303 DISTCHECK_CONFIGURE_FLAGS ?=
15304 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
15305
15306 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
15307 '
15308
15309
15310
15311
15312         GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
15313
15314
15315
15316
15317
15318 if test "x$GCC" = "xyes"; then
15319
15320 case " $CFLAGS " in
15321 *[\     \ ]-Wall[\      \ ]*)
15322   ;;
15323 *)
15324   save_CFLAGS="$CFLAGS"
15325   CFLAGS="$CFLAGS -Wall"
15326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
15327 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
15328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h.  */
15330
15331 int
15332 main ()
15333 {
15334
15335   ;
15336   return 0;
15337 }
15338 _ACEOF
15339 if ac_fn_c_try_compile "$LINENO"; then :
15340   jh_has_option=yes
15341 else
15342   jh_has_option=no
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15346 $as_echo "$jh_has_option" >&6; }
15347   if test $jh_has_option = no; then
15348     CFLAGS="$save_CFLAGS"
15349   fi
15350   ;;
15351 esac
15352
15353 case " $CFLAGS " in
15354 *[\     \ ]-Werror=unused-variable[\    \ ]*)
15355   ;;
15356 *)
15357   save_CFLAGS="$CFLAGS"
15358   CFLAGS="$CFLAGS -Werror=unused-variable"
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
15360 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
15361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363
15364 int
15365 main ()
15366 {
15367
15368   ;
15369   return 0;
15370 }
15371 _ACEOF
15372 if ac_fn_c_try_compile "$LINENO"; then :
15373   jh_has_option=yes
15374 else
15375   jh_has_option=no
15376 fi
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15379 $as_echo "$jh_has_option" >&6; }
15380   if test $jh_has_option = no; then
15381     CFLAGS="$save_CFLAGS"
15382   fi
15383   ;;
15384 esac
15385
15386 case " $CFLAGS " in
15387 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
15388   ;;
15389 *)
15390   save_CFLAGS="$CFLAGS"
15391   CFLAGS="$CFLAGS -fno-strict-aliasing"
15392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
15393 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
15394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h.  */
15396
15397 int
15398 main ()
15399 {
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 if ac_fn_c_try_compile "$LINENO"; then :
15406   jh_has_option=yes
15407 else
15408   jh_has_option=no
15409 fi
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15412 $as_echo "$jh_has_option" >&6; }
15413   if test $jh_has_option = no; then
15414     CFLAGS="$save_CFLAGS"
15415   fi
15416   ;;
15417 esac
15418
15419 case " $CFLAGS " in
15420 *[\     \ ]-Werror=declaration-after-statement[\        \ ]*)
15421   ;;
15422 *)
15423   save_CFLAGS="$CFLAGS"
15424   CFLAGS="$CFLAGS -Werror=declaration-after-statement"
15425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
15426 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
15427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h.  */
15429
15430 int
15431 main ()
15432 {
15433
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 if ac_fn_c_try_compile "$LINENO"; then :
15439   jh_has_option=yes
15440 else
15441   jh_has_option=no
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15445 $as_echo "$jh_has_option" >&6; }
15446   if test $jh_has_option = no; then
15447     CFLAGS="$save_CFLAGS"
15448   fi
15449   ;;
15450 esac
15451 fi
15452
15453 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
15454 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
15455
15456 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc pygobject-3.0-uninstalled.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
15457
15458 cat >confcache <<\_ACEOF
15459 # This file is a shell script that caches the results of configure
15460 # tests run on this system so they can be shared between configure
15461 # scripts and configure runs, see configure's option --config-cache.
15462 # It is not useful on other systems.  If it contains results you don't
15463 # want to keep, you may remove or edit it.
15464 #
15465 # config.status only pays attention to the cache file if you give it
15466 # the --recheck option to rerun configure.
15467 #
15468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15470 # following values.
15471
15472 _ACEOF
15473
15474 # The following way of writing the cache mishandles newlines in values,
15475 # but we know of no workaround that is simple, portable, and efficient.
15476 # So, we kill variables containing newlines.
15477 # Ultrix sh set writes to stderr and can't be redirected directly,
15478 # and sets the high bit in the cache file unless we assign to the vars.
15479 (
15480   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15481     eval ac_val=\$$ac_var
15482     case $ac_val in #(
15483     *${as_nl}*)
15484       case $ac_var in #(
15485       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15487       esac
15488       case $ac_var in #(
15489       _ | IFS | as_nl) ;; #(
15490       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15491       *) { eval $ac_var=; unset $ac_var;} ;;
15492       esac ;;
15493     esac
15494   done
15495
15496   (set) 2>&1 |
15497     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15498     *${as_nl}ac_space=\ *)
15499       # `set' does not quote correctly, so add quotes: double-quote
15500       # substitution turns \\\\ into \\, and sed turns \\ into \.
15501       sed -n \
15502         "s/'/'\\\\''/g;
15503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15504       ;; #(
15505     *)
15506       # `set' quotes correctly as required by POSIX, so do not add quotes.
15507       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15508       ;;
15509     esac |
15510     sort
15511 ) |
15512   sed '
15513      /^ac_cv_env_/b end
15514      t clear
15515      :clear
15516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15517      t end
15518      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15519      :end' >>confcache
15520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15521   if test -w "$cache_file"; then
15522     if test "x$cache_file" != "x/dev/null"; then
15523       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15524 $as_echo "$as_me: updating cache $cache_file" >&6;}
15525       if test ! -f "$cache_file" || test -h "$cache_file"; then
15526         cat confcache >"$cache_file"
15527       else
15528         case $cache_file in #(
15529         */* | ?:*)
15530           mv -f confcache "$cache_file"$$ &&
15531           mv -f "$cache_file"$$ "$cache_file" ;; #(
15532         *)
15533           mv -f confcache "$cache_file" ;;
15534         esac
15535       fi
15536     fi
15537   else
15538     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15540   fi
15541 fi
15542 rm -f confcache
15543
15544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15545 # Let make expand exec_prefix.
15546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15547
15548 DEFS=-DHAVE_CONFIG_H
15549
15550 ac_libobjs=
15551 ac_ltlibobjs=
15552 U=
15553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15554   # 1. Remove the extension, and $U if already installed.
15555   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15556   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15557   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15558   #    will be set to the directory where LIBOBJS objects are built.
15559   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15560   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15561 done
15562 LIBOBJS=$ac_libobjs
15563
15564 LTLIBOBJS=$ac_ltlibobjs
15565
15566
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15568 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15569    if test -n "$am_sleep_pid"; then
15570      # Hide warnings about reused PIDs.
15571      wait $am_sleep_pid 2>/dev/null
15572    fi
15573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15574 $as_echo "done" >&6; }
15575  if test -n "$EXEEXT"; then
15576   am__EXEEXT_TRUE=
15577   am__EXEEXT_FALSE='#'
15578 else
15579   am__EXEEXT_TRUE='#'
15580   am__EXEEXT_FALSE=
15581 fi
15582
15583 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15584   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 fi
15587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15588   as_fn_error $? "conditional \"AMDEP\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 fi
15591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15592   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 fi
15595 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15596   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 fi
15599 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
15600   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 fi
15603 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
15604   as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 fi
15607 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15608   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 fi
15611
15612 : "${CONFIG_STATUS=./config.status}"
15613 ac_write_fail=0
15614 ac_clean_files_save=$ac_clean_files
15615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15618 as_write_fail=0
15619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15620 #! $SHELL
15621 # Generated by $as_me.
15622 # Run this file to recreate the current configuration.
15623 # Compiler output produced by configure, useful for debugging
15624 # configure, is in config.log if it exists.
15625
15626 debug=false
15627 ac_cs_recheck=false
15628 ac_cs_silent=false
15629
15630 SHELL=\${CONFIG_SHELL-$SHELL}
15631 export SHELL
15632 _ASEOF
15633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15634 ## -------------------- ##
15635 ## M4sh Initialization. ##
15636 ## -------------------- ##
15637
15638 # Be more Bourne compatible
15639 DUALCASE=1; export DUALCASE # for MKS sh
15640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15641   emulate sh
15642   NULLCMD=:
15643   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15644   # is contrary to our usage.  Disable this feature.
15645   alias -g '${1+"$@"}'='"$@"'
15646   setopt NO_GLOB_SUBST
15647 else
15648   case `(set -o) 2>/dev/null` in #(
15649   *posix*) :
15650     set -o posix ;; #(
15651   *) :
15652      ;;
15653 esac
15654 fi
15655
15656
15657 as_nl='
15658 '
15659 export as_nl
15660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15664 # Prefer a ksh shell builtin over an external printf program on Solaris,
15665 # but without wasting forks for bash or zsh.
15666 if test -z "$BASH_VERSION$ZSH_VERSION" \
15667     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15668   as_echo='print -r --'
15669   as_echo_n='print -rn --'
15670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15671   as_echo='printf %s\n'
15672   as_echo_n='printf %s'
15673 else
15674   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15675     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15676     as_echo_n='/usr/ucb/echo -n'
15677   else
15678     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15679     as_echo_n_body='eval
15680       arg=$1;
15681       case $arg in #(
15682       *"$as_nl"*)
15683         expr "X$arg" : "X\\(.*\\)$as_nl";
15684         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15685       esac;
15686       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15687     '
15688     export as_echo_n_body
15689     as_echo_n='sh -c $as_echo_n_body as_echo'
15690   fi
15691   export as_echo_body
15692   as_echo='sh -c $as_echo_body as_echo'
15693 fi
15694
15695 # The user is always right.
15696 if test "${PATH_SEPARATOR+set}" != set; then
15697   PATH_SEPARATOR=:
15698   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15699     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15700       PATH_SEPARATOR=';'
15701   }
15702 fi
15703
15704
15705 # IFS
15706 # We need space, tab and new line, in precisely that order.  Quoting is
15707 # there to prevent editors from complaining about space-tab.
15708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15709 # splitting by setting IFS to empty value.)
15710 IFS=" ""        $as_nl"
15711
15712 # Find who we are.  Look in the path if we contain no directory separator.
15713 as_myself=
15714 case $0 in #((
15715   *[\\/]* ) as_myself=$0 ;;
15716   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15717 for as_dir in $PATH
15718 do
15719   IFS=$as_save_IFS
15720   test -z "$as_dir" && as_dir=.
15721     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15722   done
15723 IFS=$as_save_IFS
15724
15725      ;;
15726 esac
15727 # We did not find ourselves, most probably we were run as `sh COMMAND'
15728 # in which case we are not to be found in the path.
15729 if test "x$as_myself" = x; then
15730   as_myself=$0
15731 fi
15732 if test ! -f "$as_myself"; then
15733   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15734   exit 1
15735 fi
15736
15737 # Unset variables that we do not need and which cause bugs (e.g. in
15738 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15739 # suppresses any "Segmentation fault" message there.  '((' could
15740 # trigger a bug in pdksh 5.2.14.
15741 for as_var in BASH_ENV ENV MAIL MAILPATH
15742 do eval test x\${$as_var+set} = xset \
15743   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15744 done
15745 PS1='$ '
15746 PS2='> '
15747 PS4='+ '
15748
15749 # NLS nuisances.
15750 LC_ALL=C
15751 export LC_ALL
15752 LANGUAGE=C
15753 export LANGUAGE
15754
15755 # CDPATH.
15756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15757
15758
15759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15760 # ----------------------------------------
15761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15763 # script with STATUS, using 1 if that was 0.
15764 as_fn_error ()
15765 {
15766   as_status=$1; test $as_status -eq 0 && as_status=1
15767   if test "$4"; then
15768     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15769     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15770   fi
15771   $as_echo "$as_me: error: $2" >&2
15772   as_fn_exit $as_status
15773 } # as_fn_error
15774
15775
15776 # as_fn_set_status STATUS
15777 # -----------------------
15778 # Set $? to STATUS, without forking.
15779 as_fn_set_status ()
15780 {
15781   return $1
15782 } # as_fn_set_status
15783
15784 # as_fn_exit STATUS
15785 # -----------------
15786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15787 as_fn_exit ()
15788 {
15789   set +e
15790   as_fn_set_status $1
15791   exit $1
15792 } # as_fn_exit
15793
15794 # as_fn_unset VAR
15795 # ---------------
15796 # Portably unset VAR.
15797 as_fn_unset ()
15798 {
15799   { eval $1=; unset $1;}
15800 }
15801 as_unset=as_fn_unset
15802 # as_fn_append VAR VALUE
15803 # ----------------------
15804 # Append the text in VALUE to the end of the definition contained in VAR. Take
15805 # advantage of any shell optimizations that allow amortized linear growth over
15806 # repeated appends, instead of the typical quadratic growth present in naive
15807 # implementations.
15808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15809   eval 'as_fn_append ()
15810   {
15811     eval $1+=\$2
15812   }'
15813 else
15814   as_fn_append ()
15815   {
15816     eval $1=\$$1\$2
15817   }
15818 fi # as_fn_append
15819
15820 # as_fn_arith ARG...
15821 # ------------------
15822 # Perform arithmetic evaluation on the ARGs, and store the result in the
15823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15824 # must be portable across $(()) and expr.
15825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15826   eval 'as_fn_arith ()
15827   {
15828     as_val=$(( $* ))
15829   }'
15830 else
15831   as_fn_arith ()
15832   {
15833     as_val=`expr "$@" || test $? -eq 1`
15834   }
15835 fi # as_fn_arith
15836
15837
15838 if expr a : '\(a\)' >/dev/null 2>&1 &&
15839    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15840   as_expr=expr
15841 else
15842   as_expr=false
15843 fi
15844
15845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15846   as_basename=basename
15847 else
15848   as_basename=false
15849 fi
15850
15851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15852   as_dirname=dirname
15853 else
15854   as_dirname=false
15855 fi
15856
15857 as_me=`$as_basename -- "$0" ||
15858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15859          X"$0" : 'X\(//\)$' \| \
15860          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15861 $as_echo X/"$0" |
15862     sed '/^.*\/\([^/][^/]*\)\/*$/{
15863             s//\1/
15864             q
15865           }
15866           /^X\/\(\/\/\)$/{
15867             s//\1/
15868             q
15869           }
15870           /^X\/\(\/\).*/{
15871             s//\1/
15872             q
15873           }
15874           s/.*/./; q'`
15875
15876 # Avoid depending upon Character Ranges.
15877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15880 as_cr_digits='0123456789'
15881 as_cr_alnum=$as_cr_Letters$as_cr_digits
15882
15883 ECHO_C= ECHO_N= ECHO_T=
15884 case `echo -n x` in #(((((
15885 -n*)
15886   case `echo 'xy\c'` in
15887   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15888   xy)  ECHO_C='\c';;
15889   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15890        ECHO_T=' ';;
15891   esac;;
15892 *)
15893   ECHO_N='-n';;
15894 esac
15895
15896 rm -f conf$$ conf$$.exe conf$$.file
15897 if test -d conf$$.dir; then
15898   rm -f conf$$.dir/conf$$.file
15899 else
15900   rm -f conf$$.dir
15901   mkdir conf$$.dir 2>/dev/null
15902 fi
15903 if (echo >conf$$.file) 2>/dev/null; then
15904   if ln -s conf$$.file conf$$ 2>/dev/null; then
15905     as_ln_s='ln -s'
15906     # ... but there are two gotchas:
15907     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15908     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15909     # In both cases, we have to default to `cp -pR'.
15910     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15911       as_ln_s='cp -pR'
15912   elif ln conf$$.file conf$$ 2>/dev/null; then
15913     as_ln_s=ln
15914   else
15915     as_ln_s='cp -pR'
15916   fi
15917 else
15918   as_ln_s='cp -pR'
15919 fi
15920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15921 rmdir conf$$.dir 2>/dev/null
15922
15923
15924 # as_fn_mkdir_p
15925 # -------------
15926 # Create "$as_dir" as a directory, including parents if necessary.
15927 as_fn_mkdir_p ()
15928 {
15929
15930   case $as_dir in #(
15931   -*) as_dir=./$as_dir;;
15932   esac
15933   test -d "$as_dir" || eval $as_mkdir_p || {
15934     as_dirs=
15935     while :; do
15936       case $as_dir in #(
15937       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15938       *) as_qdir=$as_dir;;
15939       esac
15940       as_dirs="'$as_qdir' $as_dirs"
15941       as_dir=`$as_dirname -- "$as_dir" ||
15942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15943          X"$as_dir" : 'X\(//\)[^/]' \| \
15944          X"$as_dir" : 'X\(//\)$' \| \
15945          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15946 $as_echo X"$as_dir" |
15947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15948             s//\1/
15949             q
15950           }
15951           /^X\(\/\/\)[^/].*/{
15952             s//\1/
15953             q
15954           }
15955           /^X\(\/\/\)$/{
15956             s//\1/
15957             q
15958           }
15959           /^X\(\/\).*/{
15960             s//\1/
15961             q
15962           }
15963           s/.*/./; q'`
15964       test -d "$as_dir" && break
15965     done
15966     test -z "$as_dirs" || eval "mkdir $as_dirs"
15967   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15968
15969
15970 } # as_fn_mkdir_p
15971 if mkdir -p . 2>/dev/null; then
15972   as_mkdir_p='mkdir -p "$as_dir"'
15973 else
15974   test -d ./-p && rmdir ./-p
15975   as_mkdir_p=false
15976 fi
15977
15978
15979 # as_fn_executable_p FILE
15980 # -----------------------
15981 # Test if FILE is an executable regular file.
15982 as_fn_executable_p ()
15983 {
15984   test -f "$1" && test -x "$1"
15985 } # as_fn_executable_p
15986 as_test_x='test -x'
15987 as_executable_p=as_fn_executable_p
15988
15989 # Sed expression to map a string onto a valid CPP name.
15990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15991
15992 # Sed expression to map a string onto a valid variable name.
15993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15994
15995
15996 exec 6>&1
15997 ## ----------------------------------- ##
15998 ## Main body of $CONFIG_STATUS script. ##
15999 ## ----------------------------------- ##
16000 _ASEOF
16001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16002
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 # Save the log message, to keep $0 and so on meaningful, and to
16005 # report actual input values of CONFIG_FILES etc. instead of their
16006 # values after options handling.
16007 ac_log="
16008 This file was extended by pygobject $as_me 3.21.91, which was
16009 generated by GNU Autoconf 2.69.  Invocation command line was
16010
16011   CONFIG_FILES    = $CONFIG_FILES
16012   CONFIG_HEADERS  = $CONFIG_HEADERS
16013   CONFIG_LINKS    = $CONFIG_LINKS
16014   CONFIG_COMMANDS = $CONFIG_COMMANDS
16015   $ $0 $@
16016
16017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16018 "
16019
16020 _ACEOF
16021
16022 case $ac_config_files in *"
16023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16024 esac
16025
16026 case $ac_config_headers in *"
16027 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16028 esac
16029
16030
16031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16032 # Files that config.status was made for.
16033 config_files="$ac_config_files"
16034 config_headers="$ac_config_headers"
16035 config_commands="$ac_config_commands"
16036
16037 _ACEOF
16038
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 ac_cs_usage="\
16041 \`$as_me' instantiates files and other configuration actions
16042 from templates according to the current configuration.  Unless the files
16043 and actions are specified as TAGs, all are instantiated by default.
16044
16045 Usage: $0 [OPTION]... [TAG]...
16046
16047   -h, --help       print this help, then exit
16048   -V, --version    print version number and configuration settings, then exit
16049       --config     print configuration, then exit
16050   -q, --quiet, --silent
16051                    do not print progress messages
16052   -d, --debug      don't remove temporary files
16053       --recheck    update $as_me by reconfiguring in the same conditions
16054       --file=FILE[:TEMPLATE]
16055                    instantiate the configuration file FILE
16056       --header=FILE[:TEMPLATE]
16057                    instantiate the configuration header FILE
16058
16059 Configuration files:
16060 $config_files
16061
16062 Configuration headers:
16063 $config_headers
16064
16065 Configuration commands:
16066 $config_commands
16067
16068 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
16069 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
16070
16071 _ACEOF
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16074 ac_cs_version="\\
16075 pygobject config.status 3.21.91
16076 configured by $0, generated by GNU Autoconf 2.69,
16077   with options \\"\$ac_cs_config\\"
16078
16079 Copyright (C) 2012 Free Software Foundation, Inc.
16080 This config.status script is free software; the Free Software Foundation
16081 gives unlimited permission to copy, distribute and modify it."
16082
16083 ac_pwd='$ac_pwd'
16084 srcdir='$srcdir'
16085 INSTALL='$INSTALL'
16086 MKDIR_P='$MKDIR_P'
16087 AWK='$AWK'
16088 test -n "\$AWK" || AWK=awk
16089 _ACEOF
16090
16091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16092 # The default lists apply if the user does not specify any file.
16093 ac_need_defaults=:
16094 while test $# != 0
16095 do
16096   case $1 in
16097   --*=?*)
16098     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16099     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16100     ac_shift=:
16101     ;;
16102   --*=)
16103     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16104     ac_optarg=
16105     ac_shift=:
16106     ;;
16107   *)
16108     ac_option=$1
16109     ac_optarg=$2
16110     ac_shift=shift
16111     ;;
16112   esac
16113
16114   case $ac_option in
16115   # Handling of the options.
16116   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16117     ac_cs_recheck=: ;;
16118   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16119     $as_echo "$ac_cs_version"; exit ;;
16120   --config | --confi | --conf | --con | --co | --c )
16121     $as_echo "$ac_cs_config"; exit ;;
16122   --debug | --debu | --deb | --de | --d | -d )
16123     debug=: ;;
16124   --file | --fil | --fi | --f )
16125     $ac_shift
16126     case $ac_optarg in
16127     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16128     '') as_fn_error $? "missing file argument" ;;
16129     esac
16130     as_fn_append CONFIG_FILES " '$ac_optarg'"
16131     ac_need_defaults=false;;
16132   --header | --heade | --head | --hea )
16133     $ac_shift
16134     case $ac_optarg in
16135     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16136     esac
16137     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16138     ac_need_defaults=false;;
16139   --he | --h)
16140     # Conflict between --help and --header
16141     as_fn_error $? "ambiguous option: \`$1'
16142 Try \`$0 --help' for more information.";;
16143   --help | --hel | -h )
16144     $as_echo "$ac_cs_usage"; exit ;;
16145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16146   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16147     ac_cs_silent=: ;;
16148
16149   # This is an error.
16150   -*) as_fn_error $? "unrecognized option: \`$1'
16151 Try \`$0 --help' for more information." ;;
16152
16153   *) as_fn_append ac_config_targets " $1"
16154      ac_need_defaults=false ;;
16155
16156   esac
16157   shift
16158 done
16159
16160 ac_configure_extra_args=
16161
16162 if $ac_cs_silent; then
16163   exec 6>/dev/null
16164   ac_configure_extra_args="$ac_configure_extra_args --silent"
16165 fi
16166
16167 _ACEOF
16168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 if \$ac_cs_recheck; then
16170   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16171   shift
16172   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16173   CONFIG_SHELL='$SHELL'
16174   export CONFIG_SHELL
16175   exec "\$@"
16176 fi
16177
16178 _ACEOF
16179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16180 exec 5>>config.log
16181 {
16182   echo
16183   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16184 ## Running $as_me. ##
16185 _ASBOX
16186   $as_echo "$ac_log"
16187 } >&5
16188
16189 _ACEOF
16190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16191 #
16192 # INIT-COMMANDS
16193 #
16194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16195
16196
16197 # The HP-UX ksh and POSIX shell print the target directory to stdout
16198 # if CDPATH is set.
16199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16200
16201 sed_quote_subst='$sed_quote_subst'
16202 double_quote_subst='$double_quote_subst'
16203 delay_variable_subst='$delay_variable_subst'
16204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16206 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16207 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16208 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16209 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16210 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16211 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16212 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16213 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16214 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16215 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16216 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16217 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16218 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16219 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16220 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16221 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16222 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16223 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16224 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16225 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16226 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16227 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16228 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16229 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16230 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16231 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16232 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16233 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16234 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16235 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16236 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16237 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16238 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16239 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16240 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16241 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16242 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16243 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16244 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16247 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16248 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16249 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16250 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16251 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16252 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16253 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16254 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16255 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16256 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16257 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16258 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16259 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16261 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16263 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"`'
16264 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16267 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16268 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16269 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16270 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16271 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16273 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16275 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16276 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16332 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16333 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16340
16341 LTCC='$LTCC'
16342 LTCFLAGS='$LTCFLAGS'
16343 compiler='$compiler_DEFAULT'
16344
16345 # A function that is used when there is no print builtin or printf.
16346 func_fallback_echo ()
16347 {
16348   eval 'cat <<_LTECHO_EOF
16349 \$1
16350 _LTECHO_EOF'
16351 }
16352
16353 # Quote evaled strings.
16354 for var in AS \
16355 DLLTOOL \
16356 OBJDUMP \
16357 SHELL \
16358 ECHO \
16359 PATH_SEPARATOR \
16360 SED \
16361 GREP \
16362 EGREP \
16363 FGREP \
16364 LD \
16365 NM \
16366 LN_S \
16367 lt_SP2NL \
16368 lt_NL2SP \
16369 reload_flag \
16370 deplibs_check_method \
16371 file_magic_cmd \
16372 file_magic_glob \
16373 want_nocaseglob \
16374 sharedlib_from_linklib_cmd \
16375 AR \
16376 AR_FLAGS \
16377 archiver_list_spec \
16378 STRIP \
16379 RANLIB \
16380 CC \
16381 CFLAGS \
16382 compiler \
16383 lt_cv_sys_global_symbol_pipe \
16384 lt_cv_sys_global_symbol_to_cdecl \
16385 lt_cv_sys_global_symbol_to_import \
16386 lt_cv_sys_global_symbol_to_c_name_address \
16387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16388 lt_cv_nm_interface \
16389 nm_file_list_spec \
16390 lt_cv_truncate_bin \
16391 lt_prog_compiler_no_builtin_flag \
16392 lt_prog_compiler_pic \
16393 lt_prog_compiler_wl \
16394 lt_prog_compiler_static \
16395 lt_cv_prog_compiler_c_o \
16396 need_locks \
16397 MANIFEST_TOOL \
16398 DSYMUTIL \
16399 NMEDIT \
16400 LIPO \
16401 OTOOL \
16402 OTOOL64 \
16403 shrext_cmds \
16404 export_dynamic_flag_spec \
16405 whole_archive_flag_spec \
16406 compiler_needs_object \
16407 with_gnu_ld \
16408 allow_undefined_flag \
16409 no_undefined_flag \
16410 hardcode_libdir_flag_spec \
16411 hardcode_libdir_separator \
16412 exclude_expsyms \
16413 include_expsyms \
16414 file_list_spec \
16415 variables_saved_for_relink \
16416 libname_spec \
16417 library_names_spec \
16418 soname_spec \
16419 install_override_mode \
16420 finish_eval \
16421 old_striplib \
16422 striplib; do
16423     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16424     *[\\\\\\\`\\"\\\$]*)
16425       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16426       ;;
16427     *)
16428       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16429       ;;
16430     esac
16431 done
16432
16433 # Double-quote double-evaled strings.
16434 for var in reload_cmds \
16435 old_postinstall_cmds \
16436 old_postuninstall_cmds \
16437 old_archive_cmds \
16438 extract_expsyms_cmds \
16439 old_archive_from_new_cmds \
16440 old_archive_from_expsyms_cmds \
16441 archive_cmds \
16442 archive_expsym_cmds \
16443 module_cmds \
16444 module_expsym_cmds \
16445 export_symbols_cmds \
16446 prelink_cmds \
16447 postlink_cmds \
16448 postinstall_cmds \
16449 postuninstall_cmds \
16450 finish_cmds \
16451 sys_lib_search_path_spec \
16452 configure_time_dlsearch_path \
16453 configure_time_lt_sys_library_path; do
16454     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16455     *[\\\\\\\`\\"\\\$]*)
16456       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16457       ;;
16458     *)
16459       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16460       ;;
16461     esac
16462 done
16463
16464 ac_aux_dir='$ac_aux_dir'
16465
16466 # See if we are running on zsh, and set the options that allow our
16467 # commands through without removal of \ escapes INIT.
16468 if test -n "\${ZSH_VERSION+set}"; then
16469    setopt NO_GLOB_SUBST
16470 fi
16471
16472
16473     PACKAGE='$PACKAGE'
16474     VERSION='$VERSION'
16475     RM='$RM'
16476     ofile='$ofile'
16477
16478
16479
16480
16481 _ACEOF
16482
16483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16484
16485 # Handling of arguments.
16486 for ac_config_target in $ac_config_targets
16487 do
16488   case $ac_config_target in
16489     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16490     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16492     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16493     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
16494     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
16495     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
16496     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
16497     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
16498     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
16499     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16500     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16501     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
16502     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
16503
16504   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16505   esac
16506 done
16507
16508
16509 # If the user did not use the arguments to specify the items to instantiate,
16510 # then the envvar interface is used.  Set only those that are not.
16511 # We use the long form for the default assignment because of an extremely
16512 # bizarre bug on SunOS 4.1.3.
16513 if $ac_need_defaults; then
16514   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16515   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16516   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16517 fi
16518
16519 # Have a temporary directory for convenience.  Make it in the build tree
16520 # simply because there is no reason against having it here, and in addition,
16521 # creating and moving files from /tmp can sometimes cause problems.
16522 # Hook for its removal unless debugging.
16523 # Note that there is a small window in which the directory will not be cleaned:
16524 # after its creation but before its name has been assigned to `$tmp'.
16525 $debug ||
16526 {
16527   tmp= ac_tmp=
16528   trap 'exit_status=$?
16529   : "${ac_tmp:=$tmp}"
16530   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16531 ' 0
16532   trap 'as_fn_exit 1' 1 2 13 15
16533 }
16534 # Create a (secure) tmp directory for tmp files.
16535
16536 {
16537   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16538   test -d "$tmp"
16539 }  ||
16540 {
16541   tmp=./conf$$-$RANDOM
16542   (umask 077 && mkdir "$tmp")
16543 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16544 ac_tmp=$tmp
16545
16546 # Set up the scripts for CONFIG_FILES section.
16547 # No need to generate them if there are no CONFIG_FILES.
16548 # This happens for instance with `./config.status config.h'.
16549 if test -n "$CONFIG_FILES"; then
16550
16551
16552 ac_cr=`echo X | tr X '\015'`
16553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16554 # But we know of no other shell where ac_cr would be empty at this
16555 # point, so we can use a bashism as a fallback.
16556 if test "x$ac_cr" = x; then
16557   eval ac_cr=\$\'\\r\'
16558 fi
16559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16561   ac_cs_awk_cr='\\r'
16562 else
16563   ac_cs_awk_cr=$ac_cr
16564 fi
16565
16566 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16567 _ACEOF
16568
16569
16570 {
16571   echo "cat >conf$$subs.awk <<_ACEOF" &&
16572   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16573   echo "_ACEOF"
16574 } >conf$$subs.sh ||
16575   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16577 ac_delim='%!_!# '
16578 for ac_last_try in false false false false false :; do
16579   . ./conf$$subs.sh ||
16580     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16581
16582   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16583   if test $ac_delim_n = $ac_delim_num; then
16584     break
16585   elif $ac_last_try; then
16586     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16587   else
16588     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16589   fi
16590 done
16591 rm -f conf$$subs.sh
16592
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16595 _ACEOF
16596 sed -n '
16597 h
16598 s/^/S["/; s/!.*/"]=/
16599 p
16600 g
16601 s/^[^!]*!//
16602 :repl
16603 t repl
16604 s/'"$ac_delim"'$//
16605 t delim
16606 :nl
16607 h
16608 s/\(.\{148\}\)..*/\1/
16609 t more1
16610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16611 p
16612 n
16613 b repl
16614 :more1
16615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16616 p
16617 g
16618 s/.\{148\}//
16619 t nl
16620 :delim
16621 h
16622 s/\(.\{148\}\)..*/\1/
16623 t more2
16624 s/["\\]/\\&/g; s/^/"/; s/$/"/
16625 p
16626 b
16627 :more2
16628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16629 p
16630 g
16631 s/.\{148\}//
16632 t delim
16633 ' <conf$$subs.awk | sed '
16634 /^[^""]/{
16635   N
16636   s/\n//
16637 }
16638 ' >>$CONFIG_STATUS || ac_write_fail=1
16639 rm -f conf$$subs.awk
16640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16641 _ACAWK
16642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16643   for (key in S) S_is_set[key] = 1
16644   FS = "\a"
16645
16646 }
16647 {
16648   line = $ 0
16649   nfields = split(line, field, "@")
16650   substed = 0
16651   len = length(field[1])
16652   for (i = 2; i < nfields; i++) {
16653     key = field[i]
16654     keylen = length(key)
16655     if (S_is_set[key]) {
16656       value = S[key]
16657       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16658       len += length(value) + length(field[++i])
16659       substed = 1
16660     } else
16661       len += 1 + keylen
16662   }
16663
16664   print line
16665 }
16666
16667 _ACAWK
16668 _ACEOF
16669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16671   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16672 else
16673   cat
16674 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16675   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16676 _ACEOF
16677
16678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16680 # trailing colons and then remove the whole line if VPATH becomes empty
16681 # (actually we leave an empty line to preserve line numbers).
16682 if test "x$srcdir" = x.; then
16683   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16684 h
16685 s///
16686 s/^/:/
16687 s/[      ]*$/:/
16688 s/:\$(srcdir):/:/g
16689 s/:\${srcdir}:/:/g
16690 s/:@srcdir@:/:/g
16691 s/^:*//
16692 s/:*$//
16693 x
16694 s/\(=[   ]*\).*/\1/
16695 G
16696 s/\n//
16697 s/^[^=]*=[       ]*$//
16698 }'
16699 fi
16700
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 fi # test -n "$CONFIG_FILES"
16703
16704 # Set up the scripts for CONFIG_HEADERS section.
16705 # No need to generate them if there are no CONFIG_HEADERS.
16706 # This happens for instance with `./config.status Makefile'.
16707 if test -n "$CONFIG_HEADERS"; then
16708 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16709 BEGIN {
16710 _ACEOF
16711
16712 # Transform confdefs.h into an awk script `defines.awk', embedded as
16713 # here-document in config.status, that substitutes the proper values into
16714 # config.h.in to produce config.h.
16715
16716 # Create a delimiter string that does not exist in confdefs.h, to ease
16717 # handling of long lines.
16718 ac_delim='%!_!# '
16719 for ac_last_try in false false :; do
16720   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16721   if test -z "$ac_tt"; then
16722     break
16723   elif $ac_last_try; then
16724     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16725   else
16726     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16727   fi
16728 done
16729
16730 # For the awk script, D is an array of macro values keyed by name,
16731 # likewise P contains macro parameters if any.  Preserve backslash
16732 # newline sequences.
16733
16734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16735 sed -n '
16736 s/.\{148\}/&'"$ac_delim"'/g
16737 t rset
16738 :rset
16739 s/^[     ]*#[    ]*define[       ][      ]*/ /
16740 t def
16741 d
16742 :def
16743 s/\\$//
16744 t bsnl
16745 s/["\\]/\\&/g
16746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16747 D["\1"]=" \3"/p
16748 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16749 d
16750 :bsnl
16751 s/["\\]/\\&/g
16752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16753 D["\1"]=" \3\\\\\\n"\\/p
16754 t cont
16755 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16756 t cont
16757 d
16758 :cont
16759 n
16760 s/.\{148\}/&'"$ac_delim"'/g
16761 t clear
16762 :clear
16763 s/\\$//
16764 t bsnlc
16765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16766 d
16767 :bsnlc
16768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16769 b cont
16770 ' <confdefs.h | sed '
16771 s/'"$ac_delim"'/"\\\
16772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16773
16774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775   for (key in D) D_is_set[key] = 1
16776   FS = "\a"
16777 }
16778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16779   line = \$ 0
16780   split(line, arg, " ")
16781   if (arg[1] == "#") {
16782     defundef = arg[2]
16783     mac1 = arg[3]
16784   } else {
16785     defundef = substr(arg[1], 2)
16786     mac1 = arg[2]
16787   }
16788   split(mac1, mac2, "(") #)
16789   macro = mac2[1]
16790   prefix = substr(line, 1, index(line, defundef) - 1)
16791   if (D_is_set[macro]) {
16792     # Preserve the white space surrounding the "#".
16793     print prefix "define", macro P[macro] D[macro]
16794     next
16795   } else {
16796     # Replace #undef with comments.  This is necessary, for example,
16797     # in the case of _POSIX_SOURCE, which is predefined and required
16798     # on some systems where configure will not decide to define it.
16799     if (defundef == "undef") {
16800       print "/*", prefix defundef, macro, "*/"
16801       next
16802     }
16803   }
16804 }
16805 { print }
16806 _ACAWK
16807 _ACEOF
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16810 fi # test -n "$CONFIG_HEADERS"
16811
16812
16813 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16814 shift
16815 for ac_tag
16816 do
16817   case $ac_tag in
16818   :[FHLC]) ac_mode=$ac_tag; continue;;
16819   esac
16820   case $ac_mode$ac_tag in
16821   :[FHL]*:*);;
16822   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16823   :[FH]-) ac_tag=-:-;;
16824   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16825   esac
16826   ac_save_IFS=$IFS
16827   IFS=:
16828   set x $ac_tag
16829   IFS=$ac_save_IFS
16830   shift
16831   ac_file=$1
16832   shift
16833
16834   case $ac_mode in
16835   :L) ac_source=$1;;
16836   :[FH])
16837     ac_file_inputs=
16838     for ac_f
16839     do
16840       case $ac_f in
16841       -) ac_f="$ac_tmp/stdin";;
16842       *) # Look for the file first in the build tree, then in the source tree
16843          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16844          # because $ac_f cannot contain `:'.
16845          test -f "$ac_f" ||
16846            case $ac_f in
16847            [\\/$]*) false;;
16848            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16849            esac ||
16850            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16851       esac
16852       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16853       as_fn_append ac_file_inputs " '$ac_f'"
16854     done
16855
16856     # Let's still pretend it is `configure' which instantiates (i.e., don't
16857     # use $as_me), people would be surprised to read:
16858     #    /* config.h.  Generated by config.status.  */
16859     configure_input='Generated from '`
16860           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16861         `' by configure.'
16862     if test x"$ac_file" != x-; then
16863       configure_input="$ac_file.  $configure_input"
16864       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16865 $as_echo "$as_me: creating $ac_file" >&6;}
16866     fi
16867     # Neutralize special characters interpreted by sed in replacement strings.
16868     case $configure_input in #(
16869     *\&* | *\|* | *\\* )
16870        ac_sed_conf_input=`$as_echo "$configure_input" |
16871        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16872     *) ac_sed_conf_input=$configure_input;;
16873     esac
16874
16875     case $ac_tag in
16876     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16877       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16878     esac
16879     ;;
16880   esac
16881
16882   ac_dir=`$as_dirname -- "$ac_file" ||
16883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16884          X"$ac_file" : 'X\(//\)[^/]' \| \
16885          X"$ac_file" : 'X\(//\)$' \| \
16886          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16887 $as_echo X"$ac_file" |
16888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16889             s//\1/
16890             q
16891           }
16892           /^X\(\/\/\)[^/].*/{
16893             s//\1/
16894             q
16895           }
16896           /^X\(\/\/\)$/{
16897             s//\1/
16898             q
16899           }
16900           /^X\(\/\).*/{
16901             s//\1/
16902             q
16903           }
16904           s/.*/./; q'`
16905   as_dir="$ac_dir"; as_fn_mkdir_p
16906   ac_builddir=.
16907
16908 case "$ac_dir" in
16909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16910 *)
16911   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16912   # A ".." for each directory in $ac_dir_suffix.
16913   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16914   case $ac_top_builddir_sub in
16915   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16916   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16917   esac ;;
16918 esac
16919 ac_abs_top_builddir=$ac_pwd
16920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16921 # for backward compatibility:
16922 ac_top_builddir=$ac_top_build_prefix
16923
16924 case $srcdir in
16925   .)  # We are building in place.
16926     ac_srcdir=.
16927     ac_top_srcdir=$ac_top_builddir_sub
16928     ac_abs_top_srcdir=$ac_pwd ;;
16929   [\\/]* | ?:[\\/]* )  # Absolute name.
16930     ac_srcdir=$srcdir$ac_dir_suffix;
16931     ac_top_srcdir=$srcdir
16932     ac_abs_top_srcdir=$srcdir ;;
16933   *) # Relative name.
16934     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16935     ac_top_srcdir=$ac_top_build_prefix$srcdir
16936     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16937 esac
16938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16939
16940
16941   case $ac_mode in
16942   :F)
16943   #
16944   # CONFIG_FILE
16945   #
16946
16947   case $INSTALL in
16948   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16949   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16950   esac
16951   ac_MKDIR_P=$MKDIR_P
16952   case $MKDIR_P in
16953   [\\/$]* | ?:[\\/]* ) ;;
16954   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16955   esac
16956 _ACEOF
16957
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16959 # If the template does not know about datarootdir, expand it.
16960 # FIXME: This hack should be removed a few years after 2.60.
16961 ac_datarootdir_hack=; ac_datarootdir_seen=
16962 ac_sed_dataroot='
16963 /datarootdir/ {
16964   p
16965   q
16966 }
16967 /@datadir@/p
16968 /@docdir@/p
16969 /@infodir@/p
16970 /@localedir@/p
16971 /@mandir@/p'
16972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16973 *datarootdir*) ac_datarootdir_seen=yes;;
16974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16977 _ACEOF
16978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16979   ac_datarootdir_hack='
16980   s&@datadir@&$datadir&g
16981   s&@docdir@&$docdir&g
16982   s&@infodir@&$infodir&g
16983   s&@localedir@&$localedir&g
16984   s&@mandir@&$mandir&g
16985   s&\\\${datarootdir}&$datarootdir&g' ;;
16986 esac
16987 _ACEOF
16988
16989 # Neutralize VPATH when `$srcdir' = `.'.
16990 # Shell code in configure.ac might set extrasub.
16991 # FIXME: do we really want to maintain this feature?
16992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16993 ac_sed_extra="$ac_vpsub
16994 $extrasub
16995 _ACEOF
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997 :t
16998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16999 s|@configure_input@|$ac_sed_conf_input|;t t
17000 s&@top_builddir@&$ac_top_builddir_sub&;t t
17001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17002 s&@srcdir@&$ac_srcdir&;t t
17003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17004 s&@top_srcdir@&$ac_top_srcdir&;t t
17005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17006 s&@builddir@&$ac_builddir&;t t
17007 s&@abs_builddir@&$ac_abs_builddir&;t t
17008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17009 s&@INSTALL@&$ac_INSTALL&;t t
17010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17011 $ac_datarootdir_hack
17012 "
17013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17014   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17015
17016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17017   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17018   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17019       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17021 which seems to be undefined.  Please make sure it is defined" >&5
17022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17023 which seems to be undefined.  Please make sure it is defined" >&2;}
17024
17025   rm -f "$ac_tmp/stdin"
17026   case $ac_file in
17027   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17028   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17029   esac \
17030   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17031  ;;
17032   :H)
17033   #
17034   # CONFIG_HEADER
17035   #
17036   if test x"$ac_file" != x-; then
17037     {
17038       $as_echo "/* $configure_input  */" \
17039       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17040     } >"$ac_tmp/config.h" \
17041       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17042     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17043       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17045     else
17046       rm -f "$ac_file"
17047       mv "$ac_tmp/config.h" "$ac_file" \
17048         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17049     fi
17050   else
17051     $as_echo "/* $configure_input  */" \
17052       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17053       || as_fn_error $? "could not create -" "$LINENO" 5
17054   fi
17055 # Compute "$ac_file"'s index in $config_headers.
17056 _am_arg="$ac_file"
17057 _am_stamp_count=1
17058 for _am_header in $config_headers :; do
17059   case $_am_header in
17060     $_am_arg | $_am_arg:* )
17061       break ;;
17062     * )
17063       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17064   esac
17065 done
17066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17068          X"$_am_arg" : 'X\(//\)[^/]' \| \
17069          X"$_am_arg" : 'X\(//\)$' \| \
17070          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17071 $as_echo X"$_am_arg" |
17072     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17073             s//\1/
17074             q
17075           }
17076           /^X\(\/\/\)[^/].*/{
17077             s//\1/
17078             q
17079           }
17080           /^X\(\/\/\)$/{
17081             s//\1/
17082             q
17083           }
17084           /^X\(\/\).*/{
17085             s//\1/
17086             q
17087           }
17088           s/.*/./; q'`/stamp-h$_am_stamp_count
17089  ;;
17090
17091   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17092 $as_echo "$as_me: executing $ac_file commands" >&6;}
17093  ;;
17094   esac
17095
17096
17097   case $ac_file$ac_mode in
17098     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17099   # Older Autoconf quotes --file arguments for eval, but not when files
17100   # are listed without --file.  Let's play safe and only enable the eval
17101   # if we detect the quoting.
17102   case $CONFIG_FILES in
17103   *\'*) eval set x "$CONFIG_FILES" ;;
17104   *)   set x $CONFIG_FILES ;;
17105   esac
17106   shift
17107   for mf
17108   do
17109     # Strip MF so we end up with the name of the file.
17110     mf=`echo "$mf" | sed -e 's/:.*$//'`
17111     # Check whether this is an Automake generated Makefile or not.
17112     # We used to match only the files named 'Makefile.in', but
17113     # some people rename them; so instead we look at the file content.
17114     # Grep'ing the first line is not enough: some people post-process
17115     # each Makefile.in and add a new line on top of each file to say so.
17116     # Grep'ing the whole file is not good either: AIX grep has a line
17117     # limit of 2048, but all sed's we know have understand at least 4000.
17118     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17119       dirpart=`$as_dirname -- "$mf" ||
17120 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121          X"$mf" : 'X\(//\)[^/]' \| \
17122          X"$mf" : 'X\(//\)$' \| \
17123          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17124 $as_echo X"$mf" |
17125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17126             s//\1/
17127             q
17128           }
17129           /^X\(\/\/\)[^/].*/{
17130             s//\1/
17131             q
17132           }
17133           /^X\(\/\/\)$/{
17134             s//\1/
17135             q
17136           }
17137           /^X\(\/\).*/{
17138             s//\1/
17139             q
17140           }
17141           s/.*/./; q'`
17142     else
17143       continue
17144     fi
17145     # Extract the definition of DEPDIR, am__include, and am__quote
17146     # from the Makefile without running 'make'.
17147     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17148     test -z "$DEPDIR" && continue
17149     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17150     test -z "$am__include" && continue
17151     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17152     # Find all dependency output files, they are included files with
17153     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17154     # simplest approach to changing $(DEPDIR) to its actual value in the
17155     # expansion.
17156     for file in `sed -n "
17157       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17158          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17159       # Make sure the directory exists.
17160       test -f "$dirpart/$file" && continue
17161       fdir=`$as_dirname -- "$file" ||
17162 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17163          X"$file" : 'X\(//\)[^/]' \| \
17164          X"$file" : 'X\(//\)$' \| \
17165          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17166 $as_echo X"$file" |
17167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17168             s//\1/
17169             q
17170           }
17171           /^X\(\/\/\)[^/].*/{
17172             s//\1/
17173             q
17174           }
17175           /^X\(\/\/\)$/{
17176             s//\1/
17177             q
17178           }
17179           /^X\(\/\).*/{
17180             s//\1/
17181             q
17182           }
17183           s/.*/./; q'`
17184       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17185       # echo "creating $dirpart/$file"
17186       echo '# dummy' > "$dirpart/$file"
17187     done
17188   done
17189 }
17190  ;;
17191     "libtool":C)
17192
17193     # See if we are running on zsh, and set the options that allow our
17194     # commands through without removal of \ escapes.
17195     if test -n "${ZSH_VERSION+set}"; then
17196       setopt NO_GLOB_SUBST
17197     fi
17198
17199     cfgfile=${ofile}T
17200     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17201     $RM "$cfgfile"
17202
17203     cat <<_LT_EOF >> "$cfgfile"
17204 #! $SHELL
17205 # Generated automatically by $as_me ($PACKAGE) $VERSION
17206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17207
17208 # Provide generalized library-building support services.
17209 # Written by Gordon Matzigkeit, 1996
17210
17211 # Copyright (C) 2014 Free Software Foundation, Inc.
17212 # This is free software; see the source for copying conditions.  There is NO
17213 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17214
17215 # GNU Libtool is free software; you can redistribute it and/or modify
17216 # it under the terms of the GNU General Public License as published by
17217 # the Free Software Foundation; either version 2 of of the License, or
17218 # (at your option) any later version.
17219 #
17220 # As a special exception to the GNU General Public License, if you
17221 # distribute this file as part of a program or library that is built
17222 # using GNU Libtool, you may include this file under the  same
17223 # distribution terms that you use for the rest of that program.
17224 #
17225 # GNU Libtool is distributed in the hope that it will be useful, but
17226 # WITHOUT ANY WARRANTY; without even the implied warranty of
17227 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17228 # GNU General Public License for more details.
17229 #
17230 # You should have received a copy of the GNU General Public License
17231 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17232
17233
17234 # The names of the tagged configurations supported by this script.
17235 available_tags=''
17236
17237 # Configured defaults for sys_lib_dlsearch_path munging.
17238 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17239
17240 # ### BEGIN LIBTOOL CONFIG
17241
17242 # Which release of libtool.m4 was used?
17243 macro_version=$macro_version
17244 macro_revision=$macro_revision
17245
17246 # Assembler program.
17247 AS=$lt_AS
17248
17249 # DLL creation program.
17250 DLLTOOL=$lt_DLLTOOL
17251
17252 # Object dumper program.
17253 OBJDUMP=$lt_OBJDUMP
17254
17255 # Whether or not to build static libraries.
17256 build_old_libs=$enable_static
17257
17258 # Whether or not to build shared libraries.
17259 build_libtool_libs=$enable_shared
17260
17261 # What type of objects to build.
17262 pic_mode=$pic_mode
17263
17264 # Whether or not to optimize for fast installation.
17265 fast_install=$enable_fast_install
17266
17267 # Shared archive member basename,for filename based shared library versioning on AIX.
17268 shared_archive_member_spec=$shared_archive_member_spec
17269
17270 # Shell to use when invoking shell scripts.
17271 SHELL=$lt_SHELL
17272
17273 # An echo program that protects backslashes.
17274 ECHO=$lt_ECHO
17275
17276 # The PATH separator for the build system.
17277 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17278
17279 # The host system.
17280 host_alias=$host_alias
17281 host=$host
17282 host_os=$host_os
17283
17284 # The build system.
17285 build_alias=$build_alias
17286 build=$build
17287 build_os=$build_os
17288
17289 # A sed program that does not truncate output.
17290 SED=$lt_SED
17291
17292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17293 Xsed="\$SED -e 1s/^X//"
17294
17295 # A grep program that handles long lines.
17296 GREP=$lt_GREP
17297
17298 # An ERE matcher.
17299 EGREP=$lt_EGREP
17300
17301 # A literal string matcher.
17302 FGREP=$lt_FGREP
17303
17304 # A BSD- or MS-compatible name lister.
17305 NM=$lt_NM
17306
17307 # Whether we need soft or hard links.
17308 LN_S=$lt_LN_S
17309
17310 # What is the maximum length of a command?
17311 max_cmd_len=$max_cmd_len
17312
17313 # Object file suffix (normally "o").
17314 objext=$ac_objext
17315
17316 # Executable file suffix (normally "").
17317 exeext=$exeext
17318
17319 # whether the shell understands "unset".
17320 lt_unset=$lt_unset
17321
17322 # turn spaces into newlines.
17323 SP2NL=$lt_lt_SP2NL
17324
17325 # turn newlines into spaces.
17326 NL2SP=$lt_lt_NL2SP
17327
17328 # convert \$build file names to \$host format.
17329 to_host_file_cmd=$lt_cv_to_host_file_cmd
17330
17331 # convert \$build files to toolchain format.
17332 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17333
17334 # Method to check whether dependent libraries are shared objects.
17335 deplibs_check_method=$lt_deplibs_check_method
17336
17337 # Command to use when deplibs_check_method = "file_magic".
17338 file_magic_cmd=$lt_file_magic_cmd
17339
17340 # How to find potential files when deplibs_check_method = "file_magic".
17341 file_magic_glob=$lt_file_magic_glob
17342
17343 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17344 want_nocaseglob=$lt_want_nocaseglob
17345
17346 # Command to associate shared and link libraries.
17347 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17348
17349 # The archiver.
17350 AR=$lt_AR
17351
17352 # Flags to create an archive.
17353 AR_FLAGS=$lt_AR_FLAGS
17354
17355 # How to feed a file listing to the archiver.
17356 archiver_list_spec=$lt_archiver_list_spec
17357
17358 # A symbol stripping program.
17359 STRIP=$lt_STRIP
17360
17361 # Commands used to install an old-style archive.
17362 RANLIB=$lt_RANLIB
17363 old_postinstall_cmds=$lt_old_postinstall_cmds
17364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17365
17366 # Whether to use a lock for old archive extraction.
17367 lock_old_archive_extraction=$lock_old_archive_extraction
17368
17369 # A C compiler.
17370 LTCC=$lt_CC
17371
17372 # LTCC compiler flags.
17373 LTCFLAGS=$lt_CFLAGS
17374
17375 # Take the output of nm and produce a listing of raw symbols and C names.
17376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17377
17378 # Transform the output of nm in a proper C declaration.
17379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17380
17381 # Transform the output of nm into a list of symbols to manually relocate.
17382 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17383
17384 # Transform the output of nm in a C name address pair.
17385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17386
17387 # Transform the output of nm in a C name address pair when lib prefix is needed.
17388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17389
17390 # The name lister interface.
17391 nm_interface=$lt_lt_cv_nm_interface
17392
17393 # Specify filename containing input files for \$NM.
17394 nm_file_list_spec=$lt_nm_file_list_spec
17395
17396 # The root where to search for dependent libraries,and where our libraries should be installed.
17397 lt_sysroot=$lt_sysroot
17398
17399 # Command to truncate a binary pipe.
17400 lt_truncate_bin=$lt_lt_cv_truncate_bin
17401
17402 # The name of the directory that contains temporary libtool files.
17403 objdir=$objdir
17404
17405 # Used to examine libraries when file_magic_cmd begins with "file".
17406 MAGIC_CMD=$MAGIC_CMD
17407
17408 # Must we lock files when doing compilation?
17409 need_locks=$lt_need_locks
17410
17411 # Manifest tool.
17412 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17413
17414 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17415 DSYMUTIL=$lt_DSYMUTIL
17416
17417 # Tool to change global to local symbols on Mac OS X.
17418 NMEDIT=$lt_NMEDIT
17419
17420 # Tool to manipulate fat objects and archives on Mac OS X.
17421 LIPO=$lt_LIPO
17422
17423 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17424 OTOOL=$lt_OTOOL
17425
17426 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17427 OTOOL64=$lt_OTOOL64
17428
17429 # Old archive suffix (normally "a").
17430 libext=$libext
17431
17432 # Shared library suffix (normally ".so").
17433 shrext_cmds=$lt_shrext_cmds
17434
17435 # The commands to extract the exported symbol list from a shared archive.
17436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17437
17438 # Variables whose values should be saved in libtool wrapper scripts and
17439 # restored at link time.
17440 variables_saved_for_relink=$lt_variables_saved_for_relink
17441
17442 # Do we need the "lib" prefix for modules?
17443 need_lib_prefix=$need_lib_prefix
17444
17445 # Do we need a version for libraries?
17446 need_version=$need_version
17447
17448 # Library versioning type.
17449 version_type=$version_type
17450
17451 # Shared library runtime path variable.
17452 runpath_var=$runpath_var
17453
17454 # Shared library path variable.
17455 shlibpath_var=$shlibpath_var
17456
17457 # Is shlibpath searched before the hard-coded library search path?
17458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17459
17460 # Format of library name prefix.
17461 libname_spec=$lt_libname_spec
17462
17463 # List of archive names.  First name is the real one, the rest are links.
17464 # The last name is the one that the linker finds with -lNAME
17465 library_names_spec=$lt_library_names_spec
17466
17467 # The coded name of the library, if different from the real name.
17468 soname_spec=$lt_soname_spec
17469
17470 # Permission mode override for installation of shared libraries.
17471 install_override_mode=$lt_install_override_mode
17472
17473 # Command to use after installation of a shared archive.
17474 postinstall_cmds=$lt_postinstall_cmds
17475
17476 # Command to use after uninstallation of a shared archive.
17477 postuninstall_cmds=$lt_postuninstall_cmds
17478
17479 # Commands used to finish a libtool library installation in a directory.
17480 finish_cmds=$lt_finish_cmds
17481
17482 # As "finish_cmds", except a single script fragment to be evaled but
17483 # not shown.
17484 finish_eval=$lt_finish_eval
17485
17486 # Whether we should hardcode library paths into libraries.
17487 hardcode_into_libs=$hardcode_into_libs
17488
17489 # Compile-time system search path for libraries.
17490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17491
17492 # Detected run-time system search path for libraries.
17493 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17494
17495 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17496 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17497
17498 # Whether dlopen is supported.
17499 dlopen_support=$enable_dlopen
17500
17501 # Whether dlopen of programs is supported.
17502 dlopen_self=$enable_dlopen_self
17503
17504 # Whether dlopen of statically linked programs is supported.
17505 dlopen_self_static=$enable_dlopen_self_static
17506
17507 # Commands to strip libraries.
17508 old_striplib=$lt_old_striplib
17509 striplib=$lt_striplib
17510
17511
17512 # The linker used to build libraries.
17513 LD=$lt_LD
17514
17515 # How to create reloadable object files.
17516 reload_flag=$lt_reload_flag
17517 reload_cmds=$lt_reload_cmds
17518
17519 # Commands used to build an old-style archive.
17520 old_archive_cmds=$lt_old_archive_cmds
17521
17522 # A language specific compiler.
17523 CC=$lt_compiler
17524
17525 # Is the compiler the GNU compiler?
17526 with_gcc=$GCC
17527
17528 # Compiler flag to turn off builtin functions.
17529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17530
17531 # Additional compiler flags for building library objects.
17532 pic_flag=$lt_lt_prog_compiler_pic
17533
17534 # How to pass a linker flag through the compiler.
17535 wl=$lt_lt_prog_compiler_wl
17536
17537 # Compiler flag to prevent dynamic linking.
17538 link_static_flag=$lt_lt_prog_compiler_static
17539
17540 # Does compiler simultaneously support -c and -o options?
17541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17542
17543 # Whether or not to add -lc for building shared libraries.
17544 build_libtool_need_lc=$archive_cmds_need_lc
17545
17546 # Whether or not to disallow shared libs when runtime libs are static.
17547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17548
17549 # Compiler flag to allow reflexive dlopens.
17550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17551
17552 # Compiler flag to generate shared objects directly from archives.
17553 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17554
17555 # Whether the compiler copes with passing no objects directly.
17556 compiler_needs_object=$lt_compiler_needs_object
17557
17558 # Create an old-style archive from a shared archive.
17559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17560
17561 # Create a temporary old-style archive to link instead of a shared archive.
17562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17563
17564 # Commands used to build a shared archive.
17565 archive_cmds=$lt_archive_cmds
17566 archive_expsym_cmds=$lt_archive_expsym_cmds
17567
17568 # Commands used to build a loadable module if different from building
17569 # a shared archive.
17570 module_cmds=$lt_module_cmds
17571 module_expsym_cmds=$lt_module_expsym_cmds
17572
17573 # Whether we are building with GNU ld or not.
17574 with_gnu_ld=$lt_with_gnu_ld
17575
17576 # Flag that allows shared libraries with undefined symbols to be built.
17577 allow_undefined_flag=$lt_allow_undefined_flag
17578
17579 # Flag that enforces no undefined symbols.
17580 no_undefined_flag=$lt_no_undefined_flag
17581
17582 # Flag to hardcode \$libdir into a binary during linking.
17583 # This must work even if \$libdir does not exist
17584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17585
17586 # Whether we need a single "-rpath" flag with a separated argument.
17587 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17588
17589 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17590 # DIR into the resulting binary.
17591 hardcode_direct=$hardcode_direct
17592
17593 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17594 # DIR into the resulting binary and the resulting library dependency is
17595 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17596 # library is relocated.
17597 hardcode_direct_absolute=$hardcode_direct_absolute
17598
17599 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17600 # into the resulting binary.
17601 hardcode_minus_L=$hardcode_minus_L
17602
17603 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17604 # into the resulting binary.
17605 hardcode_shlibpath_var=$hardcode_shlibpath_var
17606
17607 # Set to "yes" if building a shared library automatically hardcodes DIR
17608 # into the library and all subsequent libraries and executables linked
17609 # against it.
17610 hardcode_automatic=$hardcode_automatic
17611
17612 # Set to yes if linker adds runtime paths of dependent libraries
17613 # to runtime path list.
17614 inherit_rpath=$inherit_rpath
17615
17616 # Whether libtool must link a program against all its dependency libraries.
17617 link_all_deplibs=$link_all_deplibs
17618
17619 # Set to "yes" if exported symbols are required.
17620 always_export_symbols=$always_export_symbols
17621
17622 # The commands to list exported symbols.
17623 export_symbols_cmds=$lt_export_symbols_cmds
17624
17625 # Symbols that should not be listed in the preloaded symbols.
17626 exclude_expsyms=$lt_exclude_expsyms
17627
17628 # Symbols that must always be exported.
17629 include_expsyms=$lt_include_expsyms
17630
17631 # Commands necessary for linking programs (against libraries) with templates.
17632 prelink_cmds=$lt_prelink_cmds
17633
17634 # Commands necessary for finishing linking programs.
17635 postlink_cmds=$lt_postlink_cmds
17636
17637 # Specify filename containing input files.
17638 file_list_spec=$lt_file_list_spec
17639
17640 # How to hardcode a shared library path into an executable.
17641 hardcode_action=$hardcode_action
17642
17643 # ### END LIBTOOL CONFIG
17644
17645 _LT_EOF
17646
17647     cat <<'_LT_EOF' >> "$cfgfile"
17648
17649 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17650
17651 # func_munge_path_list VARIABLE PATH
17652 # -----------------------------------
17653 # VARIABLE is name of variable containing _space_ separated list of
17654 # directories to be munged by the contents of PATH, which is string
17655 # having a format:
17656 # "DIR[:DIR]:"
17657 #       string "DIR[ DIR]" will be prepended to VARIABLE
17658 # ":DIR[:DIR]"
17659 #       string "DIR[ DIR]" will be appended to VARIABLE
17660 # "DIRP[:DIRP]::[DIRA:]DIRA"
17661 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17662 #       "DIRA[ DIRA]" will be appended to VARIABLE
17663 # "DIR[:DIR]"
17664 #       VARIABLE will be replaced by "DIR[ DIR]"
17665 func_munge_path_list ()
17666 {
17667     case x$2 in
17668     x)
17669         ;;
17670     *:)
17671         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17672         ;;
17673     x:*)
17674         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17675         ;;
17676     *::*)
17677         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17678         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17679         ;;
17680     *)
17681         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17682         ;;
17683     esac
17684 }
17685
17686
17687 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17688 func_cc_basename ()
17689 {
17690     for cc_temp in $*""; do
17691       case $cc_temp in
17692         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17693         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17694         \-*) ;;
17695         *) break;;
17696       esac
17697     done
17698     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17699 }
17700
17701
17702 # ### END FUNCTIONS SHARED WITH CONFIGURE
17703
17704 _LT_EOF
17705
17706   case $host_os in
17707   aix3*)
17708     cat <<\_LT_EOF >> "$cfgfile"
17709 # AIX sometimes has problems with the GCC collect2 program.  For some
17710 # reason, if we set the COLLECT_NAMES environment variable, the problems
17711 # vanish in a puff of smoke.
17712 if test set != "${COLLECT_NAMES+set}"; then
17713   COLLECT_NAMES=
17714   export COLLECT_NAMES
17715 fi
17716 _LT_EOF
17717     ;;
17718   esac
17719
17720
17721 ltmain=$ac_aux_dir/ltmain.sh
17722
17723
17724   # We use sed instead of cat because bash on DJGPP gets confused if
17725   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17726   # text mode, it properly converts lines to CR/LF.  This bash problem
17727   # is reportedly fixed, but why not run on old versions too?
17728   sed '$q' "$ltmain" >> "$cfgfile" \
17729      || (rm -f "$cfgfile"; exit 1)
17730
17731    mv -f "$cfgfile" "$ofile" ||
17732     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17733   chmod +x "$ofile"
17734
17735  ;;
17736
17737   esac
17738 done # for ac_tag
17739
17740
17741 as_fn_exit 0
17742 _ACEOF
17743 ac_clean_files=$ac_clean_files_save
17744
17745 test $ac_write_fail = 0 ||
17746   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17747
17748
17749 # configure is writing to config.log, and then calls config.status.
17750 # config.status does its own redirection, appending to config.log.
17751 # Unfortunately, on DOS this fails, as config.log is still kept open
17752 # by configure, so config.status won't be able to write to it; its
17753 # output is simply discarded.  So we exec the FD to /dev/null,
17754 # effectively closing config.log, so it can be properly (re)opened and
17755 # appended to by config.status.  When coming back to configure, we
17756 # need to make the FD available again.
17757 if test "$no_create" != yes; then
17758   ac_cs_success=:
17759   ac_config_status_args=
17760   test "$silent" = yes &&
17761     ac_config_status_args="$ac_config_status_args --quiet"
17762   exec 5>/dev/null
17763   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17764   exec 5>>config.log
17765   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17766   # would make configure fail if this is the last instruction.
17767   $ac_cs_success || as_fn_exit 1
17768 fi
17769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17770   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17771 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17772 fi
17773
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17776         pygobject $VERSION
17777
17778         Using python interpreter:       $PYTHON
17779         cairo support:                  $enable_cairo
17780         thread support:                 $enable_thread
17781         code coverage support:          $enable_code_coverage
17782 " >&5
17783 $as_echo "
17784         pygobject $VERSION
17785
17786         Using python interpreter:       $PYTHON
17787         cairo support:                  $enable_cairo
17788         thread support:                 $enable_thread
17789         code coverage support:          $enable_code_coverage
17790 " >&6; }
17791