2cd8aca7416f528293693a297120f813a074760b
[platform/upstream/pygobject2.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.7.4.
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.7.4'
595 PACKAGE_STRING='pygobject 3.7.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://live.gnome.org/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_LDFLAGS
642 CODE_COVERAGE_CFLAGS
643 GENHTML
644 LCOV
645 CODE_COVERAGE_ENABLED
646 CODE_COVERAGE_ENABLED_FALSE
647 CODE_COVERAGE_ENABLED_TRUE
648 INTROSPECTION_COMPILER
649 INTROSPECTION_SCANNER
650 ENABLE_CAIRO_FALSE
651 ENABLE_CAIRO_TRUE
652 PYCAIRO_LIBS
653 PYCAIRO_CFLAGS
654 CAIRO_LIBS
655 CAIRO_CFLAGS
656 GI_DATADIR
657 GI_LIBS
658 GI_CFLAGS
659 GIO_LIBS
660 GIO_CFLAGS
661 LIBFFI_PC
662 HAVE_LIBFFI_FALSE
663 HAVE_LIBFFI_TRUE
664 FFI_LIBS
665 FFI_CFLAGS
666 DATADIR
667 PYTHON_BASENAME
668 GLIB_COMPILE_RESOURCES
669 GLIB_MKENUMS
670 GOBJECT_QUERY
671 GLIB_GENMARSHAL
672 GLIB_LIBS
673 GLIB_CFLAGS
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 THREADING_CFLAGS
678 PLATFORM
679 PYTHON_LIB_LOC
680 PYTHON_LIBS
681 PYTHON_INCLUDES
682 pkgpyexecdir
683 pyexecdir
684 pkgpythondir
685 pythondir
686 PYTHON_PLATFORM
687 PYTHON_EXEC_PREFIX
688 PYTHON_PREFIX
689 PYTHON_VERSION
690 PYTHON
691 CPP
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 LN_S
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 EGREP
708 GREP
709 SED
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 LIBTOOL
728 OBJDUMP
729 DLLTOOL
730 AS
731 OS_WIN32_FALSE
732 OS_WIN32_TRUE
733 PLATFORM_WIN32_FALSE
734 PLATFORM_WIN32_TRUE
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 AM_BACKSLASH
767 AM_DEFAULT_VERBOSITY
768 AM_DEFAULT_V
769 AM_V
770 PYGOBJECT_MICRO_VERSION
771 PYGOBJECT_MINOR_VERSION
772 PYGOBJECT_MAJOR_VERSION
773 ACLOCAL_AMFLAGS
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_static
817 enable_shared
818 with_pic
819 enable_fast_install
820 enable_dependency_tracking
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 with_python
825 enable_thread
826 enable_glibtest
827 with_ffi
828 enable_cairo
829 enable_code_coverage
830 '
831       ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 PYTHON
841 PKG_CONFIG
842 PKG_CONFIG_PATH
843 PKG_CONFIG_LIBDIR
844 FFI_CFLAGS
845 FFI_LIBS
846 GIO_CFLAGS
847 GIO_LIBS
848 GI_CFLAGS
849 GI_LIBS
850 CAIRO_CFLAGS
851 CAIRO_LIBS
852 PYCAIRO_CFLAGS
853 PYCAIRO_LIBS'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908   # If the previous option needs an argument, assign it.
909   if test -n "$ac_prev"; then
910     eval $ac_prev=\$ac_option
911     ac_prev=
912     continue
913   fi
914
915   case $ac_option in
916   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917   *=)   ac_optarg= ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error $? "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=no ;;
974
975   -docdir | --docdir | --docdi | --doc | --do)
976     ac_prev=docdir ;;
977   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978     docdir=$ac_optarg ;;
979
980   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981     ac_prev=dvidir ;;
982   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983     dvidir=$ac_optarg ;;
984
985   -enable-* | --enable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145     ac_prev=sbindir ;;
1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147   | --sbi=* | --sb=*)
1148     sbindir=$ac_optarg ;;
1149
1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152   | --sharedst | --shareds | --shared | --share | --shar \
1153   | --sha | --sh)
1154     ac_prev=sharedstatedir ;;
1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158   | --sha=* | --sh=*)
1159     sharedstatedir=$ac_optarg ;;
1160
1161   -site | --site | --sit)
1162     ac_prev=site ;;
1163   -site=* | --site=* | --sit=*)
1164     site=$ac_optarg ;;
1165
1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167     ac_prev=srcdir ;;
1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169     srcdir=$ac_optarg ;;
1170
1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172   | --syscon | --sysco | --sysc | --sys | --sy)
1173     ac_prev=sysconfdir ;;
1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176     sysconfdir=$ac_optarg ;;
1177
1178   -target | --target | --targe | --targ | --tar | --ta | --t)
1179     ac_prev=target_alias ;;
1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181     target_alias=$ac_optarg ;;
1182
1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184     verbose=yes ;;
1185
1186   -version | --version | --versio | --versi | --vers | -V)
1187     ac_init_version=: ;;
1188
1189   -with-* | --with-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=no ;;
1220
1221   --x)
1222     # Obsolete; use --with-x.
1223     with_x=yes ;;
1224
1225   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226   | --x-incl | --x-inc | --x-in | --x-i)
1227     ac_prev=x_includes ;;
1228   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230     x_includes=$ac_optarg ;;
1231
1232   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234     ac_prev=x_libraries ;;
1235   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237     x_libraries=$ac_optarg ;;
1238
1239   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241     ;;
1242
1243   *=*)
1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245     # Reject names that are not valid shell variable names.
1246     case $ac_envvar in #(
1247       '' | [0-9]* | *[!_$as_cr_alnum]* )
1248       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249     esac
1250     eval $ac_envvar=\$ac_optarg
1251     export $ac_envvar ;;
1252
1253   *)
1254     # FIXME: should be removed in autoconf 3.0.
1255     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259     ;;
1260
1261   esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266   as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270   case $enable_option_checking in
1271     no) ;;
1272     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274   esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   # Remove trailing slashes.
1285   case $ac_val in
1286     */ )
1287       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288       eval $ac_var=\$ac_val;;
1289   esac
1290   # Be sure to have absolute directory names.
1291   case $ac_val in
1292     [\\/$]* | ?:[\\/]* )  continue;;
1293     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294   esac
1295   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307   if test "x$build_alias" = x; then
1308     cross_compiling=maybe
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$as_myself" : 'X\(//\)[^/]' \| \
1335          X"$as_myself" : 'X\(//\)$' \| \
1336          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures pygobject 3.7.4 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking ...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/pygobject]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463   case $ac_init_help in
1464      short | recursive ) echo "Configuration of pygobject 3.7.4:";;
1465    esac
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-option-checking  ignore unrecognized --enable/--with options
1470   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1471   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1472   --enable-silent-rules          less verbose build output (undo: `make V=1')
1473   --disable-silent-rules         verbose build output (undo: `make V=0')
1474   --enable-static[=PKGS]  build static libraries [default=no]
1475   --enable-shared[=PKGS]  build shared libraries [default=yes]
1476   --enable-fast-install[=PKGS]
1477                           optimize for fast installation [default=yes]
1478   --disable-dependency-tracking  speeds up one-time build
1479   --enable-dependency-tracking   do not reject slow dependency extractors
1480   --disable-libtool-lock  avoid locking (might break parallel builds)
1481   --disable-thread        Disable pygobject threading support
1482   --disable-glibtest      do not try to compile and run a test GLIB program
1483   --enable-cairo          Enable Cairo bindings using introspection
1484                           information
1485   --enable-code-coverage  Whether to enable code coverage support
1486
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                           both]
1492   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493   --with-sysroot=DIR Search for dependent libraries within DIR
1494                         (or the compiler's sysroot if not specified).
1495   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1496                           program name is given; if not given, searches for a
1497                           few standard names such as "python3" or "python2"
1498   --without-ffi           Disable libffi support
1499
1500 Some influential environment variables:
1501   CC          C compiler command
1502   CFLAGS      C compiler flags
1503   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504               nonstandard directory <lib dir>
1505   LIBS        libraries to pass to the linker, e.g. -l<library>
1506   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507               you have headers in a nonstandard directory <include dir>
1508   CPP         C preprocessor
1509   PYTHON      the Python interpreter
1510   PKG_CONFIG  path to pkg-config utility
1511   PKG_CONFIG_PATH
1512               directories to add to pkg-config's search path
1513   PKG_CONFIG_LIBDIR
1514               path overriding pkg-config's built-in search path
1515   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1516   FFI_LIBS    linker flags for FFI, overriding pkg-config
1517   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1518   GIO_LIBS    linker flags for GIO, overriding pkg-config
1519   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1520   GI_LIBS     linker flags for GI, overriding pkg-config
1521   CAIRO_CFLAGS
1522               C compiler flags for CAIRO, overriding pkg-config
1523   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1524   PYCAIRO_CFLAGS
1525               C compiler flags for PYCAIRO, overriding pkg-config
1526   PYCAIRO_LIBS
1527               linker flags for PYCAIRO, overriding pkg-config
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1533 pygobject home page: <https://live.gnome.org/PyGObject/>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539   # If there are subdirs, report their specific --help.
1540   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541     test -d "$ac_dir" ||
1542       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543       continue
1544     ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550   # A ".." for each directory in $ac_dir_suffix.
1551   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552   case $ac_top_builddir_sub in
1553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555   esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563   .)  # We are building in place.
1564     ac_srcdir=.
1565     ac_top_srcdir=$ac_top_builddir_sub
1566     ac_abs_top_srcdir=$ac_pwd ;;
1567   [\\/]* | ?:[\\/]* )  # Absolute name.
1568     ac_srcdir=$srcdir$ac_dir_suffix;
1569     ac_top_srcdir=$srcdir
1570     ac_abs_top_srcdir=$srcdir ;;
1571   *) # Relative name.
1572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573     ac_top_srcdir=$ac_top_build_prefix$srcdir
1574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578     cd "$ac_dir" || { ac_status=$?; continue; }
1579     # Check for guested configure.
1580     if test -f "$ac_srcdir/configure.gnu"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583     elif test -f "$ac_srcdir/configure"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure" --help=recursive
1586     else
1587       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588     fi || ac_status=$?
1589     cd "$ac_pwd" || { ac_status=$?; break; }
1590   done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595   cat <<\_ACEOF
1596 pygobject configure 3.7.4
1597 generated by GNU Autoconf 2.69
1598
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   rm -f conftest.$ac_objext
1617   if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620   *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624   (eval "$ac_compile") 2>conftest.err
1625   ac_status=$?
1626   if test -s conftest.err; then
1627     grep -v '^ *+' conftest.err >conftest.er1
1628     cat conftest.er1 >&5
1629     mv -f conftest.er1 conftest.err
1630   fi
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && {
1633          test -z "$ac_c_werror_flag" ||
1634          test ! -s conftest.err
1635        } && test -s conftest.$ac_objext; then :
1636   ac_retval=0
1637 else
1638   $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641         ac_retval=1
1642 fi
1643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644   as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_compile
1647
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_link ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext conftest$ac_exeext
1655   if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_link") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest$ac_exeext && {
1674          test "$cross_compiling" = yes ||
1675          test -x conftest$ac_exeext
1676        }; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686   # interfere with the next link command; also delete a directory that is
1687   # left behind by Apple's compiler.  We do this before executing the actions.
1688   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_link
1693
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704   $as_echo_n "(cached) " >&6
1705 else
1706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h.  */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712   eval "$3=yes"
1713 else
1714   eval "$3=no"
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 fi
1718 eval ac_res=\$$3
1719                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_compile
1724
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } > conftest.i && {
1747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748          test ! -s conftest.err
1749        }; then :
1750   ac_retval=0
1751 else
1752   $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755     ac_retval=1
1756 fi
1757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_cpp
1761
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1766 ac_fn_c_try_run ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_link") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780   { { case "(($ac_try" in
1781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782   *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786   (eval "$ac_try") 2>&5
1787   ac_status=$?
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; }; }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: program exited with status $ac_status" >&5
1793        $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796        ac_retval=$ac_status
1797 fi
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_run
1803
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813   $as_echo_n "(cached) " >&6
1814 else
1815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1819 #define $2 innocuous_$2
1820
1821 /* System header to define __stub macros and hopefully few prototypes,
1822     which can conflict with char $2 (); below.
1823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824     <limits.h> exists even on freestanding compilers.  */
1825
1826 #ifdef __STDC__
1827 # include <limits.h>
1828 #else
1829 # include <assert.h>
1830 #endif
1831
1832 #undef $2
1833
1834 /* Override any GCC internal prototype to avoid an error.
1835    Use char because int might match the return type of a GCC
1836    builtin and then its argument prototype would still apply.  */
1837 #ifdef __cplusplus
1838 extern "C"
1839 #endif
1840 char $2 ();
1841 /* The GNU C library defines this for functions which it implements
1842     to always fail with ENOSYS.  Some functions are actually named
1843     something starting with __ and the normal name is an alias.  */
1844 #if defined __stub_$2 || defined __stub___$2
1845 choke me
1846 #endif
1847
1848 int
1849 main ()
1850 {
1851 return $2 ();
1852   ;
1853   return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_link "$LINENO"; then :
1857   eval "$3=yes"
1858 else
1859   eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext \
1862     conftest$ac_exeext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_func
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1873
1874 It was created by pygobject $as_me 3.7.4, which was
1875 generated by GNU Autoconf 2.69.  Invocation command line was
1876
1877   $ $0 $@
1878
1879 _ACEOF
1880 exec 5>>config.log
1881 {
1882 cat <<_ASUNAME
1883 ## --------- ##
1884 ## Platform. ##
1885 ## --------- ##
1886
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1895
1896 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1897 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1900 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1901 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1902 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1903
1904 _ASUNAME
1905
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911     $as_echo "PATH: $as_dir"
1912   done
1913 IFS=$as_save_IFS
1914
1915 } >&5
1916
1917 cat >&5 <<_ACEOF
1918
1919
1920 ## ----------- ##
1921 ## Core tests. ##
1922 ## ----------- ##
1923
1924 _ACEOF
1925
1926
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_configure_args=
1933 ac_configure_args0=
1934 ac_configure_args1=
1935 ac_must_keep_next=false
1936 for ac_pass in 1 2
1937 do
1938   for ac_arg
1939   do
1940     case $ac_arg in
1941     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943     | -silent | --silent | --silen | --sile | --sil)
1944       continue ;;
1945     *\'*)
1946       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947     esac
1948     case $ac_pass in
1949     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950     2)
1951       as_fn_append ac_configure_args1 " '$ac_arg'"
1952       if test $ac_must_keep_next = true; then
1953         ac_must_keep_next=false # Got value, back to normal.
1954       else
1955         case $ac_arg in
1956           *=* | --config-cache | -C | -disable-* | --disable-* \
1957           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959           | -with-* | --with-* | -without-* | --without-* | --x)
1960             case "$ac_configure_args0 " in
1961               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962             esac
1963             ;;
1964           -* ) ac_must_keep_next=true ;;
1965         esac
1966       fi
1967       as_fn_append ac_configure_args " '$ac_arg'"
1968       ;;
1969     esac
1970   done
1971 done
1972 { ac_configure_args0=; unset ac_configure_args0;}
1973 { ac_configure_args1=; unset ac_configure_args1;}
1974
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log.  We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981   # Save into config.log some information that might help in debugging.
1982   {
1983     echo
1984
1985     $as_echo "## ---------------- ##
1986 ## Cache variables. ##
1987 ## ---------------- ##"
1988     echo
1989     # The following way of writing the cache mishandles newlines in values,
1990 (
1991   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992     eval ac_val=\$$ac_var
1993     case $ac_val in #(
1994     *${as_nl}*)
1995       case $ac_var in #(
1996       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998       esac
1999       case $ac_var in #(
2000       _ | IFS | as_nl) ;; #(
2001       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002       *) { eval $ac_var=; unset $ac_var;} ;;
2003       esac ;;
2004     esac
2005   done
2006   (set) 2>&1 |
2007     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008     *${as_nl}ac_space=\ *)
2009       sed -n \
2010         "s/'\''/'\''\\\\'\'''\''/g;
2011           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012       ;; #(
2013     *)
2014       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015       ;;
2016     esac |
2017     sort
2018 )
2019     echo
2020
2021     $as_echo "## ----------------- ##
2022 ## Output variables. ##
2023 ## ----------------- ##"
2024     echo
2025     for ac_var in $ac_subst_vars
2026     do
2027       eval ac_val=\$$ac_var
2028       case $ac_val in
2029       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030       esac
2031       $as_echo "$ac_var='\''$ac_val'\''"
2032     done | sort
2033     echo
2034
2035     if test -n "$ac_subst_files"; then
2036       $as_echo "## ------------------- ##
2037 ## File substitutions. ##
2038 ## ------------------- ##"
2039       echo
2040       for ac_var in $ac_subst_files
2041       do
2042         eval ac_val=\$$ac_var
2043         case $ac_val in
2044         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045         esac
2046         $as_echo "$ac_var='\''$ac_val'\''"
2047       done | sort
2048       echo
2049     fi
2050
2051     if test -s confdefs.h; then
2052       $as_echo "## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##"
2055       echo
2056       cat confdefs.h
2057       echo
2058     fi
2059     test "$ac_signal" != 0 &&
2060       $as_echo "$as_me: caught signal $ac_signal"
2061     $as_echo "$as_me: exit $exit_status"
2062   } >&5
2063   rm -f core *.core core.conftest.* &&
2064     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065     exit $exit_status
2066 ' 0
2067 for ac_signal in 1 2 13 15; do
2068   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2071
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2074
2075 $as_echo "/* confdefs.h */" > confdefs.h
2076
2077 # Predefined preprocessor variables.
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2102
2103
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109   # We do not want a PATH search for config.site.
2110   case $CONFIG_SITE in #((
2111     -*)  ac_site_file1=./$CONFIG_SITE;;
2112     */*) ac_site_file1=$CONFIG_SITE;;
2113     *)   ac_site_file1=./$CONFIG_SITE;;
2114   esac
2115 elif test "x$prefix" != xNONE; then
2116   ac_site_file1=$prefix/share/config.site
2117   ac_site_file2=$prefix/etc/config.site
2118 else
2119   ac_site_file1=$ac_default_prefix/share/config.site
2120   ac_site_file2=$ac_default_prefix/etc/config.site
2121 fi
2122 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123 do
2124   test "x$ac_site_file" = xNONE && continue
2125   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128     sed 's/^/| /' "$ac_site_file" >&5
2129     . "$ac_site_file" \
2130       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 as_fn_error $? "failed to load site script $ac_site_file
2133 See \`config.log' for more details" "$LINENO" 5; }
2134   fi
2135 done
2136
2137 if test -r "$cache_file"; then
2138   # Some versions of bash will fail to source /dev/null (special files
2139   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2140   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142 $as_echo "$as_me: loading cache $cache_file" >&6;}
2143     case $cache_file in
2144       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145       *)                      . "./$cache_file";;
2146     esac
2147   fi
2148 else
2149   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150 $as_echo "$as_me: creating cache $cache_file" >&6;}
2151   >$cache_file
2152 fi
2153
2154 # Check that the precious variables saved in the cache have kept the same
2155 # value.
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159   eval ac_new_set=\$ac_env_${ac_var}_set
2160   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161   eval ac_new_val=\$ac_env_${ac_var}_value
2162   case $ac_old_set,$ac_new_set in
2163     set,)
2164       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166       ac_cache_corrupted=: ;;
2167     ,set)
2168       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170       ac_cache_corrupted=: ;;
2171     ,);;
2172     *)
2173       if test "x$ac_old_val" != "x$ac_new_val"; then
2174         # differences in whitespace do not lead to failure.
2175         ac_old_val_w=`echo x $ac_old_val`
2176         ac_new_val_w=`echo x $ac_new_val`
2177         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180           ac_cache_corrupted=:
2181         else
2182           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184           eval $ac_var=\$ac_old_val
2185         fi
2186         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2190       fi;;
2191   esac
2192   # Pass precious variables to config.status.
2193   if test "$ac_new_set" = set; then
2194     case $ac_new_val in
2195     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196     *) ac_arg=$ac_var=$ac_new_val ;;
2197     esac
2198     case " $ac_configure_args " in
2199       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201     esac
2202   fi
2203 done
2204 if $ac_cache_corrupted; then
2205   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210 fi
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2214
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222 ACLOCAL_AMFLAGS="-I m4 -I ."
2223
2224
2225
2226
2227
2228 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2229
2230 PYGOBJECT_MAJOR_VERSION=3
2231
2232
2233 $as_echo "#define PYGOBJECT_MINOR_VERSION 7" >>confdefs.h
2234
2235 PYGOBJECT_MINOR_VERSION=7
2236
2237
2238 $as_echo "#define PYGOBJECT_MICRO_VERSION 4" >>confdefs.h
2239
2240 PYGOBJECT_MICRO_VERSION=4
2241
2242
2243 ac_config_headers="$ac_config_headers config.h"
2244
2245 # Check whether --enable-silent-rules was given.
2246 if test "${enable_silent_rules+set}" = set; then :
2247   enableval=$enable_silent_rules;
2248 fi
2249
2250 case $enable_silent_rules in
2251 yes) AM_DEFAULT_VERBOSITY=0;;
2252 no)  AM_DEFAULT_VERBOSITY=1;;
2253 *)   AM_DEFAULT_VERBOSITY=0;;
2254 esac
2255 am_make=${MAKE-make}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2258 if ${am_cv_make_support_nested_variables+:} false; then :
2259   $as_echo_n "(cached) " >&6
2260 else
2261   if $as_echo 'TRUE=$(BAR$(V))
2262 BAR0=false
2263 BAR1=true
2264 V=1
2265 am__doit:
2266         @$(TRUE)
2267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2268   am_cv_make_support_nested_variables=yes
2269 else
2270   am_cv_make_support_nested_variables=no
2271 fi
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2275 if test $am_cv_make_support_nested_variables = yes; then
2276     AM_V='$(V)'
2277   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2278 else
2279   AM_V=$AM_DEFAULT_VERBOSITY
2280   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2281 fi
2282 AM_BACKSLASH='\'
2283
2284 am__api_version='1.11'
2285
2286 ac_aux_dir=
2287 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288   if test -f "$ac_dir/install-sh"; then
2289     ac_aux_dir=$ac_dir
2290     ac_install_sh="$ac_aux_dir/install-sh -c"
2291     break
2292   elif test -f "$ac_dir/install.sh"; then
2293     ac_aux_dir=$ac_dir
2294     ac_install_sh="$ac_aux_dir/install.sh -c"
2295     break
2296   elif test -f "$ac_dir/shtool"; then
2297     ac_aux_dir=$ac_dir
2298     ac_install_sh="$ac_aux_dir/shtool install -c"
2299     break
2300   fi
2301 done
2302 if test -z "$ac_aux_dir"; then
2303   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2304 fi
2305
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2313
2314
2315 # Find a good install program.  We prefer a C program (faster),
2316 # so one script is as good as another.  But avoid the broken or
2317 # incompatible versions:
2318 # SysV /etc/install, /usr/sbin/install
2319 # SunOS /usr/etc/install
2320 # IRIX /sbin/install
2321 # AIX /bin/install
2322 # AmigaOS /C/install, which installs bootblocks on floppy discs
2323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326 # OS/2's system install, which has a completely different semantic
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 # Reject install programs that cannot install multiple files.
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 if test -z "$INSTALL"; then
2332 if ${ac_cv_path_install+:} false; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340     # Account for people who put trailing slashes in PATH elements.
2341 case $as_dir/ in #((
2342   ./ | .// | /[cC]/* | \
2343   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2345   /usr/ucb/* ) ;;
2346   *)
2347     # OSF1 and SCO ODT 3.0 have their own names for install.
2348     # Don't use installbsd from OSF since it installs stuff as root
2349     # by default.
2350     for ac_prog in ginstall scoinst install; do
2351       for ac_exec_ext in '' $ac_executable_extensions; do
2352         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353           if test $ac_prog = install &&
2354             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355             # AIX install.  It has an incompatible calling convention.
2356             :
2357           elif test $ac_prog = install &&
2358             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359             # program-specific install script used by HP pwplus--don't use.
2360             :
2361           else
2362             rm -rf conftest.one conftest.two conftest.dir
2363             echo one > conftest.one
2364             echo two > conftest.two
2365             mkdir conftest.dir
2366             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367               test -s conftest.one && test -s conftest.two &&
2368               test -s conftest.dir/conftest.one &&
2369               test -s conftest.dir/conftest.two
2370             then
2371               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2372               break 3
2373             fi
2374           fi
2375         fi
2376       done
2377     done
2378     ;;
2379 esac
2380
2381   done
2382 IFS=$as_save_IFS
2383
2384 rm -rf conftest.one conftest.two conftest.dir
2385
2386 fi
2387   if test "${ac_cv_path_install+set}" = set; then
2388     INSTALL=$ac_cv_path_install
2389   else
2390     # As a last resort, use the slow shell script.  Don't cache a
2391     # value for INSTALL within a source directory, because that will
2392     # break other packages using the cache if that directory is
2393     # removed, or if the value is a relative name.
2394     INSTALL=$ac_install_sh
2395   fi
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398 $as_echo "$INSTALL" >&6; }
2399
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2403
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2405
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409 $as_echo_n "checking whether build environment is sane... " >&6; }
2410 # Just in case
2411 sleep 1
2412 echo timestamp > conftest.file
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name.  Accept space and tab only in the latter.
2415 am_lf='
2416 '
2417 case `pwd` in
2418   *[\\\"\#\$\&\'\`$am_lf]*)
2419     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2420 esac
2421 case $srcdir in
2422   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2423     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2424 esac
2425
2426 # Do `set' in a subshell so we don't clobber the current shell's
2427 # arguments.  Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2430 # directory).
2431 if (
2432    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433    if test "$*" = "X"; then
2434       # -L didn't work.
2435       set X `ls -t "$srcdir/configure" conftest.file`
2436    fi
2437    rm -f conftest.file
2438    if test "$*" != "X $srcdir/configure conftest.file" \
2439       && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441       # If neither matched, then we have a broken ls.  This can happen
2442       # if, for instance, CONFIG_SHELL is bash and it inherits a
2443       # broken ls alias from the environment.  This has actually
2444       # happened.  Such a system could not be considered "sane".
2445       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2447    fi
2448
2449    test "$2" = conftest.file
2450    )
2451 then
2452    # Ok.
2453    :
2454 else
2455    as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 test "$program_prefix" != NONE &&
2461   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2469
2470 # expand $ac_aux_dir to an absolute path
2471 am_aux_dir=`cd $ac_aux_dir && pwd`
2472
2473 if test x"${MISSING+set}" != xset; then
2474   case $am_aux_dir in
2475   *\ * | *\     *)
2476     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2477   *)
2478     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2479   esac
2480 fi
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483   am_missing_run="$MISSING --run "
2484 else
2485   am_missing_run=
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2488 fi
2489
2490 if test x"${install_sh}" != xset; then
2491   case $am_aux_dir in
2492   *\ * | *\     *)
2493     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2494   *)
2495     install_sh="\${SHELL} $am_aux_dir/install-sh"
2496   esac
2497 fi
2498
2499 # Installed binaries are usually stripped using `strip' when the user
2500 # run `make install-strip'.  However `strip' might not be the right
2501 # tool to use in cross-compilation environments, therefore Automake
2502 # will honor the `STRIP' environment variable to overrule this program.
2503 if test "$cross_compiling" != no; then
2504   if test -n "$ac_tool_prefix"; then
2505   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}strip; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_STRIP+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$STRIP"; then
2513   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520     for ac_exec_ext in '' $ac_executable_extensions; do
2521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527   done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 STRIP=$ac_cv_prog_STRIP
2533 if test -n "$STRIP"; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2535 $as_echo "$STRIP" >&6; }
2536 else
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542 fi
2543 if test -z "$ac_cv_prog_STRIP"; then
2544   ac_ct_STRIP=$STRIP
2545   # Extract the first word of "strip", so it can be a program name with args.
2546 set dummy strip; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   if test -n "$ac_ct_STRIP"; then
2553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     for ac_exec_ext in '' $ac_executable_extensions; do
2561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562     ac_cv_prog_ac_ct_STRIP="strip"
2563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567   done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2573 if test -n "$ac_ct_STRIP"; then
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2575 $as_echo "$ac_ct_STRIP" >&6; }
2576 else
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581   if test "x$ac_ct_STRIP" = x; then
2582     STRIP=":"
2583   else
2584     case $cross_compiling:$ac_tool_warned in
2585 yes:)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2589 esac
2590     STRIP=$ac_ct_STRIP
2591   fi
2592 else
2593   STRIP="$ac_cv_prog_STRIP"
2594 fi
2595
2596 fi
2597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2598
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2601 if test -z "$MKDIR_P"; then
2602   if ${ac_cv_path_mkdir+:} false; then :
2603   $as_echo_n "(cached) " >&6
2604 else
2605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2607 do
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610     for ac_prog in mkdir gmkdir; do
2611          for ac_exec_ext in '' $ac_executable_extensions; do
2612            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2613            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2614              'mkdir (GNU coreutils) '* | \
2615              'mkdir (coreutils) '* | \
2616              'mkdir (fileutils) '4.1*)
2617                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2618                break 3;;
2619            esac
2620          done
2621        done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626
2627   test -d ./--version && rmdir ./--version
2628   if test "${ac_cv_path_mkdir+set}" = set; then
2629     MKDIR_P="$ac_cv_path_mkdir -p"
2630   else
2631     # As a last resort, use the slow shell script.  Don't cache a
2632     # value for MKDIR_P within a source directory, because that will
2633     # break other packages using the cache if that directory is
2634     # removed, or if the value is a relative name.
2635     MKDIR_P="$ac_install_sh -d"
2636   fi
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2639 $as_echo "$MKDIR_P" >&6; }
2640
2641 mkdir_p="$MKDIR_P"
2642 case $mkdir_p in
2643   [\\/$]* | ?:[\\/]*) ;;
2644   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2645 esac
2646
2647 for ac_prog in gawk mawk nawk awk
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$AWK"; then
2657   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666     ac_cv_prog_AWK="$ac_prog"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686   test -n "$AWK" && break
2687 done
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2691 set x ${MAKE-make}
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   cat >conftest.make <<\_ACEOF
2697 SHELL = /bin/sh
2698 all:
2699         @echo '@@@%%%=$(MAKE)=@@@%%%'
2700 _ACEOF
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2703   *@@@%%%=?*=@@@%%%*)
2704     eval ac_cv_prog_make_${ac_make}_set=yes;;
2705   *)
2706     eval ac_cv_prog_make_${ac_make}_set=no;;
2707 esac
2708 rm -f conftest.make
2709 fi
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713   SET_MAKE=
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717   SET_MAKE="MAKE=${MAKE-make}"
2718 fi
2719
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2723   am__leading_dot=.
2724 else
2725   am__leading_dot=_
2726 fi
2727 rmdir .tst 2>/dev/null
2728
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731   # is not polluted with repeated "-I."
2732   am__isrc=' -I$(srcdir)'
2733   # test to see if srcdir already configured
2734   if test -f $srcdir/config.status; then
2735     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2736   fi
2737 fi
2738
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741   if (cygpath --version) >/dev/null 2>/dev/null; then
2742     CYGPATH_W='cygpath -w'
2743   else
2744     CYGPATH_W=echo
2745   fi
2746 fi
2747
2748
2749 # Define the identity of the package.
2750  PACKAGE='pygobject'
2751  VERSION='3.7.4'
2752
2753
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2756 _ACEOF
2757
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2761 _ACEOF
2762
2763 # Some tools Automake needs.
2764
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2766
2767
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2769
2770
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2772
2773
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2775
2776
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2778
2779 # We need awk for the "check" target.  The system "awk" is bad on
2780 # some platforms.
2781 # Always define AMTAR for backward compatibility.  Yes, it's still used
2782 # in the wild :-(  We should find a proper way to deprecate it ...
2783 AMTAR='$${TAR-tar}'
2784
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786
2787
2788
2789
2790
2791
2792 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2793
2794 # Make sure we can run config.sub.
2795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799 $as_echo_n "checking build system type... " >&6; }
2800 if ${ac_cv_build+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   ac_build_alias=$build_alias
2804 test "x$ac_build_alias" = x &&
2805   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806 test "x$ac_build_alias" = x &&
2807   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813 $as_echo "$ac_cv_build" >&6; }
2814 case $ac_cv_build in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2817 esac
2818 build=$ac_cv_build
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_build
2821 shift
2822 build_cpu=$1
2823 build_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 build_os=$*
2828 IFS=$ac_save_IFS
2829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833 $as_echo_n "checking host system type... " >&6; }
2834 if ${ac_cv_host+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test "x$host_alias" = x; then
2838   ac_cv_host=$ac_cv_build
2839 else
2840   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2842 fi
2843
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846 $as_echo "$ac_cv_host" >&6; }
2847 case $ac_cv_host in
2848 *-*-*) ;;
2849 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2850 esac
2851 host=$ac_cv_host
2852 ac_save_IFS=$IFS; IFS='-'
2853 set x $ac_cv_host
2854 shift
2855 host_cpu=$1
2856 host_vendor=$2
2857 shift; shift
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2860 host_os=$*
2861 IFS=$ac_save_IFS
2862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2866 $as_echo_n "checking for some Win32 platform... " >&6; }
2867 case "$host" in
2868   *-*-mingw*|*-*-cygwin*)
2869     platform_win32=yes
2870     ;;
2871   *)
2872     platform_win32=no
2873     ;;
2874 esac
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2876 $as_echo "$platform_win32" >&6; }
2877  if test "$platform_win32" = "yes"; then
2878   PLATFORM_WIN32_TRUE=
2879   PLATFORM_WIN32_FALSE='#'
2880 else
2881   PLATFORM_WIN32_TRUE='#'
2882   PLATFORM_WIN32_FALSE=
2883 fi
2884
2885
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2887 $as_echo_n "checking for native Win32... " >&6; }
2888 case "$host" in
2889   *-*-mingw*)
2890     os_win32=yes
2891     ;;
2892   *)
2893     os_win32=no
2894     ;;
2895 esac
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2897 $as_echo "$os_win32" >&6; }
2898  if test "$os_win32" = "yes"; then
2899   OS_WIN32_TRUE=
2900   OS_WIN32_FALSE='#'
2901 else
2902   OS_WIN32_TRUE='#'
2903   OS_WIN32_FALSE=
2904 fi
2905
2906
2907
2908 case `pwd` in
2909   *\ * | *\     *)
2910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2911 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2912 esac
2913
2914
2915
2916 macro_version='2.4.2'
2917 macro_revision='1.3337'
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931 ltmain="$ac_aux_dir/ltmain.sh"
2932
2933 # Backslashify metacharacters that are still active within
2934 # double-quoted strings.
2935 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2936
2937 # Same as above, but do not quote variable references.
2938 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2939
2940 # Sed substitution to delay expansion of an escaped shell variable in a
2941 # double_quote_subst'ed string.
2942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2943
2944 # Sed substitution to delay expansion of an escaped single quote.
2945 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2946
2947 # Sed substitution to avoid accidental globbing in evaled expressions
2948 no_glob_subst='s/\*/\\\*/g'
2949
2950 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2955 $as_echo_n "checking how to print strings... " >&6; }
2956 # Test print first, because it will be a builtin if present.
2957 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2958    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2959   ECHO='print -r --'
2960 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2961   ECHO='printf %s\n'
2962 else
2963   # Use this function as a fallback that always works.
2964   func_fallback_echo ()
2965   {
2966     eval 'cat <<_LTECHO_EOF
2967 $1
2968 _LTECHO_EOF'
2969   }
2970   ECHO='func_fallback_echo'
2971 fi
2972
2973 # func_echo_all arg...
2974 # Invoke $ECHO with all args, space-separated.
2975 func_echo_all ()
2976 {
2977     $ECHO ""
2978 }
2979
2980 case "$ECHO" in
2981   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2982 $as_echo "printf" >&6; } ;;
2983   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2984 $as_echo "print -r" >&6; } ;;
2985   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2986 $as_echo "cat" >&6; } ;;
2987 esac
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002 DEPDIR="${am__leading_dot}deps"
3003
3004 ac_config_commands="$ac_config_commands depfiles"
3005
3006
3007 am_make=${MAKE-make}
3008 cat > confinc << 'END'
3009 am__doit:
3010         @echo this is the am__doit target
3011 .PHONY: am__doit
3012 END
3013 # If we don't find an include directive, just comment out the code.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3016 am__include="#"
3017 am__quote=
3018 _am_result=none
3019 # First try GNU make style include.
3020 echo "include confinc" > confmf
3021 # Ignore all kinds of additional output from `make'.
3022 case `$am_make -s -f confmf 2> /dev/null` in #(
3023 *the\ am__doit\ target*)
3024   am__include=include
3025   am__quote=
3026   _am_result=GNU
3027   ;;
3028 esac
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031    echo '.include "confinc"' > confmf
3032    case `$am_make -s -f confmf 2> /dev/null` in #(
3033    *the\ am__doit\ target*)
3034      am__include=.include
3035      am__quote="\""
3036      _am_result=BSD
3037      ;;
3038    esac
3039 fi
3040
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043 $as_echo "$_am_result" >&6; }
3044 rm -f confinc confmf
3045
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048   enableval=$enable_dependency_tracking;
3049 fi
3050
3051 if test "x$enable_dependency_tracking" != xno; then
3052   am_depcomp="$ac_aux_dir/depcomp"
3053   AMDEPBACKSLASH='\'
3054   am__nodep='_no'
3055 fi
3056  if test "x$enable_dependency_tracking" != xno; then
3057   AMDEP_TRUE=
3058   AMDEP_FALSE='#'
3059 else
3060   AMDEP_TRUE='#'
3061   AMDEP_FALSE=
3062 fi
3063
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$CC"; then
3079   ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_CC"; then
3110   ac_ct_CC=$CC
3111   # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128     ac_cv_prog_ac_ct_CC="gcc"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147   if test "x$ac_ct_CC" = x; then
3148     CC=""
3149   else
3150     case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156     CC=$ac_ct_CC
3157   fi
3158 else
3159   CC="$ac_cv_prog_CC"
3160 fi
3161
3162 if test -z "$CC"; then
3163           if test -n "$ac_tool_prefix"; then
3164     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_CC="${ac_tool_prefix}cc"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201   fi
3202 fi
3203 if test -z "$CC"; then
3204   # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test -n "$CC"; then
3212   ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214   ac_prog_rejected=no
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223        ac_prog_rejected=yes
3224        continue
3225      fi
3226     ac_cv_prog_CC="cc"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 if test $ac_prog_rejected = yes; then
3235   # We found a bogon in the path, so make sure we never use it.
3236   set dummy $ac_cv_prog_CC
3237   shift
3238   if test $# != 0; then
3239     # We chose a different compiler from the bogus one.
3240     # However, it has the same basename, so the bogon will be chosen
3241     # first if we set CC to just the basename; use the full file name.
3242     shift
3243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244   fi
3245 fi
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$CC"; then
3260   if test -n "$ac_tool_prefix"; then
3261   for ac_prog in cl.exe
3262   do
3263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$CC"; then
3271   ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300     test -n "$CC" && break
3301   done
3302 fi
3303 if test -z "$CC"; then
3304   ac_ct_CC=$CC
3305   for ac_prog in cl.exe
3306 do
3307   # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$ac_ct_CC"; then
3315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     for ac_exec_ext in '' $ac_executable_extensions; do
3323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_prog_ac_ct_CC="$ac_prog"
3325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329   done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344   test -n "$ac_ct_CC" && break
3345 done
3346
3347   if test "x$ac_ct_CC" = x; then
3348     CC=""
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356     CC=$ac_ct_CC
3357   fi
3358 fi
3359
3360 fi
3361
3362
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3367
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370 set X $ac_compile
3371 ac_compiler=$2
3372 for ac_option in --version -v -V -qversion; do
3373   { { ac_try="$ac_compiler $ac_option >&5"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381   ac_status=$?
3382   if test -s conftest.err; then
3383     sed '10a\
3384 ... rest of stderr output deleted ...
3385          10q' conftest.err >conftest.er1
3386     cat conftest.er1 >&5
3387   fi
3388   rm -f conftest.er1 conftest.err
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }
3391 done
3392
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422   esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { { ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link_default") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444   test -f "$ac_file" || continue
3445   case $ac_file in
3446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447         ;;
3448     [ab].out )
3449         # We found the default executable, but exeext='' is most
3450         # certainly right.
3451         break;;
3452     *.* )
3453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454         then :; else
3455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456         fi
3457         # We set ac_cv_exeext here because the later test for it is not
3458         # safe: cross compilers may not add the suffix if given an `-o'
3459         # argument, so we may need to know it at that point already.
3460         # Even if this section looks crufty: it has the advantage of
3461         # actually working.
3462         break;;
3463     * )
3464         break;;
3465   esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470   ac_file=''
3471 fi
3472 if test -z "$ac_file"; then :
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3491
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_link") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }; then :
3507   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3510 # `rm'.
3511 for ac_file in conftest.exe conftest conftest.*; do
3512   test -f "$ac_file" || continue
3513   case $ac_file in
3514     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516           break;;
3517     * ) break;;
3518   esac
3519 done
3520 else
3521   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3529
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3532 ac_exeext=$EXEEXT
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <stdio.h>
3536 int
3537 main ()
3538 {
3539 FILE *f = fopen ("conftest.out", "w");
3540  return ferror (f) || fclose (f) != 0;
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run.  If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552   { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559   (eval "$ac_link") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562   test $ac_status = 0; }
3563   if { ac_try='./conftest$ac_cv_exeext'
3564   { { case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; }; then
3574     cross_compiling=no
3575   else
3576     if test "$cross_compiling" = maybe; then
3577         cross_compiling=yes
3578     else
3579         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3584     fi
3585   fi
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_compile") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   for ac_file in conftest.o conftest.obj conftest.*; do
3621   test -f "$ac_file" || continue;
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625        break;;
3626   esac
3627 done
3628 else
3629   $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3642 ac_objext=$OBJEXT
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655        choke me
3656 #endif
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_compiler_gnu=yes
3664 else
3665   ac_compiler_gnu=no
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3674   GCC=yes
3675 else
3676   GCC=
3677 fi
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   ac_save_c_werror_flag=$ac_c_werror_flag
3686    ac_c_werror_flag=yes
3687    ac_cv_prog_cc_g=no
3688    CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
3701   ac_cv_prog_cc_g=yes
3702 else
3703   CFLAGS=""
3704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706
3707 int
3708 main ()
3709 {
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716
3717 else
3718   ac_c_werror_flag=$ac_save_c_werror_flag
3719          CFLAGS="-g"
3720          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_cv_prog_cc_g=yes
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739    ac_c_werror_flag=$ac_save_c_werror_flag
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744   CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746   if test "$GCC" = yes; then
3747     CFLAGS="-g -O2"
3748   else
3749     CFLAGS="-g"
3750   fi
3751 else
3752   if test "$GCC" = yes; then
3753     CFLAGS="-O2"
3754   else
3755     CFLAGS=
3756   fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   ac_cv_prog_cc_c89=no
3764 ac_save_CC=$CC
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdarg.h>
3768 #include <stdio.h>
3769 struct stat;
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3774      char **p;
3775      int i;
3776 {
3777   return p[i];
3778 }
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3780 {
3781   char *s;
3782   va_list v;
3783   va_start (v,p);
3784   s = g (p, va_arg (v,int));
3785   va_end (v);
3786   return s;
3787 }
3788
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3790    function prototypes and stuff, but not '\xHH' hex character constants.
3791    These don't provoke an error unfortunately, instead are silently treated
3792    as 'x'.  The following induces an error, until -std is added to get
3793    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3794    array size at least.  It's necessary to write '\x00'==0 to get something
3795    that's true only with -std.  */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799    inside strings and character constants.  */
3800 #define FOO(x) 'x'
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 int argc;
3808 char **argv;
3809 int
3810 main ()
3811 {
3812 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 do
3820   CC="$ac_save_CC $ac_arg"
3821   if ac_fn_c_try_compile "$LINENO"; then :
3822   ac_cv_prog_cc_c89=$ac_arg
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext
3825   test "x$ac_cv_prog_cc_c89" != "xno" && break
3826 done
3827 rm -f conftest.$ac_ext
3828 CC=$ac_save_CC
3829
3830 fi
3831 # AC_CACHE_VAL
3832 case "x$ac_cv_prog_cc_c89" in
3833   x)
3834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3836   xno)
3837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3839   *)
3840     CC="$CC $ac_cv_prog_cc_c89"
3841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843 esac
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3845
3846 fi
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854 depcc="$CC"   am_compiler_list=
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857 $as_echo_n "checking dependency style of $depcc... " >&6; }
3858 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3859   $as_echo_n "(cached) " >&6
3860 else
3861   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862   # We make a subdir and do the tests there.  Otherwise we can end up
3863   # making bogus files that we don't know about and never remove.  For
3864   # instance it was reported that on HP-UX the gcc test will end up
3865   # making a dummy file named `D' -- because `-MD' means `put the output
3866   # in D'.
3867   rm -rf conftest.dir
3868   mkdir conftest.dir
3869   # Copy depcomp to subdir because otherwise we won't find it if we're
3870   # using a relative directory.
3871   cp "$am_depcomp" conftest.dir
3872   cd conftest.dir
3873   # We will build objects and dependencies in a subdirectory because
3874   # it helps to detect inapplicable dependency modes.  For instance
3875   # both Tru64's cc and ICC support -MD to output dependencies as a
3876   # side effect of compilation, but ICC will put the dependencies in
3877   # the current directory while Tru64 will put them in the object
3878   # directory.
3879   mkdir sub
3880
3881   am_cv_CC_dependencies_compiler_type=none
3882   if test "$am_compiler_list" = ""; then
3883      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3884   fi
3885   am__universal=false
3886   case " $depcc " in #(
3887      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3888      esac
3889
3890   for depmode in $am_compiler_list; do
3891     # Setup a source with many dependencies, because some compilers
3892     # like to wrap large dependency lists on column 80 (with \), and
3893     # we should not choose a depcomp mode which is confused by this.
3894     #
3895     # We need to recreate these files for each test, as the compiler may
3896     # overwrite some of them when testing with obscure command lines.
3897     # This happens at least with the AIX C compiler.
3898     : > sub/conftest.c
3899     for i in 1 2 3 4 5 6; do
3900       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3901       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3902       # Solaris 8's {/usr,}/bin/sh.
3903       touch sub/conftst$i.h
3904     done
3905     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3906
3907     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3908     # mode.  It turns out that the SunPro C++ compiler does not properly
3909     # handle `-M -o', and we need to detect this.  Also, some Intel
3910     # versions had trouble with output in subdirs
3911     am__obj=sub/conftest.${OBJEXT-o}
3912     am__minus_obj="-o $am__obj"
3913     case $depmode in
3914     gcc)
3915       # This depmode causes a compiler race in universal mode.
3916       test "$am__universal" = false || continue
3917       ;;
3918     nosideeffect)
3919       # after this tag, mechanisms are not by side-effect, so they'll
3920       # only be used when explicitly requested
3921       if test "x$enable_dependency_tracking" = xyes; then
3922         continue
3923       else
3924         break
3925       fi
3926       ;;
3927     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3928       # This compiler won't grok `-c -o', but also, the minuso test has
3929       # not run yet.  These depmodes are late enough in the game, and
3930       # so weak that their functioning should not be impacted.
3931       am__obj=conftest.${OBJEXT-o}
3932       am__minus_obj=
3933       ;;
3934     none) break ;;
3935     esac
3936     if depmode=$depmode \
3937        source=sub/conftest.c object=$am__obj \
3938        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3940          >/dev/null 2>conftest.err &&
3941        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3942        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3943        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3944        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3945       # icc doesn't choke on unknown options, it will just issue warnings
3946       # or remarks (even with -Werror).  So we grep stderr for any message
3947       # that says an option was ignored or not supported.
3948       # When given -MP, icc 7.0 and 7.1 complain thusly:
3949       #   icc: Command line warning: ignoring option '-M'; no argument required
3950       # The diagnosis changed in icc 8.0:
3951       #   icc: Command line remark: option '-MP' not supported
3952       if (grep 'ignoring option' conftest.err ||
3953           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3954         am_cv_CC_dependencies_compiler_type=$depmode
3955         break
3956       fi
3957     fi
3958   done
3959
3960   cd ..
3961   rm -rf conftest.dir
3962 else
3963   am_cv_CC_dependencies_compiler_type=none
3964 fi
3965
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3968 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3969 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3970
3971  if
3972   test "x$enable_dependency_tracking" != xno \
3973   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3974   am__fastdepCC_TRUE=
3975   am__fastdepCC_FALSE='#'
3976 else
3977   am__fastdepCC_TRUE='#'
3978   am__fastdepCC_FALSE=
3979 fi
3980
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3984 if ${ac_cv_path_SED+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3988      for ac_i in 1 2 3 4 5 6 7; do
3989        ac_script="$ac_script$as_nl$ac_script"
3990      done
3991      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3992      { ac_script=; unset ac_script;}
3993      if test -z "$SED"; then
3994   ac_path_SED_found=false
3995   # Loop through the user's path and test for each of PROGNAME-LIST
3996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_prog in sed gsed; do
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4004       as_fn_executable_p "$ac_path_SED" || continue
4005 # Check for GNU ac_path_SED and select it if it is found.
4006   # Check for GNU $ac_path_SED
4007 case `"$ac_path_SED" --version 2>&1` in
4008 *GNU*)
4009   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4010 *)
4011   ac_count=0
4012   $as_echo_n 0123456789 >"conftest.in"
4013   while :
4014   do
4015     cat "conftest.in" "conftest.in" >"conftest.tmp"
4016     mv "conftest.tmp" "conftest.in"
4017     cp "conftest.in" "conftest.nl"
4018     $as_echo '' >> "conftest.nl"
4019     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021     as_fn_arith $ac_count + 1 && ac_count=$as_val
4022     if test $ac_count -gt ${ac_path_SED_max-0}; then
4023       # Best one so far, save it but keep looking for a better one
4024       ac_cv_path_SED="$ac_path_SED"
4025       ac_path_SED_max=$ac_count
4026     fi
4027     # 10*(2^10) chars as input seems more than enough
4028     test $ac_count -gt 10 && break
4029   done
4030   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033       $ac_path_SED_found && break 3
4034     done
4035   done
4036   done
4037 IFS=$as_save_IFS
4038   if test -z "$ac_cv_path_SED"; then
4039     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4040   fi
4041 else
4042   ac_cv_path_SED=$SED
4043 fi
4044
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4047 $as_echo "$ac_cv_path_SED" >&6; }
4048  SED="$ac_cv_path_SED"
4049   rm -f conftest.sed
4050
4051 test -z "$SED" && SED=sed
4052 Xsed="$SED -e 1s/^X//"
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4066 if ${ac_cv_path_GREP+:} false; then :
4067   $as_echo_n "(cached) " >&6
4068 else
4069   if test -z "$GREP"; then
4070   ac_path_GREP_found=false
4071   # Loop through the user's path and test for each of PROGNAME-LIST
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077     for ac_prog in grep ggrep; do
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4080       as_fn_executable_p "$ac_path_GREP" || continue
4081 # Check for GNU ac_path_GREP and select it if it is found.
4082   # Check for GNU $ac_path_GREP
4083 case `"$ac_path_GREP" --version 2>&1` in
4084 *GNU*)
4085   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4086 *)
4087   ac_count=0
4088   $as_echo_n 0123456789 >"conftest.in"
4089   while :
4090   do
4091     cat "conftest.in" "conftest.in" >"conftest.tmp"
4092     mv "conftest.tmp" "conftest.in"
4093     cp "conftest.in" "conftest.nl"
4094     $as_echo 'GREP' >> "conftest.nl"
4095     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4096     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4097     as_fn_arith $ac_count + 1 && ac_count=$as_val
4098     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4099       # Best one so far, save it but keep looking for a better one
4100       ac_cv_path_GREP="$ac_path_GREP"
4101       ac_path_GREP_max=$ac_count
4102     fi
4103     # 10*(2^10) chars as input seems more than enough
4104     test $ac_count -gt 10 && break
4105   done
4106   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 esac
4108
4109       $ac_path_GREP_found && break 3
4110     done
4111   done
4112   done
4113 IFS=$as_save_IFS
4114   if test -z "$ac_cv_path_GREP"; then
4115     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116   fi
4117 else
4118   ac_cv_path_GREP=$GREP
4119 fi
4120
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4123 $as_echo "$ac_cv_path_GREP" >&6; }
4124  GREP="$ac_cv_path_GREP"
4125
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4128 $as_echo_n "checking for egrep... " >&6; }
4129 if ${ac_cv_path_EGREP+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4133    then ac_cv_path_EGREP="$GREP -E"
4134    else
4135      if test -z "$EGREP"; then
4136   ac_path_EGREP_found=false
4137   # Loop through the user's path and test for each of PROGNAME-LIST
4138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_prog in egrep; do
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4146       as_fn_executable_p "$ac_path_EGREP" || continue
4147 # Check for GNU ac_path_EGREP and select it if it is found.
4148   # Check for GNU $ac_path_EGREP
4149 case `"$ac_path_EGREP" --version 2>&1` in
4150 *GNU*)
4151   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4152 *)
4153   ac_count=0
4154   $as_echo_n 0123456789 >"conftest.in"
4155   while :
4156   do
4157     cat "conftest.in" "conftest.in" >"conftest.tmp"
4158     mv "conftest.tmp" "conftest.in"
4159     cp "conftest.in" "conftest.nl"
4160     $as_echo 'EGREP' >> "conftest.nl"
4161     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163     as_fn_arith $ac_count + 1 && ac_count=$as_val
4164     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4165       # Best one so far, save it but keep looking for a better one
4166       ac_cv_path_EGREP="$ac_path_EGREP"
4167       ac_path_EGREP_max=$ac_count
4168     fi
4169     # 10*(2^10) chars as input seems more than enough
4170     test $ac_count -gt 10 && break
4171   done
4172   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4174
4175       $ac_path_EGREP_found && break 3
4176     done
4177   done
4178   done
4179 IFS=$as_save_IFS
4180   if test -z "$ac_cv_path_EGREP"; then
4181     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4182   fi
4183 else
4184   ac_cv_path_EGREP=$EGREP
4185 fi
4186
4187    fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4190 $as_echo "$ac_cv_path_EGREP" >&6; }
4191  EGREP="$ac_cv_path_EGREP"
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4195 $as_echo_n "checking for fgrep... " >&6; }
4196 if ${ac_cv_path_FGREP+:} false; then :
4197   $as_echo_n "(cached) " >&6
4198 else
4199   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4200    then ac_cv_path_FGREP="$GREP -F"
4201    else
4202      if test -z "$FGREP"; then
4203   ac_path_FGREP_found=false
4204   # Loop through the user's path and test for each of PROGNAME-LIST
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210     for ac_prog in fgrep; do
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4213       as_fn_executable_p "$ac_path_FGREP" || continue
4214 # Check for GNU ac_path_FGREP and select it if it is found.
4215   # Check for GNU $ac_path_FGREP
4216 case `"$ac_path_FGREP" --version 2>&1` in
4217 *GNU*)
4218   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4219 *)
4220   ac_count=0
4221   $as_echo_n 0123456789 >"conftest.in"
4222   while :
4223   do
4224     cat "conftest.in" "conftest.in" >"conftest.tmp"
4225     mv "conftest.tmp" "conftest.in"
4226     cp "conftest.in" "conftest.nl"
4227     $as_echo 'FGREP' >> "conftest.nl"
4228     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230     as_fn_arith $ac_count + 1 && ac_count=$as_val
4231     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4232       # Best one so far, save it but keep looking for a better one
4233       ac_cv_path_FGREP="$ac_path_FGREP"
4234       ac_path_FGREP_max=$ac_count
4235     fi
4236     # 10*(2^10) chars as input seems more than enough
4237     test $ac_count -gt 10 && break
4238   done
4239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242       $ac_path_FGREP_found && break 3
4243     done
4244   done
4245   done
4246 IFS=$as_save_IFS
4247   if test -z "$ac_cv_path_FGREP"; then
4248     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249   fi
4250 else
4251   ac_cv_path_FGREP=$FGREP
4252 fi
4253
4254    fi
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4257 $as_echo "$ac_cv_path_FGREP" >&6; }
4258  FGREP="$ac_cv_path_FGREP"
4259
4260
4261 test -z "$GREP" && GREP=grep
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281 # Check whether --with-gnu-ld was given.
4282 if test "${with_gnu_ld+set}" = set; then :
4283   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4284 else
4285   with_gnu_ld=no
4286 fi
4287
4288 ac_prog=ld
4289 if test "$GCC" = yes; then
4290   # Check if gcc -print-prog-name=ld gives a path.
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4292 $as_echo_n "checking for ld used by $CC... " >&6; }
4293   case $host in
4294   *-*-mingw*)
4295     # gcc leaves a trailing carriage return which upsets mingw
4296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4297   *)
4298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4299   esac
4300   case $ac_prog in
4301     # Accept absolute paths.
4302     [\\/]* | ?:[\\/]*)
4303       re_direlt='/[^/][^/]*/\.\./'
4304       # Canonicalize the pathname of ld
4305       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4306       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4307         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4308       done
4309       test -z "$LD" && LD="$ac_prog"
4310       ;;
4311   "")
4312     # If it fails, then pretend we aren't using GCC.
4313     ac_prog=ld
4314     ;;
4315   *)
4316     # If it is relative, then search for the first ld in PATH.
4317     with_gnu_ld=unknown
4318     ;;
4319   esac
4320 elif test "$with_gnu_ld" = yes; then
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4322 $as_echo_n "checking for GNU ld... " >&6; }
4323 else
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4325 $as_echo_n "checking for non-GNU ld... " >&6; }
4326 fi
4327 if ${lt_cv_path_LD+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -z "$LD"; then
4331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332   for ac_dir in $PATH; do
4333     IFS="$lt_save_ifs"
4334     test -z "$ac_dir" && ac_dir=.
4335     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4336       lt_cv_path_LD="$ac_dir/$ac_prog"
4337       # Check to see if the program is GNU ld.  I'd rather use --version,
4338       # but apparently some variants of GNU ld only accept -v.
4339       # Break only if it was the GNU/non-GNU ld that we prefer.
4340       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4341       *GNU* | *'with BFD'*)
4342         test "$with_gnu_ld" != no && break
4343         ;;
4344       *)
4345         test "$with_gnu_ld" != yes && break
4346         ;;
4347       esac
4348     fi
4349   done
4350   IFS="$lt_save_ifs"
4351 else
4352   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4353 fi
4354 fi
4355
4356 LD="$lt_cv_path_LD"
4357 if test -n "$LD"; then
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4359 $as_echo "$LD" >&6; }
4360 else
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4367 if ${lt_cv_prog_gnu_ld+:} false; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4371 case `$LD -v 2>&1 </dev/null` in
4372 *GNU* | *'with BFD'*)
4373   lt_cv_prog_gnu_ld=yes
4374   ;;
4375 *)
4376   lt_cv_prog_gnu_ld=no
4377   ;;
4378 esac
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4382 with_gnu_ld=$lt_cv_prog_gnu_ld
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4393 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4394 if ${lt_cv_path_NM+:} false; then :
4395   $as_echo_n "(cached) " >&6
4396 else
4397   if test -n "$NM"; then
4398   # Let the user override the test.
4399   lt_cv_path_NM="$NM"
4400 else
4401   lt_nm_to_check="${ac_tool_prefix}nm"
4402   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4403     lt_nm_to_check="$lt_nm_to_check nm"
4404   fi
4405   for lt_tmp_nm in $lt_nm_to_check; do
4406     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4407     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4408       IFS="$lt_save_ifs"
4409       test -z "$ac_dir" && ac_dir=.
4410       tmp_nm="$ac_dir/$lt_tmp_nm"
4411       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4412         # Check to see if the nm accepts a BSD-compat flag.
4413         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4414         #   nm: unknown option "B" ignored
4415         # Tru64's nm complains that /dev/null is an invalid object file
4416         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4417         */dev/null* | *'Invalid file or object type'*)
4418           lt_cv_path_NM="$tmp_nm -B"
4419           break
4420           ;;
4421         *)
4422           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4423           */dev/null*)
4424             lt_cv_path_NM="$tmp_nm -p"
4425             break
4426             ;;
4427           *)
4428             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4429             continue # so that we can try to find one that supports BSD flags
4430             ;;
4431           esac
4432           ;;
4433         esac
4434       fi
4435     done
4436     IFS="$lt_save_ifs"
4437   done
4438   : ${lt_cv_path_NM=no}
4439 fi
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4442 $as_echo "$lt_cv_path_NM" >&6; }
4443 if test "$lt_cv_path_NM" != "no"; then
4444   NM="$lt_cv_path_NM"
4445 else
4446   # Didn't find any BSD compatible name lister, look for dumpbin.
4447   if test -n "$DUMPBIN"; then :
4448     # Let the user override the test.
4449   else
4450     if test -n "$ac_tool_prefix"; then
4451   for ac_prog in dumpbin "link -dump"
4452   do
4453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_DUMPBIN+:} false; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -n "$DUMPBIN"; then
4461   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468     for ac_exec_ext in '' $ac_executable_extensions; do
4469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475   done
4476 IFS=$as_save_IFS
4477
4478 fi
4479 fi
4480 DUMPBIN=$ac_cv_prog_DUMPBIN
4481 if test -n "$DUMPBIN"; then
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4483 $as_echo "$DUMPBIN" >&6; }
4484 else
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488
4489
4490     test -n "$DUMPBIN" && break
4491   done
4492 fi
4493 if test -z "$DUMPBIN"; then
4494   ac_ct_DUMPBIN=$DUMPBIN
4495   for ac_prog in dumpbin "link -dump"
4496 do
4497   # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -n "$ac_ct_DUMPBIN"; then
4505   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522 fi
4523 fi
4524 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4525 if test -n "$ac_ct_DUMPBIN"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4527 $as_echo "$ac_ct_DUMPBIN" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534   test -n "$ac_ct_DUMPBIN" && break
4535 done
4536
4537   if test "x$ac_ct_DUMPBIN" = x; then
4538     DUMPBIN=":"
4539   else
4540     case $cross_compiling:$ac_tool_warned in
4541 yes:)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4545 esac
4546     DUMPBIN=$ac_ct_DUMPBIN
4547   fi
4548 fi
4549
4550     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4551     *COFF*)
4552       DUMPBIN="$DUMPBIN -symbols"
4553       ;;
4554     *)
4555       DUMPBIN=:
4556       ;;
4557     esac
4558   fi
4559
4560   if test "$DUMPBIN" != ":"; then
4561     NM="$DUMPBIN"
4562   fi
4563 fi
4564 test -z "$NM" && NM=nm
4565
4566
4567
4568
4569
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4573 if ${lt_cv_nm_interface+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   lt_cv_nm_interface="BSD nm"
4577   echo "int some_variable = 0;" > conftest.$ac_ext
4578   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4579   (eval "$ac_compile" 2>conftest.err)
4580   cat conftest.err >&5
4581   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4582   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4583   cat conftest.err >&5
4584   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4585   cat conftest.out >&5
4586   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4587     lt_cv_nm_interface="MS dumpbin"
4588   fi
4589   rm -f conftest*
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4592 $as_echo "$lt_cv_nm_interface" >&6; }
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595 $as_echo_n "checking whether ln -s works... " >&6; }
4596 LN_S=$as_ln_s
4597 if test "$LN_S" = "ln -s"; then
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599 $as_echo "yes" >&6; }
4600 else
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602 $as_echo "no, using $LN_S" >&6; }
4603 fi
4604
4605 # find the maximum length of command line arguments
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4608 if ${lt_cv_sys_max_cmd_len+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611     i=0
4612   teststring="ABCD"
4613
4614   case $build_os in
4615   msdosdjgpp*)
4616     # On DJGPP, this test can blow up pretty badly due to problems in libc
4617     # (any single argument exceeding 2000 bytes causes a buffer overrun
4618     # during glob expansion).  Even if it were fixed, the result of this
4619     # check would be larger than it should be.
4620     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4621     ;;
4622
4623   gnu*)
4624     # Under GNU Hurd, this test is not required because there is
4625     # no limit to the length of command line arguments.
4626     # Libtool will interpret -1 as no limit whatsoever
4627     lt_cv_sys_max_cmd_len=-1;
4628     ;;
4629
4630   cygwin* | mingw* | cegcc*)
4631     # On Win9x/ME, this test blows up -- it succeeds, but takes
4632     # about 5 minutes as the teststring grows exponentially.
4633     # Worse, since 9x/ME are not pre-emptively multitasking,
4634     # you end up with a "frozen" computer, even though with patience
4635     # the test eventually succeeds (with a max line length of 256k).
4636     # Instead, let's just punt: use the minimum linelength reported by
4637     # all of the supported platforms: 8192 (on NT/2K/XP).
4638     lt_cv_sys_max_cmd_len=8192;
4639     ;;
4640
4641   mint*)
4642     # On MiNT this can take a long time and run out of memory.
4643     lt_cv_sys_max_cmd_len=8192;
4644     ;;
4645
4646   amigaos*)
4647     # On AmigaOS with pdksh, this test takes hours, literally.
4648     # So we just punt and use a minimum line length of 8192.
4649     lt_cv_sys_max_cmd_len=8192;
4650     ;;
4651
4652   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4653     # This has been around since 386BSD, at least.  Likely further.
4654     if test -x /sbin/sysctl; then
4655       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4656     elif test -x /usr/sbin/sysctl; then
4657       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4658     else
4659       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4660     fi
4661     # And add a safety zone
4662     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4663     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4664     ;;
4665
4666   interix*)
4667     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4668     lt_cv_sys_max_cmd_len=196608
4669     ;;
4670
4671   os2*)
4672     # The test takes a long time on OS/2.
4673     lt_cv_sys_max_cmd_len=8192
4674     ;;
4675
4676   osf*)
4677     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4678     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4679     # nice to cause kernel panics so lets avoid the loop below.
4680     # First set a reasonable default.
4681     lt_cv_sys_max_cmd_len=16384
4682     #
4683     if test -x /sbin/sysconfig; then
4684       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4685         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4686       esac
4687     fi
4688     ;;
4689   sco3.2v5*)
4690     lt_cv_sys_max_cmd_len=102400
4691     ;;
4692   sysv5* | sco5v6* | sysv4.2uw2*)
4693     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4694     if test -n "$kargmax"; then
4695       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4696     else
4697       lt_cv_sys_max_cmd_len=32768
4698     fi
4699     ;;
4700   *)
4701     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4702     if test -n "$lt_cv_sys_max_cmd_len" && \
4703         test undefined != "$lt_cv_sys_max_cmd_len"; then
4704       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4706     else
4707       # Make teststring a little bigger before we do anything with it.
4708       # a 1K string should be a reasonable start.
4709       for i in 1 2 3 4 5 6 7 8 ; do
4710         teststring=$teststring$teststring
4711       done
4712       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4713       # If test is not a shell built-in, we'll probably end up computing a
4714       # maximum length that is only half of the actual maximum length, but
4715       # we can't tell.
4716       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4717                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4718               test $i != 17 # 1/2 MB should be enough
4719       do
4720         i=`expr $i + 1`
4721         teststring=$teststring$teststring
4722       done
4723       # Only check the string length outside the loop.
4724       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4725       teststring=
4726       # Add a significant safety factor because C++ compilers can tack on
4727       # massive amounts of additional arguments before passing them to the
4728       # linker.  It appears as though 1/2 is a usable value.
4729       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4730     fi
4731     ;;
4732   esac
4733
4734 fi
4735
4736 if test -n $lt_cv_sys_max_cmd_len ; then
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4738 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4739 else
4740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4741 $as_echo "none" >&6; }
4742 fi
4743 max_cmd_len=$lt_cv_sys_max_cmd_len
4744
4745
4746
4747
4748
4749
4750 : ${CP="cp -f"}
4751 : ${MV="mv -f"}
4752 : ${RM="rm -f"}
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4755 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4756 # Try some XSI features
4757 xsi_shell=no
4758 ( _lt_dummy="a/b/c"
4759   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4760       = c,a/b,b/c, \
4761     && eval 'test $(( 1 + 1 )) -eq 2 \
4762     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4763   && xsi_shell=yes
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4765 $as_echo "$xsi_shell" >&6; }
4766
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4769 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4770 lt_shell_append=no
4771 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4772     >/dev/null 2>&1 \
4773   && lt_shell_append=yes
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4775 $as_echo "$lt_shell_append" >&6; }
4776
4777
4778 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4779   lt_unset=unset
4780 else
4781   lt_unset=false
4782 fi
4783
4784
4785
4786
4787
4788 # test EBCDIC or ASCII
4789 case `echo X|tr X '\101'` in
4790  A) # ASCII based system
4791     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4792   lt_SP2NL='tr \040 \012'
4793   lt_NL2SP='tr \015\012 \040\040'
4794   ;;
4795  *) # EBCDIC based system
4796   lt_SP2NL='tr \100 \n'
4797   lt_NL2SP='tr \r\n \100\100'
4798   ;;
4799 esac
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4810 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4811 if ${lt_cv_to_host_file_cmd+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   case $host in
4815   *-*-mingw* )
4816     case $build in
4817       *-*-mingw* ) # actually msys
4818         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4819         ;;
4820       *-*-cygwin* )
4821         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4822         ;;
4823       * ) # otherwise, assume *nix
4824         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4825         ;;
4826     esac
4827     ;;
4828   *-*-cygwin* )
4829     case $build in
4830       *-*-mingw* ) # actually msys
4831         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4832         ;;
4833       *-*-cygwin* )
4834         lt_cv_to_host_file_cmd=func_convert_file_noop
4835         ;;
4836       * ) # otherwise, assume *nix
4837         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4838         ;;
4839     esac
4840     ;;
4841   * ) # unhandled hosts (and "normal" native builds)
4842     lt_cv_to_host_file_cmd=func_convert_file_noop
4843     ;;
4844 esac
4845
4846 fi
4847
4848 to_host_file_cmd=$lt_cv_to_host_file_cmd
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4850 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4851
4852
4853
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4857 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4858 if ${lt_cv_to_tool_file_cmd+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   #assume ordinary cross tools, or native build.
4862 lt_cv_to_tool_file_cmd=func_convert_file_noop
4863 case $host in
4864   *-*-mingw* )
4865     case $build in
4866       *-*-mingw* ) # actually msys
4867         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4868         ;;
4869     esac
4870     ;;
4871 esac
4872
4873 fi
4874
4875 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4877 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4878
4879
4880
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4884 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4885 if ${lt_cv_ld_reload_flag+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   lt_cv_ld_reload_flag='-r'
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4891 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4892 reload_flag=$lt_cv_ld_reload_flag
4893 case $reload_flag in
4894 "" | " "*) ;;
4895 *) reload_flag=" $reload_flag" ;;
4896 esac
4897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4898 case $host_os in
4899   cygwin* | mingw* | pw32* | cegcc*)
4900     if test "$GCC" != yes; then
4901       reload_cmds=false
4902     fi
4903     ;;
4904   darwin*)
4905     if test "$GCC" = yes; then
4906       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4907     else
4908       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4909     fi
4910     ;;
4911 esac
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 if test -n "$ac_tool_prefix"; then
4922   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4923 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_OBJDUMP+:} false; then :
4927   $as_echo_n "(cached) " >&6
4928 else
4929   if test -n "$OBJDUMP"; then
4930   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944   done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 OBJDUMP=$ac_cv_prog_OBJDUMP
4950 if test -n "$OBJDUMP"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4952 $as_echo "$OBJDUMP" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958
4959 fi
4960 if test -z "$ac_cv_prog_OBJDUMP"; then
4961   ac_ct_OBJDUMP=$OBJDUMP
4962   # Extract the first word of "objdump", so it can be a program name with args.
4963 set dummy objdump; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$ac_ct_OBJDUMP"; then
4970   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4979     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4990 if test -n "$ac_ct_OBJDUMP"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4992 $as_echo "$ac_ct_OBJDUMP" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998   if test "x$ac_ct_OBJDUMP" = x; then
4999     OBJDUMP="false"
5000   else
5001     case $cross_compiling:$ac_tool_warned in
5002 yes:)
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005 ac_tool_warned=yes ;;
5006 esac
5007     OBJDUMP=$ac_ct_OBJDUMP
5008   fi
5009 else
5010   OBJDUMP="$ac_cv_prog_OBJDUMP"
5011 fi
5012
5013 test -z "$OBJDUMP" && OBJDUMP=objdump
5014
5015
5016
5017
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5021 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5022 if ${lt_cv_deplibs_check_method+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   lt_cv_file_magic_cmd='$MAGIC_CMD'
5026 lt_cv_file_magic_test_file=
5027 lt_cv_deplibs_check_method='unknown'
5028 # Need to set the preceding variable on all platforms that support
5029 # interlibrary dependencies.
5030 # 'none' -- dependencies not supported.
5031 # `unknown' -- same as none, but documents that we really don't know.
5032 # 'pass_all' -- all dependencies passed with no checks.
5033 # 'test_compile' -- check by making test program.
5034 # 'file_magic [[regex]]' -- check by looking for files in library path
5035 # which responds to the $file_magic_cmd with a given extended regex.
5036 # If you have `file' or equivalent on your system and you're not sure
5037 # whether `pass_all' will *always* work, you probably want this one.
5038
5039 case $host_os in
5040 aix[4-9]*)
5041   lt_cv_deplibs_check_method=pass_all
5042   ;;
5043
5044 beos*)
5045   lt_cv_deplibs_check_method=pass_all
5046   ;;
5047
5048 bsdi[45]*)
5049   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5050   lt_cv_file_magic_cmd='/usr/bin/file -L'
5051   lt_cv_file_magic_test_file=/shlib/libc.so
5052   ;;
5053
5054 cygwin*)
5055   # func_win32_libid is a shell function defined in ltmain.sh
5056   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057   lt_cv_file_magic_cmd='func_win32_libid'
5058   ;;
5059
5060 mingw* | pw32*)
5061   # Base MSYS/MinGW do not provide the 'file' command needed by
5062   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5063   # unless we find 'file', for example because we are cross-compiling.
5064   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5065   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5066     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067     lt_cv_file_magic_cmd='func_win32_libid'
5068   else
5069     # Keep this pattern in sync with the one in func_win32_libid.
5070     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5071     lt_cv_file_magic_cmd='$OBJDUMP -f'
5072   fi
5073   ;;
5074
5075 cegcc*)
5076   # use the weaker test based on 'objdump'. See mingw*.
5077   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078   lt_cv_file_magic_cmd='$OBJDUMP -f'
5079   ;;
5080
5081 darwin* | rhapsody*)
5082   lt_cv_deplibs_check_method=pass_all
5083   ;;
5084
5085 freebsd* | dragonfly*)
5086   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5087     case $host_cpu in
5088     i*86 )
5089       # Not sure whether the presence of OpenBSD here was a mistake.
5090       # Let's accept both of them until this is cleared up.
5091       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092       lt_cv_file_magic_cmd=/usr/bin/file
5093       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5094       ;;
5095     esac
5096   else
5097     lt_cv_deplibs_check_method=pass_all
5098   fi
5099   ;;
5100
5101 haiku*)
5102   lt_cv_deplibs_check_method=pass_all
5103   ;;
5104
5105 hpux10.20* | hpux11*)
5106   lt_cv_file_magic_cmd=/usr/bin/file
5107   case $host_cpu in
5108   ia64*)
5109     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5110     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5111     ;;
5112   hppa*64*)
5113     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]'
5114     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5115     ;;
5116   *)
5117     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5118     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5119     ;;
5120   esac
5121   ;;
5122
5123 interix[3-9]*)
5124   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5125   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5126   ;;
5127
5128 irix5* | irix6* | nonstopux*)
5129   case $LD in
5130   *-32|*"-32 ") libmagic=32-bit;;
5131   *-n32|*"-n32 ") libmagic=N32;;
5132   *-64|*"-64 ") libmagic=64-bit;;
5133   *) libmagic=never-match;;
5134   esac
5135   lt_cv_deplibs_check_method=pass_all
5136   ;;
5137
5138 # This must be glibc/ELF.
5139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5140   lt_cv_deplibs_check_method=pass_all
5141   ;;
5142
5143 netbsd* | netbsdelf*-gnu)
5144   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5145     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5146   else
5147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5148   fi
5149   ;;
5150
5151 newos6*)
5152   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5153   lt_cv_file_magic_cmd=/usr/bin/file
5154   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5155   ;;
5156
5157 *nto* | *qnx*)
5158   lt_cv_deplibs_check_method=pass_all
5159   ;;
5160
5161 openbsd*)
5162   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5163     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5164   else
5165     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5166   fi
5167   ;;
5168
5169 osf3* | osf4* | osf5*)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 rdos*)
5174   lt_cv_deplibs_check_method=pass_all
5175   ;;
5176
5177 solaris*)
5178   lt_cv_deplibs_check_method=pass_all
5179   ;;
5180
5181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5182   lt_cv_deplibs_check_method=pass_all
5183   ;;
5184
5185 sysv4 | sysv4.3*)
5186   case $host_vendor in
5187   motorola)
5188     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]'
5189     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5190     ;;
5191   ncr)
5192     lt_cv_deplibs_check_method=pass_all
5193     ;;
5194   sequent)
5195     lt_cv_file_magic_cmd='/bin/file'
5196     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5197     ;;
5198   sni)
5199     lt_cv_file_magic_cmd='/bin/file'
5200     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5201     lt_cv_file_magic_test_file=/lib/libc.so
5202     ;;
5203   siemens)
5204     lt_cv_deplibs_check_method=pass_all
5205     ;;
5206   pc)
5207     lt_cv_deplibs_check_method=pass_all
5208     ;;
5209   esac
5210   ;;
5211
5212 tpf*)
5213   lt_cv_deplibs_check_method=pass_all
5214   ;;
5215 esac
5216
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5219 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5220
5221 file_magic_glob=
5222 want_nocaseglob=no
5223 if test "$build" = "$host"; then
5224   case $host_os in
5225   mingw* | pw32*)
5226     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5227       want_nocaseglob=yes
5228     else
5229       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5230     fi
5231     ;;
5232   esac
5233 fi
5234
5235 file_magic_cmd=$lt_cv_file_magic_cmd
5236 deplibs_check_method=$lt_cv_deplibs_check_method
5237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 if test -n "$ac_tool_prefix"; then
5261   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5262 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_DLLTOOL+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   if test -n "$DLLTOOL"; then
5269   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 DLLTOOL=$ac_cv_prog_DLLTOOL
5289 if test -n "$DLLTOOL"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5291 $as_echo "$DLLTOOL" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297
5298 fi
5299 if test -z "$ac_cv_prog_DLLTOOL"; then
5300   ac_ct_DLLTOOL=$DLLTOOL
5301   # Extract the first word of "dlltool", so it can be a program name with args.
5302 set dummy dlltool; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   if test -n "$ac_ct_DLLTOOL"; then
5309   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316     for ac_exec_ext in '' $ac_executable_extensions; do
5317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323   done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5329 if test -n "$ac_ct_DLLTOOL"; then
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5331 $as_echo "$ac_ct_DLLTOOL" >&6; }
5332 else
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 fi
5336
5337   if test "x$ac_ct_DLLTOOL" = x; then
5338     DLLTOOL="false"
5339   else
5340     case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346     DLLTOOL=$ac_ct_DLLTOOL
5347   fi
5348 else
5349   DLLTOOL="$ac_cv_prog_DLLTOOL"
5350 fi
5351
5352 test -z "$DLLTOOL" && DLLTOOL=dlltool
5353
5354
5355
5356
5357
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5361 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5362 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   lt_cv_sharedlib_from_linklib_cmd='unknown'
5366
5367 case $host_os in
5368 cygwin* | mingw* | pw32* | cegcc*)
5369   # two different shell functions defined in ltmain.sh
5370   # decide which to use based on capabilities of $DLLTOOL
5371   case `$DLLTOOL --help 2>&1` in
5372   *--identify-strict*)
5373     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5374     ;;
5375   *)
5376     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5377     ;;
5378   esac
5379   ;;
5380 *)
5381   # fallback: assume linklib IS sharedlib
5382   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5383   ;;
5384 esac
5385
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5388 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5389 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5390 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5391
5392
5393
5394
5395
5396
5397
5398
5399 if test -n "$ac_tool_prefix"; then
5400   for ac_prog in ar
5401   do
5402     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_AR+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   if test -n "$AR"; then
5410   ac_cv_prog_AR="$AR" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 AR=$ac_cv_prog_AR
5430 if test -n "$AR"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432 $as_echo "$AR" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439     test -n "$AR" && break
5440   done
5441 fi
5442 if test -z "$AR"; then
5443   ac_ct_AR=$AR
5444   for ac_prog in ar
5445 do
5446   # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$ac_ct_AR"; then
5454   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463     ac_cv_prog_ac_ct_AR="$ac_prog"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474 if test -n "$ac_ct_AR"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476 $as_echo "$ac_ct_AR" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483   test -n "$ac_ct_AR" && break
5484 done
5485
5486   if test "x$ac_ct_AR" = x; then
5487     AR="false"
5488   else
5489     case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495     AR=$ac_ct_AR
5496   fi
5497 fi
5498
5499 : ${AR=ar}
5500 : ${AR_FLAGS=cru}
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5513 $as_echo_n "checking for archiver @FILE support... " >&6; }
5514 if ${lt_cv_ar_at_file+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   lt_cv_ar_at_file=no
5518    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h.  */
5520
5521 int
5522 main ()
5523 {
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530   echo conftest.$ac_objext > conftest.lst
5531       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5532       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5533   (eval $lt_ar_try) 2>&5
5534   ac_status=$?
5535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536   test $ac_status = 0; }
5537       if test "$ac_status" -eq 0; then
5538         # Ensure the archiver fails upon bogus file names.
5539         rm -f conftest.$ac_objext libconftest.a
5540         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5541   (eval $lt_ar_try) 2>&5
5542   ac_status=$?
5543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5544   test $ac_status = 0; }
5545         if test "$ac_status" -ne 0; then
5546           lt_cv_ar_at_file=@
5547         fi
5548       fi
5549       rm -f conftest.* libconftest.a
5550
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5556 $as_echo "$lt_cv_ar_at_file" >&6; }
5557
5558 if test "x$lt_cv_ar_at_file" = xno; then
5559   archiver_list_spec=
5560 else
5561   archiver_list_spec=$lt_cv_ar_at_file
5562 fi
5563
5564
5565
5566
5567
5568
5569
5570 if test -n "$ac_tool_prefix"; then
5571   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}strip; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_STRIP+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test -n "$STRIP"; then
5579   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593   done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 STRIP=$ac_cv_prog_STRIP
5599 if test -n "$STRIP"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5601 $as_echo "$STRIP" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 fi
5609 if test -z "$ac_cv_prog_STRIP"; then
5610   ac_ct_STRIP=$STRIP
5611   # Extract the first word of "strip", so it can be a program name with args.
5612 set dummy strip; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -n "$ac_ct_STRIP"; then
5619   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628     ac_cv_prog_ac_ct_STRIP="strip"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5639 if test -n "$ac_ct_STRIP"; then
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5641 $as_echo "$ac_ct_STRIP" >&6; }
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647   if test "x$ac_ct_STRIP" = x; then
5648     STRIP=":"
5649   else
5650     case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656     STRIP=$ac_ct_STRIP
5657   fi
5658 else
5659   STRIP="$ac_cv_prog_STRIP"
5660 fi
5661
5662 test -z "$STRIP" && STRIP=:
5663
5664
5665
5666
5667
5668
5669 if test -n "$ac_tool_prefix"; then
5670   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_prog_RANLIB+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   if test -n "$RANLIB"; then
5678   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685     for ac_exec_ext in '' $ac_executable_extensions; do
5686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692   done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 RANLIB=$ac_cv_prog_RANLIB
5698 if test -n "$RANLIB"; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5700 $as_echo "$RANLIB" >&6; }
5701 else
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705
5706
5707 fi
5708 if test -z "$ac_cv_prog_RANLIB"; then
5709   ac_ct_RANLIB=$RANLIB
5710   # Extract the first word of "ranlib", so it can be a program name with args.
5711 set dummy ranlib; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   if test -n "$ac_ct_RANLIB"; then
5718   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   test -z "$as_dir" && as_dir=.
5725     for ac_exec_ext in '' $ac_executable_extensions; do
5726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727     ac_cv_prog_ac_ct_RANLIB="ranlib"
5728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729     break 2
5730   fi
5731 done
5732   done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5738 if test -n "$ac_ct_RANLIB"; then
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5740 $as_echo "$ac_ct_RANLIB" >&6; }
5741 else
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745
5746   if test "x$ac_ct_RANLIB" = x; then
5747     RANLIB=":"
5748   else
5749     case $cross_compiling:$ac_tool_warned in
5750 yes:)
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755     RANLIB=$ac_ct_RANLIB
5756   fi
5757 else
5758   RANLIB="$ac_cv_prog_RANLIB"
5759 fi
5760
5761 test -z "$RANLIB" && RANLIB=:
5762
5763
5764
5765
5766
5767
5768 # Determine commands to create old-style static archives.
5769 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5770 old_postinstall_cmds='chmod 644 $oldlib'
5771 old_postuninstall_cmds=
5772
5773 if test -n "$RANLIB"; then
5774   case $host_os in
5775   openbsd*)
5776     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5777     ;;
5778   *)
5779     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5780     ;;
5781   esac
5782   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5783 fi
5784
5785 case $host_os in
5786   darwin*)
5787     lock_old_archive_extraction=yes ;;
5788   *)
5789     lock_old_archive_extraction=no ;;
5790 esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830 # If no C compiler was specified, use CC.
5831 LTCC=${LTCC-"$CC"}
5832
5833 # If no C compiler flags were specified, use CFLAGS.
5834 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5835
5836 # Allow CC to be a program name with arguments.
5837 compiler=$CC
5838
5839
5840 # Check for command to grab the raw symbol name followed by C symbol from nm.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5842 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5843 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846
5847 # These are sane defaults that work on at least a few old systems.
5848 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5849
5850 # Character class describing NM global symbol codes.
5851 symcode='[BCDEGRST]'
5852
5853 # Regexp to match symbols that can be accessed directly from C.
5854 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5855
5856 # Define system-specific variables.
5857 case $host_os in
5858 aix*)
5859   symcode='[BCDT]'
5860   ;;
5861 cygwin* | mingw* | pw32* | cegcc*)
5862   symcode='[ABCDGISTW]'
5863   ;;
5864 hpux*)
5865   if test "$host_cpu" = ia64; then
5866     symcode='[ABCDEGRST]'
5867   fi
5868   ;;
5869 irix* | nonstopux*)
5870   symcode='[BCDEGRST]'
5871   ;;
5872 osf*)
5873   symcode='[BCDEGQRST]'
5874   ;;
5875 solaris*)
5876   symcode='[BDRT]'
5877   ;;
5878 sco3.2v5*)
5879   symcode='[DT]'
5880   ;;
5881 sysv4.2uw2*)
5882   symcode='[DT]'
5883   ;;
5884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5885   symcode='[ABDT]'
5886   ;;
5887 sysv4)
5888   symcode='[DFNSTU]'
5889   ;;
5890 esac
5891
5892 # If we're using GNU nm, then use its standard symbol codes.
5893 case `$NM -V 2>&1` in
5894 *GNU* | *'with BFD'*)
5895   symcode='[ABCDGIRSTW]' ;;
5896 esac
5897
5898 # Transform an extracted symbol line into a proper C declaration.
5899 # Some systems (esp. on ia64) link data and code symbols differently,
5900 # so use this general approach.
5901 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5902
5903 # Transform an extracted symbol line into symbol name and symbol address
5904 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5905 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5906
5907 # Handle CRLF in mingw tool chain
5908 opt_cr=
5909 case $build_os in
5910 mingw*)
5911   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5912   ;;
5913 esac
5914
5915 # Try without a prefix underscore, then with it.
5916 for ac_symprfx in "" "_"; do
5917
5918   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5919   symxfrm="\\1 $ac_symprfx\\2 \\2"
5920
5921   # Write the raw and C identifiers.
5922   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5923     # Fake it for dumpbin and say T for any non-static function
5924     # and D for any global variable.
5925     # Also find C++ and __fastcall symbols from MSVC++,
5926     # which start with @ or ?.
5927     lt_cv_sys_global_symbol_pipe="$AWK '"\
5928 "     {last_section=section; section=\$ 3};"\
5929 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5930 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5931 "     \$ 0!~/External *\|/{next};"\
5932 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5933 "     {if(hide[section]) next};"\
5934 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5935 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5936 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5937 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5938 "     ' prfx=^$ac_symprfx"
5939   else
5940     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5941   fi
5942   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5943
5944   # Check to see that the pipe works correctly.
5945   pipe_works=no
5946
5947   rm -f conftest*
5948   cat > conftest.$ac_ext <<_LT_EOF
5949 #ifdef __cplusplus
5950 extern "C" {
5951 #endif
5952 char nm_test_var;
5953 void nm_test_func(void);
5954 void nm_test_func(void){}
5955 #ifdef __cplusplus
5956 }
5957 #endif
5958 int main(){nm_test_var='a';nm_test_func();return(0);}
5959 _LT_EOF
5960
5961   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962   (eval $ac_compile) 2>&5
5963   ac_status=$?
5964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965   test $ac_status = 0; }; then
5966     # Now try to grab the symbols.
5967     nlist=conftest.nm
5968     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5969   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5970   ac_status=$?
5971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972   test $ac_status = 0; } && test -s "$nlist"; then
5973       # Try sorting and uniquifying the output.
5974       if sort "$nlist" | uniq > "$nlist"T; then
5975         mv -f "$nlist"T "$nlist"
5976       else
5977         rm -f "$nlist"T
5978       fi
5979
5980       # Make sure that we snagged all the symbols we need.
5981       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5982         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5983           cat <<_LT_EOF > conftest.$ac_ext
5984 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5985 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5986 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5987    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5988 # define LT_DLSYM_CONST
5989 #elif defined(__osf__)
5990 /* This system does not cope well with relocations in const data.  */
5991 # define LT_DLSYM_CONST
5992 #else
5993 # define LT_DLSYM_CONST const
5994 #endif
5995
5996 #ifdef __cplusplus
5997 extern "C" {
5998 #endif
5999
6000 _LT_EOF
6001           # Now generate the symbol file.
6002           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6003
6004           cat <<_LT_EOF >> conftest.$ac_ext
6005
6006 /* The mapping between symbol names and symbols.  */
6007 LT_DLSYM_CONST struct {
6008   const char *name;
6009   void       *address;
6010 }
6011 lt__PROGRAM__LTX_preloaded_symbols[] =
6012 {
6013   { "@PROGRAM@", (void *) 0 },
6014 _LT_EOF
6015           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6016           cat <<\_LT_EOF >> conftest.$ac_ext
6017   {0, (void *) 0}
6018 };
6019
6020 /* This works around a problem in FreeBSD linker */
6021 #ifdef FREEBSD_WORKAROUND
6022 static const void *lt_preloaded_setup() {
6023   return lt__PROGRAM__LTX_preloaded_symbols;
6024 }
6025 #endif
6026
6027 #ifdef __cplusplus
6028 }
6029 #endif
6030 _LT_EOF
6031           # Now try linking the two files.
6032           mv conftest.$ac_objext conftstm.$ac_objext
6033           lt_globsym_save_LIBS=$LIBS
6034           lt_globsym_save_CFLAGS=$CFLAGS
6035           LIBS="conftstm.$ac_objext"
6036           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6037           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6038   (eval $ac_link) 2>&5
6039   ac_status=$?
6040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6042             pipe_works=yes
6043           fi
6044           LIBS=$lt_globsym_save_LIBS
6045           CFLAGS=$lt_globsym_save_CFLAGS
6046         else
6047           echo "cannot find nm_test_func in $nlist" >&5
6048         fi
6049       else
6050         echo "cannot find nm_test_var in $nlist" >&5
6051       fi
6052     else
6053       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6054     fi
6055   else
6056     echo "$progname: failed program was:" >&5
6057     cat conftest.$ac_ext >&5
6058   fi
6059   rm -rf conftest* conftst*
6060
6061   # Do not use the global_symbol_pipe unless it works.
6062   if test "$pipe_works" = yes; then
6063     break
6064   else
6065     lt_cv_sys_global_symbol_pipe=
6066   fi
6067 done
6068
6069 fi
6070
6071 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6072   lt_cv_sys_global_symbol_to_cdecl=
6073 fi
6074 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6076 $as_echo "failed" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6079 $as_echo "ok" >&6; }
6080 fi
6081
6082 # Response file support.
6083 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6084   nm_file_list_spec='@'
6085 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6086   nm_file_list_spec='@'
6087 fi
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6116 $as_echo_n "checking for sysroot... " >&6; }
6117
6118 # Check whether --with-sysroot was given.
6119 if test "${with_sysroot+set}" = set; then :
6120   withval=$with_sysroot;
6121 else
6122   with_sysroot=no
6123 fi
6124
6125
6126 lt_sysroot=
6127 case ${with_sysroot} in #(
6128  yes)
6129    if test "$GCC" = yes; then
6130      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6131    fi
6132    ;; #(
6133  /*)
6134    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6135    ;; #(
6136  no|'')
6137    ;; #(
6138  *)
6139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6140 $as_echo "${with_sysroot}" >&6; }
6141    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6142    ;;
6143 esac
6144
6145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6146 $as_echo "${lt_sysroot:-no}" >&6; }
6147
6148
6149
6150
6151
6152 # Check whether --enable-libtool-lock was given.
6153 if test "${enable_libtool_lock+set}" = set; then :
6154   enableval=$enable_libtool_lock;
6155 fi
6156
6157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6158
6159 # Some flags need to be propagated to the compiler or linker for good
6160 # libtool support.
6161 case $host in
6162 ia64-*-hpux*)
6163   # Find out which ABI we are using.
6164   echo 'int i;' > conftest.$ac_ext
6165   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6166   (eval $ac_compile) 2>&5
6167   ac_status=$?
6168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169   test $ac_status = 0; }; then
6170     case `/usr/bin/file conftest.$ac_objext` in
6171       *ELF-32*)
6172         HPUX_IA64_MODE="32"
6173         ;;
6174       *ELF-64*)
6175         HPUX_IA64_MODE="64"
6176         ;;
6177     esac
6178   fi
6179   rm -rf conftest*
6180   ;;
6181 *-*-irix6*)
6182   # Find out which ABI we are using.
6183   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6185   (eval $ac_compile) 2>&5
6186   ac_status=$?
6187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188   test $ac_status = 0; }; then
6189     if test "$lt_cv_prog_gnu_ld" = yes; then
6190       case `/usr/bin/file conftest.$ac_objext` in
6191         *32-bit*)
6192           LD="${LD-ld} -melf32bsmip"
6193           ;;
6194         *N32*)
6195           LD="${LD-ld} -melf32bmipn32"
6196           ;;
6197         *64-bit*)
6198           LD="${LD-ld} -melf64bmip"
6199         ;;
6200       esac
6201     else
6202       case `/usr/bin/file conftest.$ac_objext` in
6203         *32-bit*)
6204           LD="${LD-ld} -32"
6205           ;;
6206         *N32*)
6207           LD="${LD-ld} -n32"
6208           ;;
6209         *64-bit*)
6210           LD="${LD-ld} -64"
6211           ;;
6212       esac
6213     fi
6214   fi
6215   rm -rf conftest*
6216   ;;
6217
6218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6220   # Find out which ABI we are using.
6221   echo 'int i;' > conftest.$ac_ext
6222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223   (eval $ac_compile) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; }; then
6227     case `/usr/bin/file conftest.o` in
6228       *32-bit*)
6229         case $host in
6230           x86_64-*kfreebsd*-gnu)
6231             LD="${LD-ld} -m elf_i386_fbsd"
6232             ;;
6233           x86_64-*linux*)
6234             case `/usr/bin/file conftest.o` in
6235               *x86-64*)
6236                 LD="${LD-ld} -m elf32_x86_64"
6237                 ;;
6238               *)
6239                 LD="${LD-ld} -m elf_i386"
6240                 ;;
6241             esac
6242             ;;
6243           ppc64-*linux*|powerpc64-*linux*)
6244             LD="${LD-ld} -m elf32ppclinux"
6245             ;;
6246           s390x-*linux*)
6247             LD="${LD-ld} -m elf_s390"
6248             ;;
6249           sparc64-*linux*)
6250             LD="${LD-ld} -m elf32_sparc"
6251             ;;
6252         esac
6253         ;;
6254       *64-bit*)
6255         case $host in
6256           x86_64-*kfreebsd*-gnu)
6257             LD="${LD-ld} -m elf_x86_64_fbsd"
6258             ;;
6259           x86_64-*linux*)
6260             LD="${LD-ld} -m elf_x86_64"
6261             ;;
6262           ppc*-*linux*|powerpc*-*linux*)
6263             LD="${LD-ld} -m elf64ppc"
6264             ;;
6265           s390*-*linux*|s390*-*tpf*)
6266             LD="${LD-ld} -m elf64_s390"
6267             ;;
6268           sparc*-*linux*)
6269             LD="${LD-ld} -m elf64_sparc"
6270             ;;
6271         esac
6272         ;;
6273     esac
6274   fi
6275   rm -rf conftest*
6276   ;;
6277
6278 *-*-sco3.2v5*)
6279   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6280   SAVE_CFLAGS="$CFLAGS"
6281   CFLAGS="$CFLAGS -belf"
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6283 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6284 if ${lt_cv_cc_needs_belf+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   ac_ext=c
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292
6293      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h.  */
6295
6296 int
6297 main ()
6298 {
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_link "$LINENO"; then :
6305   lt_cv_cc_needs_belf=yes
6306 else
6307   lt_cv_cc_needs_belf=no
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext \
6310     conftest$ac_exeext conftest.$ac_ext
6311      ac_ext=c
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6319 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6320   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6321     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6322     CFLAGS="$SAVE_CFLAGS"
6323   fi
6324   ;;
6325 *-*solaris*)
6326   # Find out which ABI we are using.
6327   echo 'int i;' > conftest.$ac_ext
6328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329   (eval $ac_compile) 2>&5
6330   ac_status=$?
6331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332   test $ac_status = 0; }; then
6333     case `/usr/bin/file conftest.o` in
6334     *64-bit*)
6335       case $lt_cv_prog_gnu_ld in
6336       yes*)
6337         case $host in
6338         i?86-*-solaris*)
6339           LD="${LD-ld} -m elf_x86_64"
6340           ;;
6341         sparc*-*-solaris*)
6342           LD="${LD-ld} -m elf64_sparc"
6343           ;;
6344         esac
6345         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6346         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6347           LD="${LD-ld}_sol2"
6348         fi
6349         ;;
6350       *)
6351         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6352           LD="${LD-ld} -64"
6353         fi
6354         ;;
6355       esac
6356       ;;
6357     esac
6358   fi
6359   rm -rf conftest*
6360   ;;
6361 esac
6362
6363 need_locks="$enable_libtool_lock"
6364
6365 if test -n "$ac_tool_prefix"; then
6366   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}mt; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   if test -n "$MANIFEST_TOOL"; then
6374   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388   done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6394 if test -n "$MANIFEST_TOOL"; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6396 $as_echo "$MANIFEST_TOOL" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6405   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6406   # Extract the first word of "mt", so it can be a program name with args.
6407 set dummy mt; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_MANIFEST_TOOL"; then
6414   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6434 if test -n "$ac_ct_MANIFEST_TOOL"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6436 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6443     MANIFEST_TOOL=":"
6444   else
6445     case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6452   fi
6453 else
6454   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6455 fi
6456
6457 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6459 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6460 if ${lt_cv_path_mainfest_tool+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   lt_cv_path_mainfest_tool=no
6464   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6465   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6466   cat conftest.err >&5
6467   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6468     lt_cv_path_mainfest_tool=yes
6469   fi
6470   rm -f conftest*
6471 fi
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6473 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6474 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6475   MANIFEST_TOOL=:
6476 fi
6477
6478
6479
6480
6481
6482
6483   case $host_os in
6484     rhapsody* | darwin*)
6485     if test -n "$ac_tool_prefix"; then
6486   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   if test -n "$DSYMUTIL"; then
6494   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499   IFS=$as_save_IFS
6500   test -z "$as_dir" && as_dir=.
6501     for ac_exec_ext in '' $ac_executable_extensions; do
6502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505     break 2
6506   fi
6507 done
6508   done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6514 if test -n "$DSYMUTIL"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6516 $as_echo "$DSYMUTIL" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_DSYMUTIL"; then
6525   ac_ct_DSYMUTIL=$DSYMUTIL
6526   # Extract the first word of "dsymutil", so it can be a program name with args.
6527 set dummy dsymutil; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$ac_ct_DSYMUTIL"; then
6534   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6554 if test -n "$ac_ct_DSYMUTIL"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6556 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562   if test "x$ac_ct_DSYMUTIL" = x; then
6563     DSYMUTIL=":"
6564   else
6565     case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571     DSYMUTIL=$ac_ct_DSYMUTIL
6572   fi
6573 else
6574   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6575 fi
6576
6577     if test -n "$ac_tool_prefix"; then
6578   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_NMEDIT+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   if test -n "$NMEDIT"; then
6586   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593     for ac_exec_ext in '' $ac_executable_extensions; do
6594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600   done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 NMEDIT=$ac_cv_prog_NMEDIT
6606 if test -n "$NMEDIT"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6608 $as_echo "$NMEDIT" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_NMEDIT"; then
6617   ac_ct_NMEDIT=$NMEDIT
6618   # Extract the first word of "nmedit", so it can be a program name with args.
6619 set dummy nmedit; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$ac_ct_NMEDIT"; then
6626   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6646 if test -n "$ac_ct_NMEDIT"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6648 $as_echo "$ac_ct_NMEDIT" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654   if test "x$ac_ct_NMEDIT" = x; then
6655     NMEDIT=":"
6656   else
6657     case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663     NMEDIT=$ac_ct_NMEDIT
6664   fi
6665 else
6666   NMEDIT="$ac_cv_prog_NMEDIT"
6667 fi
6668
6669     if test -n "$ac_tool_prefix"; then
6670   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_LIPO+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$LIPO"; then
6678   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 LIPO=$ac_cv_prog_LIPO
6698 if test -n "$LIPO"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6700 $as_echo "$LIPO" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_LIPO"; then
6709   ac_ct_LIPO=$LIPO
6710   # Extract the first word of "lipo", so it can be a program name with args.
6711 set dummy lipo; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_LIPO"; then
6718   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_ac_ct_LIPO="lipo"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6738 if test -n "$ac_ct_LIPO"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6740 $as_echo "$ac_ct_LIPO" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746   if test "x$ac_ct_LIPO" = x; then
6747     LIPO=":"
6748   else
6749     case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     LIPO=$ac_ct_LIPO
6756   fi
6757 else
6758   LIPO="$ac_cv_prog_LIPO"
6759 fi
6760
6761     if test -n "$ac_tool_prefix"; then
6762   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}otool; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_OTOOL+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test -n "$OTOOL"; then
6770   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777     for ac_exec_ext in '' $ac_executable_extensions; do
6778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784   done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 OTOOL=$ac_cv_prog_OTOOL
6790 if test -n "$OTOOL"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6792 $as_echo "$OTOOL" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_OTOOL"; then
6801   ac_ct_OTOOL=$OTOOL
6802   # Extract the first word of "otool", so it can be a program name with args.
6803 set dummy otool; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   if test -n "$ac_ct_OTOOL"; then
6810   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815   IFS=$as_save_IFS
6816   test -z "$as_dir" && as_dir=.
6817     for ac_exec_ext in '' $ac_executable_extensions; do
6818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819     ac_cv_prog_ac_ct_OTOOL="otool"
6820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821     break 2
6822   fi
6823 done
6824   done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6830 if test -n "$ac_ct_OTOOL"; then
6831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6832 $as_echo "$ac_ct_OTOOL" >&6; }
6833 else
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838   if test "x$ac_ct_OTOOL" = x; then
6839     OTOOL=":"
6840   else
6841     case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     OTOOL=$ac_ct_OTOOL
6848   fi
6849 else
6850   OTOOL="$ac_cv_prog_OTOOL"
6851 fi
6852
6853     if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_OTOOL64+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$OTOOL64"; then
6862   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869     for ac_exec_ext in '' $ac_executable_extensions; do
6870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876   done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 OTOOL64=$ac_cv_prog_OTOOL64
6882 if test -n "$OTOOL64"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6884 $as_echo "$OTOOL64" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_OTOOL64"; then
6893   ac_ct_OTOOL64=$OTOOL64
6894   # Extract the first word of "otool64", so it can be a program name with args.
6895 set dummy otool64; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   if test -n "$ac_ct_OTOOL64"; then
6902   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909     for ac_exec_ext in '' $ac_executable_extensions; do
6910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911     ac_cv_prog_ac_ct_OTOOL64="otool64"
6912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916   done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6922 if test -n "$ac_ct_OTOOL64"; then
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6924 $as_echo "$ac_ct_OTOOL64" >&6; }
6925 else
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_OTOOL64" = x; then
6931     OTOOL64=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937 ac_tool_warned=yes ;;
6938 esac
6939     OTOOL64=$ac_ct_OTOOL64
6940   fi
6941 else
6942   OTOOL64="$ac_cv_prog_OTOOL64"
6943 fi
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6972 $as_echo_n "checking for -single_module linker flag... " >&6; }
6973 if ${lt_cv_apple_cc_single_mod+:} false; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_apple_cc_single_mod=no
6977       if test -z "${LT_MULTI_MODULE}"; then
6978         # By default we will add the -single_module flag. You can override
6979         # by either setting the environment variable LT_MULTI_MODULE
6980         # non-empty at configure time, or by adding -multi_module to the
6981         # link flags.
6982         rm -rf libconftest.dylib*
6983         echo "int foo(void){return 1;}" > conftest.c
6984         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6985 -dynamiclib -Wl,-single_module conftest.c" >&5
6986         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6988         _lt_result=$?
6989         # If there is a non-empty error log, and "single_module"
6990         # appears in it, assume the flag caused a linker warning
6991         if test -s conftest.err && $GREP single_module conftest.err; then
6992           cat conftest.err >&5
6993         # Otherwise, if the output was created with a 0 exit code from
6994         # the compiler, it worked.
6995         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6996           lt_cv_apple_cc_single_mod=yes
6997         else
6998           cat conftest.err >&5
6999         fi
7000         rm -rf libconftest.dylib*
7001         rm -f conftest.*
7002       fi
7003 fi
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7006
7007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7008 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7009 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   lt_cv_ld_exported_symbols_list=no
7013       save_LDFLAGS=$LDFLAGS
7014       echo "_main" > conftest.sym
7015       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7016       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h.  */
7018
7019 int
7020 main ()
7021 {
7022
7023   ;
7024   return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028   lt_cv_ld_exported_symbols_list=yes
7029 else
7030   lt_cv_ld_exported_symbols_list=no
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext \
7033     conftest$ac_exeext conftest.$ac_ext
7034         LDFLAGS="$save_LDFLAGS"
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7038 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7039
7040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7041 $as_echo_n "checking for -force_load linker flag... " >&6; }
7042 if ${lt_cv_ld_force_load+:} false; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   lt_cv_ld_force_load=no
7046       cat > conftest.c << _LT_EOF
7047 int forced_loaded() { return 2;}
7048 _LT_EOF
7049       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7050       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7051       echo "$AR cru libconftest.a conftest.o" >&5
7052       $AR cru libconftest.a conftest.o 2>&5
7053       echo "$RANLIB libconftest.a" >&5
7054       $RANLIB libconftest.a 2>&5
7055       cat > conftest.c << _LT_EOF
7056 int main() { return 0;}
7057 _LT_EOF
7058       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7059       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7060       _lt_result=$?
7061       if test -s conftest.err && $GREP force_load conftest.err; then
7062         cat conftest.err >&5
7063       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7064         lt_cv_ld_force_load=yes
7065       else
7066         cat conftest.err >&5
7067       fi
7068         rm -f conftest.err libconftest.a conftest conftest.c
7069         rm -rf conftest.dSYM
7070
7071 fi
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7073 $as_echo "$lt_cv_ld_force_load" >&6; }
7074     case $host_os in
7075     rhapsody* | darwin1.[012])
7076       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7077     darwin1.*)
7078       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079     darwin*) # darwin 5.x on
7080       # if running on 10.5 or later, the deployment target defaults
7081       # to the OS version, if on x86, and 10.4, the deployment
7082       # target defaults to 10.4. Don't you love it?
7083       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7084         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7085           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7086         10.[012]*)
7087           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7088         10.*)
7089           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090       esac
7091     ;;
7092   esac
7093     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7094       _lt_dar_single_mod='$single_module'
7095     fi
7096     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7097       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7098     else
7099       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7100     fi
7101     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7102       _lt_dsymutil='~$DSYMUTIL $lib || :'
7103     else
7104       _lt_dsymutil=
7105     fi
7106     ;;
7107   esac
7108
7109 ac_ext=c
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7116 # On Suns, sometimes $CPP names a directory.
7117 if test -n "$CPP" && test -d "$CPP"; then
7118   CPP=
7119 fi
7120 if test -z "$CPP"; then
7121   if ${ac_cv_prog_CPP+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124       # Double quotes because CPP needs to be expanded
7125     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7126     do
7127       ac_preproc_ok=false
7128 for ac_c_preproc_warn_flag in '' yes
7129 do
7130   # Use a header file that comes with gcc, so configuring glibc
7131   # with a fresh cross-compiler works.
7132   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133   # <limits.h> exists even on freestanding compilers.
7134   # On the NeXT, cc -E runs the code through the compiler's parser,
7135   # not just through cpp. "Syntax error" is here to catch this case.
7136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h.  */
7138 #ifdef __STDC__
7139 # include <limits.h>
7140 #else
7141 # include <assert.h>
7142 #endif
7143                      Syntax error
7144 _ACEOF
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7146
7147 else
7148   # Broken: fails on valid input.
7149 continue
7150 fi
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153   # OK, works on sane cases.  Now check whether nonexistent headers
7154   # can be detected and how.
7155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157 #include <ac_nonexistent.h>
7158 _ACEOF
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160   # Broken: success on invalid input.
7161 continue
7162 else
7163   # Passes both tests.
7164 ac_preproc_ok=:
7165 break
7166 fi
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169 done
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7173   break
7174 fi
7175
7176     done
7177     ac_cv_prog_CPP=$CPP
7178
7179 fi
7180   CPP=$ac_cv_prog_CPP
7181 else
7182   ac_cv_prog_CPP=$CPP
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185 $as_echo "$CPP" >&6; }
7186 ac_preproc_ok=false
7187 for ac_c_preproc_warn_flag in '' yes
7188 do
7189   # Use a header file that comes with gcc, so configuring glibc
7190   # with a fresh cross-compiler works.
7191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192   # <limits.h> exists even on freestanding compilers.
7193   # On the NeXT, cc -E runs the code through the compiler's parser,
7194   # not just through cpp. "Syntax error" is here to catch this case.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #ifdef __STDC__
7198 # include <limits.h>
7199 #else
7200 # include <assert.h>
7201 #endif
7202                      Syntax error
7203 _ACEOF
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205
7206 else
7207   # Broken: fails on valid input.
7208 continue
7209 fi
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212   # OK, works on sane cases.  Now check whether nonexistent headers
7213   # can be detected and how.
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <ac_nonexistent.h>
7217 _ACEOF
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219   # Broken: success on invalid input.
7220 continue
7221 else
7222   # Passes both tests.
7223 ac_preproc_ok=:
7224 break
7225 fi
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228 done
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7232
7233 else
7234   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237 See \`config.log' for more details" "$LINENO" 5; }
7238 fi
7239
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7248 $as_echo_n "checking for ANSI C header files... " >&6; }
7249 if ${ac_cv_header_stdc+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254 #include <stdlib.h>
7255 #include <stdarg.h>
7256 #include <string.h>
7257 #include <float.h>
7258
7259 int
7260 main ()
7261 {
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_compile "$LINENO"; then :
7268   ac_cv_header_stdc=yes
7269 else
7270   ac_cv_header_stdc=no
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273
7274 if test $ac_cv_header_stdc = yes; then
7275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278 #include <string.h>
7279
7280 _ACEOF
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282   $EGREP "memchr" >/dev/null 2>&1; then :
7283
7284 else
7285   ac_cv_header_stdc=no
7286 fi
7287 rm -f conftest*
7288
7289 fi
7290
7291 if test $ac_cv_header_stdc = yes; then
7292   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h.  */
7295 #include <stdlib.h>
7296
7297 _ACEOF
7298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299   $EGREP "free" >/dev/null 2>&1; then :
7300
7301 else
7302   ac_cv_header_stdc=no
7303 fi
7304 rm -f conftest*
7305
7306 fi
7307
7308 if test $ac_cv_header_stdc = yes; then
7309   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310   if test "$cross_compiling" = yes; then :
7311   :
7312 else
7313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315 #include <ctype.h>
7316 #include <stdlib.h>
7317 #if ((' ' & 0x0FF) == 0x020)
7318 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7319 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7320 #else
7321 # define ISLOWER(c) \
7322                    (('a' <= (c) && (c) <= 'i') \
7323                      || ('j' <= (c) && (c) <= 'r') \
7324                      || ('s' <= (c) && (c) <= 'z'))
7325 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7326 #endif
7327
7328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7329 int
7330 main ()
7331 {
7332   int i;
7333   for (i = 0; i < 256; i++)
7334     if (XOR (islower (i), ISLOWER (i))
7335         || toupper (i) != TOUPPER (i))
7336       return 2;
7337   return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_run "$LINENO"; then :
7341
7342 else
7343   ac_cv_header_stdc=no
7344 fi
7345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346   conftest.$ac_objext conftest.beam conftest.$ac_ext
7347 fi
7348
7349 fi
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7352 $as_echo "$ac_cv_header_stdc" >&6; }
7353 if test $ac_cv_header_stdc = yes; then
7354
7355 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7356
7357 fi
7358
7359 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7361                   inttypes.h stdint.h unistd.h
7362 do :
7363   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7365 "
7366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367   cat >>confdefs.h <<_ACEOF
7368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369 _ACEOF
7370
7371 fi
7372
7373 done
7374
7375
7376 for ac_header in dlfcn.h
7377 do :
7378   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7379 "
7380 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7381   cat >>confdefs.h <<_ACEOF
7382 #define HAVE_DLFCN_H 1
7383 _ACEOF
7384
7385 fi
7386
7387 done
7388
7389
7390
7391
7392
7393 # Set options
7394 enable_dlopen=yes
7395 enable_win32_dll=yes
7396
7397 case $host in
7398 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7399   if test -n "$ac_tool_prefix"; then
7400   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}as; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_prog_AS+:} false; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407   if test -n "$AS"; then
7408   ac_cv_prog_AS="$AS" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417     ac_cv_prog_AS="${ac_tool_prefix}as"
7418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 AS=$ac_cv_prog_AS
7428 if test -n "$AS"; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7430 $as_echo "$AS" >&6; }
7431 else
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436
7437 fi
7438 if test -z "$ac_cv_prog_AS"; then
7439   ac_ct_AS=$AS
7440   # Extract the first word of "as", so it can be a program name with args.
7441 set dummy as; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   if test -n "$ac_ct_AS"; then
7448   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455     for ac_exec_ext in '' $ac_executable_extensions; do
7456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457     ac_cv_prog_ac_ct_AS="as"
7458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462   done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7468 if test -n "$ac_ct_AS"; then
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7470 $as_echo "$ac_ct_AS" >&6; }
7471 else
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476   if test "x$ac_ct_AS" = x; then
7477     AS="false"
7478   else
7479     case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485     AS=$ac_ct_AS
7486   fi
7487 else
7488   AS="$ac_cv_prog_AS"
7489 fi
7490
7491   if test -n "$ac_tool_prefix"; then
7492   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_prog_DLLTOOL+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   if test -n "$DLLTOOL"; then
7500   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7501 else
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507     for ac_exec_ext in '' $ac_executable_extensions; do
7508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514   done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 DLLTOOL=$ac_cv_prog_DLLTOOL
7520 if test -n "$DLLTOOL"; then
7521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7522 $as_echo "$DLLTOOL" >&6; }
7523 else
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7526 fi
7527
7528
7529 fi
7530 if test -z "$ac_cv_prog_DLLTOOL"; then
7531   ac_ct_DLLTOOL=$DLLTOOL
7532   # Extract the first word of "dlltool", so it can be a program name with args.
7533 set dummy dlltool; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   if test -n "$ac_ct_DLLTOOL"; then
7540   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545   IFS=$as_save_IFS
7546   test -z "$as_dir" && as_dir=.
7547     for ac_exec_ext in '' $ac_executable_extensions; do
7548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551     break 2
7552   fi
7553 done
7554   done
7555 IFS=$as_save_IFS
7556
7557 fi
7558 fi
7559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7560 if test -n "$ac_ct_DLLTOOL"; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7562 $as_echo "$ac_ct_DLLTOOL" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566 fi
7567
7568   if test "x$ac_ct_DLLTOOL" = x; then
7569     DLLTOOL="false"
7570   else
7571     case $cross_compiling:$ac_tool_warned in
7572 yes:)
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575 ac_tool_warned=yes ;;
7576 esac
7577     DLLTOOL=$ac_ct_DLLTOOL
7578   fi
7579 else
7580   DLLTOOL="$ac_cv_prog_DLLTOOL"
7581 fi
7582
7583   if test -n "$ac_tool_prefix"; then
7584   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_OBJDUMP+:} false; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   if test -n "$OBJDUMP"; then
7592   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599     for ac_exec_ext in '' $ac_executable_extensions; do
7600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606   done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 OBJDUMP=$ac_cv_prog_OBJDUMP
7612 if test -n "$OBJDUMP"; then
7613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7614 $as_echo "$OBJDUMP" >&6; }
7615 else
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_prog_OBJDUMP"; then
7623   ac_ct_OBJDUMP=$OBJDUMP
7624   # Extract the first word of "objdump", so it can be a program name with args.
7625 set dummy objdump; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   if test -n "$ac_ct_OBJDUMP"; then
7632   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639     for ac_exec_ext in '' $ac_executable_extensions; do
7640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646   done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7652 if test -n "$ac_ct_OBJDUMP"; then
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7654 $as_echo "$ac_ct_OBJDUMP" >&6; }
7655 else
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 fi
7659
7660   if test "x$ac_ct_OBJDUMP" = x; then
7661     OBJDUMP="false"
7662   else
7663     case $cross_compiling:$ac_tool_warned in
7664 yes:)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7668 esac
7669     OBJDUMP=$ac_ct_OBJDUMP
7670   fi
7671 else
7672   OBJDUMP="$ac_cv_prog_OBJDUMP"
7673 fi
7674
7675   ;;
7676 esac
7677
7678 test -z "$AS" && AS=as
7679
7680
7681
7682
7683
7684 test -z "$DLLTOOL" && DLLTOOL=dlltool
7685
7686
7687
7688
7689
7690 test -z "$OBJDUMP" && OBJDUMP=objdump
7691
7692
7693
7694
7695 # Check whether --enable-static was given.
7696 if test "${enable_static+set}" = set; then :
7697   enableval=$enable_static; p=${PACKAGE-default}
7698     case $enableval in
7699     yes) enable_static=yes ;;
7700     no) enable_static=no ;;
7701     *)
7702      enable_static=no
7703       # Look at the argument we got.  We use all the common list separators.
7704       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7705       for pkg in $enableval; do
7706         IFS="$lt_save_ifs"
7707         if test "X$pkg" = "X$p"; then
7708           enable_static=yes
7709         fi
7710       done
7711       IFS="$lt_save_ifs"
7712       ;;
7713     esac
7714 else
7715   enable_static=no
7716 fi
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729             # Check whether --enable-shared was given.
7730 if test "${enable_shared+set}" = set; then :
7731   enableval=$enable_shared; p=${PACKAGE-default}
7732     case $enableval in
7733     yes) enable_shared=yes ;;
7734     no) enable_shared=no ;;
7735     *)
7736       enable_shared=no
7737       # Look at the argument we got.  We use all the common list separators.
7738       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739       for pkg in $enableval; do
7740         IFS="$lt_save_ifs"
7741         if test "X$pkg" = "X$p"; then
7742           enable_shared=yes
7743         fi
7744       done
7745       IFS="$lt_save_ifs"
7746       ;;
7747     esac
7748 else
7749   enable_shared=yes
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 # Check whether --with-pic was given.
7763 if test "${with_pic+set}" = set; then :
7764   withval=$with_pic; lt_p=${PACKAGE-default}
7765     case $withval in
7766     yes|no) pic_mode=$withval ;;
7767     *)
7768       pic_mode=default
7769       # Look at the argument we got.  We use all the common list separators.
7770       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7771       for lt_pkg in $withval; do
7772         IFS="$lt_save_ifs"
7773         if test "X$lt_pkg" = "X$lt_p"; then
7774           pic_mode=yes
7775         fi
7776       done
7777       IFS="$lt_save_ifs"
7778       ;;
7779     esac
7780 else
7781   pic_mode=default
7782 fi
7783
7784
7785 test -z "$pic_mode" && pic_mode=default
7786
7787
7788
7789
7790
7791
7792
7793   # Check whether --enable-fast-install was given.
7794 if test "${enable_fast_install+set}" = set; then :
7795   enableval=$enable_fast_install; p=${PACKAGE-default}
7796     case $enableval in
7797     yes) enable_fast_install=yes ;;
7798     no) enable_fast_install=no ;;
7799     *)
7800       enable_fast_install=no
7801       # Look at the argument we got.  We use all the common list separators.
7802       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803       for pkg in $enableval; do
7804         IFS="$lt_save_ifs"
7805         if test "X$pkg" = "X$p"; then
7806           enable_fast_install=yes
7807         fi
7808       done
7809       IFS="$lt_save_ifs"
7810       ;;
7811     esac
7812 else
7813   enable_fast_install=yes
7814 fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 # This can be used to rebuild libtool when needed
7827 LIBTOOL_DEPS="$ltmain"
7828
7829 # Always use our own libtool.
7830 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 test -z "$LN_S" && LN_S="ln -s"
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 if test -n "${ZSH_VERSION+set}" ; then
7877    setopt NO_GLOB_SUBST
7878 fi
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7881 $as_echo_n "checking for objdir... " >&6; }
7882 if ${lt_cv_objdir+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   rm -f .libs 2>/dev/null
7886 mkdir .libs 2>/dev/null
7887 if test -d .libs; then
7888   lt_cv_objdir=.libs
7889 else
7890   # MS-DOS does not allow filenames that begin with a dot.
7891   lt_cv_objdir=_libs
7892 fi
7893 rmdir .libs 2>/dev/null
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7896 $as_echo "$lt_cv_objdir" >&6; }
7897 objdir=$lt_cv_objdir
7898
7899
7900
7901
7902
7903 cat >>confdefs.h <<_ACEOF
7904 #define LT_OBJDIR "$lt_cv_objdir/"
7905 _ACEOF
7906
7907
7908
7909
7910 case $host_os in
7911 aix3*)
7912   # AIX sometimes has problems with the GCC collect2 program.  For some
7913   # reason, if we set the COLLECT_NAMES environment variable, the problems
7914   # vanish in a puff of smoke.
7915   if test "X${COLLECT_NAMES+set}" != Xset; then
7916     COLLECT_NAMES=
7917     export COLLECT_NAMES
7918   fi
7919   ;;
7920 esac
7921
7922 # Global variables:
7923 ofile=libtool
7924 can_build_shared=yes
7925
7926 # All known linkers require a `.a' archive for static linking (except MSVC,
7927 # which needs '.lib').
7928 libext=a
7929
7930 with_gnu_ld="$lt_cv_prog_gnu_ld"
7931
7932 old_CC="$CC"
7933 old_CFLAGS="$CFLAGS"
7934
7935 # Set sane defaults for various variables
7936 test -z "$CC" && CC=cc
7937 test -z "$LTCC" && LTCC=$CC
7938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7939 test -z "$LD" && LD=ld
7940 test -z "$ac_objext" && ac_objext=o
7941
7942 for cc_temp in $compiler""; do
7943   case $cc_temp in
7944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7946     \-*) ;;
7947     *) break;;
7948   esac
7949 done
7950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7951
7952
7953 # Only perform the check for file, if the check method requires it
7954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7955 case $deplibs_check_method in
7956 file_magic*)
7957   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7959 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7960 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   case $MAGIC_CMD in
7964 [\\/*] |  ?:[\\/]*)
7965   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966   ;;
7967 *)
7968   lt_save_MAGIC_CMD="$MAGIC_CMD"
7969   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971   for ac_dir in $ac_dummy; do
7972     IFS="$lt_save_ifs"
7973     test -z "$ac_dir" && ac_dir=.
7974     if test -f $ac_dir/${ac_tool_prefix}file; then
7975       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7976       if test -n "$file_magic_test_file"; then
7977         case $deplibs_check_method in
7978         "file_magic "*)
7979           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982             $EGREP "$file_magic_regex" > /dev/null; then
7983             :
7984           else
7985             cat <<_LT_EOF 1>&2
7986
7987 *** Warning: the command libtool uses to detect shared libraries,
7988 *** $file_magic_cmd, produces output that libtool cannot recognize.
7989 *** The result is that libtool may fail to recognize shared libraries
7990 *** as such.  This will affect the creation of libtool libraries that
7991 *** depend on shared libraries, but programs linked with such libtool
7992 *** libraries will work regardless of this problem.  Nevertheless, you
7993 *** may want to report the problem to your system manager and/or to
7994 *** bug-libtool@gnu.org
7995
7996 _LT_EOF
7997           fi ;;
7998         esac
7999       fi
8000       break
8001     fi
8002   done
8003   IFS="$lt_save_ifs"
8004   MAGIC_CMD="$lt_save_MAGIC_CMD"
8005   ;;
8006 esac
8007 fi
8008
8009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010 if test -n "$MAGIC_CMD"; then
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8012 $as_echo "$MAGIC_CMD" >&6; }
8013 else
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019
8020
8021
8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
8023   if test -n "$ac_tool_prefix"; then
8024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8025 $as_echo_n "checking for file... " >&6; }
8026 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   case $MAGIC_CMD in
8030 [\\/*] |  ?:[\\/]*)
8031   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8032   ;;
8033 *)
8034   lt_save_MAGIC_CMD="$MAGIC_CMD"
8035   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037   for ac_dir in $ac_dummy; do
8038     IFS="$lt_save_ifs"
8039     test -z "$ac_dir" && ac_dir=.
8040     if test -f $ac_dir/file; then
8041       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8042       if test -n "$file_magic_test_file"; then
8043         case $deplibs_check_method in
8044         "file_magic "*)
8045           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8046           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048             $EGREP "$file_magic_regex" > /dev/null; then
8049             :
8050           else
8051             cat <<_LT_EOF 1>&2
8052
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such.  This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem.  Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** bug-libtool@gnu.org
8061
8062 _LT_EOF
8063           fi ;;
8064         esac
8065       fi
8066       break
8067     fi
8068   done
8069   IFS="$lt_save_ifs"
8070   MAGIC_CMD="$lt_save_MAGIC_CMD"
8071   ;;
8072 esac
8073 fi
8074
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if test -n "$MAGIC_CMD"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8078 $as_echo "$MAGIC_CMD" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085   else
8086     MAGIC_CMD=:
8087   fi
8088 fi
8089
8090   fi
8091   ;;
8092 esac
8093
8094 # Use C for the default configuration in the libtool script
8095
8096 lt_save_CC="$CC"
8097 ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104 # Source file extension for C test sources.
8105 ac_ext=c
8106
8107 # Object file extension for compiled C test sources.
8108 objext=o
8109 objext=$objext
8110
8111 # Code to be used in simple compile tests
8112 lt_simple_compile_test_code="int some_variable = 0;"
8113
8114 # Code to be used in simple link tests
8115 lt_simple_link_test_code='int main(){return(0);}'
8116
8117
8118
8119
8120
8121
8122
8123 # If no C compiler was specified, use CC.
8124 LTCC=${LTCC-"$CC"}
8125
8126 # If no C compiler flags were specified, use CFLAGS.
8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8128
8129 # Allow CC to be a program name with arguments.
8130 compiler=$CC
8131
8132 # Save the default compiler, since it gets overwritten when the other
8133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8134 compiler_DEFAULT=$CC
8135
8136 # save warnings/boilerplate of simple test code
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8140 _lt_compiler_boilerplate=`cat conftest.err`
8141 $RM conftest*
8142
8143 ac_outfile=conftest.$ac_objext
8144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146 _lt_linker_boilerplate=`cat conftest.err`
8147 $RM -r conftest*
8148
8149
8150 ## CAVEAT EMPTOR:
8151 ## There is no encapsulation within the following macros, do not change
8152 ## the running order or otherwise move them around unless you know exactly
8153 ## what you are doing...
8154 if test -n "$compiler"; then
8155
8156 lt_prog_compiler_no_builtin_flag=
8157
8158 if test "$GCC" = yes; then
8159   case $cc_basename in
8160   nvcc*)
8161     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8162   *)
8163     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8164   esac
8165
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8167 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8168 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8169   $as_echo_n "(cached) " >&6
8170 else
8171   lt_cv_prog_compiler_rtti_exceptions=no
8172    ac_outfile=conftest.$ac_objext
8173    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174    lt_compiler_flag="-fno-rtti -fno-exceptions"
8175    # Insert the option either (1) after the last *FLAGS variable, or
8176    # (2) before a word containing "conftest.", or (3) at the end.
8177    # Note that $ac_compile itself does not contain backslashes and begins
8178    # with a dollar sign (not a hyphen), so the echo should work correctly.
8179    # The option is referenced via a variable to avoid confusing sed.
8180    lt_compile=`echo "$ac_compile" | $SED \
8181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183    -e 's:$: $lt_compiler_flag:'`
8184    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8185    (eval "$lt_compile" 2>conftest.err)
8186    ac_status=$?
8187    cat conftest.err >&5
8188    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189    if (exit $ac_status) && test -s "$ac_outfile"; then
8190      # The compiler can only warn and ignore the option if not recognized
8191      # So say no if there are warnings other than the usual output.
8192      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8193      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8195        lt_cv_prog_compiler_rtti_exceptions=yes
8196      fi
8197    fi
8198    $RM conftest*
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8202 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8203
8204 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8205     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8206 else
8207     :
8208 fi
8209
8210 fi
8211
8212
8213
8214
8215
8216
8217   lt_prog_compiler_wl=
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_static=
8220
8221
8222   if test "$GCC" = yes; then
8223     lt_prog_compiler_wl='-Wl,'
8224     lt_prog_compiler_static='-static'
8225
8226     case $host_os in
8227       aix*)
8228       # All AIX code is PIC.
8229       if test "$host_cpu" = ia64; then
8230         # AIX 5 now supports IA64 processor
8231         lt_prog_compiler_static='-Bstatic'
8232       fi
8233       ;;
8234
8235     amigaos*)
8236       case $host_cpu in
8237       powerpc)
8238             # see comment about AmigaOS4 .so support
8239             lt_prog_compiler_pic='-fPIC'
8240         ;;
8241       m68k)
8242             # FIXME: we need at least 68020 code to build shared libraries, but
8243             # adding the `-m68020' flag to GCC prevents building anything better,
8244             # like `-m68040'.
8245             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8246         ;;
8247       esac
8248       ;;
8249
8250     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8251       # PIC is the default for these OSes.
8252       ;;
8253
8254     mingw* | cygwin* | pw32* | os2* | cegcc*)
8255       # This hack is so that the source file can tell whether it is being
8256       # built for inclusion in a dll (and should export symbols for example).
8257       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8258       # (--disable-auto-import) libraries
8259       lt_prog_compiler_pic='-DDLL_EXPORT'
8260       ;;
8261
8262     darwin* | rhapsody*)
8263       # PIC is the default on this platform
8264       # Common symbols not allowed in MH_DYLIB files
8265       lt_prog_compiler_pic='-fno-common'
8266       ;;
8267
8268     haiku*)
8269       # PIC is the default for Haiku.
8270       # The "-static" flag exists, but is broken.
8271       lt_prog_compiler_static=
8272       ;;
8273
8274     hpux*)
8275       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8276       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8277       # sets the default TLS model and affects inlining.
8278       case $host_cpu in
8279       hppa*64*)
8280         # +Z the default
8281         ;;
8282       *)
8283         lt_prog_compiler_pic='-fPIC'
8284         ;;
8285       esac
8286       ;;
8287
8288     interix[3-9]*)
8289       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8290       # Instead, we relocate shared libraries at runtime.
8291       ;;
8292
8293     msdosdjgpp*)
8294       # Just because we use GCC doesn't mean we suddenly get shared libraries
8295       # on systems that don't support them.
8296       lt_prog_compiler_can_build_shared=no
8297       enable_shared=no
8298       ;;
8299
8300     *nto* | *qnx*)
8301       # QNX uses GNU C++, but need to define -shared option too, otherwise
8302       # it will coredump.
8303       lt_prog_compiler_pic='-fPIC -shared'
8304       ;;
8305
8306     sysv4*MP*)
8307       if test -d /usr/nec; then
8308         lt_prog_compiler_pic=-Kconform_pic
8309       fi
8310       ;;
8311
8312     *)
8313       lt_prog_compiler_pic='-fPIC'
8314       ;;
8315     esac
8316
8317     case $cc_basename in
8318     nvcc*) # Cuda Compiler Driver 2.2
8319       lt_prog_compiler_wl='-Xlinker '
8320       if test -n "$lt_prog_compiler_pic"; then
8321         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8322       fi
8323       ;;
8324     esac
8325   else
8326     # PORTME Check for flag to pass linker flags through the system compiler.
8327     case $host_os in
8328     aix*)
8329       lt_prog_compiler_wl='-Wl,'
8330       if test "$host_cpu" = ia64; then
8331         # AIX 5 now supports IA64 processor
8332         lt_prog_compiler_static='-Bstatic'
8333       else
8334         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8335       fi
8336       ;;
8337
8338     mingw* | cygwin* | pw32* | os2* | cegcc*)
8339       # This hack is so that the source file can tell whether it is being
8340       # built for inclusion in a dll (and should export symbols for example).
8341       lt_prog_compiler_pic='-DDLL_EXPORT'
8342       ;;
8343
8344     hpux9* | hpux10* | hpux11*)
8345       lt_prog_compiler_wl='-Wl,'
8346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8347       # not for PA HP-UX.
8348       case $host_cpu in
8349       hppa*64*|ia64*)
8350         # +Z the default
8351         ;;
8352       *)
8353         lt_prog_compiler_pic='+Z'
8354         ;;
8355       esac
8356       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8357       lt_prog_compiler_static='${wl}-a ${wl}archive'
8358       ;;
8359
8360     irix5* | irix6* | nonstopux*)
8361       lt_prog_compiler_wl='-Wl,'
8362       # PIC (with -KPIC) is the default.
8363       lt_prog_compiler_static='-non_shared'
8364       ;;
8365
8366     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8367       case $cc_basename in
8368       # old Intel for x86_64 which still supported -KPIC.
8369       ecc*)
8370         lt_prog_compiler_wl='-Wl,'
8371         lt_prog_compiler_pic='-KPIC'
8372         lt_prog_compiler_static='-static'
8373         ;;
8374       # icc used to be incompatible with GCC.
8375       # ICC 10 doesn't accept -KPIC any more.
8376       icc* | ifort*)
8377         lt_prog_compiler_wl='-Wl,'
8378         lt_prog_compiler_pic='-fPIC'
8379         lt_prog_compiler_static='-static'
8380         ;;
8381       # Lahey Fortran 8.1.
8382       lf95*)
8383         lt_prog_compiler_wl='-Wl,'
8384         lt_prog_compiler_pic='--shared'
8385         lt_prog_compiler_static='--static'
8386         ;;
8387       nagfor*)
8388         # NAG Fortran compiler
8389         lt_prog_compiler_wl='-Wl,-Wl,,'
8390         lt_prog_compiler_pic='-PIC'
8391         lt_prog_compiler_static='-Bstatic'
8392         ;;
8393       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8394         # Portland Group compilers (*not* the Pentium gcc compiler,
8395         # which looks to be a dead project)
8396         lt_prog_compiler_wl='-Wl,'
8397         lt_prog_compiler_pic='-fpic'
8398         lt_prog_compiler_static='-Bstatic'
8399         ;;
8400       ccc*)
8401         lt_prog_compiler_wl='-Wl,'
8402         # All Alpha code is PIC.
8403         lt_prog_compiler_static='-non_shared'
8404         ;;
8405       xl* | bgxl* | bgf* | mpixl*)
8406         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8407         lt_prog_compiler_wl='-Wl,'
8408         lt_prog_compiler_pic='-qpic'
8409         lt_prog_compiler_static='-qstaticlink'
8410         ;;
8411       *)
8412         case `$CC -V 2>&1 | sed 5q` in
8413         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8414           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8415           lt_prog_compiler_pic='-KPIC'
8416           lt_prog_compiler_static='-Bstatic'
8417           lt_prog_compiler_wl=''
8418           ;;
8419         *Sun\ F* | *Sun*Fortran*)
8420           lt_prog_compiler_pic='-KPIC'
8421           lt_prog_compiler_static='-Bstatic'
8422           lt_prog_compiler_wl='-Qoption ld '
8423           ;;
8424         *Sun\ C*)
8425           # Sun C 5.9
8426           lt_prog_compiler_pic='-KPIC'
8427           lt_prog_compiler_static='-Bstatic'
8428           lt_prog_compiler_wl='-Wl,'
8429           ;;
8430         *Intel*\ [CF]*Compiler*)
8431           lt_prog_compiler_wl='-Wl,'
8432           lt_prog_compiler_pic='-fPIC'
8433           lt_prog_compiler_static='-static'
8434           ;;
8435         *Portland\ Group*)
8436           lt_prog_compiler_wl='-Wl,'
8437           lt_prog_compiler_pic='-fpic'
8438           lt_prog_compiler_static='-Bstatic'
8439           ;;
8440         esac
8441         ;;
8442       esac
8443       ;;
8444
8445     newsos6)
8446       lt_prog_compiler_pic='-KPIC'
8447       lt_prog_compiler_static='-Bstatic'
8448       ;;
8449
8450     *nto* | *qnx*)
8451       # QNX uses GNU C++, but need to define -shared option too, otherwise
8452       # it will coredump.
8453       lt_prog_compiler_pic='-fPIC -shared'
8454       ;;
8455
8456     osf3* | osf4* | osf5*)
8457       lt_prog_compiler_wl='-Wl,'
8458       # All OSF/1 code is PIC.
8459       lt_prog_compiler_static='-non_shared'
8460       ;;
8461
8462     rdos*)
8463       lt_prog_compiler_static='-non_shared'
8464       ;;
8465
8466     solaris*)
8467       lt_prog_compiler_pic='-KPIC'
8468       lt_prog_compiler_static='-Bstatic'
8469       case $cc_basename in
8470       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8471         lt_prog_compiler_wl='-Qoption ld ';;
8472       *)
8473         lt_prog_compiler_wl='-Wl,';;
8474       esac
8475       ;;
8476
8477     sunos4*)
8478       lt_prog_compiler_wl='-Qoption ld '
8479       lt_prog_compiler_pic='-PIC'
8480       lt_prog_compiler_static='-Bstatic'
8481       ;;
8482
8483     sysv4 | sysv4.2uw2* | sysv4.3*)
8484       lt_prog_compiler_wl='-Wl,'
8485       lt_prog_compiler_pic='-KPIC'
8486       lt_prog_compiler_static='-Bstatic'
8487       ;;
8488
8489     sysv4*MP*)
8490       if test -d /usr/nec ;then
8491         lt_prog_compiler_pic='-Kconform_pic'
8492         lt_prog_compiler_static='-Bstatic'
8493       fi
8494       ;;
8495
8496     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8497       lt_prog_compiler_wl='-Wl,'
8498       lt_prog_compiler_pic='-KPIC'
8499       lt_prog_compiler_static='-Bstatic'
8500       ;;
8501
8502     unicos*)
8503       lt_prog_compiler_wl='-Wl,'
8504       lt_prog_compiler_can_build_shared=no
8505       ;;
8506
8507     uts4*)
8508       lt_prog_compiler_pic='-pic'
8509       lt_prog_compiler_static='-Bstatic'
8510       ;;
8511
8512     *)
8513       lt_prog_compiler_can_build_shared=no
8514       ;;
8515     esac
8516   fi
8517
8518 case $host_os in
8519   # For platforms which do not support PIC, -DPIC is meaningless:
8520   *djgpp*)
8521     lt_prog_compiler_pic=
8522     ;;
8523   *)
8524     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8525     ;;
8526 esac
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8530 if ${lt_cv_prog_compiler_pic+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8536 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8537 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8538
8539 #
8540 # Check to make sure the PIC flag actually works.
8541 #
8542 if test -n "$lt_prog_compiler_pic"; then
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8545 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   lt_cv_prog_compiler_pic_works=no
8549    ac_outfile=conftest.$ac_objext
8550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8552    # Insert the option either (1) after the last *FLAGS variable, or
8553    # (2) before a word containing "conftest.", or (3) at the end.
8554    # Note that $ac_compile itself does not contain backslashes and begins
8555    # with a dollar sign (not a hyphen), so the echo should work correctly.
8556    # The option is referenced via a variable to avoid confusing sed.
8557    lt_compile=`echo "$ac_compile" | $SED \
8558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560    -e 's:$: $lt_compiler_flag:'`
8561    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562    (eval "$lt_compile" 2>conftest.err)
8563    ac_status=$?
8564    cat conftest.err >&5
8565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566    if (exit $ac_status) && test -s "$ac_outfile"; then
8567      # The compiler can only warn and ignore the option if not recognized
8568      # So say no if there are warnings other than the usual output.
8569      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572        lt_cv_prog_compiler_pic_works=yes
8573      fi
8574    fi
8575    $RM conftest*
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8579 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8580
8581 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8582     case $lt_prog_compiler_pic in
8583      "" | " "*) ;;
8584      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8585      esac
8586 else
8587     lt_prog_compiler_pic=
8588      lt_prog_compiler_can_build_shared=no
8589 fi
8590
8591 fi
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 #
8604 # Check to make sure the static flag actually works.
8605 #
8606 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8608 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8609 if ${lt_cv_prog_compiler_static_works+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   lt_cv_prog_compiler_static_works=no
8613    save_LDFLAGS="$LDFLAGS"
8614    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8615    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8616    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8617      # The linker can only warn and ignore the option if not recognized
8618      # So say no if there are warnings
8619      if test -s conftest.err; then
8620        # Append any errors to the config.log.
8621        cat conftest.err 1>&5
8622        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8623        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8624        if diff conftest.exp conftest.er2 >/dev/null; then
8625          lt_cv_prog_compiler_static_works=yes
8626        fi
8627      else
8628        lt_cv_prog_compiler_static_works=yes
8629      fi
8630    fi
8631    $RM -r conftest*
8632    LDFLAGS="$save_LDFLAGS"
8633
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8636 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8637
8638 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8639     :
8640 else
8641     lt_prog_compiler_static=
8642 fi
8643
8644
8645
8646
8647
8648
8649
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652 if ${lt_cv_prog_compiler_c_o+:} false; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   lt_cv_prog_compiler_c_o=no
8656    $RM -r conftest 2>/dev/null
8657    mkdir conftest
8658    cd conftest
8659    mkdir out
8660    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8661
8662    lt_compiler_flag="-o out/conftest2.$ac_objext"
8663    # Insert the option either (1) after the last *FLAGS variable, or
8664    # (2) before a word containing "conftest.", or (3) at the end.
8665    # Note that $ac_compile itself does not contain backslashes and begins
8666    # with a dollar sign (not a hyphen), so the echo should work correctly.
8667    lt_compile=`echo "$ac_compile" | $SED \
8668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670    -e 's:$: $lt_compiler_flag:'`
8671    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8672    (eval "$lt_compile" 2>out/conftest.err)
8673    ac_status=$?
8674    cat out/conftest.err >&5
8675    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8677    then
8678      # The compiler can only warn and ignore the option if not recognized
8679      # So say no if there are warnings
8680      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8681      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8682      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8683        lt_cv_prog_compiler_c_o=yes
8684      fi
8685    fi
8686    chmod u+w . 2>&5
8687    $RM conftest*
8688    # SGI C++ compiler will create directory out/ii_files/ for
8689    # template instantiation
8690    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8691    $RM out/* && rmdir out
8692    cd ..
8693    $RM -r conftest
8694    $RM conftest*
8695
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8699
8700
8701
8702
8703
8704
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8707 if ${lt_cv_prog_compiler_c_o+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   lt_cv_prog_compiler_c_o=no
8711    $RM -r conftest 2>/dev/null
8712    mkdir conftest
8713    cd conftest
8714    mkdir out
8715    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716
8717    lt_compiler_flag="-o out/conftest2.$ac_objext"
8718    # Insert the option either (1) after the last *FLAGS variable, or
8719    # (2) before a word containing "conftest.", or (3) at the end.
8720    # Note that $ac_compile itself does not contain backslashes and begins
8721    # with a dollar sign (not a hyphen), so the echo should work correctly.
8722    lt_compile=`echo "$ac_compile" | $SED \
8723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725    -e 's:$: $lt_compiler_flag:'`
8726    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8727    (eval "$lt_compile" 2>out/conftest.err)
8728    ac_status=$?
8729    cat out/conftest.err >&5
8730    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8732    then
8733      # The compiler can only warn and ignore the option if not recognized
8734      # So say no if there are warnings
8735      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8736      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8737      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8738        lt_cv_prog_compiler_c_o=yes
8739      fi
8740    fi
8741    chmod u+w . 2>&5
8742    $RM conftest*
8743    # SGI C++ compiler will create directory out/ii_files/ for
8744    # template instantiation
8745    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8746    $RM out/* && rmdir out
8747    cd ..
8748    $RM -r conftest
8749    $RM conftest*
8750
8751 fi
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8753 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8754
8755
8756
8757
8758 hard_links="nottested"
8759 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8760   # do not overwrite the value of need_locks provided by the user
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8762 $as_echo_n "checking if we can lock with hard links... " >&6; }
8763   hard_links=yes
8764   $RM conftest*
8765   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8766   touch conftest.a
8767   ln conftest.a conftest.b 2>&5 || hard_links=no
8768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8770 $as_echo "$hard_links" >&6; }
8771   if test "$hard_links" = no; then
8772     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8773 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8774     need_locks=warn
8775   fi
8776 else
8777   need_locks=no
8778 fi
8779
8780
8781
8782
8783
8784
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8787
8788   runpath_var=
8789   allow_undefined_flag=
8790   always_export_symbols=no
8791   archive_cmds=
8792   archive_expsym_cmds=
8793   compiler_needs_object=no
8794   enable_shared_with_static_runtimes=no
8795   export_dynamic_flag_spec=
8796   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8797   hardcode_automatic=no
8798   hardcode_direct=no
8799   hardcode_direct_absolute=no
8800   hardcode_libdir_flag_spec=
8801   hardcode_libdir_separator=
8802   hardcode_minus_L=no
8803   hardcode_shlibpath_var=unsupported
8804   inherit_rpath=no
8805   link_all_deplibs=unknown
8806   module_cmds=
8807   module_expsym_cmds=
8808   old_archive_from_new_cmds=
8809   old_archive_from_expsyms_cmds=
8810   thread_safe_flag_spec=
8811   whole_archive_flag_spec=
8812   # include_expsyms should be a list of space-separated symbols to be *always*
8813   # included in the symbol list
8814   include_expsyms=
8815   # exclude_expsyms can be an extended regexp of symbols to exclude
8816   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8817   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8818   # as well as any symbol that contains `d'.
8819   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8820   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8821   # platforms (ab)use it in PIC code, but their linkers get confused if
8822   # the symbol is explicitly referenced.  Since portable code cannot
8823   # rely on this symbol name, it's probably fine to never include it in
8824   # preloaded symbol tables.
8825   # Exclude shared library initialization/finalization symbols.
8826   extract_expsyms_cmds=
8827
8828   case $host_os in
8829   cygwin* | mingw* | pw32* | cegcc*)
8830     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8831     # When not using gcc, we currently assume that we are using
8832     # Microsoft Visual C++.
8833     if test "$GCC" != yes; then
8834       with_gnu_ld=no
8835     fi
8836     ;;
8837   interix*)
8838     # we just hope/assume this is gcc and not c89 (= MSVC++)
8839     with_gnu_ld=yes
8840     ;;
8841   openbsd*)
8842     with_gnu_ld=no
8843     ;;
8844   linux* | k*bsd*-gnu | gnu*)
8845     link_all_deplibs=no
8846     ;;
8847   esac
8848
8849   ld_shlibs=yes
8850
8851   # On some targets, GNU ld is compatible enough with the native linker
8852   # that we're better off using the native interface for both.
8853   lt_use_gnu_ld_interface=no
8854   if test "$with_gnu_ld" = yes; then
8855     case $host_os in
8856       aix*)
8857         # The AIX port of GNU ld has always aspired to compatibility
8858         # with the native linker.  However, as the warning in the GNU ld
8859         # block says, versions before 2.19.5* couldn't really create working
8860         # shared libraries, regardless of the interface used.
8861         case `$LD -v 2>&1` in
8862           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8863           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8864           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8865           *)
8866             lt_use_gnu_ld_interface=yes
8867             ;;
8868         esac
8869         ;;
8870       *)
8871         lt_use_gnu_ld_interface=yes
8872         ;;
8873     esac
8874   fi
8875
8876   if test "$lt_use_gnu_ld_interface" = yes; then
8877     # If archive_cmds runs LD, not CC, wlarc should be empty
8878     wlarc='${wl}'
8879
8880     # Set some defaults for GNU ld with shared library support. These
8881     # are reset later if shared libraries are not supported. Putting them
8882     # here allows them to be overridden if necessary.
8883     runpath_var=LD_RUN_PATH
8884     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885     export_dynamic_flag_spec='${wl}--export-dynamic'
8886     # ancient GNU ld didn't support --whole-archive et. al.
8887     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8888       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8889     else
8890       whole_archive_flag_spec=
8891     fi
8892     supports_anon_versioning=no
8893     case `$LD -v 2>&1` in
8894       *GNU\ gold*) supports_anon_versioning=yes ;;
8895       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8896       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8897       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8898       *\ 2.11.*) ;; # other 2.11 versions
8899       *) supports_anon_versioning=yes ;;
8900     esac
8901
8902     # See if GNU ld supports shared libraries.
8903     case $host_os in
8904     aix[3-9]*)
8905       # On AIX/PPC, the GNU linker is very broken
8906       if test "$host_cpu" != ia64; then
8907         ld_shlibs=no
8908         cat <<_LT_EOF 1>&2
8909
8910 *** Warning: the GNU linker, at least up to release 2.19, is reported
8911 *** to be unable to reliably create shared libraries on AIX.
8912 *** Therefore, libtool is disabling shared libraries support.  If you
8913 *** really care for shared libraries, you may want to install binutils
8914 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8915 *** You will then need to restart the configuration process.
8916
8917 _LT_EOF
8918       fi
8919       ;;
8920
8921     amigaos*)
8922       case $host_cpu in
8923       powerpc)
8924             # see comment about AmigaOS4 .so support
8925             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8926             archive_expsym_cmds=''
8927         ;;
8928       m68k)
8929             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)'
8930             hardcode_libdir_flag_spec='-L$libdir'
8931             hardcode_minus_L=yes
8932         ;;
8933       esac
8934       ;;
8935
8936     beos*)
8937       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938         allow_undefined_flag=unsupported
8939         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8940         # support --undefined.  This deserves some investigation.  FIXME
8941         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942       else
8943         ld_shlibs=no
8944       fi
8945       ;;
8946
8947     cygwin* | mingw* | pw32* | cegcc*)
8948       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8949       # as there is no search path for DLLs.
8950       hardcode_libdir_flag_spec='-L$libdir'
8951       export_dynamic_flag_spec='${wl}--export-all-symbols'
8952       allow_undefined_flag=unsupported
8953       always_export_symbols=no
8954       enable_shared_with_static_runtimes=yes
8955       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'
8956       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8957
8958       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8959         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8960         # If the export-symbols file already is a .def file (1st line
8961         # is EXPORTS), use it as is; otherwise, prepend...
8962         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8963           cp $export_symbols $output_objdir/$soname.def;
8964         else
8965           echo EXPORTS > $output_objdir/$soname.def;
8966           cat $export_symbols >> $output_objdir/$soname.def;
8967         fi~
8968         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8969       else
8970         ld_shlibs=no
8971       fi
8972       ;;
8973
8974     haiku*)
8975       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976       link_all_deplibs=yes
8977       ;;
8978
8979     interix[3-9]*)
8980       hardcode_direct=no
8981       hardcode_shlibpath_var=no
8982       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8983       export_dynamic_flag_spec='${wl}-E'
8984       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8985       # Instead, shared libraries are loaded at an image base (0x10000000 by
8986       # default) and relocated if they conflict, which is a slow very memory
8987       # consuming and fragmenting process.  To avoid this, we pick a random,
8988       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8989       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8990       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8991       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'
8992       ;;
8993
8994     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8995       tmp_diet=no
8996       if test "$host_os" = linux-dietlibc; then
8997         case $cc_basename in
8998           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8999         esac
9000       fi
9001       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9002          && test "$tmp_diet" = no
9003       then
9004         tmp_addflag=' $pic_flag'
9005         tmp_sharedflag='-shared'
9006         case $cc_basename,$host_cpu in
9007         pgcc*)                          # Portland Group C compiler
9008           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'
9009           tmp_addflag=' $pic_flag'
9010           ;;
9011         pgf77* | pgf90* | pgf95* | pgfortran*)
9012                                         # Portland Group f77 and f90 compilers
9013           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'
9014           tmp_addflag=' $pic_flag -Mnomain' ;;
9015         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9016           tmp_addflag=' -i_dynamic' ;;
9017         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9018           tmp_addflag=' -i_dynamic -nofor_main' ;;
9019         ifc* | ifort*)                  # Intel Fortran compiler
9020           tmp_addflag=' -nofor_main' ;;
9021         lf95*)                          # Lahey Fortran 8.1
9022           whole_archive_flag_spec=
9023           tmp_sharedflag='--shared' ;;
9024         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9025           tmp_sharedflag='-qmkshrobj'
9026           tmp_addflag= ;;
9027         nvcc*)  # Cuda Compiler Driver 2.2
9028           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'
9029           compiler_needs_object=yes
9030           ;;
9031         esac
9032         case `$CC -V 2>&1 | sed 5q` in
9033         *Sun\ C*)                       # Sun C 5.9
9034           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'
9035           compiler_needs_object=yes
9036           tmp_sharedflag='-G' ;;
9037         *Sun\ F*)                       # Sun Fortran 8.3
9038           tmp_sharedflag='-G' ;;
9039         esac
9040         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041
9042         if test "x$supports_anon_versioning" = xyes; then
9043           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9044             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9045             echo "local: *; };" >> $output_objdir/$libname.ver~
9046             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9047         fi
9048
9049         case $cc_basename in
9050         xlf* | bgf* | bgxlf* | mpixlf*)
9051           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9052           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9053           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9055           if test "x$supports_anon_versioning" = xyes; then
9056             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058               echo "local: *; };" >> $output_objdir/$libname.ver~
9059               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9060           fi
9061           ;;
9062         esac
9063       else
9064         ld_shlibs=no
9065       fi
9066       ;;
9067
9068     netbsd* | netbsdelf*-gnu)
9069       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9070         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9071         wlarc=
9072       else
9073         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075       fi
9076       ;;
9077
9078     solaris*)
9079       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9080         ld_shlibs=no
9081         cat <<_LT_EOF 1>&2
9082
9083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9084 *** create shared libraries on Solaris systems.  Therefore, libtool
9085 *** is disabling shared libraries support.  We urge you to upgrade GNU
9086 *** binutils to release 2.9.1 or newer.  Another option is to modify
9087 *** your PATH or compiler configuration so that the native linker is
9088 *** used, and then restart.
9089
9090 _LT_EOF
9091       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9092         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9094       else
9095         ld_shlibs=no
9096       fi
9097       ;;
9098
9099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9100       case `$LD -v 2>&1` in
9101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9102         ld_shlibs=no
9103         cat <<_LT_EOF 1>&2
9104
9105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9107 *** is disabling shared libraries support.  We urge you to upgrade GNU
9108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9109 *** your PATH or compiler configuration so that the native linker is
9110 *** used, and then restart.
9111
9112 _LT_EOF
9113         ;;
9114         *)
9115           # For security reasons, it is highly recommended that you always
9116           # use absolute paths for naming shared libraries, and exclude the
9117           # DT_RUNPATH tag from executables and libraries.  But doing so
9118           # requires that you compile everything twice, which is a pain.
9119           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9121             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123           else
9124             ld_shlibs=no
9125           fi
9126         ;;
9127       esac
9128       ;;
9129
9130     sunos4*)
9131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132       wlarc=
9133       hardcode_direct=yes
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     *)
9138       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9139         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141       else
9142         ld_shlibs=no
9143       fi
9144       ;;
9145     esac
9146
9147     if test "$ld_shlibs" = no; then
9148       runpath_var=
9149       hardcode_libdir_flag_spec=
9150       export_dynamic_flag_spec=
9151       whole_archive_flag_spec=
9152     fi
9153   else
9154     # PORTME fill in a description of your system's linker (not GNU ld)
9155     case $host_os in
9156     aix3*)
9157       allow_undefined_flag=unsupported
9158       always_export_symbols=yes
9159       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'
9160       # Note: this linker hardcodes the directories in LIBPATH if there
9161       # are no directories specified by -L.
9162       hardcode_minus_L=yes
9163       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9164         # Neither direct hardcoding nor static linking is supported with a
9165         # broken collect2.
9166         hardcode_direct=unsupported
9167       fi
9168       ;;
9169
9170     aix[4-9]*)
9171       if test "$host_cpu" = ia64; then
9172         # On IA64, the linker does run time linking by default, so we don't
9173         # have to do anything special.
9174         aix_use_runtimelinking=no
9175         exp_sym_flag='-Bexport'
9176         no_entry_flag=""
9177       else
9178         # If we're using GNU nm, then we don't want the "-C" option.
9179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180         # Also, AIX nm treats weak defined symbols like other global
9181         # defined symbols, whereas GNU nm marks them as "W".
9182         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9183           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9184         else
9185           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9186         fi
9187         aix_use_runtimelinking=no
9188
9189         # Test if we are trying to use run time linking or normal
9190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191         # need to do runtime linking.
9192         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9193           for ld_flag in $LDFLAGS; do
9194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195             aix_use_runtimelinking=yes
9196             break
9197           fi
9198           done
9199           ;;
9200         esac
9201
9202         exp_sym_flag='-bexport'
9203         no_entry_flag='-bnoentry'
9204       fi
9205
9206       # When large executables or shared objects are built, AIX ld can
9207       # have problems creating the table of contents.  If linking a library
9208       # or program results in "error TOC overflow" add -mminimal-toc to
9209       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9210       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9211
9212       archive_cmds=''
9213       hardcode_direct=yes
9214       hardcode_direct_absolute=yes
9215       hardcode_libdir_separator=':'
9216       link_all_deplibs=yes
9217       file_list_spec='${wl}-f,'
9218
9219       if test "$GCC" = yes; then
9220         case $host_os in aix4.[012]|aix4.[012].*)
9221         # We only want to do this on AIX 4.2 and lower, the check
9222         # below for broken collect2 doesn't work under 4.3+
9223           collect2name=`${CC} -print-prog-name=collect2`
9224           if test -f "$collect2name" &&
9225            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9226           then
9227           # We have reworked collect2
9228           :
9229           else
9230           # We have old collect2
9231           hardcode_direct=unsupported
9232           # It fails to find uninstalled libraries when the uninstalled
9233           # path is not listed in the libpath.  Setting hardcode_minus_L
9234           # to unsupported forces relinking
9235           hardcode_minus_L=yes
9236           hardcode_libdir_flag_spec='-L$libdir'
9237           hardcode_libdir_separator=
9238           fi
9239           ;;
9240         esac
9241         shared_flag='-shared'
9242         if test "$aix_use_runtimelinking" = yes; then
9243           shared_flag="$shared_flag "'${wl}-G'
9244         fi
9245         link_all_deplibs=no
9246       else
9247         # not using gcc
9248         if test "$host_cpu" = ia64; then
9249         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9250         # chokes on -Wl,-G. The following line is correct:
9251           shared_flag='-G'
9252         else
9253           if test "$aix_use_runtimelinking" = yes; then
9254             shared_flag='${wl}-G'
9255           else
9256             shared_flag='${wl}-bM:SRE'
9257           fi
9258         fi
9259       fi
9260
9261       export_dynamic_flag_spec='${wl}-bexpall'
9262       # It seems that -bexpall does not export symbols beginning with
9263       # underscore (_), so it is better to generate a list of symbols to export.
9264       always_export_symbols=yes
9265       if test "$aix_use_runtimelinking" = yes; then
9266         # Warning - without using the other runtime loading flags (-brtl),
9267         # -berok will link without error, but may produce a broken library.
9268         allow_undefined_flag='-berok'
9269         # Determine the default libpath from the value encoded in an
9270         # empty executable.
9271         if test "${lt_cv_aix_libpath+set}" = set; then
9272   aix_libpath=$lt_cv_aix_libpath
9273 else
9274   if ${lt_cv_aix_libpath_+:} false; then :
9275   $as_echo_n "(cached) " >&6
9276 else
9277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h.  */
9279
9280 int
9281 main ()
9282 {
9283
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289
9290   lt_aix_libpath_sed='
9291       /Import File Strings/,/^$/ {
9292           /^0/ {
9293               s/^0  *\([^ ]*\) *$/\1/
9294               p
9295           }
9296       }'
9297   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298   # Check for a 64-bit object if we didn't find anything.
9299   if test -z "$lt_cv_aix_libpath_"; then
9300     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9301   fi
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304     conftest$ac_exeext conftest.$ac_ext
9305   if test -z "$lt_cv_aix_libpath_"; then
9306     lt_cv_aix_libpath_="/usr/lib:/lib"
9307   fi
9308
9309 fi
9310
9311   aix_libpath=$lt_cv_aix_libpath_
9312 fi
9313
9314         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9316       else
9317         if test "$host_cpu" = ia64; then
9318           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319           allow_undefined_flag="-z nodefs"
9320           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"
9321         else
9322          # Determine the default libpath from the value encoded in an
9323          # empty executable.
9324          if test "${lt_cv_aix_libpath+set}" = set; then
9325   aix_libpath=$lt_cv_aix_libpath
9326 else
9327   if ${lt_cv_aix_libpath_+:} false; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h.  */
9332
9333 int
9334 main ()
9335 {
9336
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 if ac_fn_c_try_link "$LINENO"; then :
9342
9343   lt_aix_libpath_sed='
9344       /Import File Strings/,/^$/ {
9345           /^0/ {
9346               s/^0  *\([^ ]*\) *$/\1/
9347               p
9348           }
9349       }'
9350   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9351   # Check for a 64-bit object if we didn't find anything.
9352   if test -z "$lt_cv_aix_libpath_"; then
9353     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9354   fi
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357     conftest$ac_exeext conftest.$ac_ext
9358   if test -z "$lt_cv_aix_libpath_"; then
9359     lt_cv_aix_libpath_="/usr/lib:/lib"
9360   fi
9361
9362 fi
9363
9364   aix_libpath=$lt_cv_aix_libpath_
9365 fi
9366
9367          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9368           # Warning - without using the other run time loading flags,
9369           # -berok will link without error, but may produce a broken library.
9370           no_undefined_flag=' ${wl}-bernotok'
9371           allow_undefined_flag=' ${wl}-berok'
9372           if test "$with_gnu_ld" = yes; then
9373             # We only use this code for GNU lds that support --whole-archive.
9374             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9375           else
9376             # Exported symbols can be pulled into shared objects from archives
9377             whole_archive_flag_spec='$convenience'
9378           fi
9379           archive_cmds_need_lc=yes
9380           # This is similar to how AIX traditionally builds its shared libraries.
9381           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9382         fi
9383       fi
9384       ;;
9385
9386     amigaos*)
9387       case $host_cpu in
9388       powerpc)
9389             # see comment about AmigaOS4 .so support
9390             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391             archive_expsym_cmds=''
9392         ;;
9393       m68k)
9394             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)'
9395             hardcode_libdir_flag_spec='-L$libdir'
9396             hardcode_minus_L=yes
9397         ;;
9398       esac
9399       ;;
9400
9401     bsdi[45]*)
9402       export_dynamic_flag_spec=-rdynamic
9403       ;;
9404
9405     cygwin* | mingw* | pw32* | cegcc*)
9406       # When not using gcc, we currently assume that we are using
9407       # Microsoft Visual C++.
9408       # hardcode_libdir_flag_spec is actually meaningless, as there is
9409       # no search path for DLLs.
9410       case $cc_basename in
9411       cl*)
9412         # Native MSVC
9413         hardcode_libdir_flag_spec=' '
9414         allow_undefined_flag=unsupported
9415         always_export_symbols=yes
9416         file_list_spec='@'
9417         # Tell ltmain to make .lib files, not .a files.
9418         libext=lib
9419         # Tell ltmain to make .dll files, not .so files.
9420         shrext_cmds=".dll"
9421         # FIXME: Setting linknames here is a bad hack.
9422         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9423         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9424             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9425           else
9426             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9427           fi~
9428           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9429           linknames='
9430         # The linker will not automatically build a static lib if we build a DLL.
9431         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9432         enable_shared_with_static_runtimes=yes
9433         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9434         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9435         # Don't use ranlib
9436         old_postinstall_cmds='chmod 644 $oldlib'
9437         postlink_cmds='lt_outputfile="@OUTPUT@"~
9438           lt_tool_outputfile="@TOOL_OUTPUT@"~
9439           case $lt_outputfile in
9440             *.exe|*.EXE) ;;
9441             *)
9442               lt_outputfile="$lt_outputfile.exe"
9443               lt_tool_outputfile="$lt_tool_outputfile.exe"
9444               ;;
9445           esac~
9446           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9447             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9448             $RM "$lt_outputfile.manifest";
9449           fi'
9450         ;;
9451       *)
9452         # Assume MSVC wrapper
9453         hardcode_libdir_flag_spec=' '
9454         allow_undefined_flag=unsupported
9455         # Tell ltmain to make .lib files, not .a files.
9456         libext=lib
9457         # Tell ltmain to make .dll files, not .so files.
9458         shrext_cmds=".dll"
9459         # FIXME: Setting linknames here is a bad hack.
9460         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9461         # The linker will automatically build a .lib file if we build a DLL.
9462         old_archive_from_new_cmds='true'
9463         # FIXME: Should let the user specify the lib program.
9464         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9465         enable_shared_with_static_runtimes=yes
9466         ;;
9467       esac
9468       ;;
9469
9470     darwin* | rhapsody*)
9471
9472
9473   archive_cmds_need_lc=no
9474   hardcode_direct=no
9475   hardcode_automatic=yes
9476   hardcode_shlibpath_var=unsupported
9477   if test "$lt_cv_ld_force_load" = "yes"; then
9478     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\"`'
9479
9480   else
9481     whole_archive_flag_spec=''
9482   fi
9483   link_all_deplibs=yes
9484   allow_undefined_flag="$_lt_dar_allow_undefined"
9485   case $cc_basename in
9486      ifort*) _lt_dar_can_shared=yes ;;
9487      *) _lt_dar_can_shared=$GCC ;;
9488   esac
9489   if test "$_lt_dar_can_shared" = "yes"; then
9490     output_verbose_link_cmd=func_echo_all
9491     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9492     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9493     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}"
9494     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}"
9495
9496   else
9497   ld_shlibs=no
9498   fi
9499
9500       ;;
9501
9502     dgux*)
9503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504       hardcode_libdir_flag_spec='-L$libdir'
9505       hardcode_shlibpath_var=no
9506       ;;
9507
9508     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9509     # support.  Future versions do this automatically, but an explicit c++rt0.o
9510     # does not break anything, and helps significantly (at the cost of a little
9511     # extra space).
9512     freebsd2.2*)
9513       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9514       hardcode_libdir_flag_spec='-R$libdir'
9515       hardcode_direct=yes
9516       hardcode_shlibpath_var=no
9517       ;;
9518
9519     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9520     freebsd2.*)
9521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9522       hardcode_direct=yes
9523       hardcode_minus_L=yes
9524       hardcode_shlibpath_var=no
9525       ;;
9526
9527     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9528     freebsd* | dragonfly*)
9529       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530       hardcode_libdir_flag_spec='-R$libdir'
9531       hardcode_direct=yes
9532       hardcode_shlibpath_var=no
9533       ;;
9534
9535     hpux9*)
9536       if test "$GCC" = yes; then
9537         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9538       else
9539         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9540       fi
9541       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9542       hardcode_libdir_separator=:
9543       hardcode_direct=yes
9544
9545       # hardcode_minus_L: Not really in the search PATH,
9546       # but as the default location of the library.
9547       hardcode_minus_L=yes
9548       export_dynamic_flag_spec='${wl}-E'
9549       ;;
9550
9551     hpux10*)
9552       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9553         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9554       else
9555         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9556       fi
9557       if test "$with_gnu_ld" = no; then
9558         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559         hardcode_libdir_separator=:
9560         hardcode_direct=yes
9561         hardcode_direct_absolute=yes
9562         export_dynamic_flag_spec='${wl}-E'
9563         # hardcode_minus_L: Not really in the search PATH,
9564         # but as the default location of the library.
9565         hardcode_minus_L=yes
9566       fi
9567       ;;
9568
9569     hpux11*)
9570       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9571         case $host_cpu in
9572         hppa*64*)
9573           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9574           ;;
9575         ia64*)
9576           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9577           ;;
9578         *)
9579           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9580           ;;
9581         esac
9582       else
9583         case $host_cpu in
9584         hppa*64*)
9585           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9586           ;;
9587         ia64*)
9588           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9589           ;;
9590         *)
9591
9592           # Older versions of the 11.00 compiler do not understand -b yet
9593           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9594           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9595 $as_echo_n "checking if $CC understands -b... " >&6; }
9596 if ${lt_cv_prog_compiler__b+:} false; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   lt_cv_prog_compiler__b=no
9600    save_LDFLAGS="$LDFLAGS"
9601    LDFLAGS="$LDFLAGS -b"
9602    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9603    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9604      # The linker can only warn and ignore the option if not recognized
9605      # So say no if there are warnings
9606      if test -s conftest.err; then
9607        # Append any errors to the config.log.
9608        cat conftest.err 1>&5
9609        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9610        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9611        if diff conftest.exp conftest.er2 >/dev/null; then
9612          lt_cv_prog_compiler__b=yes
9613        fi
9614      else
9615        lt_cv_prog_compiler__b=yes
9616      fi
9617    fi
9618    $RM -r conftest*
9619    LDFLAGS="$save_LDFLAGS"
9620
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9623 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9624
9625 if test x"$lt_cv_prog_compiler__b" = xyes; then
9626     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9627 else
9628     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9629 fi
9630
9631           ;;
9632         esac
9633       fi
9634       if test "$with_gnu_ld" = no; then
9635         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9636         hardcode_libdir_separator=:
9637
9638         case $host_cpu in
9639         hppa*64*|ia64*)
9640           hardcode_direct=no
9641           hardcode_shlibpath_var=no
9642           ;;
9643         *)
9644           hardcode_direct=yes
9645           hardcode_direct_absolute=yes
9646           export_dynamic_flag_spec='${wl}-E'
9647
9648           # hardcode_minus_L: Not really in the search PATH,
9649           # but as the default location of the library.
9650           hardcode_minus_L=yes
9651           ;;
9652         esac
9653       fi
9654       ;;
9655
9656     irix5* | irix6* | nonstopux*)
9657       if test "$GCC" = yes; then
9658         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'
9659         # Try to use the -exported_symbol ld option, if it does not
9660         # work, assume that -exports_file does not work either and
9661         # implicitly export all symbols.
9662         # This should be the same for all languages, so no per-tag cache variable.
9663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9664 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9665 if ${lt_cv_irix_exported_symbol+:} false; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   save_LDFLAGS="$LDFLAGS"
9669            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9670            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h.  */
9672 int foo (void) { return 0; }
9673 _ACEOF
9674 if ac_fn_c_try_link "$LINENO"; then :
9675   lt_cv_irix_exported_symbol=yes
9676 else
9677   lt_cv_irix_exported_symbol=no
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext \
9680     conftest$ac_exeext conftest.$ac_ext
9681            LDFLAGS="$save_LDFLAGS"
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9684 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9685         if test "$lt_cv_irix_exported_symbol" = yes; then
9686           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'
9687         fi
9688       else
9689         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'
9690         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'
9691       fi
9692       archive_cmds_need_lc='no'
9693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9694       hardcode_libdir_separator=:
9695       inherit_rpath=yes
9696       link_all_deplibs=yes
9697       ;;
9698
9699     netbsd* | netbsdelf*-gnu)
9700       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9701         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9702       else
9703         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9704       fi
9705       hardcode_libdir_flag_spec='-R$libdir'
9706       hardcode_direct=yes
9707       hardcode_shlibpath_var=no
9708       ;;
9709
9710     newsos6)
9711       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712       hardcode_direct=yes
9713       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714       hardcode_libdir_separator=:
9715       hardcode_shlibpath_var=no
9716       ;;
9717
9718     *nto* | *qnx*)
9719       ;;
9720
9721     openbsd*)
9722       if test -f /usr/libexec/ld.so; then
9723         hardcode_direct=yes
9724         hardcode_shlibpath_var=no
9725         hardcode_direct_absolute=yes
9726         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9727           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9728           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9729           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730           export_dynamic_flag_spec='${wl}-E'
9731         else
9732           case $host_os in
9733            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9734              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9735              hardcode_libdir_flag_spec='-R$libdir'
9736              ;;
9737            *)
9738              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9739              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9740              ;;
9741           esac
9742         fi
9743       else
9744         ld_shlibs=no
9745       fi
9746       ;;
9747
9748     os2*)
9749       hardcode_libdir_flag_spec='-L$libdir'
9750       hardcode_minus_L=yes
9751       allow_undefined_flag=unsupported
9752       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9753       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9754       ;;
9755
9756     osf3*)
9757       if test "$GCC" = yes; then
9758         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9759         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'
9760       else
9761         allow_undefined_flag=' -expect_unresolved \*'
9762         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'
9763       fi
9764       archive_cmds_need_lc='no'
9765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766       hardcode_libdir_separator=:
9767       ;;
9768
9769     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9770       if test "$GCC" = yes; then
9771         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9772         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'
9773         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774       else
9775         allow_undefined_flag=' -expect_unresolved \*'
9776         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'
9777         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~
9778         $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'
9779
9780         # Both c and cxx compiler support -rpath directly
9781         hardcode_libdir_flag_spec='-rpath $libdir'
9782       fi
9783       archive_cmds_need_lc='no'
9784       hardcode_libdir_separator=:
9785       ;;
9786
9787     solaris*)
9788       no_undefined_flag=' -z defs'
9789       if test "$GCC" = yes; then
9790         wlarc='${wl}'
9791         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9793           $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'
9794       else
9795         case `$CC -V 2>&1` in
9796         *"Compilers 5.0"*)
9797           wlarc=''
9798           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9800           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9801           ;;
9802         *)
9803           wlarc='${wl}'
9804           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9805           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9806           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9807           ;;
9808         esac
9809       fi
9810       hardcode_libdir_flag_spec='-R$libdir'
9811       hardcode_shlibpath_var=no
9812       case $host_os in
9813       solaris2.[0-5] | solaris2.[0-5].*) ;;
9814       *)
9815         # The compiler driver will combine and reorder linker options,
9816         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9817         # but is careful enough not to reorder.
9818         # Supported since Solaris 2.6 (maybe 2.5.1?)
9819         if test "$GCC" = yes; then
9820           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9821         else
9822           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9823         fi
9824         ;;
9825       esac
9826       link_all_deplibs=yes
9827       ;;
9828
9829     sunos4*)
9830       if test "x$host_vendor" = xsequent; then
9831         # Use $CC to link under sequent, because it throws in some extra .o
9832         # files that make .init and .fini sections work.
9833         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834       else
9835         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9836       fi
9837       hardcode_libdir_flag_spec='-L$libdir'
9838       hardcode_direct=yes
9839       hardcode_minus_L=yes
9840       hardcode_shlibpath_var=no
9841       ;;
9842
9843     sysv4)
9844       case $host_vendor in
9845         sni)
9846           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847           hardcode_direct=yes # is this really true???
9848         ;;
9849         siemens)
9850           ## LD is ld it makes a PLAMLIB
9851           ## CC just makes a GrossModule.
9852           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9853           reload_cmds='$CC -r -o $output$reload_objs'
9854           hardcode_direct=no
9855         ;;
9856         motorola)
9857           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9859         ;;
9860       esac
9861       runpath_var='LD_RUN_PATH'
9862       hardcode_shlibpath_var=no
9863       ;;
9864
9865     sysv4.3*)
9866       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867       hardcode_shlibpath_var=no
9868       export_dynamic_flag_spec='-Bexport'
9869       ;;
9870
9871     sysv4*MP*)
9872       if test -d /usr/nec; then
9873         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9874         hardcode_shlibpath_var=no
9875         runpath_var=LD_RUN_PATH
9876         hardcode_runpath_var=yes
9877         ld_shlibs=yes
9878       fi
9879       ;;
9880
9881     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9882       no_undefined_flag='${wl}-z,text'
9883       archive_cmds_need_lc=no
9884       hardcode_shlibpath_var=no
9885       runpath_var='LD_RUN_PATH'
9886
9887       if test "$GCC" = yes; then
9888         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890       else
9891         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9893       fi
9894       ;;
9895
9896     sysv5* | sco3.2v5* | sco5v6*)
9897       # Note: We can NOT use -z defs as we might desire, because we do not
9898       # link with -lc, and that would cause any symbols used from libc to
9899       # always be unresolved, which means just about no library would
9900       # ever link correctly.  If we're not using GNU ld we use -z text
9901       # though, which does catch some bad symbols but isn't as heavy-handed
9902       # as -z defs.
9903       no_undefined_flag='${wl}-z,text'
9904       allow_undefined_flag='${wl}-z,nodefs'
9905       archive_cmds_need_lc=no
9906       hardcode_shlibpath_var=no
9907       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9908       hardcode_libdir_separator=':'
9909       link_all_deplibs=yes
9910       export_dynamic_flag_spec='${wl}-Bexport'
9911       runpath_var='LD_RUN_PATH'
9912
9913       if test "$GCC" = yes; then
9914         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916       else
9917         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919       fi
9920       ;;
9921
9922     uts4*)
9923       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924       hardcode_libdir_flag_spec='-L$libdir'
9925       hardcode_shlibpath_var=no
9926       ;;
9927
9928     *)
9929       ld_shlibs=no
9930       ;;
9931     esac
9932
9933     if test x$host_vendor = xsni; then
9934       case $host in
9935       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9936         export_dynamic_flag_spec='${wl}-Blargedynsym'
9937         ;;
9938       esac
9939     fi
9940   fi
9941
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9943 $as_echo "$ld_shlibs" >&6; }
9944 test "$ld_shlibs" = no && can_build_shared=no
9945
9946 with_gnu_ld=$with_gnu_ld
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 #
9963 # Do we need to explicitly link libc?
9964 #
9965 case "x$archive_cmds_need_lc" in
9966 x|xyes)
9967   # Assume -lc should be added
9968   archive_cmds_need_lc=yes
9969
9970   if test "$enable_shared" = yes && test "$GCC" = yes; then
9971     case $archive_cmds in
9972     *'~'*)
9973       # FIXME: we may have to deal with multi-command sequences.
9974       ;;
9975     '$CC '*)
9976       # Test whether the compiler implicitly links with -lc since on some
9977       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9978       # to ld, don't add -lc before -lgcc.
9979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9980 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9981 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   $RM conftest*
9985         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9986
9987         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9988   (eval $ac_compile) 2>&5
9989   ac_status=$?
9990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9991   test $ac_status = 0; } 2>conftest.err; then
9992           soname=conftest
9993           lib=conftest
9994           libobjs=conftest.$ac_objext
9995           deplibs=
9996           wl=$lt_prog_compiler_wl
9997           pic_flag=$lt_prog_compiler_pic
9998           compiler_flags=-v
9999           linker_flags=-v
10000           verstring=
10001           output_objdir=.
10002           libname=conftest
10003           lt_save_allow_undefined_flag=$allow_undefined_flag
10004           allow_undefined_flag=
10005           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10006   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10007   ac_status=$?
10008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10009   test $ac_status = 0; }
10010           then
10011             lt_cv_archive_cmds_need_lc=no
10012           else
10013             lt_cv_archive_cmds_need_lc=yes
10014           fi
10015           allow_undefined_flag=$lt_save_allow_undefined_flag
10016         else
10017           cat conftest.err 1>&5
10018         fi
10019         $RM conftest*
10020
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10023 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10024       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10025       ;;
10026     esac
10027   fi
10028   ;;
10029 esac
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10183 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10184
10185 if test "$GCC" = yes; then
10186   case $host_os in
10187     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10188     *) lt_awk_arg="/^libraries:/" ;;
10189   esac
10190   case $host_os in
10191     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10192     *) lt_sed_strip_eq="s,=/,/,g" ;;
10193   esac
10194   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10195   case $lt_search_path_spec in
10196   *\;*)
10197     # if the path contains ";" then we assume it to be the separator
10198     # otherwise default to the standard path separator (i.e. ":") - it is
10199     # assumed that no part of a normal pathname contains ";" but that should
10200     # okay in the real world where ";" in dirpaths is itself problematic.
10201     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10202     ;;
10203   *)
10204     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10205     ;;
10206   esac
10207   # Ok, now we have the path, separated by spaces, we can step through it
10208   # and add multilib dir if necessary.
10209   lt_tmp_lt_search_path_spec=
10210   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10211   for lt_sys_path in $lt_search_path_spec; do
10212     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10213       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10214     else
10215       test -d "$lt_sys_path" && \
10216         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10217     fi
10218   done
10219   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10220 BEGIN {RS=" "; FS="/|\n";} {
10221   lt_foo="";
10222   lt_count=0;
10223   for (lt_i = NF; lt_i > 0; lt_i--) {
10224     if ($lt_i != "" && $lt_i != ".") {
10225       if ($lt_i == "..") {
10226         lt_count++;
10227       } else {
10228         if (lt_count == 0) {
10229           lt_foo="/" $lt_i lt_foo;
10230         } else {
10231           lt_count--;
10232         }
10233       }
10234     }
10235   }
10236   if (lt_foo != "") { lt_freq[lt_foo]++; }
10237   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10238 }'`
10239   # AWK program above erroneously prepends '/' to C:/dos/paths
10240   # for these hosts.
10241   case $host_os in
10242     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10243       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10244   esac
10245   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10246 else
10247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10248 fi
10249 library_names_spec=
10250 libname_spec='lib$name'
10251 soname_spec=
10252 shrext_cmds=".so"
10253 postinstall_cmds=
10254 postuninstall_cmds=
10255 finish_cmds=
10256 finish_eval=
10257 shlibpath_var=
10258 shlibpath_overrides_runpath=unknown
10259 version_type=none
10260 dynamic_linker="$host_os ld.so"
10261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10262 need_lib_prefix=unknown
10263 hardcode_into_libs=no
10264
10265 # when you set need_version to no, make sure it does not cause -set_version
10266 # flags to be left without arguments
10267 need_version=unknown
10268
10269 case $host_os in
10270 aix3*)
10271   version_type=linux # correct to gnu/linux during the next big refactor
10272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10273   shlibpath_var=LIBPATH
10274
10275   # AIX 3 has no versioning support, so we append a major version to the name.
10276   soname_spec='${libname}${release}${shared_ext}$major'
10277   ;;
10278
10279 aix[4-9]*)
10280   version_type=linux # correct to gnu/linux during the next big refactor
10281   need_lib_prefix=no
10282   need_version=no
10283   hardcode_into_libs=yes
10284   if test "$host_cpu" = ia64; then
10285     # AIX 5 supports IA64
10286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10287     shlibpath_var=LD_LIBRARY_PATH
10288   else
10289     # With GCC up to 2.95.x, collect2 would create an import file
10290     # for dependence libraries.  The import file would start with
10291     # the line `#! .'.  This would cause the generated library to
10292     # depend on `.', always an invalid library.  This was fixed in
10293     # development snapshots of GCC prior to 3.0.
10294     case $host_os in
10295       aix4 | aix4.[01] | aix4.[01].*)
10296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10297            echo ' yes '
10298            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10299         :
10300       else
10301         can_build_shared=no
10302       fi
10303       ;;
10304     esac
10305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10306     # soname into executable. Probably we can add versioning support to
10307     # collect2, so additional links can be useful in future.
10308     if test "$aix_use_runtimelinking" = yes; then
10309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10310       # instead of lib<name>.a to let people know that these are not
10311       # typical AIX shared libraries.
10312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313     else
10314       # We preserve .a as extension for shared libraries through AIX4.2
10315       # and later when we are not doing run time linking.
10316       library_names_spec='${libname}${release}.a $libname.a'
10317       soname_spec='${libname}${release}${shared_ext}$major'
10318     fi
10319     shlibpath_var=LIBPATH
10320   fi
10321   ;;
10322
10323 amigaos*)
10324   case $host_cpu in
10325   powerpc)
10326     # Since July 2007 AmigaOS4 officially supports .so libraries.
10327     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329     ;;
10330   m68k)
10331     library_names_spec='$libname.ixlibrary $libname.a'
10332     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10333     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10334     ;;
10335   esac
10336   ;;
10337
10338 beos*)
10339   library_names_spec='${libname}${shared_ext}'
10340   dynamic_linker="$host_os ld.so"
10341   shlibpath_var=LIBRARY_PATH
10342   ;;
10343
10344 bsdi[45]*)
10345   version_type=linux # correct to gnu/linux during the next big refactor
10346   need_version=no
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   soname_spec='${libname}${release}${shared_ext}$major'
10349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10353   # the default ld.so.conf also contains /usr/contrib/lib and
10354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10355   # libtool to hard-code these into programs
10356   ;;
10357
10358 cygwin* | mingw* | pw32* | cegcc*)
10359   version_type=windows
10360   shrext_cmds=".dll"
10361   need_version=no
10362   need_lib_prefix=no
10363
10364   case $GCC,$cc_basename in
10365   yes,*)
10366     # gcc
10367     library_names_spec='$libname.dll.a'
10368     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10369     postinstall_cmds='base_file=`basename \${file}`~
10370       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10371       dldir=$destdir/`dirname \$dlpath`~
10372       test -d \$dldir || mkdir -p \$dldir~
10373       $install_prog $dir/$dlname \$dldir/$dlname~
10374       chmod a+x \$dldir/$dlname~
10375       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10376         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10377       fi'
10378     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10379       dlpath=$dir/\$dldll~
10380        $RM \$dlpath'
10381     shlibpath_overrides_runpath=yes
10382
10383     case $host_os in
10384     cygwin*)
10385       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10386       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10387
10388       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10389       ;;
10390     mingw* | cegcc*)
10391       # MinGW DLLs use traditional 'lib' prefix
10392       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10393       ;;
10394     pw32*)
10395       # pw32 DLLs use 'pw' prefix rather than 'lib'
10396       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10397       ;;
10398     esac
10399     dynamic_linker='Win32 ld.exe'
10400     ;;
10401
10402   *,cl*)
10403     # Native MSVC
10404     libname_spec='$name'
10405     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10406     library_names_spec='${libname}.dll.lib'
10407
10408     case $build_os in
10409     mingw*)
10410       sys_lib_search_path_spec=
10411       lt_save_ifs=$IFS
10412       IFS=';'
10413       for lt_path in $LIB
10414       do
10415         IFS=$lt_save_ifs
10416         # Let DOS variable expansion print the short 8.3 style file name.
10417         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10418         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10419       done
10420       IFS=$lt_save_ifs
10421       # Convert to MSYS style.
10422       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10423       ;;
10424     cygwin*)
10425       # Convert to unix form, then to dos form, then back to unix form
10426       # but this time dos style (no spaces!) so that the unix form looks
10427       # like /cygdrive/c/PROGRA~1:/cygdr...
10428       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10429       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10430       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10431       ;;
10432     *)
10433       sys_lib_search_path_spec="$LIB"
10434       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10435         # It is most probably a Windows format PATH.
10436         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10437       else
10438         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10439       fi
10440       # FIXME: find the short name or the path components, as spaces are
10441       # common. (e.g. "Program Files" -> "PROGRA~1")
10442       ;;
10443     esac
10444
10445     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10446     postinstall_cmds='base_file=`basename \${file}`~
10447       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10448       dldir=$destdir/`dirname \$dlpath`~
10449       test -d \$dldir || mkdir -p \$dldir~
10450       $install_prog $dir/$dlname \$dldir/$dlname'
10451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10452       dlpath=$dir/\$dldll~
10453        $RM \$dlpath'
10454     shlibpath_overrides_runpath=yes
10455     dynamic_linker='Win32 link.exe'
10456     ;;
10457
10458   *)
10459     # Assume MSVC wrapper
10460     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10461     dynamic_linker='Win32 ld.exe'
10462     ;;
10463   esac
10464   # FIXME: first we should search . and the directory the executable is in
10465   shlibpath_var=PATH
10466   ;;
10467
10468 darwin* | rhapsody*)
10469   dynamic_linker="$host_os dyld"
10470   version_type=darwin
10471   need_lib_prefix=no
10472   need_version=no
10473   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10474   soname_spec='${libname}${release}${major}$shared_ext'
10475   shlibpath_overrides_runpath=yes
10476   shlibpath_var=DYLD_LIBRARY_PATH
10477   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10478
10479   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10480   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10481   ;;
10482
10483 dgux*)
10484   version_type=linux # correct to gnu/linux during the next big refactor
10485   need_lib_prefix=no
10486   need_version=no
10487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   shlibpath_var=LD_LIBRARY_PATH
10490   ;;
10491
10492 freebsd* | dragonfly*)
10493   # DragonFly does not have aout.  When/if they implement a new
10494   # versioning mechanism, adjust this.
10495   if test -x /usr/bin/objformat; then
10496     objformat=`/usr/bin/objformat`
10497   else
10498     case $host_os in
10499     freebsd[23].*) objformat=aout ;;
10500     *) objformat=elf ;;
10501     esac
10502   fi
10503   version_type=freebsd-$objformat
10504   case $version_type in
10505     freebsd-elf*)
10506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10507       need_version=no
10508       need_lib_prefix=no
10509       ;;
10510     freebsd-*)
10511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10512       need_version=yes
10513       ;;
10514   esac
10515   shlibpath_var=LD_LIBRARY_PATH
10516   case $host_os in
10517   freebsd2.*)
10518     shlibpath_overrides_runpath=yes
10519     ;;
10520   freebsd3.[01]* | freebsdelf3.[01]*)
10521     shlibpath_overrides_runpath=yes
10522     hardcode_into_libs=yes
10523     ;;
10524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10526     shlibpath_overrides_runpath=no
10527     hardcode_into_libs=yes
10528     ;;
10529   *) # from 4.6 on, and DragonFly
10530     shlibpath_overrides_runpath=yes
10531     hardcode_into_libs=yes
10532     ;;
10533   esac
10534   ;;
10535
10536 haiku*)
10537   version_type=linux # correct to gnu/linux during the next big refactor
10538   need_lib_prefix=no
10539   need_version=no
10540   dynamic_linker="$host_os runtime_loader"
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10542   soname_spec='${libname}${release}${shared_ext}$major'
10543   shlibpath_var=LIBRARY_PATH
10544   shlibpath_overrides_runpath=yes
10545   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10546   hardcode_into_libs=yes
10547   ;;
10548
10549 hpux9* | hpux10* | hpux11*)
10550   # Give a soname corresponding to the major version so that dld.sl refuses to
10551   # link against other versions.
10552   version_type=sunos
10553   need_lib_prefix=no
10554   need_version=no
10555   case $host_cpu in
10556   ia64*)
10557     shrext_cmds='.so'
10558     hardcode_into_libs=yes
10559     dynamic_linker="$host_os dld.so"
10560     shlibpath_var=LD_LIBRARY_PATH
10561     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563     soname_spec='${libname}${release}${shared_ext}$major'
10564     if test "X$HPUX_IA64_MODE" = X32; then
10565       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10566     else
10567       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10568     fi
10569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10570     ;;
10571   hppa*64*)
10572     shrext_cmds='.sl'
10573     hardcode_into_libs=yes
10574     dynamic_linker="$host_os dld.sl"
10575     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10576     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578     soname_spec='${libname}${release}${shared_ext}$major'
10579     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10581     ;;
10582   *)
10583     shrext_cmds='.sl'
10584     dynamic_linker="$host_os dld.sl"
10585     shlibpath_var=SHLIB_PATH
10586     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588     soname_spec='${libname}${release}${shared_ext}$major'
10589     ;;
10590   esac
10591   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10592   postinstall_cmds='chmod 555 $lib'
10593   # or fails outright, so override atomically:
10594   install_override_mode=555
10595   ;;
10596
10597 interix[3-9]*)
10598   version_type=linux # correct to gnu/linux during the next big refactor
10599   need_lib_prefix=no
10600   need_version=no
10601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10604   shlibpath_var=LD_LIBRARY_PATH
10605   shlibpath_overrides_runpath=no
10606   hardcode_into_libs=yes
10607   ;;
10608
10609 irix5* | irix6* | nonstopux*)
10610   case $host_os in
10611     nonstopux*) version_type=nonstopux ;;
10612     *)
10613         if test "$lt_cv_prog_gnu_ld" = yes; then
10614                 version_type=linux # correct to gnu/linux during the next big refactor
10615         else
10616                 version_type=irix
10617         fi ;;
10618   esac
10619   need_lib_prefix=no
10620   need_version=no
10621   soname_spec='${libname}${release}${shared_ext}$major'
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10623   case $host_os in
10624   irix5* | nonstopux*)
10625     libsuff= shlibsuff=
10626     ;;
10627   *)
10628     case $LD in # libtool.m4 will add one of these switches to LD
10629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10630       libsuff= shlibsuff= libmagic=32-bit;;
10631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10632       libsuff=32 shlibsuff=N32 libmagic=N32;;
10633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10635     *) libsuff= shlibsuff= libmagic=never-match;;
10636     esac
10637     ;;
10638   esac
10639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10640   shlibpath_overrides_runpath=no
10641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10643   hardcode_into_libs=yes
10644   ;;
10645
10646 # No shared lib support for Linux oldld, aout, or coff.
10647 linux*oldld* | linux*aout* | linux*coff*)
10648   dynamic_linker=no
10649   ;;
10650
10651 # This must be glibc/ELF.
10652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10653   version_type=linux # correct to gnu/linux during the next big refactor
10654   need_lib_prefix=no
10655   need_version=no
10656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657   soname_spec='${libname}${release}${shared_ext}$major'
10658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10659   shlibpath_var=LD_LIBRARY_PATH
10660   shlibpath_overrides_runpath=no
10661
10662   # Some binutils ld are patched to set DT_RUNPATH
10663   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666   lt_cv_shlibpath_overrides_runpath=no
10667     save_LDFLAGS=$LDFLAGS
10668     save_libdir=$libdir
10669     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10670          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673
10674 int
10675 main ()
10676 {
10677
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"; then :
10683   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10684   lt_cv_shlibpath_overrides_runpath=yes
10685 fi
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext \
10688     conftest$ac_exeext conftest.$ac_ext
10689     LDFLAGS=$save_LDFLAGS
10690     libdir=$save_libdir
10691
10692 fi
10693
10694   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10695
10696   # This implies no fast_install, which is unacceptable.
10697   # Some rework will be needed to allow for fast_install
10698   # before this can be enabled.
10699   hardcode_into_libs=yes
10700
10701   # Append ld.so.conf contents to the search path
10702   if test -f /etc/ld.so.conf; then
10703     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' ' '`
10704     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10705   fi
10706
10707   # We used to test for /lib/ld.so.1 and disable shared libraries on
10708   # powerpc, because MkLinux only supported shared libraries with the
10709   # GNU dynamic linker.  Since this was broken with cross compilers,
10710   # most powerpc-linux boxes support dynamic linking these days and
10711   # people can always --disable-shared, the test was removed, and we
10712   # assume the GNU/Linux dynamic linker is in use.
10713   dynamic_linker='GNU/Linux ld.so'
10714   ;;
10715
10716 netbsdelf*-gnu)
10717   version_type=linux
10718   need_lib_prefix=no
10719   need_version=no
10720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10721   soname_spec='${libname}${release}${shared_ext}$major'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   shlibpath_overrides_runpath=no
10724   hardcode_into_libs=yes
10725   dynamic_linker='NetBSD ld.elf_so'
10726   ;;
10727
10728 netbsd*)
10729   version_type=sunos
10730   need_lib_prefix=no
10731   need_version=no
10732   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10734     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10735     dynamic_linker='NetBSD (a.out) ld.so'
10736   else
10737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10738     soname_spec='${libname}${release}${shared_ext}$major'
10739     dynamic_linker='NetBSD ld.elf_so'
10740   fi
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=yes
10743   hardcode_into_libs=yes
10744   ;;
10745
10746 newsos6)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749   shlibpath_var=LD_LIBRARY_PATH
10750   shlibpath_overrides_runpath=yes
10751   ;;
10752
10753 *nto* | *qnx*)
10754   version_type=qnx
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=no
10761   hardcode_into_libs=yes
10762   dynamic_linker='ldqnx.so'
10763   ;;
10764
10765 openbsd*)
10766   version_type=sunos
10767   sys_lib_dlsearch_path_spec="/usr/lib"
10768   need_lib_prefix=no
10769   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10770   case $host_os in
10771     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10772     *)                          need_version=no  ;;
10773   esac
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10778     case $host_os in
10779       openbsd2.[89] | openbsd2.[89].*)
10780         shlibpath_overrides_runpath=no
10781         ;;
10782       *)
10783         shlibpath_overrides_runpath=yes
10784         ;;
10785       esac
10786   else
10787     shlibpath_overrides_runpath=yes
10788   fi
10789   ;;
10790
10791 os2*)
10792   libname_spec='$name'
10793   shrext_cmds=".dll"
10794   need_lib_prefix=no
10795   library_names_spec='$libname${shared_ext} $libname.a'
10796   dynamic_linker='OS/2 ld.exe'
10797   shlibpath_var=LIBPATH
10798   ;;
10799
10800 osf3* | osf4* | osf5*)
10801   version_type=osf
10802   need_lib_prefix=no
10803   need_version=no
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806   shlibpath_var=LD_LIBRARY_PATH
10807   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10808   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10809   ;;
10810
10811 rdos*)
10812   dynamic_linker=no
10813   ;;
10814
10815 solaris*)
10816   version_type=linux # correct to gnu/linux during the next big refactor
10817   need_lib_prefix=no
10818   need_version=no
10819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820   soname_spec='${libname}${release}${shared_ext}$major'
10821   shlibpath_var=LD_LIBRARY_PATH
10822   shlibpath_overrides_runpath=yes
10823   hardcode_into_libs=yes
10824   # ldd complains unless libraries are executable
10825   postinstall_cmds='chmod +x $lib'
10826   ;;
10827
10828 sunos4*)
10829   version_type=sunos
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   shlibpath_overrides_runpath=yes
10834   if test "$with_gnu_ld" = yes; then
10835     need_lib_prefix=no
10836   fi
10837   need_version=yes
10838   ;;
10839
10840 sysv4 | sysv4.3*)
10841   version_type=linux # correct to gnu/linux during the next big refactor
10842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843   soname_spec='${libname}${release}${shared_ext}$major'
10844   shlibpath_var=LD_LIBRARY_PATH
10845   case $host_vendor in
10846     sni)
10847       shlibpath_overrides_runpath=no
10848       need_lib_prefix=no
10849       runpath_var=LD_RUN_PATH
10850       ;;
10851     siemens)
10852       need_lib_prefix=no
10853       ;;
10854     motorola)
10855       need_lib_prefix=no
10856       need_version=no
10857       shlibpath_overrides_runpath=no
10858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10859       ;;
10860   esac
10861   ;;
10862
10863 sysv4*MP*)
10864   if test -d /usr/nec ;then
10865     version_type=linux # correct to gnu/linux during the next big refactor
10866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10867     soname_spec='$libname${shared_ext}.$major'
10868     shlibpath_var=LD_LIBRARY_PATH
10869   fi
10870   ;;
10871
10872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10873   version_type=freebsd-elf
10874   need_lib_prefix=no
10875   need_version=no
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10877   soname_spec='${libname}${release}${shared_ext}$major'
10878   shlibpath_var=LD_LIBRARY_PATH
10879   shlibpath_overrides_runpath=yes
10880   hardcode_into_libs=yes
10881   if test "$with_gnu_ld" = yes; then
10882     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10883   else
10884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10885     case $host_os in
10886       sco3.2v5*)
10887         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10888         ;;
10889     esac
10890   fi
10891   sys_lib_dlsearch_path_spec='/usr/lib'
10892   ;;
10893
10894 tpf*)
10895   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10896   version_type=linux # correct to gnu/linux during the next big refactor
10897   need_lib_prefix=no
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900   shlibpath_var=LD_LIBRARY_PATH
10901   shlibpath_overrides_runpath=no
10902   hardcode_into_libs=yes
10903   ;;
10904
10905 uts4*)
10906   version_type=linux # correct to gnu/linux during the next big refactor
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908   soname_spec='${libname}${release}${shared_ext}$major'
10909   shlibpath_var=LD_LIBRARY_PATH
10910   ;;
10911
10912 *)
10913   dynamic_linker=no
10914   ;;
10915 esac
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10917 $as_echo "$dynamic_linker" >&6; }
10918 test "$dynamic_linker" = no && can_build_shared=no
10919
10920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10921 if test "$GCC" = yes; then
10922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10923 fi
10924
10925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10926   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10927 fi
10928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10929   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10930 fi
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11024 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11025 hardcode_action=
11026 if test -n "$hardcode_libdir_flag_spec" ||
11027    test -n "$runpath_var" ||
11028    test "X$hardcode_automatic" = "Xyes" ; then
11029
11030   # We can hardcode non-existent directories.
11031   if test "$hardcode_direct" != no &&
11032      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11033      # have to relink, otherwise we might link with an installed library
11034      # when we should be linking with a yet-to-be-installed one
11035      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11036      test "$hardcode_minus_L" != no; then
11037     # Linking always hardcodes the temporary library directory.
11038     hardcode_action=relink
11039   else
11040     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11041     hardcode_action=immediate
11042   fi
11043 else
11044   # We cannot hardcode anything, or else we can only hardcode existing
11045   # directories.
11046   hardcode_action=unsupported
11047 fi
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11049 $as_echo "$hardcode_action" >&6; }
11050
11051 if test "$hardcode_action" = relink ||
11052    test "$inherit_rpath" = yes; then
11053   # Fast installation is not supported
11054   enable_fast_install=no
11055 elif test "$shlibpath_overrides_runpath" = yes ||
11056      test "$enable_shared" = no; then
11057   # Fast installation is not necessary
11058   enable_fast_install=needless
11059 fi
11060
11061
11062
11063
11064
11065
11066   if test "x$enable_dlopen" != xyes; then
11067   enable_dlopen=unknown
11068   enable_dlopen_self=unknown
11069   enable_dlopen_self_static=unknown
11070 else
11071   lt_cv_dlopen=no
11072   lt_cv_dlopen_libs=
11073
11074   case $host_os in
11075   beos*)
11076     lt_cv_dlopen="load_add_on"
11077     lt_cv_dlopen_libs=
11078     lt_cv_dlopen_self=yes
11079     ;;
11080
11081   mingw* | pw32* | cegcc*)
11082     lt_cv_dlopen="LoadLibrary"
11083     lt_cv_dlopen_libs=
11084     ;;
11085
11086   cygwin*)
11087     lt_cv_dlopen="dlopen"
11088     lt_cv_dlopen_libs=
11089     ;;
11090
11091   darwin*)
11092   # if libdl is installed we need to link against it
11093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11094 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11095 if ${ac_cv_lib_dl_dlopen+:} false; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098   ac_check_lib_save_LIBS=$LIBS
11099 LIBS="-ldl  $LIBS"
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h.  */
11102
11103 /* Override any GCC internal prototype to avoid an error.
11104    Use char because int might match the return type of a GCC
11105    builtin and then its argument prototype would still apply.  */
11106 #ifdef __cplusplus
11107 extern "C"
11108 #endif
11109 char dlopen ();
11110 int
11111 main ()
11112 {
11113 return dlopen ();
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 if ac_fn_c_try_link "$LINENO"; then :
11119   ac_cv_lib_dl_dlopen=yes
11120 else
11121   ac_cv_lib_dl_dlopen=no
11122 fi
11123 rm -f core conftest.err conftest.$ac_objext \
11124     conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11128 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11129 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11131 else
11132
11133     lt_cv_dlopen="dyld"
11134     lt_cv_dlopen_libs=
11135     lt_cv_dlopen_self=yes
11136
11137 fi
11138
11139     ;;
11140
11141   *)
11142     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11143 if test "x$ac_cv_func_shl_load" = xyes; then :
11144   lt_cv_dlopen="shl_load"
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11147 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11148 if ${ac_cv_lib_dld_shl_load+:} false; then :
11149   $as_echo_n "(cached) " >&6
11150 else
11151   ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-ldld  $LIBS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h.  */
11155
11156 /* Override any GCC internal prototype to avoid an error.
11157    Use char because int might match the return type of a GCC
11158    builtin and then its argument prototype would still apply.  */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char shl_load ();
11163 int
11164 main ()
11165 {
11166 return shl_load ();
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172   ac_cv_lib_dld_shl_load=yes
11173 else
11174   ac_cv_lib_dld_shl_load=no
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext \
11177     conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11181 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11182 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11183   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11184 else
11185   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11186 if test "x$ac_cv_func_dlopen" = xyes; then :
11187   lt_cv_dlopen="dlopen"
11188 else
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11191 if ${ac_cv_lib_dl_dlopen+:} false; then :
11192   $as_echo_n "(cached) " >&6
11193 else
11194   ac_check_lib_save_LIBS=$LIBS
11195 LIBS="-ldl  $LIBS"
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h.  */
11198
11199 /* Override any GCC internal prototype to avoid an error.
11200    Use char because int might match the return type of a GCC
11201    builtin and then its argument prototype would still apply.  */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 char dlopen ();
11206 int
11207 main ()
11208 {
11209 return dlopen ();
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_c_try_link "$LINENO"; then :
11215   ac_cv_lib_dl_dlopen=yes
11216 else
11217   ac_cv_lib_dl_dlopen=no
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext \
11220     conftest$ac_exeext conftest.$ac_ext
11221 LIBS=$ac_check_lib_save_LIBS
11222 fi
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11225 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11226   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11227 else
11228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11230 if ${ac_cv_lib_svld_dlopen+:} false; then :
11231   $as_echo_n "(cached) " >&6
11232 else
11233   ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-lsvld  $LIBS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h.  */
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239    Use char because int might match the return type of a GCC
11240    builtin and then its argument prototype would still apply.  */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char dlopen ();
11245 int
11246 main ()
11247 {
11248 return dlopen ();
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254   ac_cv_lib_svld_dlopen=yes
11255 else
11256   ac_cv_lib_svld_dlopen=no
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259     conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11264 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11265   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11266 else
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11269 if ${ac_cv_lib_dld_dld_link+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272   ac_check_lib_save_LIBS=$LIBS
11273 LIBS="-ldld  $LIBS"
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h.  */
11276
11277 /* Override any GCC internal prototype to avoid an error.
11278    Use char because int might match the return type of a GCC
11279    builtin and then its argument prototype would still apply.  */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 char dld_link ();
11284 int
11285 main ()
11286 {
11287 return dld_link ();
11288   ;
11289   return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293   ac_cv_lib_dld_dld_link=yes
11294 else
11295   ac_cv_lib_dld_dld_link=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298     conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11303 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11304   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11305 fi
11306
11307
11308 fi
11309
11310
11311 fi
11312
11313
11314 fi
11315
11316
11317 fi
11318
11319
11320 fi
11321
11322     ;;
11323   esac
11324
11325   if test "x$lt_cv_dlopen" != xno; then
11326     enable_dlopen=yes
11327   else
11328     enable_dlopen=no
11329   fi
11330
11331   case $lt_cv_dlopen in
11332   dlopen)
11333     save_CPPFLAGS="$CPPFLAGS"
11334     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11335
11336     save_LDFLAGS="$LDFLAGS"
11337     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11338
11339     save_LIBS="$LIBS"
11340     LIBS="$lt_cv_dlopen_libs $LIBS"
11341
11342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11344 if ${lt_cv_dlopen_self+:} false; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347           if test "$cross_compiling" = yes; then :
11348   lt_cv_dlopen_self=cross
11349 else
11350   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11351   lt_status=$lt_dlunknown
11352   cat > conftest.$ac_ext <<_LT_EOF
11353 #line $LINENO "configure"
11354 #include "confdefs.h"
11355
11356 #if HAVE_DLFCN_H
11357 #include <dlfcn.h>
11358 #endif
11359
11360 #include <stdio.h>
11361
11362 #ifdef RTLD_GLOBAL
11363 #  define LT_DLGLOBAL           RTLD_GLOBAL
11364 #else
11365 #  ifdef DL_GLOBAL
11366 #    define LT_DLGLOBAL         DL_GLOBAL
11367 #  else
11368 #    define LT_DLGLOBAL         0
11369 #  endif
11370 #endif
11371
11372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11373    find out it does not work in some platform. */
11374 #ifndef LT_DLLAZY_OR_NOW
11375 #  ifdef RTLD_LAZY
11376 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11377 #  else
11378 #    ifdef DL_LAZY
11379 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11380 #    else
11381 #      ifdef RTLD_NOW
11382 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11383 #      else
11384 #        ifdef DL_NOW
11385 #          define LT_DLLAZY_OR_NOW      DL_NOW
11386 #        else
11387 #          define LT_DLLAZY_OR_NOW      0
11388 #        endif
11389 #      endif
11390 #    endif
11391 #  endif
11392 #endif
11393
11394 /* When -fvisbility=hidden is used, assume the code has been annotated
11395    correspondingly for the symbols needed.  */
11396 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11397 int fnord () __attribute__((visibility("default")));
11398 #endif
11399
11400 int fnord () { return 42; }
11401 int main ()
11402 {
11403   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11404   int status = $lt_dlunknown;
11405
11406   if (self)
11407     {
11408       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11409       else
11410         {
11411           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11412           else puts (dlerror ());
11413         }
11414       /* dlclose (self); */
11415     }
11416   else
11417     puts (dlerror ());
11418
11419   return status;
11420 }
11421 _LT_EOF
11422   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11423   (eval $ac_link) 2>&5
11424   ac_status=$?
11425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11427     (./conftest; exit; ) >&5 2>/dev/null
11428     lt_status=$?
11429     case x$lt_status in
11430       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11431       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11432       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11433     esac
11434   else :
11435     # compilation failed
11436     lt_cv_dlopen_self=no
11437   fi
11438 fi
11439 rm -fr conftest*
11440
11441
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11444 $as_echo "$lt_cv_dlopen_self" >&6; }
11445
11446     if test "x$lt_cv_dlopen_self" = xyes; then
11447       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11448       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11450 if ${lt_cv_dlopen_self_static+:} false; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453           if test "$cross_compiling" = yes; then :
11454   lt_cv_dlopen_self_static=cross
11455 else
11456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457   lt_status=$lt_dlunknown
11458   cat > conftest.$ac_ext <<_LT_EOF
11459 #line $LINENO "configure"
11460 #include "confdefs.h"
11461
11462 #if HAVE_DLFCN_H
11463 #include <dlfcn.h>
11464 #endif
11465
11466 #include <stdio.h>
11467
11468 #ifdef RTLD_GLOBAL
11469 #  define LT_DLGLOBAL           RTLD_GLOBAL
11470 #else
11471 #  ifdef DL_GLOBAL
11472 #    define LT_DLGLOBAL         DL_GLOBAL
11473 #  else
11474 #    define LT_DLGLOBAL         0
11475 #  endif
11476 #endif
11477
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479    find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11481 #  ifdef RTLD_LAZY
11482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11483 #  else
11484 #    ifdef DL_LAZY
11485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11486 #    else
11487 #      ifdef RTLD_NOW
11488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11489 #      else
11490 #        ifdef DL_NOW
11491 #          define LT_DLLAZY_OR_NOW      DL_NOW
11492 #        else
11493 #          define LT_DLLAZY_OR_NOW      0
11494 #        endif
11495 #      endif
11496 #    endif
11497 #  endif
11498 #endif
11499
11500 /* When -fvisbility=hidden is used, assume the code has been annotated
11501    correspondingly for the symbols needed.  */
11502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503 int fnord () __attribute__((visibility("default")));
11504 #endif
11505
11506 int fnord () { return 42; }
11507 int main ()
11508 {
11509   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510   int status = $lt_dlunknown;
11511
11512   if (self)
11513     {
11514       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11515       else
11516         {
11517           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11518           else puts (dlerror ());
11519         }
11520       /* dlclose (self); */
11521     }
11522   else
11523     puts (dlerror ());
11524
11525   return status;
11526 }
11527 _LT_EOF
11528   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529   (eval $ac_link) 2>&5
11530   ac_status=$?
11531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533     (./conftest; exit; ) >&5 2>/dev/null
11534     lt_status=$?
11535     case x$lt_status in
11536       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11537       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11538       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11539     esac
11540   else :
11541     # compilation failed
11542     lt_cv_dlopen_self_static=no
11543   fi
11544 fi
11545 rm -fr conftest*
11546
11547
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11551     fi
11552
11553     CPPFLAGS="$save_CPPFLAGS"
11554     LDFLAGS="$save_LDFLAGS"
11555     LIBS="$save_LIBS"
11556     ;;
11557   esac
11558
11559   case $lt_cv_dlopen_self in
11560   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11561   *) enable_dlopen_self=unknown ;;
11562   esac
11563
11564   case $lt_cv_dlopen_self_static in
11565   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11566   *) enable_dlopen_self_static=unknown ;;
11567   esac
11568 fi
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586 striplib=
11587 old_striplib=
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11591   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11592   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594 $as_echo "yes" >&6; }
11595 else
11596 # FIXME - insert some real tests, host_os isn't really good enough
11597   case $host_os in
11598   darwin*)
11599     if test -n "$STRIP" ; then
11600       striplib="$STRIP -x"
11601       old_striplib="$STRIP -S"
11602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11603 $as_echo "yes" >&6; }
11604     else
11605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607     fi
11608     ;;
11609   *)
11610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11612     ;;
11613   esac
11614 fi
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627   # Report which library types will actually be built
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11631 $as_echo "$can_build_shared" >&6; }
11632
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11634 $as_echo_n "checking whether to build shared libraries... " >&6; }
11635   test "$can_build_shared" = "no" && enable_shared=no
11636
11637   # On AIX, shared libraries and static libraries use the same namespace, and
11638   # are all built from PIC.
11639   case $host_os in
11640   aix3*)
11641     test "$enable_shared" = yes && enable_static=no
11642     if test -n "$RANLIB"; then
11643       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11644       postinstall_cmds='$RANLIB $lib'
11645     fi
11646     ;;
11647
11648   aix[4-9]*)
11649     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11650       test "$enable_shared" = yes && enable_static=no
11651     fi
11652     ;;
11653   esac
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11655 $as_echo "$enable_shared" >&6; }
11656
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11658 $as_echo_n "checking whether to build static libraries... " >&6; }
11659   # Make sure either enable_shared or enable_static is yes.
11660   test "$enable_shared" = yes || enable_static=yes
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11662 $as_echo "$enable_static" >&6; }
11663
11664
11665
11666
11667 fi
11668 ac_ext=c
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673
11674 CC="$lt_save_CC"
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690         ac_config_commands="$ac_config_commands libtool"
11691
11692
11693
11694
11695 # Only expand once:
11696
11697
11698
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11700 $as_echo_n "checking for library containing strerror... " >&6; }
11701 if ${ac_cv_search_strerror+:} false; then :
11702   $as_echo_n "(cached) " >&6
11703 else
11704   ac_func_search_save_LIBS=$LIBS
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h.  */
11707
11708 /* Override any GCC internal prototype to avoid an error.
11709    Use char because int might match the return type of a GCC
11710    builtin and then its argument prototype would still apply.  */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 char strerror ();
11715 int
11716 main ()
11717 {
11718 return strerror ();
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 for ac_lib in '' cposix; do
11724   if test -z "$ac_lib"; then
11725     ac_res="none required"
11726   else
11727     ac_res=-l$ac_lib
11728     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11729   fi
11730   if ac_fn_c_try_link "$LINENO"; then :
11731   ac_cv_search_strerror=$ac_res
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext
11735   if ${ac_cv_search_strerror+:} false; then :
11736   break
11737 fi
11738 done
11739 if ${ac_cv_search_strerror+:} false; then :
11740
11741 else
11742   ac_cv_search_strerror=no
11743 fi
11744 rm conftest.$ac_ext
11745 LIBS=$ac_func_search_save_LIBS
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11748 $as_echo "$ac_cv_search_strerror" >&6; }
11749 ac_res=$ac_cv_search_strerror
11750 if test "$ac_res" != no; then :
11751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11752
11753 fi
11754
11755 ac_ext=c
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760 if test -n "$ac_tool_prefix"; then
11761   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_CC+:} false; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   if test -n "$CC"; then
11769   ac_cv_prog_CC="$CC" # Let the user override the test.
11770 else
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774   IFS=$as_save_IFS
11775   test -z "$as_dir" && as_dir=.
11776     for ac_exec_ext in '' $ac_executable_extensions; do
11777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780     break 2
11781   fi
11782 done
11783   done
11784 IFS=$as_save_IFS
11785
11786 fi
11787 fi
11788 CC=$ac_cv_prog_CC
11789 if test -n "$CC"; then
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11791 $as_echo "$CC" >&6; }
11792 else
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796
11797
11798 fi
11799 if test -z "$ac_cv_prog_CC"; then
11800   ac_ct_CC=$CC
11801   # Extract the first word of "gcc", so it can be a program name with args.
11802 set dummy gcc; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808   if test -n "$ac_ct_CC"; then
11809   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814   IFS=$as_save_IFS
11815   test -z "$as_dir" && as_dir=.
11816     for ac_exec_ext in '' $ac_executable_extensions; do
11817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818     ac_cv_prog_ac_ct_CC="gcc"
11819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820     break 2
11821   fi
11822 done
11823   done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11829 if test -n "$ac_ct_CC"; then
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11831 $as_echo "$ac_ct_CC" >&6; }
11832 else
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837   if test "x$ac_ct_CC" = x; then
11838     CC=""
11839   else
11840     case $cross_compiling:$ac_tool_warned in
11841 yes:)
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844 ac_tool_warned=yes ;;
11845 esac
11846     CC=$ac_ct_CC
11847   fi
11848 else
11849   CC="$ac_cv_prog_CC"
11850 fi
11851
11852 if test -z "$CC"; then
11853           if test -n "$ac_tool_prefix"; then
11854     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}cc; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_CC+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   if test -n "$CC"; then
11862   ac_cv_prog_CC="$CC" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867   IFS=$as_save_IFS
11868   test -z "$as_dir" && as_dir=.
11869     for ac_exec_ext in '' $ac_executable_extensions; do
11870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871     ac_cv_prog_CC="${ac_tool_prefix}cc"
11872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873     break 2
11874   fi
11875 done
11876   done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 CC=$ac_cv_prog_CC
11882 if test -n "$CC"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11884 $as_echo "$CC" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891   fi
11892 fi
11893 if test -z "$CC"; then
11894   # Extract the first word of "cc", so it can be a program name with args.
11895 set dummy cc; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_CC+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   if test -n "$CC"; then
11902   ac_cv_prog_CC="$CC" # Let the user override the test.
11903 else
11904   ac_prog_rejected=no
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_exec_ext in '' $ac_executable_extensions; do
11911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11913        ac_prog_rejected=yes
11914        continue
11915      fi
11916     ac_cv_prog_CC="cc"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923
11924 if test $ac_prog_rejected = yes; then
11925   # We found a bogon in the path, so make sure we never use it.
11926   set dummy $ac_cv_prog_CC
11927   shift
11928   if test $# != 0; then
11929     # We chose a different compiler from the bogus one.
11930     # However, it has the same basename, so the bogon will be chosen
11931     # first if we set CC to just the basename; use the full file name.
11932     shift
11933     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11934   fi
11935 fi
11936 fi
11937 fi
11938 CC=$ac_cv_prog_CC
11939 if test -n "$CC"; then
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11941 $as_echo "$CC" >&6; }
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947
11948 fi
11949 if test -z "$CC"; then
11950   if test -n "$ac_tool_prefix"; then
11951   for ac_prog in cl.exe
11952   do
11953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_CC+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   if test -n "$CC"; then
11961   ac_cv_prog_CC="$CC" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966   IFS=$as_save_IFS
11967   test -z "$as_dir" && as_dir=.
11968     for ac_exec_ext in '' $ac_executable_extensions; do
11969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972     break 2
11973   fi
11974 done
11975   done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 CC=$ac_cv_prog_CC
11981 if test -n "$CC"; then
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11983 $as_echo "$CC" >&6; }
11984 else
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990     test -n "$CC" && break
11991   done
11992 fi
11993 if test -z "$CC"; then
11994   ac_ct_CC=$CC
11995   for ac_prog in cl.exe
11996 do
11997   # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   if test -n "$ac_ct_CC"; then
12005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12006 else
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_prog_ac_ct_CC="$ac_prog"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021
12022 fi
12023 fi
12024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12025 if test -n "$ac_ct_CC"; then
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12027 $as_echo "$ac_ct_CC" >&6; }
12028 else
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 fi
12032
12033
12034   test -n "$ac_ct_CC" && break
12035 done
12036
12037   if test "x$ac_ct_CC" = x; then
12038     CC=""
12039   else
12040     case $cross_compiling:$ac_tool_warned in
12041 yes:)
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044 ac_tool_warned=yes ;;
12045 esac
12046     CC=$ac_ct_CC
12047   fi
12048 fi
12049
12050 fi
12051
12052
12053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12055 as_fn_error $? "no acceptable C compiler found in \$PATH
12056 See \`config.log' for more details" "$LINENO" 5; }
12057
12058 # Provide some information about the compiler.
12059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12060 set X $ac_compile
12061 ac_compiler=$2
12062 for ac_option in --version -v -V -qversion; do
12063   { { ac_try="$ac_compiler $ac_option >&5"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12069 $as_echo "$ac_try_echo"; } >&5
12070   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12071   ac_status=$?
12072   if test -s conftest.err; then
12073     sed '10a\
12074 ... rest of stderr output deleted ...
12075          10q' conftest.err >conftest.er1
12076     cat conftest.er1 >&5
12077   fi
12078   rm -f conftest.er1 conftest.err
12079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080   test $ac_status = 0; }
12081 done
12082
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12085 if ${ac_cv_c_compiler_gnu+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090
12091 int
12092 main ()
12093 {
12094 #ifndef __GNUC__
12095        choke me
12096 #endif
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103   ac_compiler_gnu=yes
12104 else
12105   ac_compiler_gnu=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12113 if test $ac_compiler_gnu = yes; then
12114   GCC=yes
12115 else
12116   GCC=
12117 fi
12118 ac_test_CFLAGS=${CFLAGS+set}
12119 ac_save_CFLAGS=$CFLAGS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12122 if ${ac_cv_prog_cc_g+:} false; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   ac_save_c_werror_flag=$ac_c_werror_flag
12126    ac_c_werror_flag=yes
12127    ac_cv_prog_cc_g=no
12128    CFLAGS="-g"
12129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131
12132 int
12133 main ()
12134 {
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141   ac_cv_prog_cc_g=yes
12142 else
12143   CFLAGS=""
12144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147 int
12148 main ()
12149 {
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_compile "$LINENO"; then :
12156
12157 else
12158   ac_c_werror_flag=$ac_save_c_werror_flag
12159          CFLAGS="-g"
12160          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h.  */
12162
12163 int
12164 main ()
12165 {
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172   ac_cv_prog_cc_g=yes
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179    ac_c_werror_flag=$ac_save_c_werror_flag
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12182 $as_echo "$ac_cv_prog_cc_g" >&6; }
12183 if test "$ac_test_CFLAGS" = set; then
12184   CFLAGS=$ac_save_CFLAGS
12185 elif test $ac_cv_prog_cc_g = yes; then
12186   if test "$GCC" = yes; then
12187     CFLAGS="-g -O2"
12188   else
12189     CFLAGS="-g"
12190   fi
12191 else
12192   if test "$GCC" = yes; then
12193     CFLAGS="-O2"
12194   else
12195     CFLAGS=
12196   fi
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12200 if ${ac_cv_prog_cc_c89+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   ac_cv_prog_cc_c89=no
12204 ac_save_CC=$CC
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207 #include <stdarg.h>
12208 #include <stdio.h>
12209 struct stat;
12210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12211 struct buf { int x; };
12212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12213 static char *e (p, i)
12214      char **p;
12215      int i;
12216 {
12217   return p[i];
12218 }
12219 static char *f (char * (*g) (char **, int), char **p, ...)
12220 {
12221   char *s;
12222   va_list v;
12223   va_start (v,p);
12224   s = g (p, va_arg (v,int));
12225   va_end (v);
12226   return s;
12227 }
12228
12229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12230    function prototypes and stuff, but not '\xHH' hex character constants.
12231    These don't provoke an error unfortunately, instead are silently treated
12232    as 'x'.  The following induces an error, until -std is added to get
12233    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12234    array size at least.  It's necessary to write '\x00'==0 to get something
12235    that's true only with -std.  */
12236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12237
12238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12239    inside strings and character constants.  */
12240 #define FOO(x) 'x'
12241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12242
12243 int test (int i, double x);
12244 struct s1 {int (*f) (int a);};
12245 struct s2 {int (*f) (double a);};
12246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12247 int argc;
12248 char **argv;
12249 int
12250 main ()
12251 {
12252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12258         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12259 do
12260   CC="$ac_save_CC $ac_arg"
12261   if ac_fn_c_try_compile "$LINENO"; then :
12262   ac_cv_prog_cc_c89=$ac_arg
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext
12265   test "x$ac_cv_prog_cc_c89" != "xno" && break
12266 done
12267 rm -f conftest.$ac_ext
12268 CC=$ac_save_CC
12269
12270 fi
12271 # AC_CACHE_VAL
12272 case "x$ac_cv_prog_cc_c89" in
12273   x)
12274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12275 $as_echo "none needed" >&6; } ;;
12276   xno)
12277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12278 $as_echo "unsupported" >&6; } ;;
12279   *)
12280     CC="$CC $ac_cv_prog_cc_c89"
12281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12283 esac
12284 if test "x$ac_cv_prog_cc_c89" != xno; then :
12285
12286 fi
12287
12288 ac_ext=c
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12293
12294 depcc="$CC"   am_compiler_list=
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12297 $as_echo_n "checking dependency style of $depcc... " >&6; }
12298 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12299   $as_echo_n "(cached) " >&6
12300 else
12301   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12302   # We make a subdir and do the tests there.  Otherwise we can end up
12303   # making bogus files that we don't know about and never remove.  For
12304   # instance it was reported that on HP-UX the gcc test will end up
12305   # making a dummy file named `D' -- because `-MD' means `put the output
12306   # in D'.
12307   rm -rf conftest.dir
12308   mkdir conftest.dir
12309   # Copy depcomp to subdir because otherwise we won't find it if we're
12310   # using a relative directory.
12311   cp "$am_depcomp" conftest.dir
12312   cd conftest.dir
12313   # We will build objects and dependencies in a subdirectory because
12314   # it helps to detect inapplicable dependency modes.  For instance
12315   # both Tru64's cc and ICC support -MD to output dependencies as a
12316   # side effect of compilation, but ICC will put the dependencies in
12317   # the current directory while Tru64 will put them in the object
12318   # directory.
12319   mkdir sub
12320
12321   am_cv_CC_dependencies_compiler_type=none
12322   if test "$am_compiler_list" = ""; then
12323      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12324   fi
12325   am__universal=false
12326   case " $depcc " in #(
12327      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12328      esac
12329
12330   for depmode in $am_compiler_list; do
12331     # Setup a source with many dependencies, because some compilers
12332     # like to wrap large dependency lists on column 80 (with \), and
12333     # we should not choose a depcomp mode which is confused by this.
12334     #
12335     # We need to recreate these files for each test, as the compiler may
12336     # overwrite some of them when testing with obscure command lines.
12337     # This happens at least with the AIX C compiler.
12338     : > sub/conftest.c
12339     for i in 1 2 3 4 5 6; do
12340       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12341       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12342       # Solaris 8's {/usr,}/bin/sh.
12343       touch sub/conftst$i.h
12344     done
12345     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12346
12347     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12348     # mode.  It turns out that the SunPro C++ compiler does not properly
12349     # handle `-M -o', and we need to detect this.  Also, some Intel
12350     # versions had trouble with output in subdirs
12351     am__obj=sub/conftest.${OBJEXT-o}
12352     am__minus_obj="-o $am__obj"
12353     case $depmode in
12354     gcc)
12355       # This depmode causes a compiler race in universal mode.
12356       test "$am__universal" = false || continue
12357       ;;
12358     nosideeffect)
12359       # after this tag, mechanisms are not by side-effect, so they'll
12360       # only be used when explicitly requested
12361       if test "x$enable_dependency_tracking" = xyes; then
12362         continue
12363       else
12364         break
12365       fi
12366       ;;
12367     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12368       # This compiler won't grok `-c -o', but also, the minuso test has
12369       # not run yet.  These depmodes are late enough in the game, and
12370       # so weak that their functioning should not be impacted.
12371       am__obj=conftest.${OBJEXT-o}
12372       am__minus_obj=
12373       ;;
12374     none) break ;;
12375     esac
12376     if depmode=$depmode \
12377        source=sub/conftest.c object=$am__obj \
12378        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12379        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12380          >/dev/null 2>conftest.err &&
12381        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12382        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12383        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12384        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12385       # icc doesn't choke on unknown options, it will just issue warnings
12386       # or remarks (even with -Werror).  So we grep stderr for any message
12387       # that says an option was ignored or not supported.
12388       # When given -MP, icc 7.0 and 7.1 complain thusly:
12389       #   icc: Command line warning: ignoring option '-M'; no argument required
12390       # The diagnosis changed in icc 8.0:
12391       #   icc: Command line remark: option '-MP' not supported
12392       if (grep 'ignoring option' conftest.err ||
12393           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12394         am_cv_CC_dependencies_compiler_type=$depmode
12395         break
12396       fi
12397     fi
12398   done
12399
12400   cd ..
12401   rm -rf conftest.dir
12402 else
12403   am_cv_CC_dependencies_compiler_type=none
12404 fi
12405
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12408 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12409 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12410
12411  if
12412   test "x$enable_dependency_tracking" != xno \
12413   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12414   am__fastdepCC_TRUE=
12415   am__fastdepCC_FALSE='#'
12416 else
12417   am__fastdepCC_TRUE='#'
12418   am__fastdepCC_FALSE=
12419 fi
12420
12421
12422 if test "x$CC" != xcc; then
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12424 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12425 else
12426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12427 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12428 fi
12429 set dummy $CC; ac_cc=`$as_echo "$2" |
12430                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12431 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h.  */
12436
12437 int
12438 main ()
12439 {
12440
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 # Make sure it works both with $CC and with simple cc.
12446 # We do the test twice because some compilers refuse to overwrite an
12447 # existing .o file with -o, though they will create one.
12448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12449 rm -f conftest2.*
12450 if { { case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12455 $as_echo "$ac_try_echo"; } >&5
12456   (eval "$ac_try") 2>&5
12457   ac_status=$?
12458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459   test $ac_status = 0; } &&
12460    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462   *) ac_try_echo=$ac_try;;
12463 esac
12464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12465 $as_echo "$ac_try_echo"; } >&5
12466   (eval "$ac_try") 2>&5
12467   ac_status=$?
12468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469   test $ac_status = 0; };
12470 then
12471   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12472   if test "x$CC" != xcc; then
12473     # Test first that cc exists at all.
12474     if { ac_try='cc -c conftest.$ac_ext >&5'
12475   { { case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12480 $as_echo "$ac_try_echo"; } >&5
12481   (eval "$ac_try") 2>&5
12482   ac_status=$?
12483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484   test $ac_status = 0; }; }; then
12485       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12486       rm -f conftest2.*
12487       if { { case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12492 $as_echo "$ac_try_echo"; } >&5
12493   (eval "$ac_try") 2>&5
12494   ac_status=$?
12495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12496   test $ac_status = 0; } &&
12497          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499   *) ac_try_echo=$ac_try;;
12500 esac
12501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12502 $as_echo "$ac_try_echo"; } >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506   test $ac_status = 0; };
12507       then
12508         # cc works too.
12509         :
12510       else
12511         # cc exists but doesn't like -o.
12512         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12513       fi
12514     fi
12515   fi
12516 else
12517   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12518 fi
12519 rm -f core conftest*
12520
12521 fi
12522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528
12529 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12530
12531 fi
12532
12533 # FIXME: we rely on the cache variable name because
12534 # there is no other way.
12535 set dummy $CC
12536 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12537 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12538 if test "$am_t" != yes; then
12539    # Losing compiler, so override with the script.
12540    # FIXME: It is wrong to rewrite CC.
12541    # But if we don't then we get into trouble of one sort or another.
12542    # A longer-term fix would be to have automake use am__CC in this case,
12543    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12544    CC="$am_aux_dir/compile $CC"
12545 fi
12546
12547
12548
12549 # option to specify python interpreter to use; this just sets $PYTHON, so that
12550 # we will fallback to reading $PYTHON if --with-python is not given, and
12551 # python.m4 will get the expected input
12552
12553 # Check whether --with-python was given.
12554 if test "${with_python+set}" = set; then :
12555   withval=$with_python; PYTHON="$withval"
12556 fi
12557
12558 if test x"$PYTHON" = xyes; then
12559         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12560 fi
12561 if test -n "$PYTHON" && ! which "$PYTHON"; then
12562         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12563 fi
12564
12565 # check that we have the minimum version of python necessary to build
12566
12567
12568
12569
12570         if test -n "$PYTHON"; then
12571       # If the user set $PYTHON, use it and don't search something else.
12572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
12573 $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
12574       prog="import sys
12575 # split strings by '.' and convert to numeric.  Append some zeros
12576 # because we need at least 4 digits for the hex conversion.
12577 # map returns an iterator in Python 3.0 and a list in 2.x
12578 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12579 minverhex = 0
12580 # xrange is not present in Python 3.0 and range returns an iterator
12581 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12582 sys.exit(sys.hexversion < minverhex)"
12583   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12584    ($PYTHON -c "$prog") >&5 2>&5
12585    ac_status=$?
12586    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587    (exit $ac_status); }; then :
12588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590 else
12591   as_fn_error $? "too old" "$LINENO" 5
12592 fi
12593       am_display_PYTHON=$PYTHON
12594     else
12595       # Otherwise, try each interpreter until we find one that satisfies
12596       # VERSION.
12597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
12598 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
12599 if ${am_cv_pathless_PYTHON+:} false; then :
12600   $as_echo_n "(cached) " >&6
12601 else
12602
12603         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python none; do
12604           test "$am_cv_pathless_PYTHON" = none && break
12605           prog="import sys
12606 # split strings by '.' and convert to numeric.  Append some zeros
12607 # because we need at least 4 digits for the hex conversion.
12608 # map returns an iterator in Python 3.0 and a list in 2.x
12609 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12610 minverhex = 0
12611 # xrange is not present in Python 3.0 and range returns an iterator
12612 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12613 sys.exit(sys.hexversion < minverhex)"
12614   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12615    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12616    ac_status=$?
12617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618    (exit $ac_status); }; then :
12619   break
12620 fi
12621         done
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12624 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12625       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12626       if test "$am_cv_pathless_PYTHON" = none; then
12627         PYTHON=:
12628       else
12629         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12630 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if ${ac_cv_path_PYTHON+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   case $PYTHON in
12637   [\\/]* | ?:[\\/]*)
12638   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12639   ;;
12640   *)
12641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12643 do
12644   IFS=$as_save_IFS
12645   test -z "$as_dir" && as_dir=.
12646     for ac_exec_ext in '' $ac_executable_extensions; do
12647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12648     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650     break 2
12651   fi
12652 done
12653   done
12654 IFS=$as_save_IFS
12655
12656   ;;
12657 esac
12658 fi
12659 PYTHON=$ac_cv_path_PYTHON
12660 if test -n "$PYTHON"; then
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12662 $as_echo "$PYTHON" >&6; }
12663 else
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667
12668
12669       fi
12670       am_display_PYTHON=$am_cv_pathless_PYTHON
12671     fi
12672
12673
12674   if test "$PYTHON" = :; then
12675       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12676   else
12677
12678
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12680 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12681 if ${am_cv_python_version+:} false; then :
12682   $as_echo_n "(cached) " >&6
12683 else
12684   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12687 $as_echo "$am_cv_python_version" >&6; }
12688   PYTHON_VERSION=$am_cv_python_version
12689
12690
12691
12692   PYTHON_PREFIX='${prefix}'
12693
12694   PYTHON_EXEC_PREFIX='${exec_prefix}'
12695
12696
12697
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12699 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12700 if ${am_cv_python_platform+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12706 $as_echo "$am_cv_python_platform" >&6; }
12707   PYTHON_PLATFORM=$am_cv_python_platform
12708
12709
12710
12711
12712                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12713 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12714 if ${am_cv_python_pythondir+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12718      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12721 $as_echo "$am_cv_python_pythondir" >&6; }
12722   pythondir=$am_cv_python_pythondir
12723
12724
12725
12726   pkgpythondir=\${pythondir}/$PACKAGE
12727
12728
12729             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12730 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12731 if ${am_cv_python_pyexecdir+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12735      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12738 $as_echo "$am_cv_python_pyexecdir" >&6; }
12739   pyexecdir=$am_cv_python_pyexecdir
12740
12741
12742
12743   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12744
12745
12746
12747   fi
12748
12749
12750
12751 # check if we are building for python 3
12752 prog="import sys
12753 # split strings by '.' and convert to numeric.  Append some zeros
12754 # because we need at least 4 digits for the hex conversion.
12755 # map returns an iterator in Python 3.0 and a list in 2.x
12756 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12757 minverhex = 0
12758 # xrange is not present in Python 3.0 and range returns an iterator
12759 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12760 sys.exit(sys.hexversion < minverhex)"
12761   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12762    ($PYTHON -c "$prog") >&5 2>&5
12763    ac_status=$?
12764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765    (exit $ac_status); }; then :
12766   build_py3k=true
12767 else
12768   build_py3k=false
12769 fi
12770
12771 # if building for python 3 make sure we have the minimum version supported
12772 if test $build_py3k = true ; then
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12774 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12775   prog="import sys
12776 # split strings by '.' and convert to numeric.  Append some zeros
12777 # because we need at least 4 digits for the hex conversion.
12778 # map returns an iterator in Python 3.0 and a list in 2.x
12779 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12780 minverhex = 0
12781 # xrange is not present in Python 3.0 and range returns an iterator
12782 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12783 sys.exit(sys.hexversion < minverhex)"
12784   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12785    ($PYTHON -c "$prog") >&5 2>&5
12786    ac_status=$?
12787    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788    (exit $ac_status); }; then :
12789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 else
12792   as_fn_error $? "too old" "$LINENO" 5
12793 fi
12794 fi
12795
12796
12797
12798
12799
12800
12801
12802         # Find any Python interpreter.
12803     if test -z "$PYTHON"; then
12804       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python
12805 do
12806   # Extract the first word of "$ac_prog", so it can be a program name with args.
12807 set dummy $ac_prog; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_PYTHON+:} false; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   case $PYTHON in
12814   [\\/]* | ?:[\\/]*)
12815   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12816   ;;
12817   *)
12818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821   IFS=$as_save_IFS
12822   test -z "$as_dir" && as_dir=.
12823     for ac_exec_ext in '' $ac_executable_extensions; do
12824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827     break 2
12828   fi
12829 done
12830   done
12831 IFS=$as_save_IFS
12832
12833   ;;
12834 esac
12835 fi
12836 PYTHON=$ac_cv_path_PYTHON
12837 if test -n "$PYTHON"; then
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12839 $as_echo "$PYTHON" >&6; }
12840 else
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12843 fi
12844
12845
12846   test -n "$PYTHON" && break
12847 done
12848 test -n "$PYTHON" || PYTHON=":"
12849
12850     fi
12851     am_display_PYTHON=python
12852
12853
12854   if test "$PYTHON" = :; then
12855       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12856   else
12857
12858
12859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12860 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12861 if ${am_cv_python_version+:} false; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12867 $as_echo "$am_cv_python_version" >&6; }
12868   PYTHON_VERSION=$am_cv_python_version
12869
12870
12871
12872   PYTHON_PREFIX='${prefix}'
12873
12874   PYTHON_EXEC_PREFIX='${exec_prefix}'
12875
12876
12877
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12879 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12880 if ${am_cv_python_platform+:} false; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12886 $as_echo "$am_cv_python_platform" >&6; }
12887   PYTHON_PLATFORM=$am_cv_python_platform
12888
12889
12890
12891
12892             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12893 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12894 if ${am_cv_python_pythondir+:} false; then :
12895   $as_echo_n "(cached) " >&6
12896 else
12897   if test "x$prefix" = xNONE
12898      then
12899        am_py_prefix=$ac_default_prefix
12900      else
12901        am_py_prefix=$prefix
12902      fi
12903      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
12904      case $am_cv_python_pythondir in
12905      $am_py_prefix*)
12906        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12907        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12908        ;;
12909      *)
12910        case $am_py_prefix in
12911          /usr|/System*) ;;
12912          *)
12913           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12914           ;;
12915        esac
12916        ;;
12917      esac
12918
12919 fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12921 $as_echo "$am_cv_python_pythondir" >&6; }
12922   pythondir=$am_cv_python_pythondir
12923
12924
12925
12926   pkgpythondir=\${pythondir}/$PACKAGE
12927
12928
12929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12930 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12931 if ${am_cv_python_pyexecdir+:} false; then :
12932   $as_echo_n "(cached) " >&6
12933 else
12934   if test "x$exec_prefix" = xNONE
12935      then
12936        am_py_exec_prefix=$am_py_prefix
12937      else
12938        am_py_exec_prefix=$exec_prefix
12939      fi
12940      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
12941      case $am_cv_python_pyexecdir in
12942      $am_py_exec_prefix*)
12943        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12944        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12945        ;;
12946      *)
12947        case $am_py_exec_prefix in
12948          /usr|/System*) ;;
12949          *)
12950            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12951            ;;
12952        esac
12953        ;;
12954      esac
12955
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12958 $as_echo "$am_cv_python_pyexecdir" >&6; }
12959   pyexecdir=$am_cv_python_pyexecdir
12960
12961
12962
12963   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12964
12965
12966
12967   fi
12968
12969
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
12972 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
12973 if test "x$PYTHON_INCLUDES" = x; then
12974   PYTHON_CONFIG=`which $PYTHON`-config
12975   if test -x "$PYTHON_CONFIG"; then
12976     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
12977   else
12978     py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
12979     py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12980     PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
12981     if test "$py_prefix" != "$py_exec_prefix"; then
12982       PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
12983     fi
12984   fi
12985 fi
12986
12987 save_CPPFLAGS="$CPPFLAGS"
12988 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h.  */
12991 #include <Python.h>
12992 _ACEOF
12993 if ac_fn_c_try_cpp "$LINENO"; then :
12994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12995 $as_echo "found" >&6; }
12996
12997 else
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12999 $as_echo "not found" >&6; }
13000 as_fn_error $? "Python headers not found" "$LINENO" 5
13001 fi
13002 rm -f conftest.err conftest.i conftest.$ac_ext
13003 CPPFLAGS="$save_CPPFLAGS"
13004
13005 if test "x$os_win32" = "xyes"; then
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13008 $as_echo_n "checking for libraries required to embed python... " >&6; }
13009 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
13010 if test "x$PYTHON_LIBS" = x; then
13011         PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13012 fi
13013 if test "x$PYTHON_LIB_LOC" = x; then
13014         PYTHON_LIB_LOC="${py_prefix}/lib"
13015 fi
13016
13017
13018 save_LIBS="$LIBS"
13019 LIBS="$LIBS $PYTHON_LIBS"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h.  */
13022
13023 /* Override any GCC internal prototype to avoid an error.
13024    Use char because int might match the return type of a GCC
13025    builtin and then its argument prototype would still apply.  */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 char Py_Initialize ();
13030 int
13031 main ()
13032 {
13033 return Py_Initialize ();
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_link "$LINENO"; then :
13039            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; };
13041 else
13042            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13044 fi
13045 rm -f core conftest.err conftest.$ac_objext \
13046     conftest$ac_exeext conftest.$ac_ext
13047
13048
13049 fi
13050
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13052 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13053 old_CPPFLAGS=$CPPFLAGS
13054 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h.  */
13057 #include <Python.h>
13058 int
13059 main ()
13060 {
13061 PySignal_SetWakeupFd(0);
13062   ;
13063   return 0;
13064 }
13065 _ACEOF
13066 if ac_fn_c_try_compile "$LINENO"; then :
13067   setwakeupfd_ok=yes
13068 else
13069   setwakeupfd_ok=no
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13073 $as_echo "$setwakeupfd_ok" >&6; }
13074 if test "x$setwakeupfd_ok" != xno; then
13075
13076 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13077
13078 fi
13079 CPPFLAGS=$old_CPPFLAGS
13080
13081 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13082
13083
13084 # Check whether --enable-thread was given.
13085 if test "${enable_thread+set}" = set; then :
13086   enableval=$enable_thread;
13087 else
13088   enable_thread=yes
13089 fi
13090
13091
13092
13093 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13095 $as_echo_n "checking for python module thread... " >&6; }
13096 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099
13100 prog="
13101 import sys
13102 try:
13103         import thread
13104 except ImportError:
13105         sys.exit(1)
13106 except:
13107         sys.exit(0)
13108 sys.exit(0)"
13109 if $PYTHON -c "$prog" 1>&5 2>&5
13110   then
13111     eval "py_cv_mod_$py_mod_var=yes"
13112   else
13113     eval "py_cv_mod_$py_mod_var=no"
13114   fi
13115
13116 fi
13117
13118 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13119 if test "x$py_val" != xno; then
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122   else
13123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125   enable_thread=check_for_py3_module
13126 fi
13127
13128 if test "x$enable_thread" = xcheck_for_py3_module; then
13129
13130 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13132 $as_echo_n "checking for python module _thread... " >&6; }
13133 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13134   $as_echo_n "(cached) " >&6
13135 else
13136
13137 prog="
13138 import sys
13139 try:
13140         import _thread
13141 except ImportError:
13142         sys.exit(1)
13143 except:
13144         sys.exit(0)
13145 sys.exit(0)"
13146 if $PYTHON -c "$prog" 1>&5 2>&5
13147   then
13148     eval "py_cv_mod_$py_mod_var=yes"
13149   else
13150     eval "py_cv_mod_$py_mod_var=no"
13151   fi
13152
13153 fi
13154
13155 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13156 if test "x$py_val" != xno; then
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13158 $as_echo "yes" >&6; }
13159   enable_thread=yes
13160 else
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163   enable_thread=no
13164 fi
13165
13166 fi
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13169 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13170 if test "x$enable_thread" != xno; then
13171   extra_mods=gthread
13172   THREADING_CFLAGS=
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13174 $as_echo "yes" >&6; }
13175 else
13176   extra_mods=
13177   THREADING_CFLAGS="-DDISABLE_THREADING"
13178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 fi
13181
13182 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13183
13184 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13185
13186 # Check whether --enable-glibtest was given.
13187 if test "${enable_glibtest+set}" = set; then :
13188   enableval=$enable_glibtest;
13189 else
13190   enable_glibtest=yes
13191 fi
13192
13193
13194   pkg_config_args=glib-2.0
13195   for module in . gobject $extra_mods
13196   do
13197       case "$module" in
13198          gmodule)
13199              pkg_config_args="$pkg_config_args gmodule-2.0"
13200          ;;
13201          gmodule-no-export)
13202              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13203          ;;
13204          gobject)
13205              pkg_config_args="$pkg_config_args gobject-2.0"
13206          ;;
13207          gthread)
13208              pkg_config_args="$pkg_config_args gthread-2.0"
13209          ;;
13210          gio*)
13211              pkg_config_args="$pkg_config_args $module-2.0"
13212          ;;
13213       esac
13214   done
13215
13216
13217
13218
13219
13220
13221
13222
13223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13224         if test -n "$ac_tool_prefix"; then
13225   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13226 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232   case $PKG_CONFIG in
13233   [\\/]* | ?:[\\/]*)
13234   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13235   ;;
13236   *)
13237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13239 do
13240   IFS=$as_save_IFS
13241   test -z "$as_dir" && as_dir=.
13242     for ac_exec_ext in '' $ac_executable_extensions; do
13243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246     break 2
13247   fi
13248 done
13249   done
13250 IFS=$as_save_IFS
13251
13252   ;;
13253 esac
13254 fi
13255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13256 if test -n "$PKG_CONFIG"; then
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13258 $as_echo "$PKG_CONFIG" >&6; }
13259 else
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 fi
13263
13264
13265 fi
13266 if test -z "$ac_cv_path_PKG_CONFIG"; then
13267   ac_pt_PKG_CONFIG=$PKG_CONFIG
13268   # Extract the first word of "pkg-config", so it can be a program name with args.
13269 set dummy pkg-config; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275   case $ac_pt_PKG_CONFIG in
13276   [\\/]* | ?:[\\/]*)
13277   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13278   ;;
13279   *)
13280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13282 do
13283   IFS=$as_save_IFS
13284   test -z "$as_dir" && as_dir=.
13285     for ac_exec_ext in '' $ac_executable_extensions; do
13286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289     break 2
13290   fi
13291 done
13292   done
13293 IFS=$as_save_IFS
13294
13295   ;;
13296 esac
13297 fi
13298 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13299 if test -n "$ac_pt_PKG_CONFIG"; then
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13301 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13302 else
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13305 fi
13306
13307   if test "x$ac_pt_PKG_CONFIG" = x; then
13308     PKG_CONFIG=""
13309   else
13310     case $cross_compiling:$ac_tool_warned in
13311 yes:)
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314 ac_tool_warned=yes ;;
13315 esac
13316     PKG_CONFIG=$ac_pt_PKG_CONFIG
13317   fi
13318 else
13319   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13320 fi
13321
13322 fi
13323 if test -n "$PKG_CONFIG"; then
13324         _pkg_min_version=0.16
13325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13326 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13327         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13329 $as_echo "yes" >&6; }
13330         else
13331                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332 $as_echo "no" >&6; }
13333                 PKG_CONFIG=""
13334         fi
13335 fi
13336
13337   no_glib=""
13338
13339   if test "x$PKG_CONFIG" = x ; then
13340     no_glib=yes
13341     PKG_CONFIG=no
13342   fi
13343
13344   min_glib_version=2.34.2
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13346 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13347
13348   if test x$PKG_CONFIG != xno ; then
13349     ## don't try to run the test against uninstalled libtool libs
13350     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13351           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13352           enable_glibtest=no
13353     fi
13354
13355     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13356           :
13357     else
13358           no_glib=yes
13359     fi
13360   fi
13361
13362   if test x"$no_glib" = x ; then
13363     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13364     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13365     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13366     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13367
13368     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13369     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13370     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13371            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13372     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13373            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13374     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13375            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13376     if test "x$enable_glibtest" = "xyes" ; then
13377       ac_save_CFLAGS="$CFLAGS"
13378       ac_save_LIBS="$LIBS"
13379       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13380       LIBS="$GLIB_LIBS $LIBS"
13381       rm -f conf.glibtest
13382       if test "$cross_compiling" = yes; then :
13383   echo $ac_n "cross compiling; assumed OK... $ac_c"
13384 else
13385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387
13388 #include <glib.h>
13389 #include <stdio.h>
13390 #include <stdlib.h>
13391
13392 int
13393 main ()
13394 {
13395   unsigned int major, minor, micro;
13396   char *tmp_version;
13397
13398   fclose (fopen ("conf.glibtest", "w"));
13399
13400   /* HP/UX 9 (%@#!) writes to sscanf strings */
13401   tmp_version = g_strdup("$min_glib_version");
13402   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
13403      printf("%s, bad version string\n", "$min_glib_version");
13404      exit(1);
13405    }
13406
13407   if ((glib_major_version != $glib_config_major_version) ||
13408       (glib_minor_version != $glib_config_minor_version) ||
13409       (glib_micro_version != $glib_config_micro_version))
13410     {
13411       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13412              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13413              glib_major_version, glib_minor_version, glib_micro_version);
13414       printf ("*** was found! If pkg-config was correct, then it is best\n");
13415       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13416       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13417       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13418       printf("*** required on your system.\n");
13419       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13420       printf("*** to point to the correct configuration files\n");
13421     }
13422   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13423            (glib_minor_version != GLIB_MINOR_VERSION) ||
13424            (glib_micro_version != GLIB_MICRO_VERSION))
13425     {
13426       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13427              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13428       printf("*** library (version %d.%d.%d)\n",
13429              glib_major_version, glib_minor_version, glib_micro_version);
13430     }
13431   else
13432     {
13433       if ((glib_major_version > major) ||
13434         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13435         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13436       {
13437         return 0;
13438        }
13439      else
13440       {
13441         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13442                glib_major_version, glib_minor_version, glib_micro_version);
13443         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13444                major, minor, micro);
13445         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13446         printf("***\n");
13447         printf("*** If you have already installed a sufficiently new version, this error\n");
13448         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13449         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13450         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13451         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13452         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13453         printf("*** so that the correct libraries are found at run-time))\n");
13454       }
13455     }
13456   return 1;
13457 }
13458
13459 _ACEOF
13460 if ac_fn_c_try_run "$LINENO"; then :
13461
13462 else
13463   no_glib=yes
13464 fi
13465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13466   conftest.$ac_objext conftest.beam conftest.$ac_ext
13467 fi
13468
13469        CFLAGS="$ac_save_CFLAGS"
13470        LIBS="$ac_save_LIBS"
13471      fi
13472   fi
13473   if test "x$no_glib" = x ; then
13474      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13475 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13476      :
13477   else
13478      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480      if test "$PKG_CONFIG" = "no" ; then
13481        echo "*** A new enough version of pkg-config was not found."
13482        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13483      else
13484        if test -f conf.glibtest ; then
13485         :
13486        else
13487           echo "*** Could not run GLIB test program, checking why..."
13488           ac_save_CFLAGS="$CFLAGS"
13489           ac_save_LIBS="$LIBS"
13490           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13491           LIBS="$LIBS $GLIB_LIBS"
13492           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h.  */
13494
13495 #include <glib.h>
13496 #include <stdio.h>
13497
13498 int
13499 main ()
13500 {
13501  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 if ac_fn_c_try_link "$LINENO"; then :
13507    echo "*** The test program compiled, but did not run. This usually means"
13508           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13509           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13510           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13511           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13512           echo "*** is required on your system"
13513           echo "***"
13514           echo "*** If you have an old version installed, it is best to remove it, although"
13515           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13516 else
13517    echo "*** The test program failed to compile or link. See the file config.log for the"
13518           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext \
13521     conftest$ac_exeext conftest.$ac_ext
13522           CFLAGS="$ac_save_CFLAGS"
13523           LIBS="$ac_save_LIBS"
13524        fi
13525      fi
13526      GLIB_CFLAGS=""
13527      GLIB_LIBS=""
13528      GLIB_GENMARSHAL=""
13529      GOBJECT_QUERY=""
13530      GLIB_MKENUMS=""
13531      GLIB_COMPILE_RESOURCES=""
13532      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13533   fi
13534
13535
13536
13537
13538
13539
13540   rm -f conf.glibtest
13541
13542 if test -n "$export_dynamic"; then
13543   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13544 fi
13545 PYTHON_BASENAME=`basename $PYTHON`
13546
13547
13548
13549   EXP_VAR=DATADIR
13550   FROM_VAR=$datadir
13551
13552     prefix_save=$prefix
13553   exec_prefix_save=$exec_prefix
13554
13555     if test "x$prefix" = "xNONE"; then
13556     prefix=$ac_default_prefix
13557   fi
13558     if test "x$exec_prefix" = "xNONE"; then
13559     exec_prefix=$prefix
13560   fi
13561
13562   full_var="$FROM_VAR"
13563     while true; do
13564     new_full_var="`eval echo $full_var`"
13565     if test "x$new_full_var"="x$full_var"; then break; fi
13566     full_var=$new_full_var
13567   done
13568
13569     full_var=$new_full_var
13570   DATADIR="$full_var"
13571
13572
13573     prefix=$prefix_save
13574   exec_prefix=$exec_prefix_save
13575
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
13578 $as_echo_n "checking for ffi... " >&6; }
13579
13580 # Check whether --with-ffi was given.
13581 if test "${with_ffi+set}" = set; then :
13582   withval=$with_ffi; with_libffi=$withval
13583 else
13584   with_libffi=auto
13585 fi
13586
13587 if test x"$with_libffi" = xno ; then
13588   have_libffi=false
13589 else
13590
13591 pkg_failed=no
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13593 $as_echo_n "checking for FFI... " >&6; }
13594
13595 if test -n "$FFI_CFLAGS"; then
13596     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13597  elif test -n "$PKG_CONFIG"; then
13598     if test -n "$PKG_CONFIG" && \
13599     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13600   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13601   ac_status=$?
13602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603   test $ac_status = 0; }; then
13604   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13605                       test "x$?" != "x0" && pkg_failed=yes
13606 else
13607   pkg_failed=yes
13608 fi
13609  else
13610     pkg_failed=untried
13611 fi
13612 if test -n "$FFI_LIBS"; then
13613     pkg_cv_FFI_LIBS="$FFI_LIBS"
13614  elif test -n "$PKG_CONFIG"; then
13615     if test -n "$PKG_CONFIG" && \
13616     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13617   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13618   ac_status=$?
13619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620   test $ac_status = 0; }; then
13621   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13622                       test "x$?" != "x0" && pkg_failed=yes
13623 else
13624   pkg_failed=yes
13625 fi
13626  else
13627     pkg_failed=untried
13628 fi
13629
13630
13631
13632 if test $pkg_failed = yes; then
13633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13635
13636 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13637         _pkg_short_errors_supported=yes
13638 else
13639         _pkg_short_errors_supported=no
13640 fi
13641         if test $_pkg_short_errors_supported = yes; then
13642                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13643         else
13644                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13645         fi
13646         # Put the nasty error message in config.log where it belongs
13647         echo "$FFI_PKG_ERRORS" >&5
13648
13649         have_libffi=no
13650 elif test $pkg_failed = untried; then
13651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653         have_libffi=no
13654 else
13655         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13656         FFI_LIBS=$pkg_cv_FFI_LIBS
13657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13658 $as_echo "yes" >&6; }
13659         have_libffi=yes
13660 fi
13661 fi
13662 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
13663   as_fn_error $? "ffi requested, but not found" "$LINENO" 5
13664 fi
13665 if test x"$have_libffi" = xyes; then
13666   LIBFFI_PC=libffi
13667 fi
13668  if test "$have_libffi" = "yes"; then
13669   HAVE_LIBFFI_TRUE=
13670   HAVE_LIBFFI_FALSE='#'
13671 else
13672   HAVE_LIBFFI_TRUE='#'
13673   HAVE_LIBFFI_FALSE=
13674 fi
13675
13676
13677
13678
13679
13680
13681 pkg_failed=no
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13683 $as_echo_n "checking for GIO... " >&6; }
13684
13685 if test -n "$GIO_CFLAGS"; then
13686     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13687  elif test -n "$PKG_CONFIG"; then
13688     if test -n "$PKG_CONFIG" && \
13689     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13690   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13691   ac_status=$?
13692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693   test $ac_status = 0; }; then
13694   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.34.2" 2>/dev/null`
13695                       test "x$?" != "x0" && pkg_failed=yes
13696 else
13697   pkg_failed=yes
13698 fi
13699  else
13700     pkg_failed=untried
13701 fi
13702 if test -n "$GIO_LIBS"; then
13703     pkg_cv_GIO_LIBS="$GIO_LIBS"
13704  elif test -n "$PKG_CONFIG"; then
13705     if test -n "$PKG_CONFIG" && \
13706     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13707   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13708   ac_status=$?
13709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13710   test $ac_status = 0; }; then
13711   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.34.2" 2>/dev/null`
13712                       test "x$?" != "x0" && pkg_failed=yes
13713 else
13714   pkg_failed=yes
13715 fi
13716  else
13717     pkg_failed=untried
13718 fi
13719
13720
13721
13722 if test $pkg_failed = yes; then
13723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13725
13726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13727         _pkg_short_errors_supported=yes
13728 else
13729         _pkg_short_errors_supported=no
13730 fi
13731         if test $_pkg_short_errors_supported = yes; then
13732                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13733         else
13734                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13735         fi
13736         # Put the nasty error message in config.log where it belongs
13737         echo "$GIO_PKG_ERRORS" >&5
13738
13739         as_fn_error $? "Package requirements (gio-2.0 >= 2.34.2) were not met:
13740
13741 $GIO_PKG_ERRORS
13742
13743 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13744 installed software in a non-standard prefix.
13745
13746 Alternatively, you may set the environment variables GIO_CFLAGS
13747 and GIO_LIBS to avoid the need to call pkg-config.
13748 See the pkg-config man page for more details." "$LINENO" 5
13749 elif test $pkg_failed = untried; then
13750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13755 is in your PATH or set the PKG_CONFIG environment variable to the full
13756 path to pkg-config.
13757
13758 Alternatively, you may set the environment variables GIO_CFLAGS
13759 and GIO_LIBS to avoid the need to call pkg-config.
13760 See the pkg-config man page for more details.
13761
13762 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13763 See \`config.log' for more details" "$LINENO" 5; }
13764 else
13765         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13766         GIO_LIBS=$pkg_cv_GIO_LIBS
13767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13768 $as_echo "yes" >&6; }
13769
13770 fi
13771
13772 # Check whether --enable-cairo was given.
13773 if test "${enable_cairo+set}" = set; then :
13774   enableval=$enable_cairo; enable_cairo=$enableval
13775 else
13776   enable_cairo=yes
13777 fi
13778
13779
13780
13781 pkg_failed=no
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13783 $as_echo_n "checking for GI... " >&6; }
13784
13785 if test -n "$GI_CFLAGS"; then
13786     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13787  elif test -n "$PKG_CONFIG"; then
13788     if test -n "$PKG_CONFIG" && \
13789     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13790     gobject-introspection-1.0 >= 1.34.2
13791 \""; } >&5
13792   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13793     gobject-introspection-1.0 >= 1.34.2
13794 ") 2>&5
13795   ac_status=$?
13796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13797   test $ac_status = 0; }; then
13798   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.34.2
13799     gobject-introspection-1.0 >= 1.34.2
13800 " 2>/dev/null`
13801                       test "x$?" != "x0" && pkg_failed=yes
13802 else
13803   pkg_failed=yes
13804 fi
13805  else
13806     pkg_failed=untried
13807 fi
13808 if test -n "$GI_LIBS"; then
13809     pkg_cv_GI_LIBS="$GI_LIBS"
13810  elif test -n "$PKG_CONFIG"; then
13811     if test -n "$PKG_CONFIG" && \
13812     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13813     gobject-introspection-1.0 >= 1.34.2
13814 \""; } >&5
13815   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13816     gobject-introspection-1.0 >= 1.34.2
13817 ") 2>&5
13818   ac_status=$?
13819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820   test $ac_status = 0; }; then
13821   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.34.2
13822     gobject-introspection-1.0 >= 1.34.2
13823 " 2>/dev/null`
13824                       test "x$?" != "x0" && pkg_failed=yes
13825 else
13826   pkg_failed=yes
13827 fi
13828  else
13829     pkg_failed=untried
13830 fi
13831
13832
13833
13834 if test $pkg_failed = yes; then
13835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837
13838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13839         _pkg_short_errors_supported=yes
13840 else
13841         _pkg_short_errors_supported=no
13842 fi
13843         if test $_pkg_short_errors_supported = yes; then
13844                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13845     gobject-introspection-1.0 >= 1.34.2
13846 " 2>&1`
13847         else
13848                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13849     gobject-introspection-1.0 >= 1.34.2
13850 " 2>&1`
13851         fi
13852         # Put the nasty error message in config.log where it belongs
13853         echo "$GI_PKG_ERRORS" >&5
13854
13855         as_fn_error $? "Package requirements (glib-2.0 >= 2.34.2
13856     gobject-introspection-1.0 >= 1.34.2
13857 ) were not met:
13858
13859 $GI_PKG_ERRORS
13860
13861 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13862 installed software in a non-standard prefix.
13863
13864 Alternatively, you may set the environment variables GI_CFLAGS
13865 and GI_LIBS to avoid the need to call pkg-config.
13866 See the pkg-config man page for more details." "$LINENO" 5
13867 elif test $pkg_failed = untried; then
13868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13870         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13872 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13873 is in your PATH or set the PKG_CONFIG environment variable to the full
13874 path to pkg-config.
13875
13876 Alternatively, you may set the environment variables GI_CFLAGS
13877 and GI_LIBS to avoid the need to call pkg-config.
13878 See the pkg-config man page for more details.
13879
13880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13881 See \`config.log' for more details" "$LINENO" 5; }
13882 else
13883         GI_CFLAGS=$pkg_cv_GI_CFLAGS
13884         GI_LIBS=$pkg_cv_GI_LIBS
13885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13886 $as_echo "yes" >&6; }
13887
13888 fi
13889
13890 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13891
13892
13893 if test "$enable_cairo" != no; then
13894
13895 pkg_failed=no
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13897 $as_echo_n "checking for CAIRO... " >&6; }
13898
13899 if test -n "$CAIRO_CFLAGS"; then
13900     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13901  elif test -n "$PKG_CONFIG"; then
13902     if test -n "$PKG_CONFIG" && \
13903     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13904   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13905   ac_status=$?
13906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907   test $ac_status = 0; }; then
13908   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13909                       test "x$?" != "x0" && pkg_failed=yes
13910 else
13911   pkg_failed=yes
13912 fi
13913  else
13914     pkg_failed=untried
13915 fi
13916 if test -n "$CAIRO_LIBS"; then
13917     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13918  elif test -n "$PKG_CONFIG"; then
13919     if test -n "$PKG_CONFIG" && \
13920     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13921   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13922   ac_status=$?
13923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924   test $ac_status = 0; }; then
13925   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13926                       test "x$?" != "x0" && pkg_failed=yes
13927 else
13928   pkg_failed=yes
13929 fi
13930  else
13931     pkg_failed=untried
13932 fi
13933
13934
13935
13936 if test $pkg_failed = yes; then
13937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13939
13940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13941         _pkg_short_errors_supported=yes
13942 else
13943         _pkg_short_errors_supported=no
13944 fi
13945         if test $_pkg_short_errors_supported = yes; then
13946                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13947         else
13948                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13949         fi
13950         # Put the nasty error message in config.log where it belongs
13951         echo "$CAIRO_PKG_ERRORS" >&5
13952
13953         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
13954
13955 $CAIRO_PKG_ERRORS
13956
13957 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13958 installed software in a non-standard prefix.
13959
13960 Alternatively, you may set the environment variables CAIRO_CFLAGS
13961 and CAIRO_LIBS to avoid the need to call pkg-config.
13962 See the pkg-config man page for more details." "$LINENO" 5
13963 elif test $pkg_failed = untried; then
13964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13966         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13968 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13969 is in your PATH or set the PKG_CONFIG environment variable to the full
13970 path to pkg-config.
13971
13972 Alternatively, you may set the environment variables CAIRO_CFLAGS
13973 and CAIRO_LIBS to avoid the need to call pkg-config.
13974 See the pkg-config man page for more details.
13975
13976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13977 See \`config.log' for more details" "$LINENO" 5; }
13978 else
13979         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13980         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982 $as_echo "yes" >&6; }
13983
13984 fi
13985
13986     if test $build_py3k = true; then
13987
13988 pkg_failed=no
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
13990 $as_echo_n "checking for PYCAIRO... " >&6; }
13991
13992 if test -n "$PYCAIRO_CFLAGS"; then
13993     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
13994  elif test -n "$PKG_CONFIG"; then
13995     if test -n "$PKG_CONFIG" && \
13996     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
13997         \""; } >&5
13998   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
13999         ") 2>&5
14000   ac_status=$?
14001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002   test $ac_status = 0; }; then
14003   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14004         " 2>/dev/null`
14005                       test "x$?" != "x0" && pkg_failed=yes
14006 else
14007   pkg_failed=yes
14008 fi
14009  else
14010     pkg_failed=untried
14011 fi
14012 if test -n "$PYCAIRO_LIBS"; then
14013     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14014  elif test -n "$PKG_CONFIG"; then
14015     if test -n "$PKG_CONFIG" && \
14016     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14017         \""; } >&5
14018   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14019         ") 2>&5
14020   ac_status=$?
14021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022   test $ac_status = 0; }; then
14023   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14024         " 2>/dev/null`
14025                       test "x$?" != "x0" && pkg_failed=yes
14026 else
14027   pkg_failed=yes
14028 fi
14029  else
14030     pkg_failed=untried
14031 fi
14032
14033
14034
14035 if test $pkg_failed = yes; then
14036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038
14039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14040         _pkg_short_errors_supported=yes
14041 else
14042         _pkg_short_errors_supported=no
14043 fi
14044         if test $_pkg_short_errors_supported = yes; then
14045                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14046         " 2>&1`
14047         else
14048                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14049         " 2>&1`
14050         fi
14051         # Put the nasty error message in config.log where it belongs
14052         echo "$PYCAIRO_PKG_ERRORS" >&5
14053
14054         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14055         ) were not met:
14056
14057 $PYCAIRO_PKG_ERRORS
14058
14059 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14060 installed software in a non-standard prefix.
14061
14062 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14063 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14064 See the pkg-config man page for more details." "$LINENO" 5
14065 elif test $pkg_failed = untried; then
14066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14067 $as_echo "no" >&6; }
14068         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14070 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14071 is in your PATH or set the PKG_CONFIG environment variable to the full
14072 path to pkg-config.
14073
14074 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14075 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14076 See the pkg-config man page for more details.
14077
14078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14079 See \`config.log' for more details" "$LINENO" 5; }
14080 else
14081         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14082         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14084 $as_echo "yes" >&6; }
14085
14086 fi
14087     else
14088
14089 pkg_failed=no
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14091 $as_echo_n "checking for PYCAIRO... " >&6; }
14092
14093 if test -n "$PYCAIRO_CFLAGS"; then
14094     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14095  elif test -n "$PKG_CONFIG"; then
14096     if test -n "$PKG_CONFIG" && \
14097     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14098         \""; } >&5
14099   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14100         ") 2>&5
14101   ac_status=$?
14102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14103   test $ac_status = 0; }; then
14104   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14105         " 2>/dev/null`
14106                       test "x$?" != "x0" && pkg_failed=yes
14107 else
14108   pkg_failed=yes
14109 fi
14110  else
14111     pkg_failed=untried
14112 fi
14113 if test -n "$PYCAIRO_LIBS"; then
14114     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14115  elif test -n "$PKG_CONFIG"; then
14116     if test -n "$PKG_CONFIG" && \
14117     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14118         \""; } >&5
14119   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14120         ") 2>&5
14121   ac_status=$?
14122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14123   test $ac_status = 0; }; then
14124   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14125         " 2>/dev/null`
14126                       test "x$?" != "x0" && pkg_failed=yes
14127 else
14128   pkg_failed=yes
14129 fi
14130  else
14131     pkg_failed=untried
14132 fi
14133
14134
14135
14136 if test $pkg_failed = yes; then
14137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139
14140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14141         _pkg_short_errors_supported=yes
14142 else
14143         _pkg_short_errors_supported=no
14144 fi
14145         if test $_pkg_short_errors_supported = yes; then
14146                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14147         " 2>&1`
14148         else
14149                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14150         " 2>&1`
14151         fi
14152         # Put the nasty error message in config.log where it belongs
14153         echo "$PYCAIRO_PKG_ERRORS" >&5
14154
14155         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14156         ) were not met:
14157
14158 $PYCAIRO_PKG_ERRORS
14159
14160 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14161 installed software in a non-standard prefix.
14162
14163 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14164 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14165 See the pkg-config man page for more details." "$LINENO" 5
14166 elif test $pkg_failed = untried; then
14167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14169         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14171 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14172 is in your PATH or set the PKG_CONFIG environment variable to the full
14173 path to pkg-config.
14174
14175 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14176 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14177 See the pkg-config man page for more details.
14178
14179 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14180 See \`config.log' for more details" "$LINENO" 5; }
14181 else
14182         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14183         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185 $as_echo "yes" >&6; }
14186
14187 fi
14188     fi
14189 fi
14190  if test "$enable_cairo" = "yes"; then
14191   ENABLE_CAIRO_TRUE=
14192   ENABLE_CAIRO_FALSE='#'
14193 else
14194   ENABLE_CAIRO_TRUE='#'
14195   ENABLE_CAIRO_FALSE=
14196 fi
14197
14198
14199 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14200 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14201
14202
14203
14204
14205 if test "x$GCC" = "xyes"; then
14206
14207 case " $CFLAGS " in
14208 *[\     \ ]-Wall[\      \ ]*)
14209   ;;
14210 *)
14211   save_CFLAGS="$CFLAGS"
14212   CFLAGS="$CFLAGS -Wall"
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14214 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h.  */
14217
14218 int
14219 main ()
14220 {
14221
14222   ;
14223   return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_compile "$LINENO"; then :
14227   jh_has_option=yes
14228 else
14229   jh_has_option=no
14230 fi
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14233 $as_echo "$jh_has_option" >&6; }
14234   if test $jh_has_option = no; then
14235     CFLAGS="$save_CFLAGS"
14236   fi
14237   ;;
14238 esac
14239   #JH_ADD_CFLAG([-Werror=missing-prototypes])
14240
14241 case " $CFLAGS " in
14242 *[\     \ ]-Werror=implicit-function-declaration[\      \ ]*)
14243   ;;
14244 *)
14245   save_CFLAGS="$CFLAGS"
14246   CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
14247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=implicit-function-declaration" >&5
14248 $as_echo_n "checking whether $CC understands -Werror=implicit-function-declaration... " >&6; }
14249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251
14252 int
14253 main ()
14254 {
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_compile "$LINENO"; then :
14261   jh_has_option=yes
14262 else
14263   jh_has_option=no
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14267 $as_echo "$jh_has_option" >&6; }
14268   if test $jh_has_option = no; then
14269     CFLAGS="$save_CFLAGS"
14270   fi
14271   ;;
14272 esac
14273
14274 case " $CFLAGS " in
14275 *[\     \ ]-Werror=pointer-arith[\      \ ]*)
14276   ;;
14277 *)
14278   save_CFLAGS="$CFLAGS"
14279   CFLAGS="$CFLAGS -Werror=pointer-arith"
14280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=pointer-arith" >&5
14281 $as_echo_n "checking whether $CC understands -Werror=pointer-arith... " >&6; }
14282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h.  */
14284
14285 int
14286 main ()
14287 {
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"; then :
14294   jh_has_option=yes
14295 else
14296   jh_has_option=no
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14300 $as_echo "$jh_has_option" >&6; }
14301   if test $jh_has_option = no; then
14302     CFLAGS="$save_CFLAGS"
14303   fi
14304   ;;
14305 esac
14306
14307 case " $CFLAGS " in
14308 *[\     \ ]-Werror=format-security[\    \ ]*)
14309   ;;
14310 *)
14311   save_CFLAGS="$CFLAGS"
14312   CFLAGS="$CFLAGS -Werror=format-security"
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format-security" >&5
14314 $as_echo_n "checking whether $CC understands -Werror=format-security... " >&6; }
14315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h.  */
14317
14318 int
14319 main ()
14320 {
14321
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 if ac_fn_c_try_compile "$LINENO"; then :
14327   jh_has_option=yes
14328 else
14329   jh_has_option=no
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14333 $as_echo "$jh_has_option" >&6; }
14334   if test $jh_has_option = no; then
14335     CFLAGS="$save_CFLAGS"
14336   fi
14337   ;;
14338 esac
14339
14340 case " $CFLAGS " in
14341 *[\     \ ]-Werror=missing-include-dirs[\       \ ]*)
14342   ;;
14343 *)
14344   save_CFLAGS="$CFLAGS"
14345   CFLAGS="$CFLAGS -Werror=missing-include-dirs"
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=missing-include-dirs" >&5
14347 $as_echo_n "checking whether $CC understands -Werror=missing-include-dirs... " >&6; }
14348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h.  */
14350
14351 int
14352 main ()
14353 {
14354
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360   jh_has_option=yes
14361 else
14362   jh_has_option=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14366 $as_echo "$jh_has_option" >&6; }
14367   if test $jh_has_option = no; then
14368     CFLAGS="$save_CFLAGS"
14369   fi
14370   ;;
14371 esac
14372
14373 case " $CFLAGS " in
14374 *[\     \ ]-Werror=format[\     \ ]*)
14375   ;;
14376 *)
14377   save_CFLAGS="$CFLAGS"
14378   CFLAGS="$CFLAGS -Werror=format"
14379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=format" >&5
14380 $as_echo_n "checking whether $CC understands -Werror=format... " >&6; }
14381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h.  */
14383
14384 int
14385 main ()
14386 {
14387
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393   jh_has_option=yes
14394 else
14395   jh_has_option=no
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14399 $as_echo "$jh_has_option" >&6; }
14400   if test $jh_has_option = no; then
14401     CFLAGS="$save_CFLAGS"
14402   fi
14403   ;;
14404 esac
14405
14406 case " $CFLAGS " in
14407 *[\     \ ]-Werror=unused-variable[\    \ ]*)
14408   ;;
14409 *)
14410   save_CFLAGS="$CFLAGS"
14411   CFLAGS="$CFLAGS -Werror=unused-variable"
14412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14413 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h.  */
14416
14417 int
14418 main ()
14419 {
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426   jh_has_option=yes
14427 else
14428   jh_has_option=no
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14432 $as_echo "$jh_has_option" >&6; }
14433   if test $jh_has_option = no; then
14434     CFLAGS="$save_CFLAGS"
14435   fi
14436   ;;
14437 esac
14438
14439 case " $CFLAGS " in
14440 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
14441   ;;
14442 *)
14443   save_CFLAGS="$CFLAGS"
14444   CFLAGS="$CFLAGS -fno-strict-aliasing"
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14446 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h.  */
14449
14450 int
14451 main ()
14452 {
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"; then :
14459   jh_has_option=yes
14460 else
14461   jh_has_option=no
14462 fi
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14465 $as_echo "$jh_has_option" >&6; }
14466   if test $jh_has_option = no; then
14467     CFLAGS="$save_CFLAGS"
14468   fi
14469   ;;
14470 esac
14471
14472   case $host_os in
14473   solaris*)
14474     ;;
14475   *)
14476
14477 case " $CFLAGS " in
14478 *[\     \ ]-std=c9x[\   \ ]*)
14479   ;;
14480 *)
14481   save_CFLAGS="$CFLAGS"
14482   CFLAGS="$CFLAGS -std=c9x"
14483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
14484 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
14485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h.  */
14487
14488 int
14489 main ()
14490 {
14491
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497   jh_has_option=yes
14498 else
14499   jh_has_option=no
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14503 $as_echo "$jh_has_option" >&6; }
14504   if test $jh_has_option = no; then
14505     CFLAGS="$save_CFLAGS"
14506   fi
14507   ;;
14508 esac
14509     ;;
14510   esac
14511
14512 fi
14513
14514 # enable code coverage support
14515
14516                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14517 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14518         # Check whether --enable-code-coverage was given.
14519 if test "${enable_code_coverage+set}" = set; then :
14520   enableval=$enable_code_coverage;
14521 else
14522   enable_code_coverage=no
14523 fi
14524
14525          if test x$enable_code_coverage = xyes; then
14526   CODE_COVERAGE_ENABLED_TRUE=
14527   CODE_COVERAGE_ENABLED_FALSE='#'
14528 else
14529   CODE_COVERAGE_ENABLED_TRUE='#'
14530   CODE_COVERAGE_ENABLED_FALSE=
14531 fi
14532
14533         CODE_COVERAGE_ENABLED=$enable_code_coverage
14534
14535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14536 $as_echo "$enable_code_coverage" >&6; }
14537
14538         if  test "$enable_code_coverage" = "yes" ; then :
14539
14540                                 if  test "$GCC" = "no" ; then :
14541
14542                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14543
14544 fi
14545
14546                 # List of supported lcov versions.
14547                 lcov_version_list="1.6 1.7 1.8 1.9"
14548
14549                 # Extract the first word of "lcov", so it can be a program name with args.
14550 set dummy lcov; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if ${ac_cv_prog_LCOV+:} false; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   if test -n "$LCOV"; then
14557   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14558 else
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14561 do
14562   IFS=$as_save_IFS
14563   test -z "$as_dir" && as_dir=.
14564     for ac_exec_ext in '' $ac_executable_extensions; do
14565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14566     ac_cv_prog_LCOV="lcov"
14567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14568     break 2
14569   fi
14570 done
14571   done
14572 IFS=$as_save_IFS
14573
14574 fi
14575 fi
14576 LCOV=$ac_cv_prog_LCOV
14577 if test -n "$LCOV"; then
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14579 $as_echo "$LCOV" >&6; }
14580 else
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583 fi
14584
14585
14586                 # Extract the first word of "genhtml", so it can be a program name with args.
14587 set dummy genhtml; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_prog_GENHTML+:} false; then :
14591   $as_echo_n "(cached) " >&6
14592 else
14593   if test -n "$GENHTML"; then
14594   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14595 else
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14598 do
14599   IFS=$as_save_IFS
14600   test -z "$as_dir" && as_dir=.
14601     for ac_exec_ext in '' $ac_executable_extensions; do
14602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603     ac_cv_prog_GENHTML="genhtml"
14604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605     break 2
14606   fi
14607 done
14608   done
14609 IFS=$as_save_IFS
14610
14611 fi
14612 fi
14613 GENHTML=$ac_cv_prog_GENHTML
14614 if test -n "$GENHTML"; then
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14616 $as_echo "$GENHTML" >&6; }
14617 else
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621
14622
14623
14624                 if  test "$LCOV" ; then :
14625
14626                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14627 $as_echo_n "checking for lcov version... " >&6; }
14628 if ${gnome_cv_lcov_version+:} false; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631
14632                                 gnome_cv_lcov_version=invalid
14633                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14634                                 for lcov_check_version in $lcov_version_list; do
14635                                         if test "$lcov_version" = "$lcov_check_version"; then
14636                                                 gnome_cv_lcov_version="$lcov_check_version (ok)"
14637                                         fi
14638                                 done
14639
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14642 $as_echo "$gnome_cv_lcov_version" >&6; }
14643
14644 else
14645
14646                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14647                         as_fn_error $? "$lcov_msg" "$LINENO" 5
14648
14649 fi
14650
14651                 case $gnome_cv_lcov_version in
14652                         ""|invalid)
14653                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14654                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
14655                                 LCOV="exit 0;"
14656                         ;;
14657                 esac
14658
14659                 if  test -z "$GENHTML" ; then :
14660
14661                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14662
14663 fi
14664
14665                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14666                 CODE_COVERAGE_LDFLAGS="-lgcov"
14667
14668
14669
14670
14671 fi
14672
14673 GNOME_CODE_COVERAGE_RULES='
14674 # Code coverage
14675 #
14676 # Optional:
14677 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14678 #    (Default: $(top_builddir))
14679 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14680 #    by lcov for code coverage. (Default:
14681 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14682 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14683 #    reports to be created. (Default:
14684 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14685 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14686 #    (Default: empty)
14687 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14688 #    instance. (Default: empty)
14689 #
14690 # The generated report will be titled using the $(PACKAGE_NAME) and
14691 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14692 # use the git-version-gen script, available online.
14693
14694 # Optional variables
14695 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14696 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14697 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14698 CODE_COVERAGE_LCOV_OPTIONS ?=
14699 CODE_COVERAGE_GENHTML_OPTIONS ?=
14700
14701 # Use recursive makes in order to ignore errors during check
14702 check-code-coverage:
14703 ifdef CODE_COVERAGE_ENABLED
14704         -$(MAKE) $(AM_MAKEFLAGS) -k check
14705         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14706 else
14707         @echo "Need to reconfigure with --enable-code-coverage"
14708 endif
14709
14710 # Capture code coverage data
14711 code-coverage-capture: code-coverage-capture-hook
14712 ifdef CODE_COVERAGE_ENABLED
14713         $(LCOV) --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)
14714         $(LCOV) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
14715         -rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14716         LANG=C $(GENHTML) --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)
14717         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14718 else
14719         @echo "Need to reconfigure with --enable-code-coverage"
14720 endif
14721
14722 # Hook rule executed before code-coverage-capture, overridable by the user
14723 code-coverage-capture-hook:
14724
14725 clean: code-coverage-clean
14726 code-coverage-clean:
14727         -$(LCOV) --directory $(top_builddir) -z
14728         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14729         -find . -name "*.gcda" -o -name "*.gcov" -delete
14730
14731 GITIGNOREFILES ?=
14732 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14733
14734 DISTCHECK_CONFIGURE_FLAGS ?=
14735 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14736
14737 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14738 '
14739
14740
14741
14742
14743 CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
14744 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14745
14746 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/_glib/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14747
14748 cat >confcache <<\_ACEOF
14749 # This file is a shell script that caches the results of configure
14750 # tests run on this system so they can be shared between configure
14751 # scripts and configure runs, see configure's option --config-cache.
14752 # It is not useful on other systems.  If it contains results you don't
14753 # want to keep, you may remove or edit it.
14754 #
14755 # config.status only pays attention to the cache file if you give it
14756 # the --recheck option to rerun configure.
14757 #
14758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14760 # following values.
14761
14762 _ACEOF
14763
14764 # The following way of writing the cache mishandles newlines in values,
14765 # but we know of no workaround that is simple, portable, and efficient.
14766 # So, we kill variables containing newlines.
14767 # Ultrix sh set writes to stderr and can't be redirected directly,
14768 # and sets the high bit in the cache file unless we assign to the vars.
14769 (
14770   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14771     eval ac_val=\$$ac_var
14772     case $ac_val in #(
14773     *${as_nl}*)
14774       case $ac_var in #(
14775       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14777       esac
14778       case $ac_var in #(
14779       _ | IFS | as_nl) ;; #(
14780       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14781       *) { eval $ac_var=; unset $ac_var;} ;;
14782       esac ;;
14783     esac
14784   done
14785
14786   (set) 2>&1 |
14787     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14788     *${as_nl}ac_space=\ *)
14789       # `set' does not quote correctly, so add quotes: double-quote
14790       # substitution turns \\\\ into \\, and sed turns \\ into \.
14791       sed -n \
14792         "s/'/'\\\\''/g;
14793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14794       ;; #(
14795     *)
14796       # `set' quotes correctly as required by POSIX, so do not add quotes.
14797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14798       ;;
14799     esac |
14800     sort
14801 ) |
14802   sed '
14803      /^ac_cv_env_/b end
14804      t clear
14805      :clear
14806      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14807      t end
14808      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14809      :end' >>confcache
14810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14811   if test -w "$cache_file"; then
14812     if test "x$cache_file" != "x/dev/null"; then
14813       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14814 $as_echo "$as_me: updating cache $cache_file" >&6;}
14815       if test ! -f "$cache_file" || test -h "$cache_file"; then
14816         cat confcache >"$cache_file"
14817       else
14818         case $cache_file in #(
14819         */* | ?:*)
14820           mv -f confcache "$cache_file"$$ &&
14821           mv -f "$cache_file"$$ "$cache_file" ;; #(
14822         *)
14823           mv -f confcache "$cache_file" ;;
14824         esac
14825       fi
14826     fi
14827   else
14828     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14829 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14830   fi
14831 fi
14832 rm -f confcache
14833
14834 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14835 # Let make expand exec_prefix.
14836 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14837
14838 DEFS=-DHAVE_CONFIG_H
14839
14840 ac_libobjs=
14841 ac_ltlibobjs=
14842 U=
14843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14844   # 1. Remove the extension, and $U if already installed.
14845   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14846   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14847   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14848   #    will be set to the directory where LIBOBJS objects are built.
14849   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14850   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14851 done
14852 LIBOBJS=$ac_libobjs
14853
14854 LTLIBOBJS=$ac_ltlibobjs
14855
14856
14857  if test -n "$EXEEXT"; then
14858   am__EXEEXT_TRUE=
14859   am__EXEEXT_FALSE='#'
14860 else
14861   am__EXEEXT_TRUE='#'
14862   am__EXEEXT_FALSE=
14863 fi
14864
14865 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14866   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14868 fi
14869 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14870   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14872 fi
14873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14874   as_fn_error $? "conditional \"AMDEP\" was never defined.
14875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14876 fi
14877 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14878   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14880 fi
14881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14882   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14884 fi
14885 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
14886   as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
14887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14888 fi
14889 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14890   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14892 fi
14893 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14894   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14896 fi
14897
14898 : "${CONFIG_STATUS=./config.status}"
14899 ac_write_fail=0
14900 ac_clean_files_save=$ac_clean_files
14901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14903 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14904 as_write_fail=0
14905 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14906 #! $SHELL
14907 # Generated by $as_me.
14908 # Run this file to recreate the current configuration.
14909 # Compiler output produced by configure, useful for debugging
14910 # configure, is in config.log if it exists.
14911
14912 debug=false
14913 ac_cs_recheck=false
14914 ac_cs_silent=false
14915
14916 SHELL=\${CONFIG_SHELL-$SHELL}
14917 export SHELL
14918 _ASEOF
14919 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14920 ## -------------------- ##
14921 ## M4sh Initialization. ##
14922 ## -------------------- ##
14923
14924 # Be more Bourne compatible
14925 DUALCASE=1; export DUALCASE # for MKS sh
14926 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14927   emulate sh
14928   NULLCMD=:
14929   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14930   # is contrary to our usage.  Disable this feature.
14931   alias -g '${1+"$@"}'='"$@"'
14932   setopt NO_GLOB_SUBST
14933 else
14934   case `(set -o) 2>/dev/null` in #(
14935   *posix*) :
14936     set -o posix ;; #(
14937   *) :
14938      ;;
14939 esac
14940 fi
14941
14942
14943 as_nl='
14944 '
14945 export as_nl
14946 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14947 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14950 # Prefer a ksh shell builtin over an external printf program on Solaris,
14951 # but without wasting forks for bash or zsh.
14952 if test -z "$BASH_VERSION$ZSH_VERSION" \
14953     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14954   as_echo='print -r --'
14955   as_echo_n='print -rn --'
14956 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14957   as_echo='printf %s\n'
14958   as_echo_n='printf %s'
14959 else
14960   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14961     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14962     as_echo_n='/usr/ucb/echo -n'
14963   else
14964     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14965     as_echo_n_body='eval
14966       arg=$1;
14967       case $arg in #(
14968       *"$as_nl"*)
14969         expr "X$arg" : "X\\(.*\\)$as_nl";
14970         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14971       esac;
14972       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14973     '
14974     export as_echo_n_body
14975     as_echo_n='sh -c $as_echo_n_body as_echo'
14976   fi
14977   export as_echo_body
14978   as_echo='sh -c $as_echo_body as_echo'
14979 fi
14980
14981 # The user is always right.
14982 if test "${PATH_SEPARATOR+set}" != set; then
14983   PATH_SEPARATOR=:
14984   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14985     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14986       PATH_SEPARATOR=';'
14987   }
14988 fi
14989
14990
14991 # IFS
14992 # We need space, tab and new line, in precisely that order.  Quoting is
14993 # there to prevent editors from complaining about space-tab.
14994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14995 # splitting by setting IFS to empty value.)
14996 IFS=" ""        $as_nl"
14997
14998 # Find who we are.  Look in the path if we contain no directory separator.
14999 as_myself=
15000 case $0 in #((
15001   *[\\/]* ) as_myself=$0 ;;
15002   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003 for as_dir in $PATH
15004 do
15005   IFS=$as_save_IFS
15006   test -z "$as_dir" && as_dir=.
15007     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15008   done
15009 IFS=$as_save_IFS
15010
15011      ;;
15012 esac
15013 # We did not find ourselves, most probably we were run as `sh COMMAND'
15014 # in which case we are not to be found in the path.
15015 if test "x$as_myself" = x; then
15016   as_myself=$0
15017 fi
15018 if test ! -f "$as_myself"; then
15019   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15020   exit 1
15021 fi
15022
15023 # Unset variables that we do not need and which cause bugs (e.g. in
15024 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15025 # suppresses any "Segmentation fault" message there.  '((' could
15026 # trigger a bug in pdksh 5.2.14.
15027 for as_var in BASH_ENV ENV MAIL MAILPATH
15028 do eval test x\${$as_var+set} = xset \
15029   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15030 done
15031 PS1='$ '
15032 PS2='> '
15033 PS4='+ '
15034
15035 # NLS nuisances.
15036 LC_ALL=C
15037 export LC_ALL
15038 LANGUAGE=C
15039 export LANGUAGE
15040
15041 # CDPATH.
15042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15043
15044
15045 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15046 # ----------------------------------------
15047 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15048 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15049 # script with STATUS, using 1 if that was 0.
15050 as_fn_error ()
15051 {
15052   as_status=$1; test $as_status -eq 0 && as_status=1
15053   if test "$4"; then
15054     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15055     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15056   fi
15057   $as_echo "$as_me: error: $2" >&2
15058   as_fn_exit $as_status
15059 } # as_fn_error
15060
15061
15062 # as_fn_set_status STATUS
15063 # -----------------------
15064 # Set $? to STATUS, without forking.
15065 as_fn_set_status ()
15066 {
15067   return $1
15068 } # as_fn_set_status
15069
15070 # as_fn_exit STATUS
15071 # -----------------
15072 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15073 as_fn_exit ()
15074 {
15075   set +e
15076   as_fn_set_status $1
15077   exit $1
15078 } # as_fn_exit
15079
15080 # as_fn_unset VAR
15081 # ---------------
15082 # Portably unset VAR.
15083 as_fn_unset ()
15084 {
15085   { eval $1=; unset $1;}
15086 }
15087 as_unset=as_fn_unset
15088 # as_fn_append VAR VALUE
15089 # ----------------------
15090 # Append the text in VALUE to the end of the definition contained in VAR. Take
15091 # advantage of any shell optimizations that allow amortized linear growth over
15092 # repeated appends, instead of the typical quadratic growth present in naive
15093 # implementations.
15094 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15095   eval 'as_fn_append ()
15096   {
15097     eval $1+=\$2
15098   }'
15099 else
15100   as_fn_append ()
15101   {
15102     eval $1=\$$1\$2
15103   }
15104 fi # as_fn_append
15105
15106 # as_fn_arith ARG...
15107 # ------------------
15108 # Perform arithmetic evaluation on the ARGs, and store the result in the
15109 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15110 # must be portable across $(()) and expr.
15111 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15112   eval 'as_fn_arith ()
15113   {
15114     as_val=$(( $* ))
15115   }'
15116 else
15117   as_fn_arith ()
15118   {
15119     as_val=`expr "$@" || test $? -eq 1`
15120   }
15121 fi # as_fn_arith
15122
15123
15124 if expr a : '\(a\)' >/dev/null 2>&1 &&
15125    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15126   as_expr=expr
15127 else
15128   as_expr=false
15129 fi
15130
15131 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15132   as_basename=basename
15133 else
15134   as_basename=false
15135 fi
15136
15137 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15138   as_dirname=dirname
15139 else
15140   as_dirname=false
15141 fi
15142
15143 as_me=`$as_basename -- "$0" ||
15144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15145          X"$0" : 'X\(//\)$' \| \
15146          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15147 $as_echo X/"$0" |
15148     sed '/^.*\/\([^/][^/]*\)\/*$/{
15149             s//\1/
15150             q
15151           }
15152           /^X\/\(\/\/\)$/{
15153             s//\1/
15154             q
15155           }
15156           /^X\/\(\/\).*/{
15157             s//\1/
15158             q
15159           }
15160           s/.*/./; q'`
15161
15162 # Avoid depending upon Character Ranges.
15163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15166 as_cr_digits='0123456789'
15167 as_cr_alnum=$as_cr_Letters$as_cr_digits
15168
15169 ECHO_C= ECHO_N= ECHO_T=
15170 case `echo -n x` in #(((((
15171 -n*)
15172   case `echo 'xy\c'` in
15173   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15174   xy)  ECHO_C='\c';;
15175   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15176        ECHO_T=' ';;
15177   esac;;
15178 *)
15179   ECHO_N='-n';;
15180 esac
15181
15182 rm -f conf$$ conf$$.exe conf$$.file
15183 if test -d conf$$.dir; then
15184   rm -f conf$$.dir/conf$$.file
15185 else
15186   rm -f conf$$.dir
15187   mkdir conf$$.dir 2>/dev/null
15188 fi
15189 if (echo >conf$$.file) 2>/dev/null; then
15190   if ln -s conf$$.file conf$$ 2>/dev/null; then
15191     as_ln_s='ln -s'
15192     # ... but there are two gotchas:
15193     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15194     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15195     # In both cases, we have to default to `cp -pR'.
15196     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15197       as_ln_s='cp -pR'
15198   elif ln conf$$.file conf$$ 2>/dev/null; then
15199     as_ln_s=ln
15200   else
15201     as_ln_s='cp -pR'
15202   fi
15203 else
15204   as_ln_s='cp -pR'
15205 fi
15206 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15207 rmdir conf$$.dir 2>/dev/null
15208
15209
15210 # as_fn_mkdir_p
15211 # -------------
15212 # Create "$as_dir" as a directory, including parents if necessary.
15213 as_fn_mkdir_p ()
15214 {
15215
15216   case $as_dir in #(
15217   -*) as_dir=./$as_dir;;
15218   esac
15219   test -d "$as_dir" || eval $as_mkdir_p || {
15220     as_dirs=
15221     while :; do
15222       case $as_dir in #(
15223       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15224       *) as_qdir=$as_dir;;
15225       esac
15226       as_dirs="'$as_qdir' $as_dirs"
15227       as_dir=`$as_dirname -- "$as_dir" ||
15228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15229          X"$as_dir" : 'X\(//\)[^/]' \| \
15230          X"$as_dir" : 'X\(//\)$' \| \
15231          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15232 $as_echo X"$as_dir" |
15233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15234             s//\1/
15235             q
15236           }
15237           /^X\(\/\/\)[^/].*/{
15238             s//\1/
15239             q
15240           }
15241           /^X\(\/\/\)$/{
15242             s//\1/
15243             q
15244           }
15245           /^X\(\/\).*/{
15246             s//\1/
15247             q
15248           }
15249           s/.*/./; q'`
15250       test -d "$as_dir" && break
15251     done
15252     test -z "$as_dirs" || eval "mkdir $as_dirs"
15253   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15254
15255
15256 } # as_fn_mkdir_p
15257 if mkdir -p . 2>/dev/null; then
15258   as_mkdir_p='mkdir -p "$as_dir"'
15259 else
15260   test -d ./-p && rmdir ./-p
15261   as_mkdir_p=false
15262 fi
15263
15264
15265 # as_fn_executable_p FILE
15266 # -----------------------
15267 # Test if FILE is an executable regular file.
15268 as_fn_executable_p ()
15269 {
15270   test -f "$1" && test -x "$1"
15271 } # as_fn_executable_p
15272 as_test_x='test -x'
15273 as_executable_p=as_fn_executable_p
15274
15275 # Sed expression to map a string onto a valid CPP name.
15276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15277
15278 # Sed expression to map a string onto a valid variable name.
15279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15280
15281
15282 exec 6>&1
15283 ## ----------------------------------- ##
15284 ## Main body of $CONFIG_STATUS script. ##
15285 ## ----------------------------------- ##
15286 _ASEOF
15287 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15288
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 # Save the log message, to keep $0 and so on meaningful, and to
15291 # report actual input values of CONFIG_FILES etc. instead of their
15292 # values after options handling.
15293 ac_log="
15294 This file was extended by pygobject $as_me 3.7.4, which was
15295 generated by GNU Autoconf 2.69.  Invocation command line was
15296
15297   CONFIG_FILES    = $CONFIG_FILES
15298   CONFIG_HEADERS  = $CONFIG_HEADERS
15299   CONFIG_LINKS    = $CONFIG_LINKS
15300   CONFIG_COMMANDS = $CONFIG_COMMANDS
15301   $ $0 $@
15302
15303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15304 "
15305
15306 _ACEOF
15307
15308 case $ac_config_files in *"
15309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15310 esac
15311
15312 case $ac_config_headers in *"
15313 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15314 esac
15315
15316
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 # Files that config.status was made for.
15319 config_files="$ac_config_files"
15320 config_headers="$ac_config_headers"
15321 config_commands="$ac_config_commands"
15322
15323 _ACEOF
15324
15325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15326 ac_cs_usage="\
15327 \`$as_me' instantiates files and other configuration actions
15328 from templates according to the current configuration.  Unless the files
15329 and actions are specified as TAGs, all are instantiated by default.
15330
15331 Usage: $0 [OPTION]... [TAG]...
15332
15333   -h, --help       print this help, then exit
15334   -V, --version    print version number and configuration settings, then exit
15335       --config     print configuration, then exit
15336   -q, --quiet, --silent
15337                    do not print progress messages
15338   -d, --debug      don't remove temporary files
15339       --recheck    update $as_me by reconfiguring in the same conditions
15340       --file=FILE[:TEMPLATE]
15341                    instantiate the configuration file FILE
15342       --header=FILE[:TEMPLATE]
15343                    instantiate the configuration header FILE
15344
15345 Configuration files:
15346 $config_files
15347
15348 Configuration headers:
15349 $config_headers
15350
15351 Configuration commands:
15352 $config_commands
15353
15354 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15355 pygobject home page: <https://live.gnome.org/PyGObject/>."
15356
15357 _ACEOF
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15360 ac_cs_version="\\
15361 pygobject config.status 3.7.4
15362 configured by $0, generated by GNU Autoconf 2.69,
15363   with options \\"\$ac_cs_config\\"
15364
15365 Copyright (C) 2012 Free Software Foundation, Inc.
15366 This config.status script is free software; the Free Software Foundation
15367 gives unlimited permission to copy, distribute and modify it."
15368
15369 ac_pwd='$ac_pwd'
15370 srcdir='$srcdir'
15371 INSTALL='$INSTALL'
15372 MKDIR_P='$MKDIR_P'
15373 AWK='$AWK'
15374 test -n "\$AWK" || AWK=awk
15375 _ACEOF
15376
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 # The default lists apply if the user does not specify any file.
15379 ac_need_defaults=:
15380 while test $# != 0
15381 do
15382   case $1 in
15383   --*=?*)
15384     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15385     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15386     ac_shift=:
15387     ;;
15388   --*=)
15389     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15390     ac_optarg=
15391     ac_shift=:
15392     ;;
15393   *)
15394     ac_option=$1
15395     ac_optarg=$2
15396     ac_shift=shift
15397     ;;
15398   esac
15399
15400   case $ac_option in
15401   # Handling of the options.
15402   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15403     ac_cs_recheck=: ;;
15404   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15405     $as_echo "$ac_cs_version"; exit ;;
15406   --config | --confi | --conf | --con | --co | --c )
15407     $as_echo "$ac_cs_config"; exit ;;
15408   --debug | --debu | --deb | --de | --d | -d )
15409     debug=: ;;
15410   --file | --fil | --fi | --f )
15411     $ac_shift
15412     case $ac_optarg in
15413     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15414     '') as_fn_error $? "missing file argument" ;;
15415     esac
15416     as_fn_append CONFIG_FILES " '$ac_optarg'"
15417     ac_need_defaults=false;;
15418   --header | --heade | --head | --hea )
15419     $ac_shift
15420     case $ac_optarg in
15421     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15422     esac
15423     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15424     ac_need_defaults=false;;
15425   --he | --h)
15426     # Conflict between --help and --header
15427     as_fn_error $? "ambiguous option: \`$1'
15428 Try \`$0 --help' for more information.";;
15429   --help | --hel | -h )
15430     $as_echo "$ac_cs_usage"; exit ;;
15431   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15432   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15433     ac_cs_silent=: ;;
15434
15435   # This is an error.
15436   -*) as_fn_error $? "unrecognized option: \`$1'
15437 Try \`$0 --help' for more information." ;;
15438
15439   *) as_fn_append ac_config_targets " $1"
15440      ac_need_defaults=false ;;
15441
15442   esac
15443   shift
15444 done
15445
15446 ac_configure_extra_args=
15447
15448 if $ac_cs_silent; then
15449   exec 6>/dev/null
15450   ac_configure_extra_args="$ac_configure_extra_args --silent"
15451 fi
15452
15453 _ACEOF
15454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455 if \$ac_cs_recheck; then
15456   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15457   shift
15458   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15459   CONFIG_SHELL='$SHELL'
15460   export CONFIG_SHELL
15461   exec "\$@"
15462 fi
15463
15464 _ACEOF
15465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15466 exec 5>>config.log
15467 {
15468   echo
15469   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15470 ## Running $as_me. ##
15471 _ASBOX
15472   $as_echo "$ac_log"
15473 } >&5
15474
15475 _ACEOF
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 #
15478 # INIT-COMMANDS
15479 #
15480 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15481
15482
15483 # The HP-UX ksh and POSIX shell print the target directory to stdout
15484 # if CDPATH is set.
15485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15486
15487 sed_quote_subst='$sed_quote_subst'
15488 double_quote_subst='$double_quote_subst'
15489 delay_variable_subst='$delay_variable_subst'
15490 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15491 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15492 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15493 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15494 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15495 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15496 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15497 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15498 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15499 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15500 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15501 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15502 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15503 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15504 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15505 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15506 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15507 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15508 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15509 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15510 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15511 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15512 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15513 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15514 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15515 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15516 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15517 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15518 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15519 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15520 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15521 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15522 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15523 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15524 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15525 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15526 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15527 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15528 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15529 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15530 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15531 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15532 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15533 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15534 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15535 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15536 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15537 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15538 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15539 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15540 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15541 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15542 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15543 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15544 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15546 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15547 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"`'
15548 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15549 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15550 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15551 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15552 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15553 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15554 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15555 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15556 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15557 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15558 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15559 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15560 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15561 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15562 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15563 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15564 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15565 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15566 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15567 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15568 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15569 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15570 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15571 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15572 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15573 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15574 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15575 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15576 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15577 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15578 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15579 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15580 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15581 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15582 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15583 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15584 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15585 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15586 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15587 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15588 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15589 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15590 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15591 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15592 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15593 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15594 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15595 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15596 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15597 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15598 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15599 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15600 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15601 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15602 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15603 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15604 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15605 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15606 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15607 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15608 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15609 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15610 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15611 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15612 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15613 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15614 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15621
15622 LTCC='$LTCC'
15623 LTCFLAGS='$LTCFLAGS'
15624 compiler='$compiler_DEFAULT'
15625
15626 # A function that is used when there is no print builtin or printf.
15627 func_fallback_echo ()
15628 {
15629   eval 'cat <<_LTECHO_EOF
15630 \$1
15631 _LTECHO_EOF'
15632 }
15633
15634 # Quote evaled strings.
15635 for var in AS \
15636 DLLTOOL \
15637 OBJDUMP \
15638 SHELL \
15639 ECHO \
15640 PATH_SEPARATOR \
15641 SED \
15642 GREP \
15643 EGREP \
15644 FGREP \
15645 LD \
15646 NM \
15647 LN_S \
15648 lt_SP2NL \
15649 lt_NL2SP \
15650 reload_flag \
15651 deplibs_check_method \
15652 file_magic_cmd \
15653 file_magic_glob \
15654 want_nocaseglob \
15655 sharedlib_from_linklib_cmd \
15656 AR \
15657 AR_FLAGS \
15658 archiver_list_spec \
15659 STRIP \
15660 RANLIB \
15661 CC \
15662 CFLAGS \
15663 compiler \
15664 lt_cv_sys_global_symbol_pipe \
15665 lt_cv_sys_global_symbol_to_cdecl \
15666 lt_cv_sys_global_symbol_to_c_name_address \
15667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15668 nm_file_list_spec \
15669 lt_prog_compiler_no_builtin_flag \
15670 lt_prog_compiler_pic \
15671 lt_prog_compiler_wl \
15672 lt_prog_compiler_static \
15673 lt_cv_prog_compiler_c_o \
15674 need_locks \
15675 MANIFEST_TOOL \
15676 DSYMUTIL \
15677 NMEDIT \
15678 LIPO \
15679 OTOOL \
15680 OTOOL64 \
15681 shrext_cmds \
15682 export_dynamic_flag_spec \
15683 whole_archive_flag_spec \
15684 compiler_needs_object \
15685 with_gnu_ld \
15686 allow_undefined_flag \
15687 no_undefined_flag \
15688 hardcode_libdir_flag_spec \
15689 hardcode_libdir_separator \
15690 exclude_expsyms \
15691 include_expsyms \
15692 file_list_spec \
15693 variables_saved_for_relink \
15694 libname_spec \
15695 library_names_spec \
15696 soname_spec \
15697 install_override_mode \
15698 finish_eval \
15699 old_striplib \
15700 striplib; do
15701     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15702     *[\\\\\\\`\\"\\\$]*)
15703       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15704       ;;
15705     *)
15706       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15707       ;;
15708     esac
15709 done
15710
15711 # Double-quote double-evaled strings.
15712 for var in reload_cmds \
15713 old_postinstall_cmds \
15714 old_postuninstall_cmds \
15715 old_archive_cmds \
15716 extract_expsyms_cmds \
15717 old_archive_from_new_cmds \
15718 old_archive_from_expsyms_cmds \
15719 archive_cmds \
15720 archive_expsym_cmds \
15721 module_cmds \
15722 module_expsym_cmds \
15723 export_symbols_cmds \
15724 prelink_cmds \
15725 postlink_cmds \
15726 postinstall_cmds \
15727 postuninstall_cmds \
15728 finish_cmds \
15729 sys_lib_search_path_spec \
15730 sys_lib_dlsearch_path_spec; do
15731     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15732     *[\\\\\\\`\\"\\\$]*)
15733       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15734       ;;
15735     *)
15736       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15737       ;;
15738     esac
15739 done
15740
15741 ac_aux_dir='$ac_aux_dir'
15742 xsi_shell='$xsi_shell'
15743 lt_shell_append='$lt_shell_append'
15744
15745 # See if we are running on zsh, and set the options which allow our
15746 # commands through without removal of \ escapes INIT.
15747 if test -n "\${ZSH_VERSION+set}" ; then
15748    setopt NO_GLOB_SUBST
15749 fi
15750
15751
15752     PACKAGE='$PACKAGE'
15753     VERSION='$VERSION'
15754     TIMESTAMP='$TIMESTAMP'
15755     RM='$RM'
15756     ofile='$ofile'
15757
15758
15759
15760
15761 _ACEOF
15762
15763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764
15765 # Handling of arguments.
15766 for ac_config_target in $ac_config_targets
15767 do
15768   case $ac_config_target in
15769     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15770     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15771     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15772     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15773     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15774     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15775     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15776     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15777     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15778     "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
15779     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15780     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15781     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15782     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15783     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15784
15785   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15786   esac
15787 done
15788
15789
15790 # If the user did not use the arguments to specify the items to instantiate,
15791 # then the envvar interface is used.  Set only those that are not.
15792 # We use the long form for the default assignment because of an extremely
15793 # bizarre bug on SunOS 4.1.3.
15794 if $ac_need_defaults; then
15795   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15796   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15797   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15798 fi
15799
15800 # Have a temporary directory for convenience.  Make it in the build tree
15801 # simply because there is no reason against having it here, and in addition,
15802 # creating and moving files from /tmp can sometimes cause problems.
15803 # Hook for its removal unless debugging.
15804 # Note that there is a small window in which the directory will not be cleaned:
15805 # after its creation but before its name has been assigned to `$tmp'.
15806 $debug ||
15807 {
15808   tmp= ac_tmp=
15809   trap 'exit_status=$?
15810   : "${ac_tmp:=$tmp}"
15811   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15812 ' 0
15813   trap 'as_fn_exit 1' 1 2 13 15
15814 }
15815 # Create a (secure) tmp directory for tmp files.
15816
15817 {
15818   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15819   test -d "$tmp"
15820 }  ||
15821 {
15822   tmp=./conf$$-$RANDOM
15823   (umask 077 && mkdir "$tmp")
15824 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15825 ac_tmp=$tmp
15826
15827 # Set up the scripts for CONFIG_FILES section.
15828 # No need to generate them if there are no CONFIG_FILES.
15829 # This happens for instance with `./config.status config.h'.
15830 if test -n "$CONFIG_FILES"; then
15831
15832
15833 ac_cr=`echo X | tr X '\015'`
15834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15835 # But we know of no other shell where ac_cr would be empty at this
15836 # point, so we can use a bashism as a fallback.
15837 if test "x$ac_cr" = x; then
15838   eval ac_cr=\$\'\\r\'
15839 fi
15840 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15842   ac_cs_awk_cr='\\r'
15843 else
15844   ac_cs_awk_cr=$ac_cr
15845 fi
15846
15847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15848 _ACEOF
15849
15850
15851 {
15852   echo "cat >conf$$subs.awk <<_ACEOF" &&
15853   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15854   echo "_ACEOF"
15855 } >conf$$subs.sh ||
15856   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15858 ac_delim='%!_!# '
15859 for ac_last_try in false false false false false :; do
15860   . ./conf$$subs.sh ||
15861     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15862
15863   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15864   if test $ac_delim_n = $ac_delim_num; then
15865     break
15866   elif $ac_last_try; then
15867     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15868   else
15869     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15870   fi
15871 done
15872 rm -f conf$$subs.sh
15873
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15876 _ACEOF
15877 sed -n '
15878 h
15879 s/^/S["/; s/!.*/"]=/
15880 p
15881 g
15882 s/^[^!]*!//
15883 :repl
15884 t repl
15885 s/'"$ac_delim"'$//
15886 t delim
15887 :nl
15888 h
15889 s/\(.\{148\}\)..*/\1/
15890 t more1
15891 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15892 p
15893 n
15894 b repl
15895 :more1
15896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15897 p
15898 g
15899 s/.\{148\}//
15900 t nl
15901 :delim
15902 h
15903 s/\(.\{148\}\)..*/\1/
15904 t more2
15905 s/["\\]/\\&/g; s/^/"/; s/$/"/
15906 p
15907 b
15908 :more2
15909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15910 p
15911 g
15912 s/.\{148\}//
15913 t delim
15914 ' <conf$$subs.awk | sed '
15915 /^[^""]/{
15916   N
15917   s/\n//
15918 }
15919 ' >>$CONFIG_STATUS || ac_write_fail=1
15920 rm -f conf$$subs.awk
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15922 _ACAWK
15923 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15924   for (key in S) S_is_set[key] = 1
15925   FS = "\a"
15926
15927 }
15928 {
15929   line = $ 0
15930   nfields = split(line, field, "@")
15931   substed = 0
15932   len = length(field[1])
15933   for (i = 2; i < nfields; i++) {
15934     key = field[i]
15935     keylen = length(key)
15936     if (S_is_set[key]) {
15937       value = S[key]
15938       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15939       len += length(value) + length(field[++i])
15940       substed = 1
15941     } else
15942       len += 1 + keylen
15943   }
15944
15945   print line
15946 }
15947
15948 _ACAWK
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15952   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15953 else
15954   cat
15955 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15956   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15957 _ACEOF
15958
15959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15961 # trailing colons and then remove the whole line if VPATH becomes empty
15962 # (actually we leave an empty line to preserve line numbers).
15963 if test "x$srcdir" = x.; then
15964   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15965 h
15966 s///
15967 s/^/:/
15968 s/[      ]*$/:/
15969 s/:\$(srcdir):/:/g
15970 s/:\${srcdir}:/:/g
15971 s/:@srcdir@:/:/g
15972 s/^:*//
15973 s/:*$//
15974 x
15975 s/\(=[   ]*\).*/\1/
15976 G
15977 s/\n//
15978 s/^[^=]*=[       ]*$//
15979 }'
15980 fi
15981
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 fi # test -n "$CONFIG_FILES"
15984
15985 # Set up the scripts for CONFIG_HEADERS section.
15986 # No need to generate them if there are no CONFIG_HEADERS.
15987 # This happens for instance with `./config.status Makefile'.
15988 if test -n "$CONFIG_HEADERS"; then
15989 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15990 BEGIN {
15991 _ACEOF
15992
15993 # Transform confdefs.h into an awk script `defines.awk', embedded as
15994 # here-document in config.status, that substitutes the proper values into
15995 # config.h.in to produce config.h.
15996
15997 # Create a delimiter string that does not exist in confdefs.h, to ease
15998 # handling of long lines.
15999 ac_delim='%!_!# '
16000 for ac_last_try in false false :; do
16001   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16002   if test -z "$ac_tt"; then
16003     break
16004   elif $ac_last_try; then
16005     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16006   else
16007     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16008   fi
16009 done
16010
16011 # For the awk script, D is an array of macro values keyed by name,
16012 # likewise P contains macro parameters if any.  Preserve backslash
16013 # newline sequences.
16014
16015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16016 sed -n '
16017 s/.\{148\}/&'"$ac_delim"'/g
16018 t rset
16019 :rset
16020 s/^[     ]*#[    ]*define[       ][      ]*/ /
16021 t def
16022 d
16023 :def
16024 s/\\$//
16025 t bsnl
16026 s/["\\]/\\&/g
16027 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16028 D["\1"]=" \3"/p
16029 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16030 d
16031 :bsnl
16032 s/["\\]/\\&/g
16033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16034 D["\1"]=" \3\\\\\\n"\\/p
16035 t cont
16036 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16037 t cont
16038 d
16039 :cont
16040 n
16041 s/.\{148\}/&'"$ac_delim"'/g
16042 t clear
16043 :clear
16044 s/\\$//
16045 t bsnlc
16046 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16047 d
16048 :bsnlc
16049 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16050 b cont
16051 ' <confdefs.h | sed '
16052 s/'"$ac_delim"'/"\\\
16053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16054
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056   for (key in D) D_is_set[key] = 1
16057   FS = "\a"
16058 }
16059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16060   line = \$ 0
16061   split(line, arg, " ")
16062   if (arg[1] == "#") {
16063     defundef = arg[2]
16064     mac1 = arg[3]
16065   } else {
16066     defundef = substr(arg[1], 2)
16067     mac1 = arg[2]
16068   }
16069   split(mac1, mac2, "(") #)
16070   macro = mac2[1]
16071   prefix = substr(line, 1, index(line, defundef) - 1)
16072   if (D_is_set[macro]) {
16073     # Preserve the white space surrounding the "#".
16074     print prefix "define", macro P[macro] D[macro]
16075     next
16076   } else {
16077     # Replace #undef with comments.  This is necessary, for example,
16078     # in the case of _POSIX_SOURCE, which is predefined and required
16079     # on some systems where configure will not decide to define it.
16080     if (defundef == "undef") {
16081       print "/*", prefix defundef, macro, "*/"
16082       next
16083     }
16084   }
16085 }
16086 { print }
16087 _ACAWK
16088 _ACEOF
16089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16090   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16091 fi # test -n "$CONFIG_HEADERS"
16092
16093
16094 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16095 shift
16096 for ac_tag
16097 do
16098   case $ac_tag in
16099   :[FHLC]) ac_mode=$ac_tag; continue;;
16100   esac
16101   case $ac_mode$ac_tag in
16102   :[FHL]*:*);;
16103   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16104   :[FH]-) ac_tag=-:-;;
16105   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16106   esac
16107   ac_save_IFS=$IFS
16108   IFS=:
16109   set x $ac_tag
16110   IFS=$ac_save_IFS
16111   shift
16112   ac_file=$1
16113   shift
16114
16115   case $ac_mode in
16116   :L) ac_source=$1;;
16117   :[FH])
16118     ac_file_inputs=
16119     for ac_f
16120     do
16121       case $ac_f in
16122       -) ac_f="$ac_tmp/stdin";;
16123       *) # Look for the file first in the build tree, then in the source tree
16124          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16125          # because $ac_f cannot contain `:'.
16126          test -f "$ac_f" ||
16127            case $ac_f in
16128            [\\/$]*) false;;
16129            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16130            esac ||
16131            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16132       esac
16133       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16134       as_fn_append ac_file_inputs " '$ac_f'"
16135     done
16136
16137     # Let's still pretend it is `configure' which instantiates (i.e., don't
16138     # use $as_me), people would be surprised to read:
16139     #    /* config.h.  Generated by config.status.  */
16140     configure_input='Generated from '`
16141           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16142         `' by configure.'
16143     if test x"$ac_file" != x-; then
16144       configure_input="$ac_file.  $configure_input"
16145       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16146 $as_echo "$as_me: creating $ac_file" >&6;}
16147     fi
16148     # Neutralize special characters interpreted by sed in replacement strings.
16149     case $configure_input in #(
16150     *\&* | *\|* | *\\* )
16151        ac_sed_conf_input=`$as_echo "$configure_input" |
16152        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16153     *) ac_sed_conf_input=$configure_input;;
16154     esac
16155
16156     case $ac_tag in
16157     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16158       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16159     esac
16160     ;;
16161   esac
16162
16163   ac_dir=`$as_dirname -- "$ac_file" ||
16164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16165          X"$ac_file" : 'X\(//\)[^/]' \| \
16166          X"$ac_file" : 'X\(//\)$' \| \
16167          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16168 $as_echo X"$ac_file" |
16169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16170             s//\1/
16171             q
16172           }
16173           /^X\(\/\/\)[^/].*/{
16174             s//\1/
16175             q
16176           }
16177           /^X\(\/\/\)$/{
16178             s//\1/
16179             q
16180           }
16181           /^X\(\/\).*/{
16182             s//\1/
16183             q
16184           }
16185           s/.*/./; q'`
16186   as_dir="$ac_dir"; as_fn_mkdir_p
16187   ac_builddir=.
16188
16189 case "$ac_dir" in
16190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16191 *)
16192   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16193   # A ".." for each directory in $ac_dir_suffix.
16194   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16195   case $ac_top_builddir_sub in
16196   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16197   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16198   esac ;;
16199 esac
16200 ac_abs_top_builddir=$ac_pwd
16201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16202 # for backward compatibility:
16203 ac_top_builddir=$ac_top_build_prefix
16204
16205 case $srcdir in
16206   .)  # We are building in place.
16207     ac_srcdir=.
16208     ac_top_srcdir=$ac_top_builddir_sub
16209     ac_abs_top_srcdir=$ac_pwd ;;
16210   [\\/]* | ?:[\\/]* )  # Absolute name.
16211     ac_srcdir=$srcdir$ac_dir_suffix;
16212     ac_top_srcdir=$srcdir
16213     ac_abs_top_srcdir=$srcdir ;;
16214   *) # Relative name.
16215     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16216     ac_top_srcdir=$ac_top_build_prefix$srcdir
16217     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16218 esac
16219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16220
16221
16222   case $ac_mode in
16223   :F)
16224   #
16225   # CONFIG_FILE
16226   #
16227
16228   case $INSTALL in
16229   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16230   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16231   esac
16232   ac_MKDIR_P=$MKDIR_P
16233   case $MKDIR_P in
16234   [\\/$]* | ?:[\\/]* ) ;;
16235   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16236   esac
16237 _ACEOF
16238
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240 # If the template does not know about datarootdir, expand it.
16241 # FIXME: This hack should be removed a few years after 2.60.
16242 ac_datarootdir_hack=; ac_datarootdir_seen=
16243 ac_sed_dataroot='
16244 /datarootdir/ {
16245   p
16246   q
16247 }
16248 /@datadir@/p
16249 /@docdir@/p
16250 /@infodir@/p
16251 /@localedir@/p
16252 /@mandir@/p'
16253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16254 *datarootdir*) ac_datarootdir_seen=yes;;
16255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16256   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16258 _ACEOF
16259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260   ac_datarootdir_hack='
16261   s&@datadir@&$datadir&g
16262   s&@docdir@&$docdir&g
16263   s&@infodir@&$infodir&g
16264   s&@localedir@&$localedir&g
16265   s&@mandir@&$mandir&g
16266   s&\\\${datarootdir}&$datarootdir&g' ;;
16267 esac
16268 _ACEOF
16269
16270 # Neutralize VPATH when `$srcdir' = `.'.
16271 # Shell code in configure.ac might set extrasub.
16272 # FIXME: do we really want to maintain this feature?
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 ac_sed_extra="$ac_vpsub
16275 $extrasub
16276 _ACEOF
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278 :t
16279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16280 s|@configure_input@|$ac_sed_conf_input|;t t
16281 s&@top_builddir@&$ac_top_builddir_sub&;t t
16282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16283 s&@srcdir@&$ac_srcdir&;t t
16284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16285 s&@top_srcdir@&$ac_top_srcdir&;t t
16286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16287 s&@builddir@&$ac_builddir&;t t
16288 s&@abs_builddir@&$ac_abs_builddir&;t t
16289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16290 s&@INSTALL@&$ac_INSTALL&;t t
16291 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16292 $ac_datarootdir_hack
16293 "
16294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16295   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296
16297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16298   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16299   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16300       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16302 which seems to be undefined.  Please make sure it is defined" >&5
16303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16304 which seems to be undefined.  Please make sure it is defined" >&2;}
16305
16306   rm -f "$ac_tmp/stdin"
16307   case $ac_file in
16308   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16309   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16310   esac \
16311   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16312  ;;
16313   :H)
16314   #
16315   # CONFIG_HEADER
16316   #
16317   if test x"$ac_file" != x-; then
16318     {
16319       $as_echo "/* $configure_input  */" \
16320       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16321     } >"$ac_tmp/config.h" \
16322       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16323     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16324       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16326     else
16327       rm -f "$ac_file"
16328       mv "$ac_tmp/config.h" "$ac_file" \
16329         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16330     fi
16331   else
16332     $as_echo "/* $configure_input  */" \
16333       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16334       || as_fn_error $? "could not create -" "$LINENO" 5
16335   fi
16336 # Compute "$ac_file"'s index in $config_headers.
16337 _am_arg="$ac_file"
16338 _am_stamp_count=1
16339 for _am_header in $config_headers :; do
16340   case $_am_header in
16341     $_am_arg | $_am_arg:* )
16342       break ;;
16343     * )
16344       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16345   esac
16346 done
16347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16349          X"$_am_arg" : 'X\(//\)[^/]' \| \
16350          X"$_am_arg" : 'X\(//\)$' \| \
16351          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16352 $as_echo X"$_am_arg" |
16353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16354             s//\1/
16355             q
16356           }
16357           /^X\(\/\/\)[^/].*/{
16358             s//\1/
16359             q
16360           }
16361           /^X\(\/\/\)$/{
16362             s//\1/
16363             q
16364           }
16365           /^X\(\/\).*/{
16366             s//\1/
16367             q
16368           }
16369           s/.*/./; q'`/stamp-h$_am_stamp_count
16370  ;;
16371
16372   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16373 $as_echo "$as_me: executing $ac_file commands" >&6;}
16374  ;;
16375   esac
16376
16377
16378   case $ac_file$ac_mode in
16379     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16380   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16381   # are listed without --file.  Let's play safe and only enable the eval
16382   # if we detect the quoting.
16383   case $CONFIG_FILES in
16384   *\'*) eval set x "$CONFIG_FILES" ;;
16385   *)   set x $CONFIG_FILES ;;
16386   esac
16387   shift
16388   for mf
16389   do
16390     # Strip MF so we end up with the name of the file.
16391     mf=`echo "$mf" | sed -e 's/:.*$//'`
16392     # Check whether this is an Automake generated Makefile or not.
16393     # We used to match only the files named `Makefile.in', but
16394     # some people rename them; so instead we look at the file content.
16395     # Grep'ing the first line is not enough: some people post-process
16396     # each Makefile.in and add a new line on top of each file to say so.
16397     # Grep'ing the whole file is not good either: AIX grep has a line
16398     # limit of 2048, but all sed's we know have understand at least 4000.
16399     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16400       dirpart=`$as_dirname -- "$mf" ||
16401 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16402          X"$mf" : 'X\(//\)[^/]' \| \
16403          X"$mf" : 'X\(//\)$' \| \
16404          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16405 $as_echo X"$mf" |
16406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16407             s//\1/
16408             q
16409           }
16410           /^X\(\/\/\)[^/].*/{
16411             s//\1/
16412             q
16413           }
16414           /^X\(\/\/\)$/{
16415             s//\1/
16416             q
16417           }
16418           /^X\(\/\).*/{
16419             s//\1/
16420             q
16421           }
16422           s/.*/./; q'`
16423     else
16424       continue
16425     fi
16426     # Extract the definition of DEPDIR, am__include, and am__quote
16427     # from the Makefile without running `make'.
16428     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16429     test -z "$DEPDIR" && continue
16430     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16431     test -z "am__include" && continue
16432     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16433     # When using ansi2knr, U may be empty or an underscore; expand it
16434     U=`sed -n 's/^U = //p' < "$mf"`
16435     # Find all dependency output files, they are included files with
16436     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16437     # simplest approach to changing $(DEPDIR) to its actual value in the
16438     # expansion.
16439     for file in `sed -n "
16440       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16441          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16442       # Make sure the directory exists.
16443       test -f "$dirpart/$file" && continue
16444       fdir=`$as_dirname -- "$file" ||
16445 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16446          X"$file" : 'X\(//\)[^/]' \| \
16447          X"$file" : 'X\(//\)$' \| \
16448          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16449 $as_echo X"$file" |
16450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451             s//\1/
16452             q
16453           }
16454           /^X\(\/\/\)[^/].*/{
16455             s//\1/
16456             q
16457           }
16458           /^X\(\/\/\)$/{
16459             s//\1/
16460             q
16461           }
16462           /^X\(\/\).*/{
16463             s//\1/
16464             q
16465           }
16466           s/.*/./; q'`
16467       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16468       # echo "creating $dirpart/$file"
16469       echo '# dummy' > "$dirpart/$file"
16470     done
16471   done
16472 }
16473  ;;
16474     "libtool":C)
16475
16476     # See if we are running on zsh, and set the options which allow our
16477     # commands through without removal of \ escapes.
16478     if test -n "${ZSH_VERSION+set}" ; then
16479       setopt NO_GLOB_SUBST
16480     fi
16481
16482     cfgfile="${ofile}T"
16483     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16484     $RM "$cfgfile"
16485
16486     cat <<_LT_EOF >> "$cfgfile"
16487 #! $SHELL
16488
16489 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16490 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16492 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16493 #
16494 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16495 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16496 #                 Foundation, Inc.
16497 #   Written by Gordon Matzigkeit, 1996
16498 #
16499 #   This file is part of GNU Libtool.
16500 #
16501 # GNU Libtool is free software; you can redistribute it and/or
16502 # modify it under the terms of the GNU General Public License as
16503 # published by the Free Software Foundation; either version 2 of
16504 # the License, or (at your option) any later version.
16505 #
16506 # As a special exception to the GNU General Public License,
16507 # if you distribute this file as part of a program or library that
16508 # is built using GNU Libtool, you may include this file under the
16509 # same distribution terms that you use for the rest of that program.
16510 #
16511 # GNU Libtool is distributed in the hope that it will be useful,
16512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16514 # GNU General Public License for more details.
16515 #
16516 # You should have received a copy of the GNU General Public License
16517 # along with GNU Libtool; see the file COPYING.  If not, a copy
16518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16519 # obtained by writing to the Free Software Foundation, Inc.,
16520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16521
16522
16523 # The names of the tagged configurations supported by this script.
16524 available_tags=""
16525
16526 # ### BEGIN LIBTOOL CONFIG
16527
16528 # Which release of libtool.m4 was used?
16529 macro_version=$macro_version
16530 macro_revision=$macro_revision
16531
16532 # Assembler program.
16533 AS=$lt_AS
16534
16535 # DLL creation program.
16536 DLLTOOL=$lt_DLLTOOL
16537
16538 # Object dumper program.
16539 OBJDUMP=$lt_OBJDUMP
16540
16541 # Whether or not to build static libraries.
16542 build_old_libs=$enable_static
16543
16544 # Whether or not to build shared libraries.
16545 build_libtool_libs=$enable_shared
16546
16547 # What type of objects to build.
16548 pic_mode=$pic_mode
16549
16550 # Whether or not to optimize for fast installation.
16551 fast_install=$enable_fast_install
16552
16553 # Shell to use when invoking shell scripts.
16554 SHELL=$lt_SHELL
16555
16556 # An echo program that protects backslashes.
16557 ECHO=$lt_ECHO
16558
16559 # The PATH separator for the build system.
16560 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16561
16562 # The host system.
16563 host_alias=$host_alias
16564 host=$host
16565 host_os=$host_os
16566
16567 # The build system.
16568 build_alias=$build_alias
16569 build=$build
16570 build_os=$build_os
16571
16572 # A sed program that does not truncate output.
16573 SED=$lt_SED
16574
16575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16576 Xsed="\$SED -e 1s/^X//"
16577
16578 # A grep program that handles long lines.
16579 GREP=$lt_GREP
16580
16581 # An ERE matcher.
16582 EGREP=$lt_EGREP
16583
16584 # A literal string matcher.
16585 FGREP=$lt_FGREP
16586
16587 # A BSD- or MS-compatible name lister.
16588 NM=$lt_NM
16589
16590 # Whether we need soft or hard links.
16591 LN_S=$lt_LN_S
16592
16593 # What is the maximum length of a command?
16594 max_cmd_len=$max_cmd_len
16595
16596 # Object file suffix (normally "o").
16597 objext=$ac_objext
16598
16599 # Executable file suffix (normally "").
16600 exeext=$exeext
16601
16602 # whether the shell understands "unset".
16603 lt_unset=$lt_unset
16604
16605 # turn spaces into newlines.
16606 SP2NL=$lt_lt_SP2NL
16607
16608 # turn newlines into spaces.
16609 NL2SP=$lt_lt_NL2SP
16610
16611 # convert \$build file names to \$host format.
16612 to_host_file_cmd=$lt_cv_to_host_file_cmd
16613
16614 # convert \$build files to toolchain format.
16615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16616
16617 # Method to check whether dependent libraries are shared objects.
16618 deplibs_check_method=$lt_deplibs_check_method
16619
16620 # Command to use when deplibs_check_method = "file_magic".
16621 file_magic_cmd=$lt_file_magic_cmd
16622
16623 # How to find potential files when deplibs_check_method = "file_magic".
16624 file_magic_glob=$lt_file_magic_glob
16625
16626 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16627 want_nocaseglob=$lt_want_nocaseglob
16628
16629 # Command to associate shared and link libraries.
16630 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16631
16632 # The archiver.
16633 AR=$lt_AR
16634
16635 # Flags to create an archive.
16636 AR_FLAGS=$lt_AR_FLAGS
16637
16638 # How to feed a file listing to the archiver.
16639 archiver_list_spec=$lt_archiver_list_spec
16640
16641 # A symbol stripping program.
16642 STRIP=$lt_STRIP
16643
16644 # Commands used to install an old-style archive.
16645 RANLIB=$lt_RANLIB
16646 old_postinstall_cmds=$lt_old_postinstall_cmds
16647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16648
16649 # Whether to use a lock for old archive extraction.
16650 lock_old_archive_extraction=$lock_old_archive_extraction
16651
16652 # A C compiler.
16653 LTCC=$lt_CC
16654
16655 # LTCC compiler flags.
16656 LTCFLAGS=$lt_CFLAGS
16657
16658 # Take the output of nm and produce a listing of raw symbols and C names.
16659 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16660
16661 # Transform the output of nm in a proper C declaration.
16662 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16663
16664 # Transform the output of nm in a C name address pair.
16665 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16666
16667 # Transform the output of nm in a C name address pair when lib prefix is needed.
16668 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16669
16670 # Specify filename containing input files for \$NM.
16671 nm_file_list_spec=$lt_nm_file_list_spec
16672
16673 # The root where to search for dependent libraries,and in which our libraries should be installed.
16674 lt_sysroot=$lt_sysroot
16675
16676 # The name of the directory that contains temporary libtool files.
16677 objdir=$objdir
16678
16679 # Used to examine libraries when file_magic_cmd begins with "file".
16680 MAGIC_CMD=$MAGIC_CMD
16681
16682 # Must we lock files when doing compilation?
16683 need_locks=$lt_need_locks
16684
16685 # Manifest tool.
16686 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16687
16688 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16689 DSYMUTIL=$lt_DSYMUTIL
16690
16691 # Tool to change global to local symbols on Mac OS X.
16692 NMEDIT=$lt_NMEDIT
16693
16694 # Tool to manipulate fat objects and archives on Mac OS X.
16695 LIPO=$lt_LIPO
16696
16697 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16698 OTOOL=$lt_OTOOL
16699
16700 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16701 OTOOL64=$lt_OTOOL64
16702
16703 # Old archive suffix (normally "a").
16704 libext=$libext
16705
16706 # Shared library suffix (normally ".so").
16707 shrext_cmds=$lt_shrext_cmds
16708
16709 # The commands to extract the exported symbol list from a shared archive.
16710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16711
16712 # Variables whose values should be saved in libtool wrapper scripts and
16713 # restored at link time.
16714 variables_saved_for_relink=$lt_variables_saved_for_relink
16715
16716 # Do we need the "lib" prefix for modules?
16717 need_lib_prefix=$need_lib_prefix
16718
16719 # Do we need a version for libraries?
16720 need_version=$need_version
16721
16722 # Library versioning type.
16723 version_type=$version_type
16724
16725 # Shared library runtime path variable.
16726 runpath_var=$runpath_var
16727
16728 # Shared library path variable.
16729 shlibpath_var=$shlibpath_var
16730
16731 # Is shlibpath searched before the hard-coded library search path?
16732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16733
16734 # Format of library name prefix.
16735 libname_spec=$lt_libname_spec
16736
16737 # List of archive names.  First name is the real one, the rest are links.
16738 # The last name is the one that the linker finds with -lNAME
16739 library_names_spec=$lt_library_names_spec
16740
16741 # The coded name of the library, if different from the real name.
16742 soname_spec=$lt_soname_spec
16743
16744 # Permission mode override for installation of shared libraries.
16745 install_override_mode=$lt_install_override_mode
16746
16747 # Command to use after installation of a shared archive.
16748 postinstall_cmds=$lt_postinstall_cmds
16749
16750 # Command to use after uninstallation of a shared archive.
16751 postuninstall_cmds=$lt_postuninstall_cmds
16752
16753 # Commands used to finish a libtool library installation in a directory.
16754 finish_cmds=$lt_finish_cmds
16755
16756 # As "finish_cmds", except a single script fragment to be evaled but
16757 # not shown.
16758 finish_eval=$lt_finish_eval
16759
16760 # Whether we should hardcode library paths into libraries.
16761 hardcode_into_libs=$hardcode_into_libs
16762
16763 # Compile-time system search path for libraries.
16764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16765
16766 # Run-time system search path for libraries.
16767 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16768
16769 # Whether dlopen is supported.
16770 dlopen_support=$enable_dlopen
16771
16772 # Whether dlopen of programs is supported.
16773 dlopen_self=$enable_dlopen_self
16774
16775 # Whether dlopen of statically linked programs is supported.
16776 dlopen_self_static=$enable_dlopen_self_static
16777
16778 # Commands to strip libraries.
16779 old_striplib=$lt_old_striplib
16780 striplib=$lt_striplib
16781
16782
16783 # The linker used to build libraries.
16784 LD=$lt_LD
16785
16786 # How to create reloadable object files.
16787 reload_flag=$lt_reload_flag
16788 reload_cmds=$lt_reload_cmds
16789
16790 # Commands used to build an old-style archive.
16791 old_archive_cmds=$lt_old_archive_cmds
16792
16793 # A language specific compiler.
16794 CC=$lt_compiler
16795
16796 # Is the compiler the GNU compiler?
16797 with_gcc=$GCC
16798
16799 # Compiler flag to turn off builtin functions.
16800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16801
16802 # Additional compiler flags for building library objects.
16803 pic_flag=$lt_lt_prog_compiler_pic
16804
16805 # How to pass a linker flag through the compiler.
16806 wl=$lt_lt_prog_compiler_wl
16807
16808 # Compiler flag to prevent dynamic linking.
16809 link_static_flag=$lt_lt_prog_compiler_static
16810
16811 # Does compiler simultaneously support -c and -o options?
16812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16813
16814 # Whether or not to add -lc for building shared libraries.
16815 build_libtool_need_lc=$archive_cmds_need_lc
16816
16817 # Whether or not to disallow shared libs when runtime libs are static.
16818 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16819
16820 # Compiler flag to allow reflexive dlopens.
16821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16822
16823 # Compiler flag to generate shared objects directly from archives.
16824 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16825
16826 # Whether the compiler copes with passing no objects directly.
16827 compiler_needs_object=$lt_compiler_needs_object
16828
16829 # Create an old-style archive from a shared archive.
16830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16831
16832 # Create a temporary old-style archive to link instead of a shared archive.
16833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16834
16835 # Commands used to build a shared archive.
16836 archive_cmds=$lt_archive_cmds
16837 archive_expsym_cmds=$lt_archive_expsym_cmds
16838
16839 # Commands used to build a loadable module if different from building
16840 # a shared archive.
16841 module_cmds=$lt_module_cmds
16842 module_expsym_cmds=$lt_module_expsym_cmds
16843
16844 # Whether we are building with GNU ld or not.
16845 with_gnu_ld=$lt_with_gnu_ld
16846
16847 # Flag that allows shared libraries with undefined symbols to be built.
16848 allow_undefined_flag=$lt_allow_undefined_flag
16849
16850 # Flag that enforces no undefined symbols.
16851 no_undefined_flag=$lt_no_undefined_flag
16852
16853 # Flag to hardcode \$libdir into a binary during linking.
16854 # This must work even if \$libdir does not exist
16855 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16856
16857 # Whether we need a single "-rpath" flag with a separated argument.
16858 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16859
16860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16861 # DIR into the resulting binary.
16862 hardcode_direct=$hardcode_direct
16863
16864 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16865 # DIR into the resulting binary and the resulting library dependency is
16866 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16867 # library is relocated.
16868 hardcode_direct_absolute=$hardcode_direct_absolute
16869
16870 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16871 # into the resulting binary.
16872 hardcode_minus_L=$hardcode_minus_L
16873
16874 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16875 # into the resulting binary.
16876 hardcode_shlibpath_var=$hardcode_shlibpath_var
16877
16878 # Set to "yes" if building a shared library automatically hardcodes DIR
16879 # into the library and all subsequent libraries and executables linked
16880 # against it.
16881 hardcode_automatic=$hardcode_automatic
16882
16883 # Set to yes if linker adds runtime paths of dependent libraries
16884 # to runtime path list.
16885 inherit_rpath=$inherit_rpath
16886
16887 # Whether libtool must link a program against all its dependency libraries.
16888 link_all_deplibs=$link_all_deplibs
16889
16890 # Set to "yes" if exported symbols are required.
16891 always_export_symbols=$always_export_symbols
16892
16893 # The commands to list exported symbols.
16894 export_symbols_cmds=$lt_export_symbols_cmds
16895
16896 # Symbols that should not be listed in the preloaded symbols.
16897 exclude_expsyms=$lt_exclude_expsyms
16898
16899 # Symbols that must always be exported.
16900 include_expsyms=$lt_include_expsyms
16901
16902 # Commands necessary for linking programs (against libraries) with templates.
16903 prelink_cmds=$lt_prelink_cmds
16904
16905 # Commands necessary for finishing linking programs.
16906 postlink_cmds=$lt_postlink_cmds
16907
16908 # Specify filename containing input files.
16909 file_list_spec=$lt_file_list_spec
16910
16911 # How to hardcode a shared library path into an executable.
16912 hardcode_action=$hardcode_action
16913
16914 # ### END LIBTOOL CONFIG
16915
16916 _LT_EOF
16917
16918   case $host_os in
16919   aix3*)
16920     cat <<\_LT_EOF >> "$cfgfile"
16921 # AIX sometimes has problems with the GCC collect2 program.  For some
16922 # reason, if we set the COLLECT_NAMES environment variable, the problems
16923 # vanish in a puff of smoke.
16924 if test "X${COLLECT_NAMES+set}" != Xset; then
16925   COLLECT_NAMES=
16926   export COLLECT_NAMES
16927 fi
16928 _LT_EOF
16929     ;;
16930   esac
16931
16932
16933 ltmain="$ac_aux_dir/ltmain.sh"
16934
16935
16936   # We use sed instead of cat because bash on DJGPP gets confused if
16937   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16938   # text mode, it properly converts lines to CR/LF.  This bash problem
16939   # is reportedly fixed, but why not run on old versions too?
16940   sed '$q' "$ltmain" >> "$cfgfile" \
16941      || (rm -f "$cfgfile"; exit 1)
16942
16943   if test x"$xsi_shell" = xyes; then
16944   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16945 func_dirname ()\
16946 {\
16947 \    case ${1} in\
16948 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16949 \      *  ) func_dirname_result="${3}" ;;\
16950 \    esac\
16951 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16952   && mv -f "$cfgfile.tmp" "$cfgfile" \
16953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16954 test 0 -eq $? || _lt_function_replace_fail=:
16955
16956
16957   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16958 func_basename ()\
16959 {\
16960 \    func_basename_result="${1##*/}"\
16961 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16962   && mv -f "$cfgfile.tmp" "$cfgfile" \
16963     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16964 test 0 -eq $? || _lt_function_replace_fail=:
16965
16966
16967   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16968 func_dirname_and_basename ()\
16969 {\
16970 \    case ${1} in\
16971 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16972 \      *  ) func_dirname_result="${3}" ;;\
16973 \    esac\
16974 \    func_basename_result="${1##*/}"\
16975 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16976   && mv -f "$cfgfile.tmp" "$cfgfile" \
16977     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16978 test 0 -eq $? || _lt_function_replace_fail=:
16979
16980
16981   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16982 func_stripname ()\
16983 {\
16984 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16985 \    # positional parameters, so assign one to ordinary parameter first.\
16986 \    func_stripname_result=${3}\
16987 \    func_stripname_result=${func_stripname_result#"${1}"}\
16988 \    func_stripname_result=${func_stripname_result%"${2}"}\
16989 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16990   && mv -f "$cfgfile.tmp" "$cfgfile" \
16991     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16992 test 0 -eq $? || _lt_function_replace_fail=:
16993
16994
16995   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16996 func_split_long_opt ()\
16997 {\
16998 \    func_split_long_opt_name=${1%%=*}\
16999 \    func_split_long_opt_arg=${1#*=}\
17000 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17001   && mv -f "$cfgfile.tmp" "$cfgfile" \
17002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17003 test 0 -eq $? || _lt_function_replace_fail=:
17004
17005
17006   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17007 func_split_short_opt ()\
17008 {\
17009 \    func_split_short_opt_arg=${1#??}\
17010 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17011 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17012   && mv -f "$cfgfile.tmp" "$cfgfile" \
17013     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17014 test 0 -eq $? || _lt_function_replace_fail=:
17015
17016
17017   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17018 func_lo2o ()\
17019 {\
17020 \    case ${1} in\
17021 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17022 \      *)    func_lo2o_result=${1} ;;\
17023 \    esac\
17024 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17025   && mv -f "$cfgfile.tmp" "$cfgfile" \
17026     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17027 test 0 -eq $? || _lt_function_replace_fail=:
17028
17029
17030   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17031 func_xform ()\
17032 {\
17033     func_xform_result=${1%.*}.lo\
17034 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17035   && mv -f "$cfgfile.tmp" "$cfgfile" \
17036     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17037 test 0 -eq $? || _lt_function_replace_fail=:
17038
17039
17040   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17041 func_arith ()\
17042 {\
17043     func_arith_result=$(( $* ))\
17044 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17045   && mv -f "$cfgfile.tmp" "$cfgfile" \
17046     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17047 test 0 -eq $? || _lt_function_replace_fail=:
17048
17049
17050   sed -e '/^func_len ()$/,/^} # func_len /c\
17051 func_len ()\
17052 {\
17053     func_len_result=${#1}\
17054 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17055   && mv -f "$cfgfile.tmp" "$cfgfile" \
17056     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17057 test 0 -eq $? || _lt_function_replace_fail=:
17058
17059 fi
17060
17061 if test x"$lt_shell_append" = xyes; then
17062   sed -e '/^func_append ()$/,/^} # func_append /c\
17063 func_append ()\
17064 {\
17065     eval "${1}+=\\${2}"\
17066 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17067   && mv -f "$cfgfile.tmp" "$cfgfile" \
17068     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17069 test 0 -eq $? || _lt_function_replace_fail=:
17070
17071
17072   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17073 func_append_quoted ()\
17074 {\
17075 \    func_quote_for_eval "${2}"\
17076 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17077 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17078   && mv -f "$cfgfile.tmp" "$cfgfile" \
17079     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17080 test 0 -eq $? || _lt_function_replace_fail=:
17081
17082
17083   # Save a `func_append' function call where possible by direct use of '+='
17084   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17085     && mv -f "$cfgfile.tmp" "$cfgfile" \
17086       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17087   test 0 -eq $? || _lt_function_replace_fail=:
17088 else
17089   # Save a `func_append' function call even when '+=' is not available
17090   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17091     && mv -f "$cfgfile.tmp" "$cfgfile" \
17092       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17093   test 0 -eq $? || _lt_function_replace_fail=:
17094 fi
17095
17096 if test x"$_lt_function_replace_fail" = x":"; then
17097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17098 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17099 fi
17100
17101
17102    mv -f "$cfgfile" "$ofile" ||
17103     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17104   chmod +x "$ofile"
17105
17106  ;;
17107
17108   esac
17109 done # for ac_tag
17110
17111
17112 as_fn_exit 0
17113 _ACEOF
17114 ac_clean_files=$ac_clean_files_save
17115
17116 test $ac_write_fail = 0 ||
17117   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17118
17119
17120 # configure is writing to config.log, and then calls config.status.
17121 # config.status does its own redirection, appending to config.log.
17122 # Unfortunately, on DOS this fails, as config.log is still kept open
17123 # by configure, so config.status won't be able to write to it; its
17124 # output is simply discarded.  So we exec the FD to /dev/null,
17125 # effectively closing config.log, so it can be properly (re)opened and
17126 # appended to by config.status.  When coming back to configure, we
17127 # need to make the FD available again.
17128 if test "$no_create" != yes; then
17129   ac_cs_success=:
17130   ac_config_status_args=
17131   test "$silent" = yes &&
17132     ac_config_status_args="$ac_config_status_args --quiet"
17133   exec 5>/dev/null
17134   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17135   exec 5>>config.log
17136   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17137   # would make configure fail if this is the last instruction.
17138   $ac_cs_success || as_fn_exit 1
17139 fi
17140 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17141   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17143 fi
17144
17145
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17147         pygobject $VERSION
17148
17149         Using python interpreter:       $PYTHON
17150         libffi support:                 $have_libffi
17151         cairo support:                  $enable_cairo
17152         thread support:                 $enable_thread
17153         code coverage support:          $enable_code_coverage
17154 " >&5
17155 $as_echo "
17156         pygobject $VERSION
17157
17158         Using python interpreter:       $PYTHON
17159         libffi support:                 $have_libffi
17160         cairo support:                  $enable_cairo
17161         thread support:                 $enable_thread
17162         code coverage support:          $enable_code_coverage
17163 " >&6; }
17164